Enabling a push button in query mode only

Hello!!
How do you enable a push button only in query mode? Do I need to write some code? If so can anybody help?

Use the following code
if :system.mode = 'ENTER-QUERY' THEN
SET_ITEM_PROPERTY('BUTTON',ENABLE,PROPERTY_TRUE);
ELSE
SET_ITEM_PROPERTY('BUTTON',ENABLE,PROPERTY_FALSE);
END IF;

Similar Messages

  • How to Make DFF in Query Mode only ...

    Hi Gurus,
    I have some Doubts in DFF, Say I have Two Segments
    Segment A: Driving Liciense
    Segment B: Passport Information
    My Requirment is how to make Segment B as Query mode only ..
    Any one pls help me on this ...
    with regards
    User600722

    Hi
    Can't remember if there's an option in the flex definition form, as enable check box will cause the segment to not show if unchecked. If that's not the solutions, there's the flex definition call that may enable You to modify the flex definition on form launch, but You'll have to look on the flexfield's user guide as I'm not sure if read only can be applied to an individual segment or it's for all of them.

  • How to Enable a Push Button In The Form That Is Always Greyed Out?

    Greetings All,
    I am trying to enable an existing "Return" Push Button(PB) which is always greyed out whenever the form is called in either an update or review mode. After some research, I found that this PB's functional property is "Enabled" (i.e. the enabled value = 'Yes'), and it is coded programatically set 'Off' in 30 places and 'On' in 2 places in the form that I inherit from my predecessor by using the following code:
    SET_ITEM_ON_OR_OFF('BLK_UPDATE.PB_RETURN', <XXXXX>);
    Where <XXXXX> could be either TRUE or FALSE. I've been spending a lot of time in trying to enable this "Return" PB (without modifying the existing programming code) by adding the 'SET_ITEM_ON_OR_OFF' built-in command to set the PB on in WHEN-BUTTON-PRESSED TRIGGER for the PB_RETURN and WHEN-NEW-FORM-INSTANCE Trigger, but all tries in vain. Could you please help me with the following question?
    What is the easiest way to enable a PB that is set programmatically?
    Is there something else I should know to enable a PB, in addition to what I have already mentioned above?
    Thanks in advance,
    Jinlan
    --

    Thanks all for your information and help. I included the following code, as suggested by Manu, in WHEN-MOUSE-DOWN TRIGGER for the PB_RETURN and WHEN-NEW-FORM-INSTANCE TRIGGER:
    SET_ITEM_PROPERTY ('BLK_UPDATE.PB_RETURN_WORK_REQ', ENABLED, PROPERTY_TRUE);
    and I made sure there was no " SET_ITEM_ON_OR_OFF('BLK_UPDATE.PB_RETURN_WORK_REQ', FALSE);" statements after the above code, but, the "Return" PB is still in grey; in other words, it is still not accessible when my form is called.
    Perhaps, I need to place the above SET_ITEM_PROPERTY code in a different trigger other than the triggers mentioned above, uh? Any thoughts on this?
    Manu,
    You are absolutely right that the "SET_ITEM_ON_OR_OFF" is an ih-house written procedure which is defined/stored in the Attached Libraries. (I should have checked before making the "built-in" assumption. Thanks for catching and clarifying this.) Please help me with the following questions:
    How do I view the procedure in the Attached Libraries???
    Thanks in advance,
    Jinlan
    --

  • Push button in enter_query mode

    Hi all !
    I've got the following Problem in Forms 4.5:
    When i enter the query mode with "enter_query",
    i cant push any other (user defined) button i have placed on the form (other Blocks). Thats my problem....
    It seems, that my buttons have to belong to the "Query-Block" (because if so-it works).
    But i have got some other forms sources - and in these forms the buttons DONT belong to the Query-Block and i CAN push the Buttons in ENTER_QUERY - Mode.
    Please, can somebody can give me e hint .... ??

    Frank: Thats what i thought too -but i saw (in other Sources) that it could be done, but how..
    Eugeniy I Duzhinskiy:
    So, many Thanks to you. It works fine !!!!
    (Its great to see there are some other Forms Users out there :) )

  • LOV button in query mode

    Why is an LOV button not shown when the block is in enter-query mode, but there is still an LOV available (using F9 button)?

    This has already been filed as a Forms bug, no. 2179613 'EXTEND APP.UI.LOVBUTTONS TO ALLOW DISPLAY OF LOV IN ENTER-QUERY MODE'.
    "Currently the facility to display LOV buttons automatically - the setting app.ui.lovButtons=true in the registry.dat file only works in data entry mode. It would be useful to be able to display the generated button in Enter query mode as well."
    The priority is "Minor Error, No Loss of Service", so I doubt if this will be fixed soon.

  • Enable push button

    Hi,
       I need to customize an infotype. I've created one push button on the screen, when click on the button, a table control will show out.
      However, I don't know why when I display the screen in PA30, the push button show disabled mode and I couldn't click on it.
      Do anyone know why and how can I solve it?
      Many thanks in advance.

    in the lay out check tha attributes of thatbutton.check the display tab i the attributes.in that check box corresponiding to invisible should not be checked(empty).
    regards,
    bharat.

  • LOV button in enter query mode

    Hi
    How do I show LOV button(Forms 9.0.2) in enter query mode?As of now LOV button is displayed only in the create mode.
    Binod.

    Hi Andrew,
    Thanx for the reply. Actually I have not associated any trigger for this. Here Im refering the LOV button which comes inside the respective field(I mean we change the property lov_button to 'true in the regitry.dat). This button is not getting displayed in the enter query mode.
    I hope now you are clear with the query.
    Binod.

  • Radio button getting unchecked when form in query mode

    There are 4 radio buttons on my form.Initially when the form is opened one radio button is checked.But when the form is in query mode that radio button got unchecked.Is there any way that the initial checked radio button remains checked even the form is in query mode ?
    Message was edited by:
    user496853

    Hi,
    Solutions given by Kevin and Zaibiman is not applicable for my form as the radio button will be in data base block only.This is the requirement of the form.
    The other solution given by Zaibiman was to set the radio button item when entered in query mode , i have tried that but that is also not working.
    Pranati,the solution given by you i have also tried that ,but that has not solved the issue,Radio button get unchecked when eneterd in query mode.
    Please elaborate and suggest.
    Thanks,
    Kirti

  • Enabling Push Buttons

    Hi Gurus,
    I have a column of push buttons in my table control, each push button for each line item.
    According to my requirement, I disabled the push button column initially, it will only get enable depending
    upon each line item's condition.
    Like, 1st row, if rad2 = 'x' , then the push button for that line should get enabled.
            2nd row, if rad2 = 'X', then the push button for that line should get enabled.
            3rd row, if rad2 NE 'X', then the push button for that line should be disabled.
    I tried a lot , but its not happening. May be because I disabled the column based on the screen group.
    Can anyone please help me on this ?
    Thanks
    Chandan

    Hi,
    First assign some function keys for Radio buttons..
    and assign the Logic for enabling and disabling screen logic in the PBO..
    Refer:
    Take the group1 for the screen fields that you have taken on screen as ABC and then follow code to disable fields, in PBO:-
    IF <condition>. "as per your condition
      IF screen-group1 = 'ABC'.
        LOOP AT SCREEN.
          screen-invisible = 0. "to disable screen fields
        ENDLOOP.
        MODIFY SCREEN.
      ENDIF.
    ENDIF.
    Now say if you want to enable fields on some condition then you may use:-
    IF <condition>. "as per your condition
      IF screen-group1 = 'ABC'.
        LOOP AT SCREEN.
          screen-invisible = 1.  "to enable Push Button
        ENDLOOP.
        MODIFY SCREEN.
      ENDIF.
    ENDIF.
    Regards,
    Prabhudas
    Edited by: Prabhu Das on May 11, 2009 7:51 PM

  • Cannot View SQL button in XI 3.1 edit query mode

    Hi All,
    I am using Webi XI 3.1.
    I dragged the objects into results pane and want to view the SQL for the query. But I don't find the SQL button at all.
    Please help me where to get that!

    Hi George Pertea,
    Thanks for the reply.
    I am in the edit query mode and also the query tool bar is enabled.
    But my "view sql" button is disabled,I cannot click on it.
    I am logged in as "Admin" , so what is the problem.
    I was able to do that in XI R2 before.
    Please help me!
    Thanks

  • Push button query!!!!!!! help needed

    hello all,
    I HAVE USED THIS LOGIC FOR MAKING THE DATA ASCENDING AND
    DESECENDING,AND TRIED ALL THE
    SOLUTIONS THAT WERE SUPPLIED BY MY FRIENDS IN THIS GROUP,BUT COULD NOT
    CHANGE THE
    VISUAL ATTRIBUTE OF THE BUTTON.I AM REPEATING MY QUERY.I WANT TO HAVE
    THE
    PUSH BUTTON TO SIGNIFY VISUALLY THE ASCENDING AND DESCENDING DATA I.E
    WHEN THE
    DATA COMES IN THE ASCENDING WAY,THE PUSH BUTTON
    SHOULD HAVE A "inverted v"ACC CODE"" ALONG WITH NAME "ACC CODE" I.E IT SHOULD
    LOOK LIKE "ACC CODE "ACC CODE inverted v "
    AND WHEN THE DATA COMES IN THE DESCENDING WAY,THE PUSH BUTTON
    SHOULD HAVE A " v".I.E IT SHOULD
    LOOK LIKE "ACC CODE "ACC CODE' v' ".SO PLZ HELP me TO GET THIS .
    Any changes should be made to nls_lang parameter in registry???????????
    PLZ LET ME KNOW WHAT IS FONT THAT I SHOULD USE.U CAN CHANGE THE CODING
    THAT I HAVE WRITTEN
    IN THE "WHEN BUTTON PRESSED" TRIGGER OF ACC_CODE.
    BEGIN
    go_block('age_tran');
    BEGIN
    IF
    get_item_property('PB_ACC_ORDER',LABEL)='&Acc Code' THEN
    set_block_property('age_tran',order_by,'acc_code ASC');
    execute_query(no_validate);
    SET_ITEM_PROPERTY('PB_ACC_ORDER',LABEL,'&Acc Code'||'
    '||upper(chr(94)));
    ElSIF
    get_item_property('pb_acc_order',LABEL)='&Acc Code'||'
    '||upper(chr(94)) THEN
    Set_block_property('age_tran',order_by,' acc_code DESC');
    execute_query(no_validate);
    SET_ITEM_PROPERTY('pb_acc_order',LABEL,'&Acc Code'||' '||'v');
    ELSE
    Set_block_property('age_tran',order_by,'BALANCE DESC');
    execute_query(no_validate);
    SET_ITEM_PROPERTY('pb_acc_order',LABEL,'&Acc Code');
    END IF;
    END;
    END;
    THANKING U

    Hi Shiju,
    U can use the combination of fornt slash(/) and back slash(\) to fulfil ur requirement.
    For ascending u can use /\ and for descending u can use \/. Does this solve the purpose?
    I think it will.
    Suprabhat.

  • My ipod nano 4th generation only works when it is plugged into the computer; otherwise, the screen turns black and it is completely unresponsive to any efforts such as pushing buttons, reseting, etc. What should I do?

    My ipod nano 4th generation only works when it is plugged into the computer; otherwise, the screen turns black and it is completely unresponsive to any efforts such as pushing buttons, reseting, etc. What should I do?

    Sounds like the battery is shot and in need of a replacement.  You can have Apple replace the battery for a flat fee or you can send it into a third party repair center for a bit less.
    Not much else you can do for troubleshooting this one.
    B-rock

  • 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

  • Starting form in Enter-Query mode disables some buttons on Smartbar

    Whenn I run a form (on the Web) which starts in Enter-Query mode, the buttons "Execute Query" and "Enter Query" are disabled on the Smartbar. Also the corresponding menu options are disabled. Besides, it is psossible to use the appropiate keys (in my case: F7 and F8).
    Has anyone experienced the same problem and is there a solution?
    Let me know.
    Thanx

    Frank: Thats what i thought too -but i saw (in other Sources) that it could be done, but how..
    Eugeniy I Duzhinskiy:
    So, many Thanks to you. It works fine !!!!
    (Its great to see there are some other Forms Users out there :) )

  • How do i enable my back button already tried in safe mode.

    how do i enable my back button i have already tried in firefox safe mode still no good.

    See http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

Maybe you are looking for

  • How to print multiple items in SAPScripts

    Hi gurus, I have a list of items to print out in SAPScript but I can implement it. I've searched this forum for over a day and I can't find the correct answer. I post my code here. Hope you can help me. Thanks in advance. __P/S:__ I found that someon

  • Mac mini starts so slowly

    Mac mini starts so slowly

  • Connecting ODI with MS Access

    Hi, How do I connect MS Access with Data Integrator? Would appreciate the help. Chanduwar

  • Itunes Not updating even when i am upgrade mavericks os 10.9.X

    Hi, Here i have attached my screenshot Above these screenshot collect my macbook pro. Please resolve this problem and update me as soon as possible Thank You

  • Complex FFT VI - output units

    I am currently post processing time domain accel data. I run it through the Complex FFT VI in order to transfer it to the frequency domain, which works wonderfully. Unfortunately, I'm still a bit confused as to what the output units of the plot are..