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.

Similar Messages

  • 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

  • Update fails (Failed to run database update script)

    Still unable to update my zmm. it fails to uppgrade the sqldb.
    logfiles ends like this.
    Msg 512, Level 16, State 1, Server xxxxx, Procedure , Line 2
    [Microsoft][ODBC SQL Server Driver][SQL Server]Subquery returned more than 1
    value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or
    when the subquery is used as an expression.
    The statement has been terminated.
    1> 2> 3> 4> 5> 6> 7> [17:04:44] RunShellCommand: Command: osql exited with code: 1
    [17:04:44] RunShellCommand: Exit code indicates failure.
    [17:04:44] UpdateDatabase: Failed to run database update script.
    Need some help plz

    dahlholm,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://www.novell.com/support and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Forums Team
    http://forums.novell.com

  • Thank you script after submit button is clicked

    Hi,
    Thank you for everybody's help. I was able to figure this one
    out. Another question I do have is how do I create a Thank you form
    after somebody clicks a submit button.
    So, visitor clicks a submit button and then he gets a Thank
    you script.
    Can anybody point me into the right direction?
    Again thanks for everybody's help.

    There are only two ways to process form data -
    1. Use mailto:[email protected] as the action of the form
    2. Use a server-side scripting method to a) harvest the
    form's data, b)
    process it in some manner, e.g., enter it into a database, c)
    formulate and
    send an email to one or more email recipients, and d)
    redirect the visitor
    to some ending page
    Method 1 is quite simple, and is also the least reliable. It
    depends both
    on your visitor having an email client already installed on
    their computer -
    this eliminates public computers, or home users without email
    clients
    installed (more and more it seems) - and on the installed
    email client
    responding to
    the mailto call. It is not possible to use this method *and*
    send the
    visitor to a
    thank you page as well.
    Method 2 is the preferred method, since it eliminates the
    problems of method
    1, but it means that you have to grapple with
    server-scripting somehow (ASP,
    CF, PHP, perl, etc.).
    You would have to decide which of these methods is best for
    your needs,
    but if it's Method 2, then start by asking your host what
    they provide for
    form
    processing.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "dreamweavernewbieny" <[email protected]>
    wrote in message
    news:e5ttnv$4pd$[email protected]..
    > Hi,
    >
    > Thank you for everybody's help. I was able to figure
    this one out. Another
    > question I do have is how do I create a Thank you form
    after somebody
    > clicks a
    > submit button.
    >
    > So, visitor clicks a submit button and then he gets a
    Thank you script.
    >
    > Can anybody point me into the right direction?
    >
    > Again thanks for everybody's help.
    >

  • 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)

  • 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

  • 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

  • New to Flash, create a flash form which is emailed using CGI script when submit button is pressed

    I'm trying to build a form in flash that is emailed using CGI
    script. I'm just lost and confused and I just can't seem to figure
    this out.
    This is the CGI coding for HTML and I just need to convert it
    to use in CS3:
    <form action="
    http://www.hostmonster.com/monstermail"
    enctype="multipart/form-data" method="POST">
    Name: <input type="text" name="Name"><br>
    Email: <input type="text" name="mailfrom"><br>
    Phone: <input type="text" name="Phone"><br>
    Service: <input type="text" name="Service"><br>
    <input type="hidden" name="sendtoemail"
    value="[email protected]"><br>
    <input type="submit" value="Send Email">
    </form>
    This is a link to what I'm working on:
    http://www.alternativesolutionsforyou.com/contact.htm

    OK, sorry....no more errors when I test the movie but when I
    test it live....nothing happens???? Here's the link again:
    http://www.alternativesolutionsforyou.com/contact.htm
    Code as it is:
    lv=new LoadVars();
    lv.Name=name.text;
    lv.mailfrom=email.text;
    lv.Phone=phone.text;
    lv.Service=service.text;
    lv.sendtoemail="[email protected]"
    yourSubmitButton.onPress=function(){
    lv.sendAndLoad("
    http://www.hostmonster.com/monstermail",lv,"POST");
    lv.onData=function(){
    // data successfully sent
    // this will execute if your cgi script returns something
    after executing
    I haven't adjusted what happens after you his the submit
    button yet.....just trying to get the email working.

  • HT1222 Why am I not able to download this update. The submit button is shaded out?

    My iPad states that there is a system update in SETTINGS >GENERAL and that its for iOS, but the submit button is shaded out so I can't perform the update!! Does anyone know why??

    Are you Connected to WiFi?

  • 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.
    naveen

    Hi 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??

  • 'ENTER' key for Submit Button

    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
    AP

    Hi,
      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

  • How do you use two scripts for a button?

    Hi all!
    I'm referring to my earlier question posted in this topic:
    Object not found with myContext.getParamIdForComponent
    In short: when I had the attribute 'jsObjectNeeded="true"'  on a button and that was for a script that would start a function validating a field, and then at the same time had a script in the button that would activate the "pressing" of it through the hit of the "return" button, I got javascript error saying "Error: Objekt doesn't support this property or method"
    Do you know a way to have both functionalitys connected to the button?
    Best regards
    Benny

    HI Benny Lange,
    <hbj: button
    id="Button1"
    text="Logon"
    width="125px"
    onClientClick="javascript func for validation"
    //first onClientClick will be executed
    onClick="call the method in JSPDYNPAGE"
    //second onclick will be executed
    disabled="false"
    design="STANDARD" />
    jsobjectneeded has nothing to do with onclick.this should work.post your code if you need help.
    Message was edited by: Kirupanand venkatapathi

  • Database update failed for some organizations when installing Update Rollup 1 for Microsoft Dynamics CRM 2013 Service Pack 1

    Hi, 
    We get the following error in the logfile when we try to install the latest update for CRM: (KB2953252)
    Does anyone know how to fix this problem? 
    09:10:41|   Info| Database update install failed for orgId = 35e7ca08-43fb-4440-ba18-acfc3f42e115.  Continuing with other orgs.  Exception: System.ArgumentNullException: Value cannot be null.
    Parameter name: type
       at System.Activator.CreateInstance(Type type, Boolean nonPublic)
       at System.Activator.CreateInstance(Type type)
       at Microsoft.Crm.Setup.Database.DllMethodAction.Execute(Guid organizationId)
       at Microsoft.Crm.Setup.Database.DatabaseInstaller.ExecuteReleases(ReleaseInfo releaseInfo, Boolean isInstall)
       at Microsoft.Crm.Setup.Database.DatabaseInstaller.Install(Int32 languageCode, String configurationFilePath, Boolean upgradeDatabase, Boolean isInstall)
       at Microsoft.Crm.Setup.Database.DatabaseInstaller.InstallUpdate(String configurationFilePath, Boolean upgradeDatabase)
       at Microsoft.Crm.Setup.Common.Update.DBUpdateDatabaseInstaller.OrgInstall(ArrayList orgIdArray)

    Hi, 
    We get the following error in the logfile when we try to install the latest update for CRM: (KB2953252)
    Does anyone know how to fix this problem? 
    09:10:41|   Info| Database update install failed for orgId = 35e7ca08-43fb-4440-ba18-acfc3f42e115.  Continuing with other orgs.  Exception: System.ArgumentNullException: Value cannot be null.
    Parameter name: type
       at System.Activator.CreateInstance(Type type, Boolean nonPublic)
       at System.Activator.CreateInstance(Type type)
       at Microsoft.Crm.Setup.Database.DllMethodAction.Execute(Guid organizationId)
       at Microsoft.Crm.Setup.Database.DatabaseInstaller.ExecuteReleases(ReleaseInfo releaseInfo, Boolean isInstall)
       at Microsoft.Crm.Setup.Database.DatabaseInstaller.Install(Int32 languageCode, String configurationFilePath, Boolean upgradeDatabase, Boolean isInstall)
       at Microsoft.Crm.Setup.Database.DatabaseInstaller.InstallUpdate(String configurationFilePath, Boolean upgradeDatabase)
       at Microsoft.Crm.Setup.Common.Update.DBUpdateDatabaseInstaller.OrgInstall(ArrayList orgIdArray)

  • How to use the same script for multiple buttons

    Hi,
    I've only just started using flash so any help would be great!
    I'm creating a blockbusters type game, I have a grid of 20 buttons and I need  them (individually) to turn blue on click and red on double click. I've managed to do it with the first one using this code;
    var clicked:Boolean = false;
    bn1.addEventListener(MouseEvent.CLICK, bn1click);
    function bn1click(event:MouseEvent):void {
        clicked = true;
        var newColorTransform:ColorTransform = bn1.transform.colorTransform;
        if(clicked){
        newColorTransform.color = 0x064258;
        bn1.transform.colorTransform = newColorTransform;
    bn1.doubleClickEnabled = true;
    var doubleclicked:Boolean = false;
    bn1.addEventListener(MouseEvent.DOUBLE_CLICK, bn1dclick);
    function bn1dclick(event:MouseEvent):void {
        doubleclicked = true;
        var newColorTransform:ColorTransform = bn1.transform.colorTransform;
        if(clicked){
        newColorTransform.color = 0xac1e23;
        bn1.transform.colorTransform = newColorTransform;
    Now I'm having trouble getting the same to work for the rest of the buttons, they are each named bn2, bn3 etc. They need to work individually and remain blue/red once clicked. I've tried listing them as addEventListener commands but not having a great deal of success!
    Any help would be greatly appreciated, thanks!
    Tomo

    One way to do this is to use arrays to keep track of the buttons and their properties.
    var buttonList:Array = new Array(bn1,bn2,bn3);
    var clickedList:Array = new Array();
    var doubleClickedList:Array = new Array();
    //then use a for loop to assign the functions and properties for each button:
    var thisMany:int = buttonList.length; // this will give you the number of items in the buttonList array
    for(var i:int = 0; i<thisMany; i++) {
         buttonList[i].addEventListener(MouseEvent.CLICK,btnClick); // assign the click function to each button
         buttonList[i].addEventListener(MouseEvent.DOUBLE_CLICK,btnDClick); // assign the double click function
         clickedList.push(false);  // add a false value for each button to this array
         doubleClickedList.push(false);
               buttonList[i].doubleClickEnabled = true; // set the double click property for each button
    function btnClick(event:MouseEvent):void {
              var thisButton:int = buttonList.indexOf(event.target);  // figure out which button was clicked as an item in the array
              clickedList[thisButton] = true;  // change the value in the array
               var newColorTransform:ColorTransform = buttonList[thisButton].transform.colorTransform;
        if(clickedList[thisButton]){
        newColorTransform.color = 0x064258;
        buttonList[thisButton].transform.colorTransform = newColorTransform;
    function btnDClick(event:MouseEvent):void {
              var thisButton:int = buttonList.indexOf(event.target);
              doubleClickedList[thisButton] = true;
        var newColorTransform:ColorTransform = buttonList[thisButton].transform.colorTransform;
        if(doubleClickedList[thisButton]){
        newColorTransform.color = 0xac1e23;
        buttonList[thisButton].transform.colorTransform = newColorTransform;
    Now you can have any number of buttons, just add their instance names to the array at the top.

Maybe you are looking for