XAPI on a multi form

I have a j2ee application . Would like transactional APIs to encapuslate data access logic . How to perform multi record operations ( multi part form ) using XAPI ?
Apex does this on its own method .. Wonder how you have implemented this feature ?
Thanks in Advance

Thanks for your input Zakaoullah and Gerd.
After some experimentation I took a slightly different approach:
* I used POST-QUERY for setting the VA's of the fetched records
* I used a combination of WHEN-NEW-RECORD-INSTANCE and POST-RECORD for moving around within the block after the records were fetched, using GET_RECORD_PROPERTY to determine whether the record was existing or new.
It now works as requested.
Thanks again.

Similar Messages

  • How to fill a field with after changing another field in a multi form?

    Hi,
    I have multi occurence form in which multiple record are showeds and/or added.
    One field is a dropdown field, after filling this field (selecting a value in the dropdown), another field needs to filled with the selected value.
    My problem is that only the first occurence is filled with the value of the selected dropdown, even when filling the dropdown field in one of the other occurences.
    I tried point to the other occurences but this was not succesfull
    See script
    So when a sparepart is selected from the dropdown sparepart, the field defectpart must be filled the selected sparepart, when I have multi forms (occurences) only the first occurence defect part gets filled with the selected parts, even when a sparepart from another occurence is selected.
    data.p1.spare_parts.spare_parts::change: - (JavaScript, client) -
    p1.spare_parts.DefectPart.rawValue =  xfa.event.newText;
    Can anyone help to solve this problem
    Thanks
    Christophe Van Mechelen

    hi,
    Your code is right, i dont know why its not working,
    try this,
    dropdown field in change event,
    var c = xfa.host.newtext
    textfield1.rawValue = c;
    (or)
    textfield1.rawValue = xfa.event.newText;
    by
    Parthi

  • Creating multi forms  in a midlet

    hi everyone,
    i want to create a quiz, here i would like to know how to cal one form another.. anyone can help me.
    here i am giving my code.. i am new to j2me, i dnt knw how to cal 2nd from into command action
    public class Quiz3 extends MIDlet implements CommandListener {
      private Display display;
      private Form form1;
      private Form form2;
      private Command exit, choose;
      private ChoiceGroup technology;
      private ChoiceGroup Test1;
      private int index;
      private int index2;
      public Quiz3() {
        form1 = new Form("Technologies");
        form2 = new Form("Testing");
        technology = new ChoiceGroup("Select Technology Which You Know", Choice.MULTIPLE);
        Test1 =  new ChoiceGroup("Select The City", Choice.MULTIPLE);
        exit = new Command("Exit", Command.EXIT, 1);
        choose = new Command("Choose", Command.SCREEN, 2);
      public void startApp() {
        display = Display.getDisplay(this);
        technology.append("JAVA", null);
        technology.append("J2ME", null);
        technology.append("J2EE", null);
        technology.append("JSF", null);
        Test1.append("Chennai", null);
        Test1.append("Delhi", null);
        Test1.append("Bombay", null);
        Test1.append("AndhraPradesh", null);
        index = form1.append(technology);
        index2= form2.append(Test1);
        form2.addCommand(exit);
        form2.addCommand(choose);
        form2.setCommandListener(this);
        display.setCurrent(form2);
        form1.addCommand(exit);
        form1.addCommand(choose);
        form1.setCommandListener(this);
        display.setCurrent(form1);
      public void pauseApp(){}
      public void destroyApp(boolean unconditional){
        notifyDestroyed();
      public void commandAction(Command c, Displayable displayable){
        String label = c.getLabel();
        if (label.equals("Choose")) {
          StringItem message[] = new StringItem[technology.size()];
          boolean get[] = new boolean[technology.size()];
          technology.getSelectedFlags(get);
          for (int i = 0; i < get.length; i++) {
            if (get) {
    message[i] = new StringItem("Your Choice is: ", technology.getString(i));
    form1.append(message[i]);
    form1.delete(index);
    form1.removeCommand(choose);
    } else if (label.equals("Exit")){
    destroyApp(false);
    thanks in advance

    i have developed another midlet with multi forms, but here i am not able to go to next form..
    else if (c == cmdExit)
    display.setCurrent(frmSub);
    boolean picks[] = new boolean[java1.size()];
    StringItem message[] = new StringItem[java1.size()];
    java1.getSelectedFlags(picks);
    for (int i = 0; i < picks.length; i++) {
    if (picks) {
    message[i] = new StringItem("", java1.getString(i) + "\n");
    frmSub.append(message[i]);
    frmSub.delete(javaIndex1);
    destroyApp(false);
    notifyDestroyed();
    To get to +Next Form+ by command +Next+, I would rewrite above code about as follows:
    {code}else if (c == cmdForm)
       display.setCurrent(frmSub);
    }{code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Multi Form App.

    Hello,
    My forms9i application is a multi form app with a menu. I have used Call_Form to show my screens in hte application.
    Now I need to change the application to show multiple screens at a time. ie the user needs to toggle and work b/w multiple screens. I understand that I have to use Open_Form now. And with a new Session for each screen as validations from each screen need to fire?
    I notice that when I use Open_form the menu needto be attached to each screen and my menu need to be enable\disabled in each form! Is this the only way?
    Any other issues that can come up in using Open Form?
    Comment from your experience shall be of great help
    Thanks
    Sajan

    Were you able to find any solution?
    Thanks,
    Venu

  • Multi-form applications

    I have a created a multi-form application where i have a calling form which calls another form. The user could commit changes in the called form and return to the calling form and either have changes in that form committed or rolled back. However, a commit in the called form SHOULD NOT commit any changes in the calling form. All this works fine.
    I have implemented this using "autonomous transaction". I am using the call_form --> open_form sequence for this purpose. i.e there is a call to a dummy form using call_form and this dummy form calls the other form using open_form call. Now, the problem that i have is that, at times the called form gets hidden behind the calling form and what is visible to the user is the calling form - with no access to any items on the form as this form is now NOT the active form in the application. This problem, though not reproducible has occurred many times. I do not have a solution to this. Any suggestions/pointers/soultions most welcome.
    Thanks in advance..

    What are OPEN_FORM,CALL_FORM,NEW_FORM? diff?
    CALL_FORM : It calls the other form. but parent remains active, when called form completes the operation , it releases lock and control goes back to the calling form.
    When you call a form, Oracle Forms issues a savepoint for the called form. If the CLEAR_FORM function causes a rollback when the called form is current, Oracle Forms rolls back uncommitted changes to this savepoint.
    OPEN_FORM : When you call a form, Oracle Forms issues a savepoint for the called form. If the CLEAR_FORM function causes a rollback when the called form is current, Oracle Forms rolls back uncommitted changes to this savepoint.
    NEW_FORM : Exits the current form and enters the indicated form. The calling form is terminated as the parent form. If the calling form had been called by a higher form, Oracle Forms keeps the higher call active and treats it as a call to the new form. Oracle Forms releases memory (such as database cursors) that the terminated form was using.
    Oracle Forms runs the new form with the same Runform options as the parent form. If the parent form was a called form, Oracle Forms runs the new form with the same options as the parent form.
    Call_form.
    BEGIN
    CALL_FORM('FORM2',
    NO_HIDE,
    DO_REPLACE, -- replace menu
    NO_QUERY_ONLY,
    SHARE_LIBRARY_DATA);
    END;
    Syntax
    OPEN_FORM(form_name);
    OPEN_FORM(form_name,activate_mode);
    OPEN_FORM(form_name,activate_mode,session_mode);
    OPEN_FORM(form_name,activate_mode,session_mode,
    paramlist_name);
    OPEN_FORM(form_name,activate_mode,session_mode,
    paramlist_id);
    sarah

  • Re:Close all Forms in Multi-form application

    how to Close all Forms in Multi form application's

    The easiest way would be to create an "initialize"-procedure in a pll, which simple default all the needed globals, if the do not already exist (using DEFAULT_VALUE), and call that procedure form every form in the PRE-FORM-trigger. It won't affect the "integrated" system because it only defaults values if they are not already initialized.

  • Stuck at error with How To Example for Data Binding in Multi-Form App

    I have succesfully completed the section "Serial Forms Use Case" by Ralph Gordon's in "Managing ADF JClient Data Binding in a Multi-Fom Application" How To Document. Everything worked as explained.
    Then I tried doing the second section "Concurrent Form Use Case". I got stuck there.
    Im sure it's just something silly, but I would love to complete this section.
    I get the follwing error when I click on the open details button in the master form:
    java.lang.ClassCastException: portaluniverse.debitorder.model.dao.ClientViewRowImpl
         at portaluniverse.debitorder.view.debitorder.debitform.openButton_actionPerformed(debitform.java:545)
         at portaluniverse.debitorder.view.debitorder.debitform.access$6000171(debitform.java:47)
         at portaluniverse.debitorder.view.debitorder.debitform$2.actionPerformed(debitform.java:144)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
         at java.awt.Component.processMouseEvent(Component.java:5100)
         at java.awt.Component.processEvent(Component.java:4897)
         at java.awt.Container.processEvent(Container.java:1569)
         at java.awt.Component.dispatchEventImpl(Component.java:3615)
         at java.awt.Container.dispatchEventImpl(Container.java:1627)
         at java.awt.Component.dispatchEvent(Component.java:3477)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
         at java.awt.Container.dispatchEventImpl(Container.java:1613)
         at java.awt.Window.dispatchEventImpl(Window.java:1606)
         at java.awt.Component.dispatchEvent(Component.java)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:458)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    The error appears on this line:
    RowSetIterator detailAccessor = (RowSetIterator)row.getAttribute("ClientView");
    The above line of code was taken out of the following method:
    // object used in the following action listener
    oracle.jbo.Key masterRowKey ;
    // specify the action listener
    private void openButton_actionPerformed(ActionEvent e) {
    ClientForm df = new ClientForm();
    // note that the setBindingContainer() method will be defined in DetailForm.java
    df.setBindingContainer(createDetailBinding());
    // get master current row, get detail accessor iterator, then bind detail form iterator binding to
    // detail accessor iterator
    DCIteratorBinding iterBinding = getPanelBinding().findIteratorBinding("DebitOrderViewIterator");
    Row row = iterBinding.getCurrentRow();
    if (masterRowKey != null && row.getKey().equals(masterRowKey)) {
    //create a new RowSet Iterator for the same master to avoid auto-synchronization of currency
    RowSetIterator secondaryRSI = (RowSetIterator)iterBinding.getViewObject().createRowSetIterator(null);
    df.getPanelBinding().findIteratorBinding("ClientViewIterator").bindRowSetIterator(secondaryRSI, false);
    } else {
    RowSetIterator detailAccessor = (RowSetIterator)row.getAttribute("ClientView");
    df.getPanelBinding().findIteratorBinding("ClientViewIterator").bindRowSetIterator(detailAccessor, false);
    df.setVisible(true);
    My Master Form is called "DebitForm.java" and my Details Form is called "ClientForm.java".
    I appreciate any help.
    Thank-you in advance.
    Leana

    Leana,
    I'll point Ralph to this question. I can't see a difference between your code and Ralph's. Which JDeveloper version do you use use?
    Frank

  • HTTP Multi-Form Post - And Config?

    Hey Everyone,
    I'm stuck on a situation where my code in PRD does not behave like my code in DEV and QAS. This code is a simple multi-part HTTP post to an external system. Nothing special. There are two variables in my equation:
    1. DEV and QAS are on a higher kernel level than PRD. The kernel has not migrated that far yet.
    2. I have the cryptographic library active on DEV and QAS, but not on PRD. Like the kernel, it has not migrated there yet.
    Mind you, I've double checked the SICF and SMICM settings to guarantee they are identical in all systems. Is there something else that I have missed?
    I have seen situations before where kernel applications have "tightened the bolts" on weak code, so I thought perhaps my code was "weak." Would someone mind giving a glance over to see if something is missing? Note that it works great in PRD, but not in QAS and DEV. It could be just sloppy code that crumbled under the stringent eye of a new kernel.
    Here is the code...thanks for your attention.
    Greg
    DATA:  http_client       TYPE REF TO if_http_client.
        CALL METHOD cl_http_client=>create
          EXPORTING
            host    = lv_host
            service = '80'
            scheme  = '1'
          IMPORTING
            client  = http_client.
    *These steps fill the HTTP Post basic settings for communication back to the URL that first Posted to SAP.
        http_client->request->set_header_field( name = '~request_uri'     value = sourcetask_http_url ).
        http_client->request->set_header_field( name = '~request_method'  value = 'POST' ).
        http_client->request->set_header_field( name = 'Content_Type'     value = 'multipart/form-data' ).
        http_client->request->set_header_field( name = '~server_protocol' value = 'HTTP/1.1' ).
    * Variable Fields Need to Map to EDMS Form *These steps fill the MIME multi-part form fields with values.
        http_client->request->set_form_field( name = 'taskstatus' value = 'Done').
        http_client->request->set_form_field( name = 'attributes_ref_canddoc_1' value = attributes_ref_canddoc_1 ).
        http_client->request->set_form_field( name = 'wf_status' value = wf_status ).
        http_client->request->set_form_field( name = 'forms_dlm_lbl_form_change_type_1' value = form_change_type_1 ).
        http_client->request->set_form_field( name = 'forms_dlm_lbl_form_change_ref_1' value = form_change_ref_1 ).
        http_client->request->set_form_field( name = 'forms_dlm_lbl_form_dp_repart_1' value = form_dp_repart_1 ).
      *This step sends the HTTP Post to the external system.
        http_client->send( ).
    *This step is necessary to make sure the communication was a success. Without it a failure won't be known.
        CALL METHOD http_client->receive
          EXCEPTIONS
            http_communication_failure = 1
            http_invalid_state         = 2
            http_processing_failed     = 3
            OTHERS                     = 4.

    Update: I've reviewed the system profile, the ICF, the Crypto Library, the RFC, the ICM, rewritten my code in numerous ways, reverted the kernel back to its original level...all to no avail. What did come of it is this...and a lesson I've learned many times and should have been more astute and critical from the start. When the downstream system you are communicating with tells you they have not made a change and it must be SAP...well, make sure they are not lying. "Well, the change we made wouldn't affect that." Oh...really.

  • Multi-form processings

    Im building a new application for our intranet.. and need
    some suggestions
    on how to accomplish this..
    Right now the process has been broken down into 5 pages..
    they are asking
    alot of questions, similar to an online job application..
    What i need to know is what would be the most efficient way
    to go from page
    to page, but at the same time processing or inserting the
    data as they go
    along.
    Page #1 - Basic information, when complete click submit and
    takes them to
    next page.
    Page#2 - General information, when complete click submit and
    takes them to
    next page.
    I guess the true question i have is how to make sure that
    when they submit
    the first page, the remaining pages information are submitted
    into the
    database for that person...
    Just never dealt with a multi-page form setup like this.. and
    have a pretty
    short deadline..
    any suggestions would be great.. or atleast some links to
    research how to
    accomplish this.

    What are OPEN_FORM,CALL_FORM,NEW_FORM? diff?
    CALL_FORM : It calls the other form. but parent remains active, when called form completes the operation , it releases lock and control goes back to the calling form.
    When you call a form, Oracle Forms issues a savepoint for the called form. If the CLEAR_FORM function causes a rollback when the called form is current, Oracle Forms rolls back uncommitted changes to this savepoint.
    OPEN_FORM : When you call a form, Oracle Forms issues a savepoint for the called form. If the CLEAR_FORM function causes a rollback when the called form is current, Oracle Forms rolls back uncommitted changes to this savepoint.
    NEW_FORM : Exits the current form and enters the indicated form. The calling form is terminated as the parent form. If the calling form had been called by a higher form, Oracle Forms keeps the higher call active and treats it as a call to the new form. Oracle Forms releases memory (such as database cursors) that the terminated form was using.
    Oracle Forms runs the new form with the same Runform options as the parent form. If the parent form was a called form, Oracle Forms runs the new form with the same options as the parent form.
    Call_form.
    BEGIN
    CALL_FORM('FORM2',
    NO_HIDE,
    DO_REPLACE, -- replace menu
    NO_QUERY_ONLY,
    SHARE_LIBRARY_DATA);
    END;
    Syntax
    OPEN_FORM(form_name);
    OPEN_FORM(form_name,activate_mode);
    OPEN_FORM(form_name,activate_mode,session_mode);
    OPEN_FORM(form_name,activate_mode,session_mode,
    paramlist_name);
    OPEN_FORM(form_name,activate_mode,session_mode,
    paramlist_id);
    sarah

  • ORA-00957: duplicate column name for multi-form page

    I have read numerous threads on this but I think I am missing something. I have two forms on one page, each based on a separate table. They each have one column in common which is why I believe I am getting this error. However, I do not understand why since each form has its own Automatic Row Processing, it is tripping over the column name. I have changed the name of the page item to be different, but I still get this error. TIA.

    Hi,
    Technically you can not use two forms in one page. Both table have the same column name which confuses the DML process. Try change the column name in one table and see if it works.
    Cheers,
    Tajuddin

  • Single form testing in multi-form application Question

    I am working on a application which contains may form objects but they are all directly or indirectly called from one "main" form. Within this "main" form, we are initializing global variables used throughout the application. This works well for the application as a whole but doesn't work when we are debugging a specific module within forms builder because the global variables aren't available. So, I need to know if it is possible to setup server params, config files or whatever to enable initialization of variables outside of an individual form for use in the form. I hope this makes sense.
    Thanks for any help!

    The easiest way would be to create an "initialize"-procedure in a pll, which simple default all the needed globals, if the do not already exist (using DEFAULT_VALUE), and call that procedure form every form in the PRE-FORM-trigger. It won't affect the "integrated" system because it only defaults values if they are not already initialized.

  • URGENT - Multi-form problem

    Would be great if anyone could help me with this:
    Say I have two forms A and B, A has a repeating timer
    which, when fires, will GO_FORM to B and B's WHEN-WINDOW-
    ACTIVATED should fire and do stuff. Problem is if
    the focus is already on form B at the beginning,
    form A's timer expires but form B's WHEN-WINDOW-
    ACTIVATED trigger doesn't fire as it IS already the
    active window of the two at the time of the timer
    expiration. So the stuff in B's WHEN-WINDOW-ACTIVATED
    won't execute when I want it to.
    Any workaround? I need a solution to this urgently.
    Thanks big time in advance!!

    and what makes me wonder is that looks like the focus
    did temporarily switch to form A in the background,
    confirmed by a check of the :SYSTEM.CURRENT_FORM and
    CURSOR_ITEM etc in the WHEN-TIMER-EXPIRED trigger. But
    still, if I GO_FORM back to form B, form B's WHEN-WINDOW-
    ACTIVATED just won't fire.
    Buggy WHEN-WINDOW-ACTIVATED trigger? Or misused?
    Please, anyone? By the way, form B is launched from
    a button in form A, just in case if that makes a diff.

  • How to create and apply a procedure to be shared by multi forms

    Hi,
    I want to create a procedure which shared by several forms. I tried to create it under PL/SQL libraries. It generates LIB_002, and under program units, I created the procedure. But I don't know how to apply this to the forms. Have I done right? Could someone tell me what I should do next? Thank you for your help.
    Sa

    The problem is how to add the PL/SQL library to the specific module. I tried to create in attached libraries, and I was prompted name with browse button. I can't find the .pll file. Actually, when I created PL/SQL library (lib_002) with the procedure, I checked the property and it's read-only with no location in it. I wonder if I need to do anything more after I created PL/SQL library (name default as lib_002 and I can't change the name) with the procedure. Please give me some suggestions. Thanks,
    Sa

  • Multi forms in one page

    Hi ,
    I'm developing on apex 4.0.
    I would like to display 2 forms on a same page but when i submit my first from, i have error because of duplicate column..
    I think the second form is also submited.
    How to make independant the 2 forms?
    Thanks in advance
    Best regards, Damien

    Hi user11969500,
    If you are using same item names in the multiple forms in a page you will definitely get the error.
    Create forms in separate pages you can display those forms in a page using iframe or frames concept
    Thanks and Regards
    Maheswara

  • Multi form merge/auto-population

    To simplify our customer onboarding process, we need to have multiple onboarding forms populated at a single data entry point.  For instance, we have a group of forms that when we have a new customer onboarding, we can pre-populate the company name, address, etc.. that will then transfer over to the rest of the documents so that the customer doesn't have to worry about it themselves.  It would also be great if on the first form, there is a data field that the customer populates and then it populates the similar field on the forms that follow to speed up the whole process. 
    Can FormCentral help me with this?

    Hello,
    Actually i have a resource object as "Laptop" suppose, so for me the user defined fields are Laptop_type, RAM value, ROM Value and Emp ID.
    These fields are made visible as UDF through Pre-pop adapters and all the other required settings.
    While provisioning the same in the xlWebApp console I am populating them.
    The resource form for me (Form Designer for the resource object) is made visible and i am filling in values while provisioning.
    Now while sending the mails these values should reflected in the mail body for the fields.
    Eg: Subject [hi] Mail body [ The following resource has been provisioned. Laptop_type : Dell, RAM value: 512, ROM value: 40, EMP ID: 123] where these values are filled in the resource form while provisioning the resource object.
    Pleased let me know how can i send such mails through config settings in OIM. Right now my mail simply looks like
    Eg: Subject [hi] Mail Body [The resource has been provisioned to you]
    Thanks again.
    Pooja.

Maybe you are looking for

  • Indesign CS4 in Mac 10.6.8, sometimes won't show files, sometimes won't show tools

    Indesign CS4 in Mac 10.6.8, sometimes won't show files, sometimes won't show tools. Like I click to open a file from the finder, and Indesign makes that temporary file in the finder, but won't display the pages. At other times I can have the pages di

  • Problem with CSV updates

    I am not able to get the updated data in a CSV file through my DataServiceClient after building my DataService Project. The client picks the old value from the jar file which I have to rebuild after an update to the CSV file.. Is there any way I can

  • Automatic dispute case creation

    Hi All, How we can configure, automatic dispute case creation for bank statement upload (short payments). Regards Satya

  • How to use the integrated ITS server in WAS6.40 for WEBGUI

    Hi, I am testing the Portal 6.0SP6 on WAS6.40SP7. Using User Mapping, I am able to connect and call some transaction to R/3 System (4.6c) and the ITS servers for the R/3 system.  If I am going to use webgui to call a transaction, do I need the ITS se

  • Missing font in RDF report

    Hi All. The font setup in RDF is not showing up in the output. Only one font is being used in the output of concurrent program. I'm in R12.1.3 Any idea what the problem may be? Thanks in advance.