Commiting changes in an Infobus data form

I use such a form without the navigation
bar, instead i want to have standard behaviour(a save-button).
When i edit a cell the status bar
shows "modified: true".
My problem is: i tried several ways to
commit the changes (call the flush method
in RowsetAccess, get the appmodules'
transaction and call commit upon it, amongst others)
but the "modified"-flag doesn't switch
back afterwards and when i want to close
the form, the standard commit dialog appears,
though with the 2nd way the data get
written to the db (but only the first
time i use it).
What is the correct way to commit changes?
null

Markus,
Look at RowsetAccess.getDb().commitTransaction();
Laura

Similar Messages

  • Infobus data form wizard returning ORA-03115

    Hi,
    I was trying to create a single table data form using (JBuilder2
    )infobus data form wizard and during the step 3 (select database
    objects)i got following error:
    >>
    ORA-03115 Unsupported network data taype or representation
    java.sql.SQLException
    <<
    I was connected to Oracle 8.0.5 database runing on AlphaVMS!
    What I am doing wrong ?
    Thanks
    Nadeem
    null

    Nadeem Siddique (guest) wrote:
    : Hi,
    : I was trying to create a single table data form using
    (JBuilder2
    : )infobus data form wizard and during the step 3 (select
    database
    : objects)i got following error:
    : >>
    : ORA-03115 Unsupported network data taype or representation
    : java.sql.SQLException
    : <<
    : I was connected to Oracle 8.0.5 database runing on AlphaVMS!
    : What I am doing wrong ?
    : Thanks
    : Nadeem
    I have tried all the JDBC /JDBC OCI drivers ! and geting the
    same error as mentioned above!
    null

  • I cannot use "InfoBus Data Form wizard"

    I can't use "InfoBus Data Form wizard", because it doesn not apper in anywhare of my JDeveloper 3.1, on Win NT 4.0/SP5.
    Any help will be much appreciated.

    Nadeem Siddique (guest) wrote:
    : Hi,
    : I was trying to create a single table data form using
    (JBuilder2
    : )infobus data form wizard and during the step 3 (select
    database
    : objects)i got following error:
    : >>
    : ORA-03115 Unsupported network data taype or representation
    : java.sql.SQLException
    : <<
    : I was connected to Oracle 8.0.5 database runing on AlphaVMS!
    : What I am doing wrong ?
    : Thanks
    : Nadeem
    I have tried all the JDBC /JDBC OCI drivers ! and geting the
    same error as mentioned above!
    null

  • Execute SQLJ/JDBC within InfoBus Data Form???

    Is there a way to execute SQLJ or JDBC from within the InfoBus data forms without opening a new connection?
    Is there a way to execute SQLJ or JDBC via the Business Components using the connection already established in the InfoBus frame?
    Please post any samples if this can be done.
    Thanks
    Andrew

    Andrew,
    The best way to do what you are asking is to create a custom method at the application module or view object level, export that to your client, then call the method from the form.
    Here is an example from a JSP Web Application. The basic idea is the same though.
    1. Double-click the appmoduleImpl.java file for your application module to open it in the code editor (expand the Application Module node to find this source file, if there is not one there, edit your app module, click on the Java tab, and check the Generate Java Files checkbox, click Finish and rebuild your project).
    2. Enter the code that you want to execute (I've included an example below that calls a stored PL/SQL procedure to calculate a value).
    3. Compile the file to make sure your code is OK.
    4. Edit the Application Module and click on the Client Methods tab. You should see your new method in the Available list.
    5. Shuttle the method to the Selected list.
    6. Click Finish and rebuild your project.
    7. From your Infobus client code, call the method you just wrote. You may need to include the package that contains the business components code.
    Note that when you export client methods from your BC4J project, you may need to include the stubs for these methods in your client project, depending on how you deploy your BC4J project. For example, if you deploy your BC4J app module as an EJB, the deployment process will generate the client stubs for these exported methods into a separate project (or you can specify to have them generated into your client project on the Remotable tab of the app module wizard). See the online docs for deployment for more information.
    Example exported client method:
    public int getTotalHits(String mon, String year) {
    CallableStatement stmt = null;
    int total;
    String totalhits = "{? = call walkthru.total_hits(?,?)}";
    stmt = getDBTransaction().createCallableStatement(totalhits, 1);
    try
    // Bind the Statement Parameters and Execute this Statement
    stmt.registerOutParameter(1,Types.INTEGER);
    stmt.setString(2,mon);
    stmt.setString(3,year);
    stmt.execute();
    total = stmt.getInt(1);
    catch (Exception ex)
    throw new oracle.jbo.JboException(ex);
    finally
    try
    stmt.close();
    catch (Exception nex)
    return total;
    null

  • No connections in the combo box of Infobus Data Form Wizard?

    I am trying to create a new project but when I try and select a
    connection, the "Connection" drop-down combo-box is empty. I have
    created 9 connections, but cannot select them. I have tried
    adding a new one and editing but still they do not appear.
    Am I doing something stupidly wrong here?
    Any help would be appreciated,
    Thanks,
    Andy Shiels
    null

    JDeveloper Team (guest) wrote:
    : Andy,
    : The Infobus controls can only talk via the Oracle JDBC drivers
    : (thin and OCI only, not Oracle Lite) to an Oracle database
    : (again, not Oracle Lite), so the wizard will only display
    : connections that meet those criteria.
    : If you have created IIOP connections, or connections that use
    a
    : driver other than the Oracle JDBC Thin or OCI drivers
    (including
    : the Oracle Lite JDBC driver), these connections will not
    appear
    : in the list of available connections to use.
    : L
    : Andy Shiels (guest) wrote:
    : : I am trying to create a new project but when I try and
    select a
    : : connection, the "Connection" drop-down combo-box is empty. I
    : have
    : : created 9 connections, but cannot select them. I have tried
    : : adding a new one and editing but still they do not appear.
    : : Am I doing something stupidly wrong here?
    : : Any help would be appreciated,
    : : Thanks,
    : : Andy Shiels
    I have a similar problem using JDBC-ODBC bridge with MS access
    (just for testing JDeveloper). How do I select the connection,
    get pass the step to move on to the next step in the DB Servlet
    wizard? Thanks.
    null

  • Data form crashes at connect window

    I have used the form wissard and created a simple
    form. When I compile the form I get warnings and
    when I run the form I can see the connect screen
    but I can not type anything in this window
    null

    George,
    Did you try setting the 'Prompt user for security info' to false
    and re-running it?
    - L
    George Xu (guest) wrote:
    : JDeveloper Product Team (guest) wrote:
    : : Are you using the (JBCL) Data Form or the Infobus Data Form?
    : : Try generating and running the form with the 'Prompt for
    : : Security' checkbox set to false.
    : : Check the release notes for some known problems in the
    Infobus
    : : controls.
    : : Regards
    : : peter schlaeger (guest) wrote:
    : : : I have used the form wissard and created a simple
    : : : form. When I compile the form I get warnings and
    : : : when I run the form I can see the connect screen
    : : : but I can not type anything in this window
    : I am using Data Form. The data shown up in the design mode.
    : When I ran it, the connection logon window show up, it
    : hang....................
    null

  • Multiple currencies per entity in data form

    Is it possible to disable users changing currency code in data forms with "Allow multiple currencies per entity" option?
    I want users can see currency code for cell in data form, but can't change it.

    Hi,
    A really simple script would be
    function customCellValidatePre(row, col, cell) {
    //check app
    if (equalsIgnoreCase(applicationName,"Enter App Name")){
    // check form
    if (equalsIgnoreCase(formName,"Enter Form Name"))
    // enter 3 digit valid currencies for application
    var validCurrs = new Array("USD", "ZAR", "AUD", "CLP", "BRL", "CAD", "GBP", "EUR");
    if(listContainsName(validCurrs,cell.value)){
    // looks like user has tried to update a currency code
    cancelDrag();
    EnterCellx(row, col, true);
    return false;
    Just enter a set of valid currencies for your planning application.
    The script just basically checks if any of your currency codes have been entered, if they have it will just return back to the cell without updating the currency code.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How can i check for posted but not yet commited changes in a form

    Dears
    I make changes programmatically in a form then i post it using (Post built in).
    If the user exits the form, i make check for any changes in the form to commit it using the system variable :system.form_status
    Unfortunately the value of this system variable is 'Query' not 'Changed' because of using the post built in.
    Is ther another system variable ( or any another way ) that check for posted but not yet commited changes in the form ?
    Thanks a lot
    Mostafa Abolaynain

    I had faced similar situation. Using of package variable which identifies, what is the user's latest action.
    This is just a workaround.
    Capture what the user has performed into a variable say, PKG_VAR.ACTION,
    This will be assigned values like List L, and Create C, Update U and Saved S.
    If commit is executed,assing the status S to the variable.
    So while closing,
    IF :system.form_status = 'CHANGED' or PKG_VAR.ACTION in ('C','U') THEN     
    -- validate the data, n perform commit.
    else
    -- just close the form.
    end if;
    Regards
    Deepz : )

  • ValidateData.js - apply changes to data form

    Hi,
    I've modified the ValidateData.js file to add a button to a form. My question is how do I actually see the changes I've made in the file appear in the data form? In layman's terms, how do I execute the code inside ValidateData.js?
    Thank you!

    user12169513 wrote:
    I refreshed the browser and restarted Planning. What do you mean by event?If the app server is weblogic then any changes will require a restart of the planning app service, if it is tomcat you can just log out/in of planning.
    The event = which function did you put it in, maybe sharing your code will help further
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to change the order of parent member on data forms

    Hi,
    Is there any way to show parent on top of its children in data form row level?
    By default data form display members like this:
    __Child 1
    __Child 2
    +Parent
    Instead of above i want this sequence:
    +Parent
    __Child 1
    __Child 2

    Have a read of
    Can we change the display order of member set functions like @Idescendant?
    Re: the order of member showing in dataform
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Data Forms - Dynamic changing months

    Hi,
    In my form i must have actuals and forecast. So e. g. Actuals(Jan, Feb) -> Forecast (Mar, Apr....). This layout will change next month. Actuals (Feb, Mar) -> Forecast (Apr, May....) The problem is to set-up the data form to move the "start" month in forecast scenario. I have my actuals set up as substitution variables. Problem is that when i set up 12 subs. variables to cover the whole year and then move one month further i do not want that last subs. variable to be set up but then the data form will not work. And if i set it up lets say continuosly i will finish with something like... Nov, Dec, Jan in the same year and i want it to finish with december.
    Thank you very much for your help
    lubos

    I have one option for you, the data coming for Actuals can be loaded on Actual as version member. Load the forecast on the forecast version member, pull both the versions in the webform with supress the missing data. This should work as your actual data will not have anything for months in future so the future months will be supressed, and anything coming in the forecast will only for future months and not the months that have passed so past months will be supressed.
    Hope this approach works for you
    --XAT                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Can we change the employee number on the employee master data form ?

    Hi,
    Simple question but can we change the employee number on the employee master data form ? We need to use the same employee numkbers from another system but just cannot interact with the employee no. in SAP 2007 ?
    Thank you,
    MB

    You canu2019t modify the employee number. It is assigned by the system sequentially.
    But you can define a user defined field to store the other systemu2019s identifier or use (and even rename) some other field to store this information.

  • I want to store the data form the PWM and the value of the changing duty cycle into a file simultaneously and continually

    i want to store the data form the PWM and the value of the changing duty cycle into a file simultaneously and continually but having problem.Please can anyone help out.
    Attachments:
    data.vi ‏60 KB

    Hello,
    Have you looked at the "Write Binary File.vi" and "Read Binary File.vi" examples?
    They give you a good clue as how to write and read arrays to and from binary files.
    For your data it means that you could put the two data items to write in an array and write the array to file, for the read its important to in what sequence the number were written to file.
    Kind regards,
    André
    Regards,
    André
    Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl)

  • How to Commit in InfoBus Data Items

    Hi,
    I created an Applet using JDev2.0. I called the DB schema using
    Connection Manager, InfoBus Data Items, SessionInfo and
    rowSetInfo.
    I customised the UI form using Infoswing. As per my logic, after
    user modified the data and press the SUBMIT button, I should call
    the commit for the rowSetInfo.
    How can I issue commit or how to resolv the modified rowSetInfo.
    Previously I used Jdev1.1 and Borland's dataset and it works
    fine.
    Now, Oracle is not supporting Borland's dataset and AWT. So, now
    I am rewritting the whole application using JDev2.0.
    Thanks in advance.
    Ramesh S.
    null

    Hi,
    If your jsp is of type <ViewName>_SubmitInsertForm.jsp created by JDeveloper,then it should be having NavigationBar,EditCurrentRecord and ViewCurrentRecord, in that order
    If that is the case, you should also see a "Save Changes" Button in the form, which should commit the changes to the database
    --Sandeep                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Changes in the Payment program Form for Checks

    SAP Experts,
    Issue: The Form for printing checks is not printing correctly. When there is an Overflow of Invoices from the first page (> 14) the check is voided on the first page and the invoice data overflows to the next page which is fine, but the company logo does not print on the check and also the check info is printed below the check section (colored portion) Can some one please guide me how I can find the logo file/text and insert it in the right area. I am NOT an abaper and we dont have an abaper here to fix this. Please give me all the relevant transactions (other than SE71) to make changes on the Check payment Form. I will promptly reward with points for any relevant answers.
    Thanks in advance

    t.code>> FBZP>> select payment method in company code>> select the payment method & co code>>  Form data
    http://help.sap.com/bestpractices/BBLibrary/Documentation/J03_BPP_05_EN_IN.doc
    Hope this helps
    Pls assign points as way to say thansk

Maybe you are looking for

  • Content security policy not being respected

    The following (seemingly valid) Content Security Policy does not work in Safari: script-src 'unsafe-eval' 'self' by.uservoice.com widget.uservoice.com www.google.com use.typekit.net js.stripe.com  localhost:35739 Errors occur for a number of requests

  • ABAP Proxy how to catch exception send by PI Interface ?

    Dear XI Expert, I have Synchronous ABAP Proxy interface with exception. How to cacth the exception generated by PI ? The standarc exception handler is : CATCH cx_ai_system_fault INTO lo_system_fault.         WRITE:/ 'System fault:'.         WRITE:/ l

  • Kuler (Color themes) are not loading any schemes, except my own.

    Kuler (Color themes) both are not loading any schemes, except my own. Any suggestions? I can't search, can't load anything. It's empty. To create my own scheme I had to go across a bit. It's not exporting anything with Opera 12, so I had to catch the

  • Virus Scan profile activated - implications?

    Hello. we have a custom program that makes IDOCS into PDF's and then emails them. if the Virus Scan profile /SCMS/KPRO_CREATE is not activated it fails saying that it isnt activated. There is Note 1382313 that states not to activate it, only if you n

  • Hyperlinks won't open

    Hi, I am using Captivate 3 to create some flash tours. Within these tours, I used some clickable hyperlinks that point to various websites. The hyperlinks work correctly when I play the tour with Captivate. However, after publishing the tour, the hyp