Immediate event handling in jsp

Suppose I have two drop down lists.
Now whenever the value of the first ddl changes I have to go to the database,pick some values from database and display it in the second ddl
How can I do this?
thanks in advance

XMLHttpRequest is a nice thing to use for this.But can we use this to get data from db ?Yeah... of course, the request is to a URL, and the URL has to return XML, but that could be a servlet that gets data from the DB and formats it as XML and sends it back. There's plenty of info on XMLHttpRequest on the web in the last few months.

Similar Messages

  • Java Event Handling in JSP Pages

    Dear All:
    This is what I wanna do. when user enters text in my <input type="text" ... > in my JSP page, I want to take this user entered data and convert it in another language simultaneously as the user is inputting text in another textarea.
    Right now the only choice I have is onChange="convert()" Javascript function.
    But I dont want to use Javascript as I already have a Java class which does that for the Swing GUI client.
    Is their a way i can embed java for event handling in jsp.
    thanks,
    Chetan

    only if you use an applet, javascript, etc.
    remember, jsp is server-side, not client-side
    what the client sees is html or whatever (i.e. static content)

  • SelectManyCheckbox event handling

    Hi,
    I am new to this ADF technologies. In my jsp i have a selectmanycheckbox component and have a event handler method in backingbean, when i am clicking on the checkbox the control is going to
    event handler method in backing bean, its fine and working..
    My question is where the control is going or which method is invoking when i am unchecking the same check box ,its not coming to same event handler
    Any help is appreciated...
    Thanks in advance..
    Anoop C

    my jsp code
    <af:selectOneChoice onchange="return fnCheck()"           id="financialYearId" binding="#{acctSummaryBB.financialYears}"
         valueChangeListener="#{acctSummaryBB.getSelectedFinancialYear}"      autoSubmit="true" >
         <f:selectItems binding="#{acctSummaryBB.financialYear}" />
    </af:selectOneChoice>
         <af:selectManyCheckbox id="BU" onclick="selectAllBU()" immediate="true" valuePassThru="true" autoSubmit="true"
    value="#{acctSummaryBB.selectedBUs}" valueChangeListener="#{acctSummaryBB.triggerBU}" >
                   <f:selectItem itemValue="ALL" itemLabel="ALL" />
                   <f:selectItems value="#{acctSummaryBB.allBU}" />
         </af:selectManyCheckbox>
    My BackingBean Code
    public void triggerBU(ValueChangeEvent evt)
    int FY = 0;
    String str = "";
    if (evt != null)
    FacesMessage fm;
    System.out.println("##################### BU CHANGE START####################");
    selectedBUs = ((List)evt.getNewValue());
    System.out.println("##################### SELECTED BU===" + selectedBUs);
    public void getSelectedFinancialYear(ValueChangeEvent event)
    System.out.println("############### START OF FIN YEAR CHANGE METHOD ##################### ");
    Every time control is going to getSelectedFinancialYear() after invoking triggerBU() method when i am checking one item from the SelectManyCheckBox.
    Can anybody provide a solution for this...How can i stop firing ValueChangeEvent from selectOneChoice .
    Plz..Provide a solution.....Thanks..

  • How can I execute an external program from within a button's event handler?

    I am using Tomcat ApacheTomcat 6.0.16 with Netbeans 6.1 (with the latest JDK/J2EE)
    I need to execute external programs from an event handler for a button on a JSF page (the program is compiled, and extremely fast compared both to plain java and especially stored procedures written in SQL).
    I tried what I'd do in a standalone program (as shown in the appended code), but it didn't work. Instead I received text saying the program couldn't be found. This error message comes even if I try the Windows command "dir". I thought with 'dir' I'd at least get the contents of the current working directory. :-(
    I can probably get by with cgi on Apache's httpd server (or, I understand tomcat supports cgi, but I have yet to get that to work either), but whatever I do I need to be able to do it from within the button's event handler. And if I resort to cgi, I must be able to maintain session jumping from one server to the other and back.
    So, then, how can I do this?
    Thanks
    Ted
    NB: The programs that I need to run do NOT take input from the user. Rather, my code in the web application processes user selections from selection controls, and a couple field controls, sanitizes the inoputs and places clean, safe data in a MySQL database, and then the external program I need to run gets safe data from the database, does some heavy duty number crunching, and puts the output data into the database. They are well insulated from mischeif.
    NB: In the following array_function_test.pl was placed in the same folder as the web application's jsp pages, (and I'd tried WEB-INF - with the same result), and I DID see the file in the application's war file.
            try {
                java.lang.ProcessBuilder pn = new java.lang.ProcessBuilder("array_function_test.pl");
                //pn.directory(new java.io.File("K:\\work"));
                java.lang.Process pr = pn.start();
                java.io.BufferedInputStream bis = (java.io.BufferedInputStream)pr.getInputStream();
                String tmp = new String("");
                byte b[] = new byte[1000];
                int i = 0;
                while (i != -1) {
                    bis.read(b);
                    tmp += new String(b);
                getSelectionsDisplayTextArea().setText(getSelectionsDisplayTextArea().getText() + "\n\n" + tmp);
            } catch (java.io.IOException ex) {
                getSelectionsDisplayTextArea().setText(getSelectionsDisplayTextArea().getText() + "\n\n" + ex.getMessage());
            }

    Hi Fonsi!
    One way to execute an external program is to use the System Exec.vi. You find it in the functions pallet under Communication.
    /Thomas

  • Dropdown box - which event handler to use ?

    I am having trouble with setting the readonly property (via Javascript) of the adjacent textbox to my dropdown box when the index value is a certain number.
    I tried using MouseUp, MouseDown, and even OnBlur....but the readonly does not seem to be getting set to true or false consistently.
    Could this be a timing issue ? The textbox that I am trying to control is the next tab-order control in the list of controls for this page.
    This same logic is working fine in the MouseUp event handler for check boxes. So I am just wondering if this is a bug or must my implementation change to accomodate dropdown boxes ? For instance, should I move the logic to the Enter event handler of the textbox instead ? Can a control's own eventhandler set itself to readonly when it is the active form field ?

    After tons and tons of testing time, I've come to the conclusion that dropdowns are totally buggy in 11.0.07 release of Acrobat Pro.
    Even if you set the "commit values immediately", you get the PRIOR selected item's value as the event value, not the CURRENT one.
    This occurs in a Validate event handler script. I have not been able to use any other event handlers for a dropdown except the OnBlur....and then, for my purposes, IT'S TOO LATE !!!
    This is totally worthless as I need to setFocus() and set fields to readonly based on the immediate dropdown offset or face value.

  • Event Handling in OADialogPage

    Hi,
    I have a scenario for my project.
    where user should get a alert message with Ok(Proceed) and Cancel Buttons, when the budget for ticket is insufficient. After the alert, if user clicks on "Proceed", then it should navigate to confirmation page. If user clicks on Cancel, it should navigate to previous page.
    For this I have used OADialogPage and belows follow my code. But When click on "Proceed", its not going to Proceed event handling.
    Please help me out, its very important to finish this work as soon as possible.
      public void processFormRequest(OAPageContext pageContext,OAWebBean webBean)
       super.processFormRequest(pageContext,webBean);
        OAApplicationModule am=pageContext.getApplicationModule(webBean);
        SSHRParams localSSHRParams = new SSHRParams(am.getOADBTransaction());  
        String itemkey = localSSHRParams.getItemKey();
        String itemType=localSSHRParams.getItemType();
        CallableStatement cs,cs1,cs2;
        // String pItemKey,pItemType;
        pageContext.writeDiagnostics(this, "item key of the page"+itemkey+", ", 1);
        pageContext.writeDiagnostics(this, "item Type of the page"+itemType+", ", 1);
        if(pageContext.getParameter("HrSubmit")!=null)
         pageContext.writeDiagnostics(this,"Entered into SubmitButton Event",1);
         try
           pageContext.writeDiagnostics(this,"The Login person is not HR",1);
           cs2=am.getOADBTransaction().getJdbcConnection().prepareCall("{call xxnwc_sshr_budget_online_pkg.budget_control_check(?,?,?) }");
           cs2.setString(1,itemType);
           cs2.setString(2,itemkey);
           cs2.registerOutParameter(3,Types.VARCHAR);
           cs2.execute();
           String budgecheck=cs2.getString(3);
           pageContext.writeDiagnostics(this,"Program budget_control_check is completed  and the Budget check is: "+budgecheck +".",1);          
        if(budgecheck.equals("SUCCESS"))
         pageContext.writeDiagnostics(this,"Budget Check is success",1);
        else
           pageContext.writeDiagnostics(this,"Budget Check is failed",1);
           MessageToken token[]=null;
           OAException message=new OAException("PER","Budget amount is insufficient for the course",token);
           OADialogPage dp=new OADialogPage((byte)1,message,null,"","");
           dp.setOkButtonItemName("Proceed");
           dp.setOkButtonLabel("Proceed");
           dp.setOkButtonToPost(true);
           dp.setNoButtonItemName("Cancel");
           dp.setNoButtonLabel("Cancel");
           dp.setNoButtonToPost(true);
           pageContext.redirectToDialogPage(dp);
       }//Try close
       catch (SQLException e)
        pageContext.writeDiagnostics(this,"SQL Exception Raised: "+e+",",1);
          // TO
      }//Submit Event Close
      if(pageContext.getParameter("Proceed")!=null)
                         Integer app_id=pageContext.getResponsibilityApplicationId();
                         pageContext.writeDiagnostics(this,"The application ID is : "+app_id+".",1);
                         String tr_id=pageContext.getTransactionId();
                         pageContext.writeDiagnostics(this,"The transaction id is : "+tr_id+". ",1);
                         String ProceedUrl = "OA.jsp?page=/oracle/apps/per/selfservice/review/webui/ConfirmPG&_rc=HR_PERSON_SIT_TOP_SS&p_app_id=app_id&OAFunc=NWC_TRAINING_ACT_HR_SIT_SS&p_tr_id=tr_id&retainAM=Y&addBreadCrumb=N&p_oapc=pageContext";
                         pageContext.writeDiagnostics(this,"in Proceed Condition",1);
                         OADBTransaction tr=am.getOADBTransaction();
                         tr.commit();
                          pageContext.forwardImmediately(ProceedUrl,null,
                           OAWebBeanConstants.KEEP_MENU_CONTEXT,                            
                           null,                                                   
                           null,
                           true,                           
                           OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
      else if(pageContext.getParameter("Cancel")!=null)
                         Integer app_id=pageContext.getResponsibilityApplicationId();
                         pageContext.writeDiagnostics(this,"The application ID is : "+app_id+".",1);
                         String tr_id=pageContext.getTransactionId();
                         pageContext.writeDiagnostics(this,"The transaction id is : "+tr_id+". ",1);
                         String CancelUrl = "OA.jsp?page=/oracle/apps/per/selfservice/review/webui/ConfirmPG&_rc=HR_PERSON_SIT_TOP_SS&p_app_id=app_id&OAFunc=NWC_TRAINING_ACT_HR_SIT_SS&p_tr_id=tr_id&retainAM=Y&addBreadCrumb=N&p_oapc=pageContext";
                         pageContext.writeDiagnostics(this,"in Cancel Condition",1);
                         OADBTransaction tr=am.getOADBTransaction();
                         tr.commit();
                          pageContext.forwardImmediately(CancelUrl,null,
                           OAWebBeanConstants.KEEP_MENU_CONTEXT,                            
                           null,                                                   
                           null,
                           true,                           
                           OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
      }//ProcessFormRequest

    Hi,
    Just to inform, Its an Extension.
    I am not using Hashtable-FormParams,as the standard page buttons doesnt have any Parameters.

  • Event handling in Portal IView of JspDynpage

    Hi All,
    I have created the portal iview with jspdynpage.Can any body tell whether event handling can be performed from the portal iview which is created from the jspdynpage?
    Regards,
    V Karthi

    hi
    check this threads
      Event handling in portal through sap netweaver.
      From creation of JSP page to iView at Portal
    Thanks

  • Event handling

    Hi all,
    it seems that i can't figure it out by myself or either find it somewhere in the documentation.
    All i need, is to implement a method that returns me a string (e. g. "success"). For event handling i tried the *Listener, BUT surly you know already the problem with em (you can't return anything).
    So my question is, how to implement a method that reacts on a user (command_button click), and returns me a result status, so i can decide which site to show?
    thanks in advance

    Here is some help ;-)
    (from cardemo)
    You need 3 elements,
    1/ a tag in your jsp: commandButton or commandLink
    <h:commandButton
    action="#{carstore.storeFrontJalopyPressed}"
    value="#{bundle.moreButton}" >
    2/ a method in a managed bean (simple object, no need to extends a particular class)
    public String storeFrontJalopyPressed() {
    setCurrentModelName("Jalopy");
    return "carDetail";
    3/ add a few things in faces-config.xml
    <navigation-rule>
    <from-view-id>/storeFront.jsp</from-view-id>
    <navigation-case>
    <description>
    Any action that returns "carDetail" on storeFront.jsp should
    cause navigation to carDetail.jsp
    </description>
    <from-outcome>carDetail</from-outcome>
    <to-view-id>/carDetail.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    <managed-bean>
    <description>
    The main backing file mean
    </description>
    <managed-bean-name> carstore </managed-bean-name>
    <managed-bean-class> carstore.CarStore </managed-bean-class>
    <managed-bean-scope> session </managed-bean-scope>
    </managed-bean>
    Hope this helps
    Frederic

  • HTMLB .. Input field event handling..

    Hi guys,
    I have a input field htmlb in my jsp. I have to handle on blur event for this.. i.e if a user gives in somethin in the input field and once it looses focus, a event should get triggered. And probably in my case it will be helpful for me if I have this event handler method in the dynpage. For this kind of event handling what should I write in the followin tag
    <htmlb:inputfield id="" value="" width=""> plz tell me a tag attribute which supports this event.
    Regards,
    PP.

    Hi Priyanka,
                      You can get reference of your input field in JSP into DynPage. Do like this:
    Declare input field in JSP
    <hbj:inputfield id="input"  value="test">
    In DynPage, get refernce of the input field
    Wherever you want to trigger event
    InputField myInputField =(InputField) getComponentByName("input");
    myInputField.setClientEvent();
    Hope this helps.
    regards,
    Siva
    Note: If you get success, please post the solution before you close this thread.
    Message was edited by:
            Siva Rama Krushna

  • Button event handler problem

    Hello,
    I need to add an Event handler to a button on my JSP page. The page refreshes very three seconds for other use.
    First, I added the following segment to the page.
    <head>
    <title>Event handler test</title>
    <script type="text/javascript">
    <!--
    function funAdd()
    alert("Your name is already in the list.");
    //-->
    </script>
    <meta http-equiv="refresh" content="3">
    </head>
    <input type = "button" name = "add" value = "Add" onclick="funAdd()" />
    Every time I clicked the Add button, the alert message appeared. It showed the expected result.
    Then, I replaced alert("Your name is already in the list."); with
    <%
    JOptionPane.showMessageDialog(null, "Your name is already in the list.", "Error message", JOptionPane.ERROR_MESSAGE);
    %>
    in funAdd().
    But, the error message showed automatically every three seconds when the page refreshed without clicking the Add button.
    Does any one know the reason, and how to solve the problem?
    Thanks in advance.
    Dan

    You said it yourself, you refresh your page each 3 seconds so each 3 seconds you do a request to your server where you show a messagedialog.

  • How to create dynamic event handler methods?

    Hello!
    Is it possible to create dynamic event handler methods in the views of WDC and then subscribe to an event of another WD component completely dynamically.
    Many thanks,
    Smitha.

    By first realising AJAX is not Java but JavaScript and then reading a tutorial on JavaScript DOM manipulation and then by reading a tutorial on AJAX and then by applying your knowledge and then in the end by integrating it in your JSP.

  • UIX event handler + struts

    Hi,
    I'm using UIX + struts in jdev10g and im getting problems trying to handle a simple action binding event like the "Next" operation. Below is a short example of what im trying to do.
    Test.uix
    <submitButton text="Next" model="${bindings.Next}" id="Next2" event="next"/>
    <event name="next" source="Next2">
    <invoke method="doIt" javaType="oracle.jbo.uicli.binding.JUCtrlActionBinding"
    instance="${bindings.Next}"/>
    </event>
    testAction.java
    public void onNext(DataActionContext ctx)
    if (ctx.getEventActionBinding() != null)
    ctx.getEventActionBinding().doIt();
    If i run the code above i can see that it executes ctx.getEventActionBinding().doIt(); but the action binding never gets executed, and this efect is the same for other actions like create,previous etc...
    Another thing that calls my attention is that every time i drag a operation from the DataControl Palette the event name is always "action"
    <submitButton text="First" model="${bindings.First}"
    id="First0" event="action"/>
    So how is the correct way to handle events in the UIX + Struts?????
    Please i need a help on this one!!!!!
    Tanks,
    Eduardo M. Sasso

    First of all tanks for the help.
    But what i want to do is to subclass the DataForwardAction for my DataPage and let the struts controller handle the event, just like the documentation says...
    About Event Handling in Applications Using Oracle ADF, UIX, and Struts
    http://helponline.oracle.com/jdeveloper/help?topic=adf_auixadfevents_html
    If i try to do the same thing using jsp it works great...
    This is problem is getting me nuts!!! it looks to me that this problem is very easy to solve but i just cant see the solution....
    tanks again

  • Javascript Submit button onclick event handler

    Hi,
    I am having trouble getting the onclick event handler of a form to execute when the button is pressed. I am trying to open a page in a new window depending on if the user selects that option in a checkbox.
    There is one form(id='graphform') and 2 submit buttons, each with a checkbox before it. I want the new window to open only iuf the right checkbox and matching submit button has been checked.
    One of the checkbox/button pair: The onclick="checkWindow('w1','graphform');" is never getting called.
    <input type="checkbox" id="w1" name="win1" style="margin-right: 10px" value="window"  onclick="javascript:document.gform.win1[0].checked = true;"><a style="margin-right: 10px">Graph in new window</a>
    <input type="submit" value="Create graph" onmouseover="this.form.cumulat.value='0';this.form.graphGroup.value='Consumption'; document.getElementById('hintSubmitStop').value='1';" onclick="checkWindow('w1','graphform');" onmouseout="document.getElementById('hintSubmitStop').value='0';" /></td></tr>Javascript window opener:
    function checkWindow(win1, str){
              var formObj = document.getElementById(str);
         var checkBoxObj = document.getElementById(win1);
         if(checkBoxObj1.checked == true){
                   formObj.target = "_blank";     
                   formObj.action = "graphDisplayFrame.jsp";     
         else if(checkBoxObj1.checked == false){
                   formObj.target = "_self";
                   formObj.action = "graphDisplay.jsp";
    }Any suggestions?
    J

    You're storing the value in "checkBoxObj" and in the next line you use different variable name as "checkBoxObj1".
         var checkBoxObj = document.getElementById(win1);
         if(checkBoxObj1.checked == true){
    instead of "true', try      if(checkBoxObj.checked == 1){

  • Copying text to the clipboard in AVDocDidOpen event handler causes Acrobat 9 to crash

    I'm trying to copy the filename of a document to the clipboard in a plugin with my AVDocDidOpen event handler.  It works for the first file opened; however when a second file is opened, Acrobat crashes.  The description in the application event log is: "Faulting application acrobat.exe, version 9.1.0.163, faulting module gdi32.dll, version 5.1.2600.5698, fault address 0x000074cc."
    I've confirmed that the specific WIN32 function that causes this to happen is SetClipboardData(CF_TEXT, hText);  When that line is commented out and remaining code is left unchanged, Adobe doesn't crash.
    Is there an SDK function that I should be using instead of WIN32's SetClipboardData()?  Alternately, are there other SDK functions that I need to call be before or after I call SetClipboardData()
    Bill Erickson

    Leonard,
    I tried it with both "DURING, HANDLER, END_HANDLER" and "try catch," as shown below.  However, it doesn't crash in the event handler; it crashes later, so the HANDLER/catch block is never hit.
    The string that's passed to SetClipboardData() is good, because I'm able to paste it into the filename text box of the print dialog when I try to create the "connector line" PDF.  I also got rid of all the string manipulation and tried to pass a zero-length string to the clipboard but it still crashes.
    Here's the code:
    ACCB1 void ACCB2 CFkDisposition::myAVDocDidOpenCallback(AVDoc doc, Int32 error, void *clientData)
        PDDoc pdDoc = AVDocGetPDDoc(doc);
        char* pURL = ASFileGetURL(PDDocGetFile(annotDataRec->thePDDoc));
        if (pURL)    {
            if (strstr(pURL, "file://") && strstr(pURL, "Reviewed.pdf")) {
                // Opened from file system so copy filename to clipboard for connector line report
                char myURL[1000];
                strcpy(myURL, pURL);
                ASfree(pURL);    // Do this before we allocate a Windows handle just in case Windows messes with this pointer
                pURL = NULL;
                HGLOBAL hText = GlobalAlloc(GMEM_MOVEABLE, 1000);
                if (hText)    {
                    try
                        // Skip path info and go right to filename
                        char *pText = (char *)GlobalLock(hText);
                        char *pWork = strrchr(myURL,'/');
                        if (pWork)    {
                            strcpy(pText, pWork+1);
                        } else {
                            strcpy(pText, myURL);
                        char *pEnd = pText + strlen(pText);    // Get null terminator address
                        // Replace "%20" in filename with " "
                        pWork = strstr(pText, "%20");
                        while (pWork)    {
                            *pWork = ' ';
                            memmove(pWork+1, pWork+3, (pEnd - (pWork+2)));
                            pWork = strstr(pText, "%20");
                        // Append a new file extension
                        pWork = strstr(pText, ".pdf");
                        *pWork = 0;    // truncate the string before ".pdf"
                        strcat(pWork,".Connectors.pdf");
                        GlobalUnlock(hText);     // Must do this BEFORE SetClipboardData()
                        // Write it to the clipboard
                        OpenClipboard(NULL);
                        EmptyClipboard();
                        SetClipboardData(CF_TEXT, hText);     // Here's the culprit
                        CloseClipboard();
                        GlobalFree(hText);
                    } catch (char * str) {
                        AVAlertNote(str);
            if (pURL)
                ASfree(pURL);

  • Unable to get automatic event handling for OK button.

    Hello,
    I have created a form using creatobject. This form contains an edit control and Search, Cancel buttons. I have set the Search buttons UID to "1" so it can handle the Enter key hit event. Instead its caption changes to Update when i start typing in the edit control and it does not respond to the Enter key hit. Cancel happens when Esc is hit.
    My code looks like this -
    Dim oCreationParams As SAPbouiCOM.FormCreationParams
            oCreationParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_FormCreationParams)
            oCreationParams.UniqueID = "MySearchForm"
            oCreationParams.BorderStyle = SAPbouiCOM.BoFormBorderStyle.fbs_Sizable
                    Dim oForm As SAPbouiCOM.Form = SBO_Application.Forms.AddEx(oCreationParams)
    oForm.Visible = True
    '// set the form properties
            oForm.Title = "Search Form"
            oForm.Left = 300
            oForm.ClientWidth = 500
            oForm.Top = 100
            oForm.ClientHeight = 240
            '// Adding Items to the form
            '// and setting their properties
            '// Adding an Ok button
            '// We get automatic event handling for
            '// the Ok and Cancel Buttons by setting
            '// their UIDs to 1 and 2 respectively
            oItem = oForm.Items.Add("1", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
            oItem.Left = 5
            oItem.Width = 65
            oItem.Top = oForm.ClientHeight - 30
            oItem.Height = 19
            oButton = oItem.Specific
            oButton.Caption = "Search"
            '// Adding a Cancel button
            oItem = oForm.Items.Add("2", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
            oItem.Left = 75
            oItem.Width = 65
            oItem.Top = oForm.ClientHeight - 30
            oItem.Height = 19
            oButton = oItem.Specific
            oButton.Caption = "Cancel"
    oItem = oForm.Items.Add("NUM", SAPbouiCOM.BoFormItemTypes.it_EDIT)
            oItem.Left = 105
            oItem.Width = 140
            oItem.Top = 20
            oItem.Height = 16
            Dim oEditText As SAPbouiCOM.EditText = oItem.Specific
    What changes do i have to make to get the enter key to work?
    Thanks for your help.
    Regards,
    Sheetal

    Hello Felipe,
    Thanks for pointing me to the correct direction.
    So on refering to the documentation i tried out a few things. But I am still missing something here.
    I made the following changes to my code -
    oForm.AutoManaged = True
    oForm.SupportedModes = 1 ' afm_Ok
    oItem = oForm.Items.Add("1", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
            oItem.Left = 5
            oItem.Width = 65
            oItem.Top = oForm.ClientHeight - 30
            oItem.Height = 19
    oItem.SetAutoManagedAttribute(SAPbouiCOM.BoAutoManagedAttr.ama_Visible, 1, SAPbouiCOM.BoModeVisualBehavior.mvb_Default)
            oButton = oItem.Specific
            oButton.Caption = "OK"
    AND
    oForm.Mode = SAPbouiCOM.BoFormMode.fm_OK_MODE
    oItem = oForm.Items.Add("1", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
            oItem.Left = 5
            oItem.Width = 65
            oItem.Top = oForm.ClientHeight - 30
            oItem.Height = 19
    oItem.AffectsFormMode = False
    I get the same behaviour OK button changes to update and enter key does not work.
    Could you please tell me find what is it that i am doing wrong?
    Regards,
    Sheetal

Maybe you are looking for

  • Clean install... should i have all these frameworks and plug ins

    from system profiler. it seems weird many aren't found in help. just curious if these are standard load with a complete erase and clean install? thanx for the help in advance Frameworks: Accelerate: Version: 1.4.2 Last Modified: 3/5/09 4:56 PM Get In

  • Disaster recovery on a new host. Oracle 11.1.0.6

    Oracle 11.1.0.6, windows server 2003 R2 Service Pack 2 x64) I need to test disaster recovery on a new host(with diferent name). It looks like I am able to complete recovery stage but dbcontrol doesn't work for me. I was told: if you change host name

  • Change default color swatches view

    Illustrator CS3 and CS4--any file opened has default 'swatches' view set to those cute little (useless)squares--I would really like it to be 'small list' view. Is there a way to do this??

  • Open cursor exceeds max value

    Hi, i am running 10.2.0.1.0 and the max value for open_cursor is set to 300. Earlier my developers were getting ORA-01000 errors. However when i checked again after two days i see the number is 1605 which is way higher than the max value. Why don't I

  • Open Browser with No Address Bar from Java

    How to open a IE Browser from Java with no address bar, tool bar etc ? I am able to open browser like the listed code, but the requirement for me is it has to open with no "Address Bar", buttons. I know we can do that in "Javascript" but how to or is