Programatically knowing mode of Form

Hi,
How can I programatically find out whether my form is running in
Query only mode in Forms 5.0 / 6.0 ?
Thanx in advance.
--- Ravi
null

Ramesh Pinjala (guest) wrote:
: Ravi (guest) wrote:
: : Hi,
: : How can I programatically find out whether my form is
running
: in
: : Query only mode in Forms 5.0 / 6.0 ?
: : Thanx in advance.
: : --- Ravi
: Their is a system variable called system.FORM_STATUS ( I am
not
: sure of the name you can find it from the on-line help !)
which
: states if your form is in query mode etc.
: Good Luck
: Ramesh Pinjala
Hi,
Thanx for the reply, However system.form_status will only give
in which mode the form is currently running.i.e query, changed,
new.
I would like to rephrase my query as
When we call a form we can call in either 'QUERY_ONLY' mode
or 'NO_QUERY_MODE'. Now in the called form I want to know
programatically in which mode it is called. And we cannot use
the system variable FORM_STATUS as it is not related with the
status.
Thanx in advance.
--- Ravi
null

Similar Messages

  • How to know that a form is running in query-only mode

    I have a form that can run in query-only mode or non-query-only mode depending on the current user who logs in, and I want to change its apprearance dynamically when it's in different modes (for example, enable or disable buttons). Is there a built-in or system variable from which I know that the form is running in query-only mode or not?
    Thanks,
    Shu

    The global variable solution is what we are using now. I thought there are some unpublished built-in or system variables. In my application, there is a public "menu" form from where hundreds of forms are CALLed with some in query-only mode and some in non-query-only mode depending on the current user role. :PARAMETER.QUERY_ONLY will always be 'NO' because the "menu" form is started in non-query-only mode. But it's good to know about it.
    Thank you very much for your replies,
    Shu

  • Runtime Compatibility Mode in Forms 10g

    Dear All
    I would like to achieve the Runtime Compatibility Mode in Forms 10g, is there any work around to do this. Kindly let me know. This is little bit argent
    Thanks in advance
    by
    Thangaraj

    Thank for your reply Bernd
    I need to achieve the same functionaliy in 6i, the scenario is like this,
    i have a madatory item and i will set the runtime compatibility mode 4.5 then at runtime i can able to leave the filed empty if i press the SHIFT+TAB key, if i press tab or enter key alone the error message should be displayed "Field must be entered" , this is functionality is working fine in 6i forms if you set the Runtime Compatibility Mode is 4.5.
    but this is not heppening in 10g forms, because we have the same source in 6i whenever there is a need we will compile it with 10g template and give to the customer, now its not working so its creating big trouble.
    i have seen something in meta link but that is not feesible. pls do the need ful
    Thanks
    Thangaraj

  • Can you programatically detect that a form has been called by another form?

    Can you programatically detect that a form has been called by another form using Open_Form?
    When closing a form I want to do one thing if it was opened stand-alone and another thing if it was called using Open_Form by another form.
    Thanks in advance.

    Maybe, Tony, also
    GET_APPLICATION_PROPERTY built-in ; it can
    be used to retrieve information about the calling (parent) and called
    form (child).
    The following example describes a way to perform a query on the child form
    using a value from the parent form; if the form is a child form, it first
    executes a query, otherwise the form goes into insert mode automatically.
              WHEN-NEW-FORM-INSTANCE
              ======================
              BEGIN
                   :GLOBAL.APP_NAME := GET_APPLICATION_PROPERTY(CALLING_FORM);
                   IF :GLOBAL.APP_NAME IS NOT NULL THEN
                        EXECUTE_QUERY;
                   END IF;
              END;Regards

  • How to disable a Entire row in a Matrix in Find Mode (User Form)

    Hi,
    How to disable a Entire row in a Matrix in Find Mode (User Form)
    Regards
    Jambu

    Hi,
       Iam using Bubble event = false in click event but the matrix row
    is allow to edit but we cant save the document in Find Mode That is fine.
    What is my actual requirement is In find mode matrix Row not allow to enter the data .
    For examble In ADD mode i enter the data in Three rows (Item Section - Matrix) and
    save the document. Whwn i open the document in find mode the three row is not allow
    to editable like the same functionality of PO, sales Order, etc ..
    Regards
    Jambu

  • How to display LOV on web in ENTER-QUERY mode with form or block query only.

    Hello all
    How can I display lov automatic on the web in from enter-query
    mode in form or block query only mode.
    thankx

    If I understand correctly your explanation, your called form
    fails to activate the LOV in enter-query mode when it is deployed
    and test on the browser.
    So lets proceeed like this, to make it work in all environments,
    let us programetically activate the LOV.
    HOW?
    In the called form, write in the WHEN-NEW-ITEM-INSTANCE TRIGGER
    at block level (if have more than one LOV)
    IF :SYSTEM.MODE = 'ENTER-QUERY' THEN
    IF get_item_property(:system.cursor_item,lov_name) IN ('YOUR
    LOV1', 'LOV2' etc) THEN
    IF SHOW_LOV(get_item_property(:system.cursor_item,lov_name))
    THEN
    NULL;
    END IF;
    END IF;
    END IF;
    The above code maybe tweak to suite your need and condition.
    This way, we explicitly make the LOV appear in ENTER-QUERY mode
    whenever the user clicks on an item with an attached LOV.
    Hope this helps.
    Mohammed R.Qurashi

  • Know if a form is opened in ItemEvent

    Hi,
    How do you know if a form is opened when you are in the ItemEvent ?
    I would like to know if the Sales Order form is opened

    Hi,
    I did change the loop for this :
    public static bool IsSAPFormExist(SAPbouiCOM.Application SBO_Application, string FormTypeEx, int TypeCount)
        foreach (SAPbouiCOM.Form Form in SBO_Application.Forms)
            if (Form.TypeEx == FormTypeEx && Form.TypeCount == TypeCount)
                return true;
        return false;
    Usage :
    if (IsSAPFormExist(SBO_Application, pVal.FormTypeEx, pVal.FormTypeCount))
        // Your code here...
    Edited by: Marc Roussel on Sep 8, 2011 8:10 AM
    Edited by: Marc Roussel on Sep 8, 2011 8:13 AM

  • You sent me a notice letting me know that adobe forms central will not continue any more. What tool will replace it? How can I continue creating forms? Thanks for your responses.

    You sent me a notice letting me know that adobe forms central will not continue any more. What tool will replace it? How can I continue creating forms? Thanks for your responses.

    Hello Chalo,
    There are many FormsCentral alternatives. Our solution, JotForm, has the most complete Import Wizard both for your forms and for your response database.
    http://www.jotform.com/formscentral/

  • How do I know if the form mode

    Hi,
    I want to know when the user clicks the new button on the tool bar when my user form is in focus.
    I'd like to clear all the controls on the form and have an empty screen.
    Thanks
    Tayo

    Hi
    put this code in menuitemevent
    If pval.menuid=1282 and SBO_App.Forms.ActiveForm.Type = "your form name" Then
         'clean up code
    End If
    tell me if don't understand i wrote it fast, sorry
    regards
    Salvador biot

  • Programatically knowing Calculation mode of Item

    Hello!
    Is it possible in Oracle Forms 10.1.2.0.2 to get values of the "Calculation Mode", "Summarized Item" etc properties?
    Thank you

    I'm sorry, I'll try to explain
    I have PL/SQL Library with
    procedure Show_Item(in_blockItem_tx varchar2) is
    it_id Item;
    begin
         it_id := Find_Item(in_blockItem_tx);
    code;
    Set_Item_Property(it_id, VISIBLE, PROPERTY_TRUE);
    Set_Item_Property(it_id, INSERT_ALLOWED, PROPERTY_TRUE);
    Set_Item_Property(it_id, UPDATE_ALLOWED, PROPERTY_TRUE);
    code;
    end;
    if in_blockItem_tx is Calculated field I get the error...
    right now I hardcoded filed names
    if in_blockItem_tx not in ('FORECONCILEBP.INIT_CBR_TOTAL', '***') then
    Set_Item_Property(it_id, INSERT_ALLOWED, PROPERTY_TRUE);
    Set_Item_Property(it_id, UPDATE_ALLOWED, PROPERTY_TRUE);
    end if;
    Is it possible to understand (runtime) if "Calculation Mode" property is set to 'Summary' or 'Formula'?
    Thank you

  • KEY MODE in forms

    Hello ,
    I need to update "KEY MODE" in forms6i to "Non-Updateable" value.and then will have to compile the forms.
    Please let me know. how can I update this ?? I am new to forms.
    Thanks, Rajeev

    I need to update "KEY MODE" in forms6i to
    "Non-Updateable" value.and then will have to compile
    the forms.
    Please let me know. how can I update this ?? I am new
    to forms.
    You need to read the Form 6i documentation if you are new to Forms and post to the correct forum. However, I will give you a hint on what to do
    When you want to run run Oracle Forms againt a Non-Oracle Database, you use Key Mode to specify how Forms uniquely identify rows in the Non-Oracle database.
    Key Mode is a Block Property in a Form. So you find in under Database Section when you open the Properties Palette (or Property Sheet) for that Block.

  • How to verify when i change mode in form of standard?

    To All
             I want to know that how to coding if I change mode on screen Incoming Payment from "Add" mode to "OK" mode. I develop it using vb.net to catch event. This post I want to insert button into standard screen by in first time I created button but I disable it but I click "Last Data Record" in menu bar system will change to "OK" immediately. I want to know coding catch changing mode. example code as below

    Try
                If pVal.FormType = 170 And pVal.EventType <> SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD And pVal.Before_Action = False Then
                    If pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD And pVal.Before_Action = False Then
                     Then
                        oForm = SBO_Application.Forms.Item(FormUID)
                        oItem = oForm.Items.Add("btnPrint", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
                        'Set Size and Location
                        oItem.Top = 432
                        oItem.Left = 160
                        oItem.Width = 60
                        oItem.Height = 22
                        oButton = oItem.Specific
                        oButton.Caption = "Print"
                        SBO_Application.MessageBox("Button was added")
                    End If
                End If
            Catch ex As Exception
                MsgBox(Err.Description)
            End Try

  • Expert query mode in forms

    Hi all,
    Is there any way, that I can enable 'expert query mode' in oracle forms? Frankly, I don't know what does that mean. I got a call from our vendor finance consultant who does training about an application, that uses oracle forms. He says that other customers, that use the same application are able to enable 'expert query mode' and this feature is stored somewhere in oracle forms and not in the application.
    I wonder, if somebody could give a hint, how to enable it, as they are struggling to retrieve the data in a sorted mode..
    Thanks beforehand,
    Maria

    Unfortunately, I don't know much about this...
    We are implementing Banner ERP system from SunGuard. He says that usually, he is able to use expert query within the Banner which is build on Oracle Application Form. They use Banner interface to navigate through the forms. I was told that it doesn't work in our case and wonders if I can enable it somewhere outside the Banner...
    I am sorry for the confused description, but that's all that I know.. Just thought that probably somebody knows something about it.
    Thanks for help anyway,
    M.

  • How do I know if a form has been successfully validated?

    I have a form with a bunch of text fields. When users submit() the form, I display the updated form in "Read-Only" mode, by setting up textField.setReadOnly(true). However, I don't want the form to go Read-Only if the validation was not successfull. Is there a way to figure out of the validation was successful or not? (something like this.form1.isValid(), etc.)
    Thanks

    I agree that putting afterUpdateModelValues will do the trick, but I do not agree that it is necessary to do so.
    With the JSF lifecycle, the action method is not called if there are conversion or validation errors.
    Here is a very simple example that illustrates this. Create a page (make it the start page)
    Add textField1, button1, and messageGroup1.
    Set required to true (check the box) for textField1.
    Double-click the button and change the action method as follows:
        public String button1_action() {
            error("action method called");
            return null;
        }Run the program. Don't put anything in the text field and click the button. You will not see the message "action method called". Now put something in the text field and click the button. Now you see the message.
    So, how are you validating the fields? (1) Are you using validators from the palette, as shown in http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/validators_converters.html? (2) Or are you writing your own custom validators, as shown in http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/customvalidator.html.
    If (2), are you throwing ValidatorExceptions?

  • Developering ADF form in query mode (Oracle forms simulation)

    Hi,
    we have a requirement for developing the existing Oracle form using Oracle ADF. The existing Oracle form displays the form in query mode by default. We can enter the search criteria in any of the text fields and then execute query to get the results. If the user does not enter any search criteria, then the form loads specific record based on default criteria into the form. Could you please help developing similar form using ADF.
    At present I created the view object with one bind variable and dragged the view as ADF form to the jspx page. Then I am launching the form in query mode (executing the find method on the view object using operation binding at the time of loading the page). After entering the query criteria in the form, If I click on a button I am executing a method in the managed bean. In the managed bean I am executing the "Execute" operation on the view and it is working fine.
    But my problem is if the user does not enter the search criteria I have to pass default parameters to the view object and return the default record in the form.
    Can you please help in resolving the issue.
    Thanks and Regards,
    S R Prasad

    Hi Frank,
    Thank you for providing information. I created the query panel with the table by dragging all the named criteria. But this is not the look we are expecting for this form. As we have to deveop ADF form with the same behavior as oracle forms, the user must be in a position to edit the data in the same field as that of query field.
    As an example, we have to design a form for Dept table. We have to display all the columns of the dept view in the form at the time of launching the form in query mode. Once the user enters any search criteria in the form, we have to perform search and display the record(s) matching the query criteria in the same columns displayed in the form. User should not see any changes in the form layout.
    If the user does not enter any data in the form, then we have to display the record(s) in the form with the specific department id(This department id can be calculated based on the data in another table).
    Can you please help us in resolving the issue.
    Thanks and Regards,
    S R Prasad

Maybe you are looking for

  • With the error message in my sqlnet.log,what can I do?

    I am installing Oracle IAS Today in my win2000 server system.When I restart my computer,I fond these message in the sqlnet.log file : Fatal NI connect error 12515, connecting to: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=yfz)(PORT=1521))(CONNECT_DATA

  • Problem with role and user; user can't see the table

    Hello forum, I've created a role: CREATE ROLE enr_service; GRANT CONNECT TO enr_service; GRANT ALL ON Locataires TO enr_service; GRANT ALL ON Batiments TO enr_service; GRANT ALL ON Sportifs TO enr_service; GRANT SELECT ON Epreuves TO enr_service; and

  • I am a beginner at Final Cut Pro. Need help converting MPEG-2 to use.

    I am a beginner at Final Cut Pro. I have mpeg-2 video footage that I am trying to import the footage into Final cut, but can't. I understand I need to convert the file format. I am unfamiliar with how to go about the converding file formats and the c

  • I need a driver for hp 35660a, does anyone have one?

    I am lookng at purchasing an hp 35660A spectrum Analyzer and looked for a labview driver for it and couldn't find one. Does anyone know of any or is it hrad to develop a driver and could you point me in the right direction on how to do this. Thank Yo

  • Database Performance Monitoring

    Hi, I use oracle 11.2.0.2.0,IBM AIX 6.1 operating System. My client/User complainting that the Application process is taking long time than usual,especially when they implementing some module in their applications. So when i closely monitoring my pro