DbDataSources and Form modes

Hi, I have a little problem, i was reading in the forum, but nobody has the same problem, so, i have a form, with 2 dbdatasources, one to OITM, and the other to OITW, in the form load i use the query method over the oitm dbdatasource and oitw dbdatasource and works fine, but by default the form opens in Find Mode and it's fine, when I change to Add Mode, all the dbdatasources disappers, and the update method doesn't work, does anybody has the solution of that?
i change the form mode to open in Add Mode but when I change to Find mode and the form works in the same way, dropping all the dbdatasources.
Message was edited by: Rodmmy Ortiz

Hey Rodmmy,
By default Business one resets the dbdatasources when changing to add mode as it assumes a new record is being added.
can you change the forms mode to add or OK mode first instead of find? and then populate the dbdatasource

Similar Messages

  • How to use a single page for create and update mode.

    Hi,
    I need to develop a single page to be used for both create and update modes.
    I am going to use a variable MODE
    and i will set this in the emp summary page.
    Based on the button clicked by the user i have to render the JSF page.
    For tis if the user selects a perticular and cliks on update thn i will pass the empno to the next.
    so there in the next i will appy a ViewCreiteria on my View Obj to fetch only that row so that only that emp will be displayed ion update mode.
    This is working fione for me.
    So now the issue is
    when the user clicks on CreatEmp button.
    i need to enable my VO for insert operations.
    for this i wrote the code like this in the beforePhase event
    FacesContext ctx = FacesContext.getCurrentInstance();
    ValueBinding valBinding = ctx.getApplication().createValueBinding("#{data}");
    BindingContext bContext = (BindingContext) valBinding.getValue(ctx);
    DCDataControl dcControl = bContext.findDataControl("DataControl");
    Application app = ctx.getApplication();
    ApplicationModule am = (ApplicationModule) dcControl.getDataProvider();
    System.out.println("After Appmodule initiation");
    // get the VO reference and initiate the query
    System.out.println("Before Page VO initiation");
    PrismDmPageSectionViewImpl vo = (ViewImpl)am.findViewObject("View");
    //ViewRowImpl row = (ViewRowImpl) vo.createRow();
    /* TO CREATE AN EMPTY ROW*/
    Row row=vo.createRow();
    System.out.println("New Row is created");
    //vo.createKey(row);
    vo.insertRow(row);
    vo.setCurrentRow(row);
    By doing this a new empty page is rendered.
    But when i fill up the values and click on ok.. i am getting the error like this..
    JBO-27023: Failed to validate all rows in a transaction.
    JBO-27027: Missing mandatory attributes for a row with key null of type View3
    JBO-27014: Attribute Id in View3 is required
    JBO-27014: Attribute PageeId in View3 is required
    Please point me out where i am missing.
    Thanks

    Hi,
    In my opinion you are over complicating things.
    This is what I do for using the sme page as both create and update without all this code.
    1) Create a browse page containing a an adf table with a select one component bound to your view object.
    2) Create an additional edit page containing only an edit form containing fields of your view object that your users must enter in order to add or edit rows.
    3) Link the pages in the JSF diagram with an "edit" navigation case from browse to edit page and a "return" navigation case from edit to browse (make sure that redirect option is NOT set on both cases)
    4) Remove the submit button from the edit page and add two application module bindings for the commit and rollback operations as command buttons in the form footer facet. Make sure that both buttons has an action of return and that their disabled property is set to false. You will probably change their labels to ok and cancel respectively.
    5) Drop a create action for your view object from the data control palette inside your page as a command button and set the action property to edit also.
    3) Set the action property of the view button to edit
    This should basically work without any code from your part. -- at least it does so for me -- if you like to make it a bit more funcy you may add am action listener inside your buttons and set a requeScope variable for example #{requestScope.editing} to true or false depending on the button clicked. Then add a title to your page with a value like #{requestScope.editing == true ? 'Editing record' : 'Adding a new record'}..
    Hope that helps.
    Thanassis

  • Shared and Dedicated Mode in Oracle 8i

    Can any one describe what is basic difference when we install Oracle8i in dedicated and Shared modes. I have to create Oracle8i Database for not more 150 users. Actually less then 20 users might be accessing database but in future it can go up to maximum 100.

    WIthout understanding your application and hardware in some detail, it is impossible to say which mode is better-- and that's without accounting for a mixed-mode setup where some connections are shared and some are dedicated.
    If there are going to be 20 simultaneous connections, dedicated server is almost always preferred. If you start to get up to 100 simultaneous connections, depending on your hardware, it may become appropriate to use shared server. If you have a high-end multi-CPU machine, it will easily handle 100 connections. If you have a low-end single-processor Windows server, you might have problems with dedicated server.
    OLTP systems tend to be more amenable to shared server than DSS systems, because sessions spend a lot of time idle in the former type of application.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Firefox no longer gives automatic prompts when I type in first few letters of a search - even though my browsing history is being recorded, and "Remember search and form history" is ticked in the Privacy preferences: what's gone wrong?

    Firefox has recently stopped giving (personalised) automatic prompts when I type in the first few letters of a search. What does come up is a long list of possible search subjects - but these are very general and don't reflect my own personal browsing history. My browsing history IS being recorded, however, and the "Remember search and form history" box is ticked in the Privacy preferences.
    I'm not using the "Private Browsing" option.
    There are two MacBooks in the house, sharing one wireless router. This problem has cropped up on both laptops - mine and my wife's - at around the same time.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • How do you switch to forms mode on a officejet pro 8600

    I just set up a new officejet pro 8600 and printed a paper from laptop across the middle of page a message printed saying screen reader userslease switch to forms mode for this link can anyone help?

    Product Info??
    Operating System??
    Connection type between TV and the Computer?? HDMI....?
    ||-Although I am working on behalf of HP, I am speaking for myself and not for HP.-||
    //Click on Kudos if my reply was helpful and answered your question//
    ||-If my answer solved the problem please mark the topic as the accepted solution-||

  • Pagp and silent mode

    Hello,
    I am confused with the "silent" mode when used with PAGP "auto" and "desirable" modes.
    "CCNP BCMSN exam certification guide" book, says that "silent" is used when peer is not capable of sending Pagp frames (does not participate in pagp), so that an etherchannel is built in our side anyway.
    But everywhere(cisco's site,book), is reffered that if one peer is in "auto" mode and other in "on" mode OR one peer is in "desirable" and other in "on" mode, a channel is not formed.
    Since the default submode for both - "desirable" and "auto" - is "silent"( meaning that our side does not expect any pagp frames) why a channel can not been established?
    Thanks.

    Hello Bob Grante,
    I agree with you that the documentation is very confusing and vague about PaGP negotiation.
    From what I understand an EtherChannel will form only if one side is configured to be non-silent. I cannot confirm this because I do not have access to a etherchannel capable switch at this time.
    I quote the 3550 Software Configuration Guide 12.2(25)SE.
    "Silent Mode" (Page 31-5)
    "The silent mode is used when the switch is connected to a device that is not PAgP-capable and seldom,
    if ever, sends packets. An example of a silent partner is a file server or a packet analyzer that is not
    generating traffic. In this case, running PAgP on a physical port connected to a silent partner prevents
    that switch port from ever becoming operational; however, the silent setting allows PAgP to operate, to
    attach the interface to a channel group, and to use the interface for transmission."
    The configuration examples te
    "Configuring EtherChannels (Page 31-10)
    "non-silent -- If your switch is connected to a partner that is
    PAgP-capable, you can configure the switch interface for
    nonsilent operation. You can configure an interface with the
    non-silent keyword for use with the auto or desirable mode.
    If you do not specify non-silent with the auto or desirable
    mode, silent is assumed. The silent setting is for connections
    to file servers or packet analyzers. This setting allows PAgP
    to operate, to attach the interface to a channel group, and to
    use the interface for transmission."
    I also would like to quote Brian McGahan, CCIE #8593
    "The description of silent and non-silent is hard to extrapolate from the brief description on CCO, but this is what it means. When in "silent" mode, the switch will generate (if in "desirable" mode) PAgP and respond to PAgP (if in "auto" mode) regardless of whether the link is "silent", meaning whether or not you are recieving traffic from your neighbor.
    When in "non-silent" mode, the switch will only initiate or respond to a PAgP request if the link is "non-silent", meaning that you are receiving traffic in the interface.
    Why this is even an option I'm not really sure, but by default the switch will run PAgP regardless of whether or not traffic is being received in the interface." -- http://forum.internetworkexpert.com/ubbthreads/showflat.php?Cat=&Number=3346&Main=3256
    I think the only way to find out is to test it yourself in a lab environment. I will keep this in mind for future testing.
    Best regards,
    Leon

  • How to control item between Form mode change

    Hi Experts
    I am using B1DE to do something like some item's enable status will be changed following the Form mode change.
    For instance, add a new matrix into system form, if changing the Form mode to Find, I want to disable this matrix, if changing to Add mode, the matrix should be enable.
    Do you how how to do this?
    Thanks
    Tim

    Hi,
    You need to capture Menu Event in your code and can make matrix either editable or non editable.
    Sub MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean)
            Try
                Dim oForm As SAPbouiCOM.Form = objMain.objApplication.Forms.ActiveForm
                If pVal.BeforeAction = False Then
                    If pVal.MenuUID = "1281" Then                // For Find Mode
                        //make matrix editable or non editable
                    End If
                End If
            Catch ex As Exception
                objMain.objApplication.StatusBar.SetText(ex.Message)
            End Try
        End Sub
    regards:
    Sandy

  • Empty row i forms mode

    If I set up a page in Table mode I can specify that I wish to have one or more empty rows when I open the page.
    In forms mode you don't have the same option. I would like to open the page and in case of no rows would like to have a new row added without having to push the Add Row button.
    Can this be done?

    The technique Ibrahim describes is in itself correct for general ADF apps. However, in this specific situation you should not use an invokeAction binding because that does not fire the JHeadstart-specific JhsPageLifecycle.onCreate method which truly sets the page in "createMode"ensuring the correct buttons and titles are displayed/hidden.
    See this thread for the correct technique:
    Re: Insert Mode
    Steven Davelaar,
    JHeadstart Team.

  • System error in program SAPLRRI2 and form FEMS_IN_FORMULA_GET-01 Message

    Hi Gurus,
    I am getting error 'system error in program SAPLRRI2 and form FEMS_IN_FORMULA_GET-01' while checking and executing a query.
    The scenario is :
    - The query is using Replacement path formula variables and when I do remove these the error disappears.
    - I recreated the same formula variable but the error message reappears.
    - We are separating systems (moving on to new system) and the query runs absolutely fine in the old system.
    - The same variable is been used in some other queries as well but they run absolutely fine without any error.
    Any suggestions what is going wrong ? Should I raise an OSS to SAP, thats going to be the final GO !!
    I have tried almost doing all things but the error remains the same. This is quiet urgent and Reply will be much appreciated.
    Best Regards
    Ritesh

    Hi,
    Thanks for the reply. OSS note 982328 becomes irrelevant in my case as we are on SAP BW 7.3 and SP SAPKW73003. So this is the most recent and latest version of SAP.
    One more update is I tried regenerating the query in RSRT/RSRT1 but it starts in debug mode. This is of more worry to me now. Any suggestions or solutions are welcome, meanwhile I will raise this to SAP.
    Best Regards
    Ritesh Singh

  • System error in program CL_RSR_CLIENT and form MENU_SEL_ITEM

    Hi,
    After a system copy (BWP to BWT) we encounter a problem with reports containing documents the BWT environment.
    At first I thought it was a problem with the Java stack, but now I am not so sure anymore.
    When running a report in RSRT (for example in BEx mode), we see the report details.
    When we use the menu on the InfoObject  which is containing the documents and than choose: goto - display documents we receive the error: "system error in program CL_RSR_CLIENT and form MENU_SEL_ITEM"
    If I run the report in the WEB we also see the report, but now we receive the message:
    Message: Error for query in BI system: JCO System name for alias BWP not found in portal
    Stack trace: com.sapportals.wcm.repository.ResourceException: Error for query in BI system: JCO System name for alias BWP not found in portal
    As you can see the error is pointing at the BWP instead of the BWT.
    Can anyone help me solve this problem?
    Regards,
    Jos.

    Thanks Martin
    The template installer was the solution to our problem.
    Points are awarded to you!
    Regards,
    Jos.

  • Form modes

    I am trying to validate a item to be not null. I was coding in the trigger when-window-closed.
    but i want to only validate if a specific button has been clicked before closing the form.
    pseudo code - if button_clicked then validate item for null
    else EXIT_FORM(NO_VALIDATE)
    i tried using a variable; make it 1 wen the button is clicked
    IF (:GLOBAL.BUTTON_CLICK_COUNT) THEN
              Exit_Form;
         Else
              alert_id := find_alert('VALIDATION');
              choice := Show_ALert(alert_id);
                   IF choice = ALERT_BUTTON1 THEN
                             go_item('POST_FIJI_AUDIT.STOCK_NO');
                   end if;
         END IF;
    but the Else clause always fires even if I dont click the button...I just logged into the application...opened the form and closed it...still it validated the item for null.
    Then i tried using the form mode when its opened :
    IF (:GLOBAL.BUTTON_CLICK_COUNT = '0' and *:system.mode = 'ENTER-QUERY'*) THEN
              Exit_Form;
         Else
              alert_id := find_alert('VALIDATION');
              choice := Show_ALert(alert_id);
                   IF choice = ALERT_BUTTON1 THEN
                             go_item('POST_FIJI_AUDIT.STOCK_NO');
                   end if;
         END IF;
    but again the else clause is entered.
    Can anyone tell me how to check the form mode when it is just opened??
    or suggest an idea on how to to the vaidation only after a button is clicked...??

    Hi All
    I just created a Form that i've attached on Oracle Ebusiness Suite R12 but my problem it's that it wont close when i click on 'X'
    I have the following trigger *'WHEN-WINDOW-CLOSED'* inside the trigger is this line of code app_standard.event('WHEN-WINDOW-CLOSED');
    I'm not sure where i'm missing it does anyone ever experience this problem.
    Thanks
    Lethu

  • Forms 6i and Forms 9i

    I am current obtaining my OCP (Developer) in about 3 weeks. 1 test to go. I was wondering. the certification is based on the 6i release, now that forms 9i is out, should this be a concern to me, as in should I start to learn forms 9i, or stick with 6i for awhile. What are the companies forecasting their usage as? Is 6i going to be supported for awhile, or is my new certification just a stupid piece of paper?
    Thanks

    Oracle9i Forms is like Forms 6i, but with added features. Therefore, whatever you learn about Forms 6i pertains to Oracle9i Forms as well. Moreover, Forms 6i client/server and character mode will be supported until 2006 (or 2008 with extended support).
    So it's not just a worthless piece of paper. :)
    Regards,
    Robin Zimmermann
    Forms Product Management

  • Form Mode problem

    In my user defined form, i start the form in FIND mode. After i entered values into the edittext and change the form mode to OK mode via SDK, the edittext value is all refresh to empty
    WHy is this happening? Is this normal? Is there any solution to this?
    Thanks

    seems to be normal..I don't know..
    First try to add a TextBox to your Form and before you change it to "Ok" Mode, set the Textbox's Text with your Edittext..
    or declare a global string variable and before changing the Form Mode, give your value to this string
    have a try..
    greetz
    Matthias

  • Form Mode validation

    Hi ,
    created Add-on Form using screen painter. in form update mode i want to make my document no fleld(user defined) to be non-editable(enabled=fasle) like normal SAP screens.i used the following code for that.
    Select Case pVal.FormUID
             case "FormId"
                    Select Case pVal.Before_Action
                             case "true"
    If pVal.FormMode = "2" Then
       OForm = sbo_application.Forms.Item("Frmuid")
                   OForm.Items.Item("Doc_No").Enabled = False
    End If
                      End Select
    End Select
    its working fine. but the event will trigger again and again until change in form mode.
    i want to eliminate execution of statement once the docnumber field is set to Enabled = False in update mode.where i can add my code exactly?
    regards,
    Ganesh kl

    hi
    in the screen painter it self use editable=false for item which u want.
    in the menu event for add menuUID and while form loading make item editable=true
    and for the menus find,first record,last record,next record,previous record use editable=false
    1.while opening the form if u r opening in add mode then make item editable=true
    2. If (pVal.MenuUID = "1282") And (pVal.BeforeAction = False) Then   'Add mode
    'make item editable=true
    endif
    3. If (pVal.MenuUID = "1281") And (pVal.BeforeAction = False) Then   'Find mode
    'make item editable=false
    endif
    4.If ((pVal.MenuUID = "1288") Or (pVal.MenuUID = "1289") Or (pVal.MenuUID = "1290") Or (pVal.MenuUID = "1291")) And (pVal.BeforeAction = False) Then   'navigation mode
    'make item editable=false
    endif
    hope this helps u
    regards,
    varma

  • What exactly is bitmapped report and character mode report/

    hi
    please differentiate between bit mapped and character mode reports
    advantages and disadvantages?
    when to use what?
    thanks in advance

    A character mode report is a ascii-report without colors, drawings, bit-mapped patterns, italic text and so on. Have a look at chapter 5.3.1 here: http://download-uk.oracle.com/otn_hosted_doc/forms/forms/A73073_01.pdf

Maybe you are looking for