Two actions for submit button
Hi
I'm new to modifying pdfs so please excuse me. I have a form with a submit button and the action associated is
I want to add this script:
but the form will only do 1 action in the event node. So how can I make it show the message box and then do the submit? please note that the forum removed the script tags
Hello,
You can link your button actionListener to a manageBean method and into this method, call your to ExecuteWithParams binding operation like
public void actionListener(ActionEvent actionEvent) {
BindingContext bindingContext = BindingContext.getCurrent();
BindingContainer bindings = bindingContext.getCurrentBindingsEntry();
OperationBinding opBinding1 = ((DCBindingContainer)bindings).getOperationBinding("ExecuteWithParams1");
opBinding1.execute();
OperationBinding opBinding2 = ((DCBindingContainer)bindings).getOperationBinding("ExecuteWithParams2");
opBinding2.execute();
}This also can be included into a valueChangeListener binded to an input component for example
public void changeListener(ValueChangeEvent valueChangeEvent) {
BindingContext bindingContext = BindingContext.getCurrent();
BindingContainer bindings = bindingContext.getCurrentBindingsEntry();
OperationBinding opBinding1 = ((DCBindingContainer)bindings).getOperationBinding("ExecuteWithParams1");
opBinding1.execute();
OperationBinding opBinding2 = ((DCBindingContainer)bindings).getOperationBinding("ExecuteWithParams2");
opBinding2.execute();
}Jack
Similar Messages
-
Merging of actions for Submit and action button
Hello,
How to merge actions for submit and Commit operations, in a single button?.
For clarity, I have made a form with ADF table, where user can edit table fields. containing Submit and Commit buttons. Once editing is completed, if submit is pressed, changes will be posted and commit button becomes enabled.
Now i want to be both actions should happen in one button. How to do this?.
Thanks in advance
seshuYou can drag an operation onto an existing button (bind to existing button).
The commit operation will automatically submit the form as well.
To make the commit button enabled clear the "disabled" property of the button. -
Can we perform two actions with one button with two clicks one after other?
Sir,
can we perform two actions with one button with two clicks one after other?
I want that when I click an Add Button first time it add data to the database and when I click again this button it clear the form data to empty fields.
Regards
TanvirIn code it should be easy.
The following code adds a button called butman with a text "ADD".
It then registers a listener that will be called if the button is clicked.
This listener then calls the runAddData method if you clicked on butman while it contained the "ADD" text and it will call the runClearData method otherwise.
Therefore it will swap the button's functionality between ADD and CLEAR on every click.
final Button butman = new Button("ADD");
butman.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent t) {
if (butman.getText().equals("ADD")) {
butman.setText("CLEAR");
runAddData();
} else {
butman.setText("ADD");
runClearData();
} // END IF-THEN
}});I hope this is what you wanted.
Some extra food for thought.
You might want to run the ADD and CLEAR methods in their own threads so that it can run in the back ground, without slowing down your user interface.
I also like to rather reuse one button for multiple functionality in stead of making an application with hundreds of nodes only used rarely with masses of code to show and hide them if needed. -
Making Page look same in All Pixels & Writing code for Submit Button.
Hello All,
How to make the page look the same in all computers even though the pixels are different?
Please help me in this regard.
More Over if I want write the code for Submit button where the code should be written.
Whether the code is different from normal ABAP coding?
Warm Regards,
SampathKumar G.Hi Sampath,
You can trigger mandatory field checks in WDA as in R/3. For this you need to make the "state" property of your input field to "required".
In addition to this you need to call the static method check_mandatory_attr_on_view of class cl_wd_dynamic_tool. This would then automatically verify if all the mandatory fields have been filled or not. It would then populate the error messages into an internal table and display them in the view. Also the mandatory fields which haven't been filled would be highlighted with a red border. You need to put the below coding into the action up on which you want to trigger the data chesks.
data: lt_msg TYPE cl_wd_dynamic_tool=>t_check_result_message_tab,
lo_view_controller TYPE REF TO if_wd_view_controller,
lo_message_manager type ref to if_wd_message_manager.
lo_view_controller ?= wd_this->wd_get_api( ).
lo_message_manager = lo_view_controller->get_message_manager( ).
cl_wd_dynamic_tool=>check_mandatory_attr_on_view(
EXPORTING
view_controller = lo_view_controller
display_messages = abap_true
IMPORTING
messages = lt_msg ).
Regards,
Uday -
Associating two events with submit button using javascript in jsp
Hi
How can i Associate two events with submit button using javascript in jsp. Firstly it should insert the data to database and secondly it should close the same pop-up windowHave something like :
<input type="submit" name="submitbtn" value="Click me" onClick="function1(); function2(); " />
You just call both functions sequentially, it's that simple. Although using javascript to work with a database, that seems a bit tricky. -
Add advanced action to submit button and setting different objectives score for the same course
Hi, i would like to increase a counter in a quiz slide when the user press the submit button, using advanced actions.
It's like if the submit button is somehow inhibited from certain options, and i cannot find how to add an advanced action to it.
what i need, is to allow unlimited attempt until the user selects the right answer. each time the user click on submit, a counter increases by one. When user finally select the right answer, we read the counter value and assign a different score, depending on the attempt (for example: 1st attempt=20 points, 2nd attempt=10 points, 3rd attempt=0 points)
After that, i need to save all score obtained for a certain group of quiz slide separately from the "main score" (i think the main score is stored in cmi.objectives.0.score) to have partials scores for a course. I examined the "advanced interactions" panel and i noticed that for each quiz slide there is a specific interaction ID and each quiz slide is associated typically to the same Objective ID. What i need is to associate different groups of slides to different Objective ID's.
In Storyline i was able to do this by passing to the lms a cmi.objectives.n.score (where "n" is the place in the objectives array) and i did it by executing a javascript on success for each question slide. (each javascript added the score of previous slides in the same group to obtain the total score of the group to be passed to lms with a specific function).
examining captivate scorm functions in the published scormdriver.js i found the following function
function SCORM_SetObjectiveScore(strObjectiveID,intScore,intMaxScore,intMinScore)
so i think it can be done the same way in captivate executing javascript in the right way.
Is there also an easier solution to write different scores to different obectives in the same course?
many thanks for any help!Have a look at:
Question Question Slides in Captivate - Captivate blog
Question Question Slides - Part 2 - Captivate blog
Indeed, Submit button is part of the Question slide, not a normal button. You can add a custom shape button, but it will never replace what happens when the Submit button is clicked: validation of the answer, showing captions, adding to score etc. Making the score depending on the attempt is not possible with default functionality, it is possible with custom question slides, but then the reporting to LMS is another issue. You should try to do it by JS, or if you only need SWF-output you could use the Master widget by InfoSemantics.
Link score to attempts in Custom questions - Captivate blog
Lilybiri -
Edit email for submit button and Javascript?
How can I change an email address attached to a submit button on a previously created form? 2) How can I see if JavaScript is being used with form? A prior team member created interactive forms with a submit button. Email address attached to button needs to be updated. I tried to edit in Acrobat Pro by double clicking the button to access the properties panel, but it doesn't open. If I recreate the form to amend the address, my file size is about 1/3 of the original which leads me to believe there is JavaScript.
Thank you. My version of Adobe Acrobat Pro X Tools- Forms edits in
LiveCycle Designer after the form has been created and saved.. There is no
other edit option as shown in the screen print below. The action wizard in
Pro doesn't seem to apply in this case. I had tried right clicking the
button in both Pro and LiveCycle previously to no avail. However, when the
form opens in LiveCycle, I just figured out that there is an object window
that allowed me to modify the email address.
However, I don't understand the file size difference or even how to find
the JS. We both used the same original word docx. His file size is 47K and
my recreated file is 19K, a big difference. I didn't compress mine. Any
thoughts on what is causing the difference? The forms are on a client's
website for external users to complete so load time is still important.
Thanks,Vickie
On Fri, May 23, 2014 at 4:24 AM, Gilad D (try67) -
Controlling action on Submit button
I have a page with fields for data and a submit button,when I click the submit button the data will be passed to another jsp page from where the updation or insertion takes place based on the condition,When this process is being done if the submit button is clicked repeatedly it is misbehaving.Any Idea as how to stop the action on the submit button once the control goes to the next jsp page.
with some javascript you can disable the submit button just after the first time it was clicked, like this :
<form name="xxx" action="yyy" onSubmit="this.submitButton.disabled=true" >
regards -
Adobe Acrobat X Pro - Javascript for submit button
Hi,
I am new to Adobe Acrobat X Pro and I have just designed a fillable form and enabled user rights for reader, for them to send the form back as a PDF. I created the form with a submit button and have mailto:[email protected] but I want to know if it is possible to create a button that will run a javascript to bring up a persons Mircosoft Outlook contacts, so they can choose who they want to send the completed form too.
Any help would be greatly appreciated.
Thanks.See post #7 and #10 in the following topic: http://forums.adobe.com/thread/793083?tstart=0
-
How to text for Submit button in different languages.
Hi All
We have a requirement to add 'Submit Button' in iSupplier Portal's Standard Pages.
We have substituted the controller to add the Submit button and it works fine also .
Our Application has 7 different languages, so the requirement is to show the button Text w.r.t the
language only .
We have written the following code
OASubmitButtonBean oasb= (OASubmitButtonBean)oapagecontext.getWebBeanFactory().createWebBean(oapagecontext,"BUTTON_SUBMIT");
oasb.setID("IPOPrintReportButton");
oasb.setUINodeName("IPOPrintReportButton");
oasb.setEvent("IPOPrintReportButton");
oasb.setText("IPO Print Report Button");
//oasb.setTranslatableText("XXIPO","XXIPO_PRINT_REPORT_TXT");
pageButtonBarBean2.addIndexedChild(oasb);
when we have used setText method , we are getting the same name in every language. so we tried using setTranslatableText Method and gave it the Messages to set the Button Text. But Now button text is empty .
Pls tell us how to achieve this requirement of having text in different languages on the button ..w.r.t the environment language. we have also defined same Message 'XXIPO_PRINT_REPORT_TXT' for other languages.
naveenHi Kumar
Can u pls brief this a little more .
Lets say I get the language as German in the Controller . Now how do i set the test for the submit button .
Do u mean to say I should check like this:
If (langaue is german )
button.setText("German Submit")
else if (langauge is netherland)
button.setText("Netherland Submit")
harcoding the vaues in the contorller?? -
Delete Record Behavior doesn't wait for Submit button
I have master / detail page set. From the detail set there are links to delete or update a record. When I click the link to delete the record, it goes to the confirmation page with the correct record. Now, when I add the delete record server behavior and a submit button, this is what happens. As soon as I click the link to go to the delete confirm page, the record deletes and the page redirects to the page I put in the server behavior. It doesn't show the confirm page and doesn't wait for me to hit the confirm button. The page runs and successfully deletes the page from the DB.
How do I get it to wait until I hit the submit button?You need to surround your delete query with an "If" statement that checks for a confirmation variable of some sort, then when the user clicks the confirmation link you can pass the necessary variable and the ID of the record the delete query is expecting.
As an alternative you could use a JS alert fuction to ask the user if they are sure they want to delete the record and then allwo the delet to run after confirmation. To do this you could use code like this...
<input type="submit" name="DELETE" value="DELETE"
onclick="return confirm('Are you SURE you want to DELETE this record?')">
Lawrence *Adobe Community Expert*
www.Cartweaver.com
Complete Shopping Cart Application for
Dreamweaver, available in ASP, PHP and CF
www.twitter.com/LawrenceCramer -
LifeCycle 8 Database update script for submit button
I have a form that has numerous text fields for user inputs. I put a button on the form. This form is also populated with a SQL query when opened.
When the user clicks the submit button, I need to capture the info entered in these fields, get one of the field value from the query when opened, and update a database record.
How is that script done? Any sample scripts?
Thanks in advance.I have a form that has numerous text fields for user inputs. I put a button on the form. This form is also populated with a SQL query when opened.
When the user clicks the submit button, I need to capture the info entered in these fields, get one of the field value from the query when opened, and update a database record.
How is that script done? Any sample scripts?
Thanks in advance. -
Hi,
I have 1 inputfield , 1 dropdown and 1 submit button in a page. I want to execute submit button always when you click 'ENTER'.
Now when i click enter from inputField it process something and in background there is no event triggered.But from dropdownbox nothing happens when i click 'ENTER' key.
Is there any way to assigne 'ENTER' key to the submit button(<htmlb:button) always?
Thanks in advance
APHi,
It looks like SubmitOnEnter is not available in my verions of htmlb. I just looked into some javacode,
I have 2 page, Initial and Report,
Initial page has the code,
<script>
document.onkeydown=function(){
if(event.keyCode==13){document.forms.initial.submit()}}
</script>
<htmlb:form id = "initial"
method = "post"
action = "Report.htm" >\
<htmlb:inputField id = "TranNumber"
type = "string"
value = "<%= INIT-TranNumber %>" />
<htmlb:button id = "SUBMITVALUES"
text = "EXECUTE"
onClick = "HandleSubmit" />
</htmlb:form>
Report page captures it as,
CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
IF event_id = CL_HTMLB_MANAGER=>EVENT_ID.
DATA: EVENT TYPE REF TO CL_HTMLB_EVENT.
EVENT = CL_HTMLB_MANAGER=>GET_EVENT( runtime->server->request ).
IF EVENT IS NOT INITIAL.
CASE EVENT->ID.
WHEN 'SUBMITVALUES'.
DATA: TranNumber TYPE REF TO CL_HTMLB_INPUTFIELD.
TranNumber ?= CL_HTMLB_MANAGER=>GET_DATA(
request = runtime->server->request
name = 'inputField'
id = 'TranNumber').
ENDCASE.
ENDIF.
ENDIF.
Basically the no event is not fired. so it is not coming into the Case.
How to handle this?
Thank you
AP -
I want to apply the same action to all buttons in a movieclip
without
putting AS in every button. I'm thinking that the prototype
call might have
some way to do it but I haven't found anything that helps in
my searches.
Thanks in advance for help.--Put the script on your button
-- Convert the button to a movieClip
-- Use instances of that movieClip where you want your
buttons.
KB
"SSSup" <[email protected]> wrote in message
news:ejt651$8qs$[email protected]..
>I want to apply the same action to all buttons in a
movieclip without
>putting AS in every button. I'm thinking that the
prototype call might have
>some way to do it but I haven't found anything that helps
in my searches.
>Thanks in advance for help.
> -
Two actions on one button click
Hi All,
I have one button that I want to do two things. When I test
the movie I have to click on the button twice to make both actions
happen. Is my machine on drugs or is there something I'm missing?
Here's the AS I'm using on the button.
on (release) {
gotoandStop(2)
on (release) {
holder_mc.loadMovie("my_movie.swf",1);
Thanks for any help,
Mikeon (release) {
gotoandStop(2)
holder_mc.loadMovie("my_movie.swf",1);
}
Maybe you are looking for
-
How to select multiple rows from List Of Values
Hello, I use ADF 11g to create my list of values (LOV). I want to select multiple rows from it. but i can't. so how i can select many rows to set them in my adf table. Thank in advance
-
Equivalent tables for MARA, MAKT and MCH1 in the EWM system
Hi, I would like to construct a report using the existing tables in EWM. But it turns out that it's somewhat different from the ECC system. The material tables, MARA and MAKT and the batch table, MCH1 table are not there. I need the material number(
-
Hi All, We received a request from the business to be able to provide a forecast release and then send some kind of re-order point releases. Now in standard SAP you can either order with re-order point but this without sending a forecast generated by
-
Can I transfer my photoshop cs6 to a new computer
Can I transfer my photoshop software to my new computer?
-
I am using FRA and want to store backups for two days on the disk and also simultaneouly copy to tape everyday from disk. How do I achive this? Does it require a third party tape library that need to be mentioned in the rman script? I see lot of docs