How do I submit two forms from a single page in adf? - oracle-adf

I am using ADF to build the front end and Toplink for DB transactions. I wanted to show 2 create forms on a single jspx page. Both the forms are from two different objects i.e it doesn't have a parent child relationship. How can I submit the values of both the forms to the backend when the user clicks on the single submit button using ADF?
Any tutorials or examples would be appreciated.
Thanks

ADF doesn’t work the way you think it does: each page is a single form.
You may, however use two distinct af:panelFormLayout components that look as two different forms from UI perspective. But an af:button button will submit the the entire page as a single form.
Check some examples of ADF pages. You will see that the structure goes like: <af:document><af:view><af:form> ... any other components .

You need to overwrite the button method to call the two methods you want it to execute.
Here are the basics of how to overwrite a declarative button:
https://blogs.oracle.com/shay/doing-two-declarative-operations-with-one-button

Related

When creating a microsoft forms trigger in a logic app I can only see forms I created

Sorry in advance if this question seems naïve.
I'm currently trying to configure a logic app that triggers based on a form being submitted via Microsoft Forms.
This form is located in one of my organizations groups (which my user has access to). When attempting to create the trigger the only forms I can see in the dropdown are ones that I created myself and are under My Forms in microsoft forms.
I'm unsure of the steps to make the form visible / available so I can create a trigger for it. Any help would be appreciated. FYI the logic app is going to be used to create a work item based on the form submission.
Ok I found the answer, not sure why I didn't catch this the first time I read this.

How do I create a multi step form using reduxForms?

I need to create a tabbed multi step form with validation where data from one tab needs to be carried forward to the next. The user should be able to go back and edit the form in the previous tab.. How do I create one using reduxForms or any other method?
In redux-form its call Wizard Form. Here is the api and example api

Drupal 7 custom voting solution

I need to create a voting system which will essentially consist of several forms each with a list of radio buttons, of which a single choice can be made. Submission of the form loads the next one, this will go on for about 10 pages, before finally sending the user to a generic data capture form where they will submit their credentials for inclusion in a prize draw.
Several approaches spring to mind:
Create a clone of the core poll module and modify it to achieve the required functionality
Modify the drupal quiz module to allow anonymous recording of votes (the fact that it doesn't is the only thing stopping me approaching it this way, it works almost exactly as I want it to otherwise)
Create something completely custom using the webform module.
I just wondered if anyone had come across this same problem/dilemma and could share any knowledge???
Can you accomplish this with a multi-page webform? You can build the webform by adding a "select options" field, followed by a "page break", then another "select options" field, and another "page break", etc, etc.
You can limit the select options field to 1 answer. Then when you want to gather their information, just add simple text fields at the end.

Drupal 7: Add duplicates for form fields on the fly

I've got a form that's being generated using the Form API. There is a fieldset that contains several text fields. What I need to do is have a link or button that a user clicks if they want to add a duplicate of that fieldset to the form so they can add another set of similar information to the form. This is to essentially allow them to add multiple records without having to add each record individually. Is there a good way to go about adding this kind of functionality using the Forms API in Drupal 7?
There's a good example of this in the examples module package:
http://api.drupal.org/api/examples/ajax_example%21ajax_example_graceful_degradation.inc/function/ajax_example_add_more/7
It's a little complex, but that is very well documented, so you should be able to follow along.
You'll want to look at the entire ajax_example module (part of http://drupal.org/project/examples) for the relevant menu callbacks as well.

Multiple forms with one page in tipfy

I haven't been able to find an example of using multiple forms on one
page (or one Handler) for tipfy. I'm trying to allow users to both
answer (form 1) and comment on an item (form 2) from the same
page.
One approach to doing this in PHP is submitting a hidden form and checking for it before processing. However, I'm not sure what to check for in tipfy.
What's the best way to accomplish multiple forms in tipfy?

Resources