Multiple submit on single form
hi all,
My current system have 1 submit button with single form. This submit button will call file_content.upload.
htp.p('function on_submit() {');
htp.p(' ...the rest of my code here..');
htp.p(' document.forms[0].submit();');
htp.p(' return true;');
htp.p('}');
htp.p('<form enctype="multipart/form-data" method="post" action="file_content.upload">');
htp.p(' ...the rest of my code here..');
htp.p('<input type="button" id="btn_Submit" value="Submit" onclick="on_submit()"></form>');My question is, i want to enhance this by adding additional 1 submit button with value "Save". But this new "Save" button will call/trigger different file. This new button will call file_content.update. How to accomplish this and how to differentiate these 2 button?
htp.p('<input type="button" id="btn_Submit" value="Submit" onclick="on_submit()">
<input type="button" id="btn_Save" value="Save"></form>');Appreciate any help from you guys. Thanks
Edited by: morezack on Jul 21, 2011 2:08 PM
You again did accident like one below
multiple submit button on a single form
Take care..
Regards,
Similar Messages
-
Handling multiple submits in single form with JSP
HI,
I need to handle multiple submits in single form in a JSP.
<html>
<body>
<form action="/Compute" method="post">
<input type = "Submit" value="Find"/>
<input type = "Submit" value="Add"/>
<input type = "Submit" value="Delete"/>
</form>
<body>
<html>
/Compute wld take the control to a servlet named ComputeController.java .
In this servlet how should I distinguish which Submit has been clicked(Find or add or Delete).
TIAGive the submit button a name. It will be sent as well, so you can see it in the request variables.
-
MULTIPLE SESSIONS IN SINGLE FORM
HELLO ALL
HOW CAN I HAVE MULTIPLE SESSIONS IN A SINGLE FORM? MY REQUIRMENT
IS SUCH THAT I HAVE A CONTROL BLOCK WHICH IS MARKED AS UPDATED
WHEN USER PRESS COMMIT BUTTON, BUT I WANT TO ROLL IT BACK AND I
HAVE ISSUED SOME UPDATE COMMANDS MYSELF WHICH I WANT TO BE
COMMITED. ANYONE HAVE ANY IDEA?
THANKS IN ADVANCEGive the submit button a name. It will be sent as well, so you can see it in the request variables.
-
Multiple users of single forms
Hi,
I have a situation whereby I'd like to be able to have multiple users haveing input to a single form. This is to establish a type of jobcard system.
e.g.
A form is distributed out to a number of people, they complete a certain section, the forms are then submitted ie returned to the distributor, from here they can be forwarded onto someone else who will compete aditional information onto the form and again submit it.
The coordinator can then review the form data and then forward or save the forms off.
This is likely to be from a PC to PC in the first instance and PC to tablet in the second, ideally with the ability to add photographs.
Many ThanksHi,
WIth FormsCentral, you can share a single form with multiple users as Co-Authors. Your shared user will have right to edit/modify/save the form at anytime.
Now, your shared users will need to create (free or paid) accounts in FormsCentral to be able to collaborate on the form.
Please take a look a this FormsCentral tutorial, Share and collaborate section: http://forums.adobe.com/docs/DOC-1413
Thanks,
Lucia -
Multiple Input ports - Single Form
Hi,
I have a RFC which has multiple input ports. How do i use a single form to provide data to all the input ports.
Regards
BharathwajHi,
you can create the single form direct, if you pull a line out of the RFC, then the form must be created with the fields. If not, then you have to create it manually and map the fields with the input port.
Best Regards,
Marcel -
Insert Multiple records in single form
Hi all,
I have already come across inserting multiple rows into a table using ADF BC. The solution to this is in the following thread
Re: How to create multiple new rows in ADF Table?
However,
The above solution is useful when we want to enter new values along with all the table entries getting displayed.
What can I do If I dont want all the table values but just an 'AddEntries' page where I can only add new rows without having the entries in table getting displayed.
Like,
Say, a form has 5 rows
Each row has empId, eMailSlNo ,eMail attributes
EmpId is same for all 5 records but emailId is different.
EmpId and eMailSlNo make the PK.
empId generated using sequence.
Now on submitting the form, I want all five records to be inserted.
(can i use ADF form instead of ADF table for the ViewObject in this case. I tried ADF form but i could only insert 1 record at a time).
I'm using 10.1.3.4
Please help.
Thanks in advance,
Shri
Edited by: newtoOTN on Dec 29, 2009 6:02 PMHi Shri,
ADF Form is meant for single insert/update. For multiple insert/update/delete using collection UI like table is preferred. I guess that either your db table or the UI table design has flaw (In my opinion but i don't know your usecase fully, so my guess might b wrong).
I would suggest,
- make EmpId as PK
- have another table to store EmpId(foreign key),emailSiNo, email
- Have master-detail relationship between both the db tables in ADF BC.
- Create master-detail table UI and on selection of master, display detail and if no records found add records and commit.
check these examples:
http://www.oracle.com/technology/products/jdev/tips/mills/MasterDetailSync/Master_Detail_Synchronization_in_ADF_Faces.html
http://andrejusb.blogspot.com/2007/06/create-edit-and-delete-operations-in.html
Hope this makes sense.
~K -
Updating multiple records from single form (ASP)
I have a nested repeat region.
I have created in the parent, a form with 3 fields and an update button.
the child records all have multiple columns, 3 of which correspond to the parent.
Athe parent is bound to the child records by the shipmentID
I need to be able to update all child records from the form in the parent.
The case is this.
The child records are orders with shipdates and frequencies
The parent contains a form with fields for shipdate and frequency
The administrator needs to change the shipdate and/or frequency for all child records.
(The child records are forms as well--but that's another issue that works fine)
Shipment ID
Date Field
Freq Field
UPDATE Button
ShipmentID
Record 1
Data case1
Date
ShipmentID
Record 2
Data case 2
Date
I am doing this in classic asp with an SQL database.
So how do I get the form to update all record
[Subject title edited by moderator to make clear ASP involved]Hi,
This is one of those questions that would require far more explanation that is reasonable to expect in a forum. You should do a little poking around in the nearest Barnes & Nobles. About a half hour in a chare with a good ASP book and vanilla latte should have you on the right track.
Lawrence *Adobe Community Expert*
www.Cartweaver.com
Complete Shopping Cart Application for
Dreamweaver, available in ASP, PHP and CF -
Multiple submit button on a single form
hi all,
My current system have 1 submit button with single form. This submit button will call file_content.upload.
htp.p('function on_submit() {');
htp.p(' ...the rest of my code here..');
htp.p(' document.forms[0].submit();');
htp.p(' return true;');
htp.p('}');
htp.p('<form enctype="multipart/form-data" method="post" action="file_content.upload">');
htp.p(' ...the rest of my code here..');
htp.p('<input type="button" id="btn_Submit" value="Submit" onclick="on_submit()"></form>');
My question is, i want to enhance this by adding additional 1 submit button with value "Save". But this new "Save" button will call/trigger different file. This new button will call file_content.update. How to accomplish this and how to differentiate these 2 button?
htp.p('<input type="button" id="btn_Submit" value="Submit" onclick="on_submit()">
<input type="button" id="btn_Save" value="Save"></form>');
Appreciate any help from you guys. Thanks
Edited by: morezack on Jul 20, 2011 8:21 PM
Edited by: morezack on Jul 20, 2011 8:29 PMPLEASE IGNORE THIS THREAD. ACCIDENTLY SUBMIT IT. I WANT TO DELETE THIS BUT CANNOT
-
How do I insert multiple rows from a single form ...
How do I insert multiple rows from a single form?
This form is organised by a table. (just as in an excel format)
I have 20 items on a form each row item has five field
+++++++++++ FORM AREA+++++++++++++++++++++++++++++++++++++++++++++++++++++
+Product| qty In | Qty Out | Balance | Date +
+------------------------------------------------------------------------+
+Item1 | textbox1 | textbox2 | textbox3 | date +
+ |value = $qty_in1|value= &qty_out1|value=$balance1|value=$date1 +
+------------------------------------------------------------------------+
+Item 2 | textbox1 | textbox2 | textbox4 | date +
+ |value = $qty_in2|value= $qty_out1|value=$balance2|value=$date2 +
+------------------------------------------------------------------------+
+ Item3 | textbox1 | textbox2 | textbox3 | date +
+------------------------------------------------------------------------+
+ contd | | | +
+------------------------------------------------------------------------+
+ item20| | | | +
+------------------------------------------------------------------------+
+ + + SUBMIT + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Database Structure
+++++++++++++++++
+ Stock_tabe +
+---------------+
+ refid +
+---------------+
+ item +
+---------------+
+ Qty In +
+---------------+
+ Qty Out +
+---------------+
+ Balance +
+---------------+
+ Date +
+++++++++++++++++
Let's say for example user have to the use the form to enter all 10 items or few like 5 on their stock form into 4 different textbox field each lines of your form, however these items go into a "Stock_table" under Single insert transaction query when submit button is pressed.
Please anyone help me out, on how to get this concept started.Hello,
I have a way to do this, but it would take some hand coding on your part. If you feel comfortable hand writing php code and doing manual database calls, specificaly database INSERT calls you should be fine.
Create a custom form using the ADDT Custom Form Wizard that has all the rows and fields you need. This may take a bit if you are adding the ability for up to 20 rows, as per your diagram of the form area. The nice thing about using ADDT to create the form is that you can setup the form validation at the same time. Leave the last step in the Custom Form Wizard blank. You can add a custom database call here, but I would leave it blank.
Next, under ADDT's Forms Server Behaviors, select Custom Trigger. At the Basic tab, you enter your custom php code that will be executed. Here you are going to want to put your code that will check if a value has been entered in the form and then do a database INSERT operation on the Stock_table with that row. The advanced tab lets you set the order of operations and the name of the Custom Trigger. By default, it is set to AFTER. This means that the Custom Trigger will get executed AFTER the form data is processed by the Custom Form Transaction.
I usually just enter TEST into the "Basic" tab of the Custom Trigger. Then set my order of operations in the "Advanced" tab and close the Custom Trigger. Then I go to the code view for that page in Dreamweaver and find the Custom Trigger function and edit the code manually. It's much easier this way because the Custom Trigger wizard does not show you formatting on the code, and you don't have to keep opening the Wizard to edit and test your code.
Your going to have to have the Custom Trigger fuction do a test on the submitted form data. If data is present, then INSERT into database. Here's a basic example of what you need to do:
In your code view, the Custom Trigger will look something like this:
function Trigger_Custom(&$tNG) {
if($tNG->getColumnValue("Item_1")) {
$item1 = $tNG->getColumnValue("Item_1");
$textbox1_1 = $tNG->getColumnValue("Textbox_1");
$textbox1_2 = $tNG->getColumnValue("Textbox_2");
$textbox1_3 = $tNG->getColumnValue("Textbox_3");
$date1 = $tNG->getColumnValue("Textbox_3");
$queryAdd = "INSERT INTO Stock_table
(item, Qty_In, Qty_Out, Balance, Date) VALUES($item1, $textbox1_1, $textbox1_2, $textbox1_3, $date1)"
$result = mysql_query($queryAdd) or die(mysql_error());
This code checks to see if the form input field named Item_1 is set. If so, then get the rest of the values for the first item and insert them into the database. You would need to do this for each row in your form. So the if you let the customer add 20 rows, you would need to check 20 times to see if the data is there or write the code so that it stops once it encounters an empty Item field. To exit a Custom Trigger, you can return NULL; and it will jump out of the function. You can also throw custom error message out of triggers, but this post is already way to long to get into that.
$tNG->getColumnValue("Item_1") is used to retrieve the value that was set by the form input field named Item_1. This field is named by the Custom Form Wizard when you create your form. You can see what all the input filed names are by looking in the code view for something like:
// Add columns
$customTransaction->addColumn("Item_1", "STRING_TYPE", "POST", "Item_1");
There will be one for each field you created with the Custom Form Wizard.
Unfortunately, I don't have an easy way to do what you need. Maybe there is a way, but since none of the experts have responded, I thought I would point you in a direction. You should read all you can about Custom Triggers in the ADDT documentation/help pdf to give you more detailed information about how Custom Triggers work.
Hope this helps.
Shane -
Multiple Selects in a single form
I have six select boxes and I want them in a single form.
Below are the outputs for the select boxes.
<cfform
action="Resolution_History.cfm?year=#year#&sessiontype=#sessiontype#&btype=res"
name="form">
<select name="SRINPUT">
<option value="">SR
<CFOUTPUT Query="findSR"><Option
Value="#BILLNUMBER#">#BILLNUMBER#</cfoutput>
</select>
<select name="HRINPUT">
<option value="">HR
<CFOUTPUT Query="findHR"><Option
Value="#BILLNUMBER#">#BILLNUMBER#</cfoutput>
</select>
<select name="SCRINPUT">
<option value="">SCR
<CFOUTPUT Query="findSCR"><Option
Value="#BILLNUMBER#">#BILLNUMBER#</cfoutput>
</select>
<br>
<select name="HCRINPUT">
<option value="">HCR
<CFOUTPUT Query="findHCR"><Option
Value="#BILLNUMBER#">#BILLNUMBER#</cfoutput>
</select>
<select name="SJRINPUT">
<option value="">SJR
<CFOUTPUT Query="findSJR"><Option
Value="#BILLNUMBER#">#BILLNUMBER#</cfoutput>
</select>
<select name="HJRINPUT">
<option value="">HJR
<CFOUTPUT Query="findHJR"><Option
Value="#BILLNUMBER#">#BILLNUMBER#</cfoutput>
</select>
<INPUT TYPE="Submit" VALUE="Submit" alt="submit
button">
</cfform>
Once a user selects a number it will send them to an action
page. On the action page I need the below IF statement to work so
it will set the variables. It isn't working at this time. Its not
bringing the values of billnumber, houseorig or the billtype.
Does anyone have any thoughts? I know it is close to working
and I need to set all of the inputs to input4 to generate my
queries so I don't have to duplicate them.
<cfif form.srinput gt "0">
<cfset s = '#houseorig#'>
<cfset r = '#billtype#'>
<cfset input4 = '#srinput#'>
<cfelseif form.hrinput gt "0">
<cfset h = '#houseorig#'>
<cfset r = '#billtype#'>
<cfset input4 = '#hrinput#'>
<cfelseif form.scrinput gt "0">
<cfset s = '#houseorig#'>
<cfset cr = '#billtype#'>
<cfset input4 = '#scrinput#'>
<cfelseif form.hcrinput gt "0">
<cfset h = '#houseorig#'>
<cfset cr = '#billtype#'>
<cfset input4 = '#hcrinput#'>
<cfelseif form.sjrinput gt "0">
<cfset s = '#houseorig#'>
<cfset jr = '#billtype#'>
<cfset input4 = '#sjrinput#'>
<cfelse>
<cfset h = '#houseorig#'>
<cfset jr = '#billtype#'>
<cfset input4 = '#hjrinput#'>
</cfif>give'em a break. he is probably under pressure (like we all
have been). in response, i do not even see some of the variables
you are checking in the second script in the first. get this one
straight and i think it'll work. -
Multiple DataBase Connection in a Single Form
hi all
Is it Possible to have Multiple Database Connection With a Single Form
Block a : Retriving data from a database Service a/Schema A.
Block b : Retriving data from a Remote Database Service b / Schema B.
If yes how to do this.
regards
jai
email:[email protected]Sure you can access a database this way,
but can you base a block on this database connect? No you can't.
Frank -
Multiple Submit buttons in Adobe form !
Hello Experts,
Scenario :
Form has Material number as input field and Material description should get automatically populated( maybe as a script or button , dont know yet ). Then the form is to be submitted at the backend.
I have created an Adobe interactive form with Multiple Submit buttons( one is Submit toSAP) button , other is a normal pushbutton( for Material desc to be populated ) . I have been able to Submit data at backend.
But problem is there is only one event on the Interactive form UI element properties.
Please suggest how to achieve the above ? via script or sm code in web dynpro ?
System Config : WAS 6.4 / SP12 .
Need a quick resolution. Generous points for help.
Regards,
SonikaHi Sonika,
control_param structure is used in case of ISR forms, but I dont think your form is related to the ISR.
Use a context attribute, and set its value to get the Material description from backend.
Like you can define an attribute in context, "GETDESCRIPTION", and set its value at the exit event of Inputfield to "GET".
$.parent.GETDESCRIPTION.rawvalue = "GET"
app.eval("event.target.SAPSubmit();");
And at the click event of the button you can write:
$.parent.GETDESCRIPTION.rawvalue = "SET"
app.eval("event.target.SAPSubmit();");
And in the backend, read the value of this attribute and perform the desired action.
Hope this helps,
Amit -
10G-form: How to do MULTIPLE WORD OR SINGLE WORD SEARCH at ITEM?
I am using 10G DB + 10G Form Builder.
I've 'database_item' where I am storing multiline text data.
I want to do MULTIPLE WORD OR SINGLE WORD SEARCH at this item through FORM.
I've tried by creating the following NON Database Items on the form:
- multiline_search_text_item, and
- multiline_result__text_item
And then writing execute_query in KEY-NEXT-ITEM trigger.
I've also tried using this in the POST-TEXT-ITEM at multiline_search_text_item:
select table.database_item into :multiline_result__text_item from table where multiline_search_text_item = :multiline_search_text_item;
Pl help me asap.
GauravWhat you want to do is not clear.
The query you wrote will select records where the table contains exactly what has been written in the search item. You can use LIKE and a wildcard search to find records which contain the search text:
select table.database_item into :multiline_result__text_item
from table
where multiline_search_text_item LIKE '%'||:multiline_search_text_item||'%';
You can use UPPER to make this case insensitive:
select table.database_item into :multiline_result__text_item
from table
where Upper(multiline_search_text_item) LIKE Upper('%'||:multiline_search_text_item||'%');
But I suspect you want either to match the individual words in the search text to individual words in the database multiline field, or find records where the search words appear (not necessarily as whole words). In that case, check out the following:
-- set up a table (multiline and various whitespaces)
DROP TABLE t;
CREATE TABLE t AS
SELECT
ROWNUM rn,
owner||Chr(9)||object_name||Chr(160)||subobject_name||' '||object_id||' '||
data_object_id||Chr(10)||object_type||' '||created||' '||last_ddl_time||' '||
timestamp||' '||status||' '||temporary||' '||generated||' '||secondary AS col
FROM all_objects;
-- check the format of the multiline text item (col)
SELECT * FROM t WHERE ROWNUM < 4;
-- a type for the function below
CREATE TYPE string_tab AS TABLE OF VARCHAR2(255);
-- this function takes a string and cuts out each word, idetifying words
-- as being separated by any whitespace. it returns a collection
CREATE OR REPLACE FUNCTION string_to_tab(
p_string IN VARCHAR2) RETURN string_tab IS
l_string LONG DEFAULT
RTrim(regexp_replace(p_string,'[[:space:]]+',' ')) || ' ';
l_data string_tab := string_tab();
n NUMBER;
BEGIN
LOOP
EXIT WHEN l_string IS NULL;
n := InStr(l_string, ' ');
l_data.extend;
l_data(l_data.Count) := LTrim(RTrim(SubStr(l_string, 1, n - 1)));
l_string := SubStr(l_string, n + 1);
END LOOP;
RETURN l_data;
END string_to_tab;
-- selecting from t where ANY of the words in the search text has
-- a match in the multiline field (as a word or part of a word), so SYS
-- matches to MDSYS and SYSTEM
SELECT DISTINCT
t.rn, t.col
FROM
t,
(SELECT column_value
FROM TABLE(CAST(string_to_tab('SYS INDEX') AS string_tab))) x
WHERE InStr(t.col,x.column_value) > 0;
-- selecting from t where ALL of the words in the search text has
-- a match in the multiline field (as a word or part of a word), so SYS
-- matches to MDSYS and SYSTEM
SELECT rn, col FROM(
SELECT
t.rn, t.col, cnt_x, Count(*) cnt
FROM
t,
(SELECT column_value , Count(1) over(PARTITION BY 1)cnt_x
FROM TABLE(CAST(string_to_tab('SYS INDEX') AS string_tab))) x
WHERE InStr(t.col,x.column_value) > 0
GROUP BY t.rn, t.col, cnt_x
WHERE cnt = cnt_x;
-- selecting from t where ANY of the words in the search text
-- match a word in the multiline field, so SYS matches only to SYS
SELECT DISTINCT
t.rn, t.col
FROM
t,
(TABLE(CAST(string_to_tab(t.col) AS string_tab))) t2,
(SELECT column_value
FROM TABLE(CAST(string_to_tab('SYS INDEX') AS string_tab))) x
WHERE t2.column_value = x.column_value;
-- selecting from t where ALL of the words in the search text
-- match a word in the multiline field, so SYS matches only to SYS
SELECT rn, col FROM(
SELECT
t.rn, t.col, cnt_x, Count(*) cnt
FROM
t,
(TABLE(CAST(string_to_tab(t.col) AS string_tab))) t2,
(SELECT column_value , Count(1) over(PARTITION BY 1)cnt_x
FROM TABLE(CAST(string_to_tab('SYS INDEX') AS string_tab))) x
WHERE t2.column_value = x.column_value
GROUP BY t.rn, t.col, cnt_x
WHERE cnt = cnt_x;For your application you would replace 'SYS INDEX' with a variable (the search field). You can use upper() and wildcards for case insensitive & 'fuzzy' searches. You might need to modify the function so it removes other delimiters such as commas and colons. -
How to distribute a form with multiple submit buttons?
I have a form that has multiple submit buttons depending on the information that is being entered and then who the information should go to. When I try to disbribute the form, I get an error message stating the following, "Acrobat is unable to distribute this form because it contains multiple submit buttons with different formats or return URLs." Is anyone able to let me know how I can distribute the form?
Sounds as if you need your own web script to process submissions - written by an experienced web programmer (I very strongly recommend someone familiar with all the latest security weaknesses, and not a project for anyone else). Your needs are (it seems to me) too complex for Adobe's automatic system.
-
Regarding Print of Single Form for multiple Transfer Order ( LT03 )
Hi All,
When user creates Transfer Order and if transfer order items are more than 22 then split of Transfer Order occurrs and multiple TO's get created in system. The standard prog. RLVSDR40 prints form for each TO's , however the requirment is to print only one form for multiple TO ( Actually TO Form containes info. abt delivery, but triggering point should be from TO creation ) .
There is one prog. RLKOMM40 which is used for multiple processing, whether this prog. will be useful for above requirement. Or is there any exit available for above requirement .
Thanks for help.Hi,
is there any routines used in Copy controls from order - delivery .- re-check once.
as your post, everything seems fine. I didnt see any reason for not creating single delivery.
is it happening only with this customer or respective ship to's? if yes, something gone wrong in CMR - i.e. complete delivery / order combination etcc., ( just an assumption)
Regards,
ReazuddinMD
Maybe you are looking for
-
Hi all, My imac (osx 10.6.8), apple mail(4.5) has begun to act very odd. It quits out and on occasion I open an email to face "plugin is missing" or I have a spinning wheel and the email won't open. New to do list fails to add to the list. Can anyone
-
Applet display problem in 1.4.2_10
I recently upgraded JRE from 1.4.2_07 to 1.4.2_10 and my applet page refresh got screwed up. Sometimes when the page with the applet is refreshed, the applet is not displayed. It is loaded for sure but not displayed. If we switch back to some window
-
Reactivating Audition after reinstalling on MacBook Pro?
After clean reinstalling OS 10.9.1 on MacBook Pro, reinstalled Audition but it won't run. How to reactivate?
-
Where(& how) exactly do i find out what is tying up my gigabyte usage?
my start up disk is almost full and i can't download any software updates, ... i am in need of getting rid of stuff on my iMac. So, please advise step by step on what i am to do, .... thanks a bunch!
-
I can not add my iphone to my itunes, i can not add my iphone to my itunes
It keeps telling me to download 11.1.3 and i have and it still will not pull up new iphone 5s