Set search text when form is in query mode

Hi forum members,
is it possible to set the value of a textfield when a form is in query mode?
In our form you can enter query mode with F7 and execute the query with F8.
When you go back to query mode with F7 and then press F7 again, the search criteria of the past query appears.
Now in our form there is an alternativ search, that can be executed in query mode with F9. A different search canvas appears then with a more detailed search.
When I go back from that canvas to the initial canvas, change to query mode with F7 and try to get the last search criteria with F7, not the last search criteria (from F9 search) appears, but the first one (F8 search).
I have tried to copy the search value into an invisible textfield and then copy it back to the search field when F7 is pressed after the alternative search canvas was closed.
Instead of appearing in the search field, a new record is created in background.
Is there any other way to set the value of a textfield in query mode?
Thanks,
Marco

Hi Craig,
thank you for this hint.
Unfortunately it does not solve my problem.
My goal is to fill the search fields with values when they are in query mode.
I try to explain it step by step:
Step 1
- In my Form I change to query mode with F7.
- I fill a search field, e.g. Name: TIGER.
- Then I execute the search with F8.
- Record is displayed in the block
Step 2
- I press the F7 Button to change to query mode again
- Now when I press F7 again, the search values from the last search (TIGER) appear (I think it is a standard forms functionality, isn't it?)
- I execute the search with F8
- Record is displayed
Step 3
- Again I change to query mode with F7
- I fill the search field (this time Name: SCOTT)
- Now advanced search is executed with F9
- A special search canvas opens over the form with result records and more detailed information to the result
- I close the search canvas
Step 4
- Again I change to query mode by pressing F7
- I want to get the search value from the last search (SCOTT) by pressing F7 again
- Value from the first search appears (TIGER)
My goal is to save the search value from step 3 anywhere (in a variable or copy field or something) and get it back in step 4 when the form is in query mode.
It seems to me that it is not possible to fill fields that are in query mode, is that right?
Thanks a lot!
Marco

Similar Messages

  • How do I set form automatically in query mode

    Hi !
    I have to pass value of one field as parameter from one form to
    another form and then execute the query on the next form based
    on the passed value of the parameter. (all this should happen as
    soon as I press one button on the first form).
    My problem is that unless I put the second form in the enter
    query mode before accepting the value of the field, whatever
    value I pass on from the first form will not be of any use.
    How do I set the mode of the form to query mode. Since
    system.mode is the read only variable and no value can be
    assigned to it, so how can I handle this situation ?
    Thanks in advance,
    Shobhit
    null

    Hi Shobhit,
    Try ENTER_QUERY command in the PRE-FORM trigger of second form.
    EXECUTE_QUERY in WHEN-NEW-FORM-INSTANCE and set the parameter
    values to the respective fields in PRE-QUERY trigger.
    Lalit
    Shobhit Kumar (guest) wrote:
    : Hi Steve !
    : Thanks for the answer. but I want a bit different
    functionality.
    : I have already tried using execute-query (built in) in the when-
    : new-form-instance and passed the value of the parameter in the
    : field. But all that is happening is that the value is just
    : sitting in the field and query is not getting executed
    : automatically. I am using forms 5.0 and to enter a query we
    need
    : to change the mode of the form in the query mode (by clicking
    : the enter->query button) and then enter the values in the
    fields
    : that would be used to build the query and the as soon as I say
    : execute query it executes the query and displays the results.
    : What I want is that as soon as I press a button in a form,
    value
    : of one field should go to another field in a second form and
    : then the query should get executed automatically in the second
    : form and the results should be displayed in that form.
    : Any suggestions ?
    : Regards,
    : Shobhit
    : Steve (guest) wrote:
    : : You might want to try placing the builtin EXECUTE_QUERY
    : : in the WHEN-NEW-FORM-INSTANCE trigger to auto query the form.
    : You
    : : may also want to use the SET_BLOCK_PROPERTY(DEFAULT_WHERE,
    : : '.......'); to restrict queried records or set :block.item
    : values
    : : in a PRE-QUERY Trigger.
    : : Shobhit Kumar (guest) wrote:
    : : : Hi !
    : : : I have to pass value of one field as parameter from one
    form
    : to
    : : : another form and then execute the query on the next form
    : based
    : : : on the passed value of the parameter. (all this should
    : happen
    : : as
    : : : soon as I press one button on the first form).
    : : : My problem is that unless I put the second form in the
    enter
    : : : query mode before accepting the value of the field,
    whatever
    : : : value I pass on from the first form will not be of any use.
    : : : How do I set the mode of the form to query mode. Since
    : : : system.mode is the read only variable and no value can be
    : : : assigned to it, so how can I handle this situation ?
    : : : Thanks in advance,
    : : : Shobhit
    null

  • Force exit form when I am in query mode.

    I have created one button just launch Exit_Form built_in. Ok my forms exit, but when I stay in query mode, I need to click at button twice, first to abort query, the second time to exit form. How can I configure that to close my form automatically?
    I have tried Abort_Query folling Exit_Form, but does not work as well.
    Thanks all.

    In the trigger that contains the EXIT_FORM check for if you are in ENTER_QUERY mode. If you are issue two EXIT_FORM otherwise one.

  • How to disable field validation when block is in query mode ?

    Hi,
    we use Jdev 11g TP3 and implemented a button to set a block of input fields in query mode.
    Some of this fields are mandatory.
    When performing an execute operation this mandatory fields are validated and the JS error message pops up.
    In query mode this fields must not be mandatory !
    How to disable the validation of those mandatory fields when the block are in query mode?
    BR
    Peter

    Hello Peter,
    A little correction to Chris' suggestion, it should be:
    <af:inputText value="#{bindings.<your field name>.inputValue}"
                        label="#{bindings.<your field name>.hints.label}"
                        required="#{!bindings.<your iterator name>Iterator.findMode && bindings.<your field name>.hints.mandatory}">
    ...etc...The only difference is the removal of the ? : operator since it isn't required and represents both an additional parsing and processing effort. Go micro-optimization!
    ~ Simon

  • GETTING FORM OUT OF QUERY MODE (URGENT)

    I have a form which start in Query mode, user enter in say employee ID. If that employee exists than user bring its record else create a new record.
    What I did is start in query mode, when user enter employee ID, I check to see if record exist, if it does then I just use EXECUTE_QUERY. Now I don't know what to do for new record. If I use CREATE_RECORD that doesn't work because form is in query mode. How can I make form come out of query mode programmically?
    I am using Form 5. Trigger I am using is KEY_NEXT_ITEM in Employee ID field.
    Need urgent reply
    Thanks

    Well Faisal, I have tried this code on the EMP table in the user Scott. I think it will solve your problem
    use the key-next-item trigger
    declare
    empid emp.empno%type;
    begin
    select empno into empid
    from emp
    where empno = :empno;
    clear_block(no_validate);
    set_block_property('emp', default_where, 'empno=' &#0124; &#0124; empid);
    execute_query;
    set_block_property('emp', default_where, '');
    next_item;
    exception
    when no_data_found then
    next_item;
    end;

  • FRM:41361 Cannot navigate out of form in 'Enter Query Mode'

    Hi,
    I am using a master - detail block in my form.When I query the master block I am getting this error message
    FRM:41361 Cannot navigate out of form in 'Enter Query Mode'
    I have given DO_KEY('ENTER-QUERY') in WHEN-NEW-BLOCK-INSTANCE trigger of master block.
    and in property palette of Master block I have given the next navigation block as Detail block.
    According to the value which is queried in Master Block the Detail block should be populated.
    My form should open in 'Enter Query Mode'.This problem always happens from second time onwards
    I open the form.When I open the form first time this problem is not occuring.
    Can anyone suggest a solution for this
    Thanks,
    Nasiya

    Have you written a Key-EntQuery trigger at the Master block or the form level,
    If yes, then can you put that code here.
    The NEXT-NAVIGATION-BLOCK is only used for navigation when you use a next-block built-in on a key-trigger.
    Have you written a ENTER-QUERY command on any trigger that fires prior to the said WHEN-NEW-BLOCK-INSTANCE trigger?
    If yes, then thats the reason that the first time you run the form, your form is in ENTER-QUERY mode.
    Also, maybe execute on enter-query fails and hence the blocks are not getting populated.
    Also, ENTER-QUERY is always on a single block. And while the block is in enter-query mode, navigation out of that block is prohibited.
    you have to either have a successful EXECUTE-QUERY or use:
    EXIT_FORM(NO_VALIDATE) to come out of ENTER-QUERY mode.

  • Calling form in Enter-Query mode

    Hi
    how can i Have a form called from the menu (generated with
    headstart) start in Enter-Query mode ?
    Is there any method to do this easily ??
    TIA
    Olivier
    null

    Olivier,
    Look in the Headstart Template Package users guide. In the
    Runtime Behaviors chpt, under Inter-Form Navigation, Named Passed
    Values and Argument Passed Values, you will find an explanation
    of how to start a form in Enter-Query mode.
    Regards,
    Lauri
    Olivier GIBERT (guest) wrote:
    : Hi
    : how can i Have a form called from the menu (generated with
    : headstart) start in Enter-Query mode ?
    : Is there any method to do this easily ??
    : TIA
    : Olivier
    null

  • Calling another form when current form is in query mode

    I have a form that is in query mode. When I select a menu option that calls another form through new_form, I get the error 'FRM-41009: Function key not allowed. Press Ctrl+F1 for list of valid keys.'
    I would like trap this error, cancel the query and invoke the new form. I have tried to do this by code similar to this:
    if :system.mode = 'enter-query' then
    exit_form ;
    end if ;
    new_form('someform') ;
    (since exit_form in query mode is supposed to cancel the query).
    But in this case, the trigger ends with the execution of the 'exit_form' statement.
    Any help would be greatly appreciated.
    Thanks and regards,
    Rajesh Jayaprakash
    [email protected]

    I think the following will work:
    When you call the EXIT_FORM builtin, Forms cancels out of Query Mode but also stops the current PL/SQ execution - which is annoying.
    I believe, though, that the WHEN-WINDOW-ACTIVATED trigger will fire on your Form. Therefore, you can:
    1) Set a Global Variable or PL/SQL packaged variable just before you call the EXIT_FORM builtin then
    2) Test the value of the Global Variable in the WHEN-WINDOW-ACTIVATED trigger and perform the CALL_FORM there.
    3) Even better, put the CALL_FORM and associated parameters into a Program Unit on the Form - then you can call it from either the original trigger or the WWA trigger as necessary.
    If this does not work, you could resort to:
    1) Set a Global Variable just before you call the EXIT_FORM builtin
    2) Initiate a TIMER
    3) Call the EXIT_FORM builtin
    4) In a WHEN-TIMER-EXPIRED trigger, check the value of the Global variable. If it's set, Call the Form you want to call
    5) Again, put the actual CALL_FORM in a Program Unit so it can easily be called with the correct parameters from wherever you need to call it.
    It's annoying that you need to go to these lengths to perform what seems to be such an easy task!
    If anyone knows any better ways of achieving this, please add another reply!

  • Display Item not showing Text when form is opened in Forms 6i

    Hi,
    I am using Oracle Forms 6i & I have taken DisplayItem control on a canvas and want to show some text over that e.g., "Your Name". For that I set 'Initial Value' property of that control in Property Palette to "Your Name". But I am not getting any such text message when I run the form nor it is coming at form design time. Can anyone please let me know where I am missing and how to display text in forms using DisplayItem control?
    Can you also suggest from where to learn these basic things about Oracle Forms 6i?
    Thanks in advance.

    bootstrap escribió:
    Can I initialize this object using Property Palette? If not why so?
    can you please tell how to use go_block & where to call this method?
    Yes, just as you did with the initial value property, but you have to "initialize" the record in that block. Navigating in runtime to the block is a way to achieve that, so you have to put the "focus" in the block with built-in GO_BLOCK . For example, in the W-N-F-I trigger.
    Another way to put the focus there, as indrabudiantho sugested, is dragging the block to the topmost place in the list of block in design time. Thus, when you enter your form in runtime, the focus will go to the first navigable item in the first block as defined at design time.
    About the resource docs, I think there was a "Oracle forms developer guide" bundled in paperback with a quite old version of the product which wasn't too bad. Not the "forms builder reference" , which is more or less the online forms help, but the guide. Also, there must be commercial books about forms & reports.

  • Starting a Search Form in "Enter Query" mode

    JDev 11.1.1.3 Windows 7 x64
    I have a page flow with 4 fragments - the first is a search form to look up the person.
    I need to enter this form in the "Find Mode (enabled)".
    I have tried using the method of dragging the "Find" from the iterator as the default item and linking it to the first fragment but this has no effect (it still retrieves the first record from the DB).
    I created an invokeaction - (preparemodel) this works for the first time - but not any other (seems to block the execution of the find button).
    I am not sure if this is a bug in 11g - but in my mind (find.execute) seems to indicate that it is doing what it should.
    I am not inserting any data - just retrieving a record.
    Anyone solve this before?

    Hi,
    maybe this will help you
    http://dstas.blogspot.com/2010/05/master-view-search-form-display-only.html
    Regards,
    Dimitris.

  • Disabling LOVs when not in enter query mode

    hello. I currently have a form in which a master block populates a detail block. when the master is populated the cursor automatically goes to the detail block and sets it to enter query mode (due to the face that there are multiple details but the user may only view one at a time). To select the appropriate detail the user may select the detail from a LOV which is activated by clicking a button. once the detail has been selected and the query executed there is no real need for the LOV as the user can now edit/delete the detail. Also when adding a new detail there would be no need for the LOV as the presence of it would only confuse users. So basically the only time the LOV is usefull is during query mode to query the detail the user wants to edit/delete.
    In your experiance how would you acheive this result?
    Any help would be greatly appreciated.
    Thanks

    well you can write a trigger Key-listval on your LOV item to check the mode of the block
    if :system.mode = 'ENTER-QUERY' then
        list_values;
    end if;LOV will only display in enter query mode only

  • FRM-41361 Cannot navigate out of current form in Enter-Query Mode

    Hi All,
    I am getting the FRM-41361 error in the bottom message area when opening a form from the function navigator. The issue does not exist when opening the form from the application homepage. The form is loaded in enter-query mode, and the enter_query command is in the WHEN-NEW-FORM-INSTANCE trigger. I have checked all triggers that fire after this point for any type of navigation but do not see any. The interesting thing is, if I put a fnd_message.set_string and fnd_message.show just before the enter_query call to debug, the issue goes away entirely.
    Is it possible there are security triggers firing after the form is loaded into enter-query mode that could be causing this and that the fnd_message calls are indeed buying time for those triggers to complete before the enter_query call?
    Any help/advice is appreciated. Thanks!
    Dan

    Yes, when I looked through the triggers I made sure to look for go_block and go_item calls as well as any calls to leave the form.

  • 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 :) )

  • Open APPS  form in enter-query mode

    Hello all
    apps version 11.5
    i've created a shourtcut link that opens a specific apps form on specific responsability like
    http://<server_name>:8001/OA_HTML/RF.jsp?function_id=4893&resp_id=50239&resp_appl_id=551&security_group_id=0&lang_code=US
    the problem now that i want to send parameters for this form and execute query on this parameter
    so
    is there a way to open apps form and send parameters then execute-query directly from shourtcut or link created on the desktop ?
    Respectfully
    Khaled Farouk

    Hello all
    after along of search i'm so neear of the answer but i need some assistant from experts.
    i've reached this link which open a form and query on the data i need .
    http://<server_name>:8001/OA_HTML/RF.jsp?function_id=1634&resp_id=50244&resp_appl_id=-1&security_group_id=0&lang_code=US&params=U-iFUMNeed-3nkNG7BzN1Qr5evq7vJslGk3i3pf0ggqqSfgqDmLrk-JON9n4DZe6jMkSYPz2nfRW6va3P0GqgNlHfEu8pw6EWDZNq-MSgU1WFM5Qux.dsjTAX5J3jwjn&oas=_vSHxhm0ru79y-0HO91I_Q..
    but i'm still have a problem. how to change the parameter part? because this link is generated from the oracle Apps
    i want to change this part
    &params=U-iFUMNeed-3nkNG7BzN1Qr5evq7vJslGk3i3pf0ggqqSfgqDmLrk-JON9n4DZe6jMkSYPz2nfRW6va3P0GqgNlHfEu8pw6EWDZNq-MSgU1WFM5Qux.dsjTAX5J3jwjn
    thank all
    wiiling to have answer
    Respectfully
    Khaled Farouk

  • Using ChooseFromList when form is in Find mode

    Hello,
    I'm trying to use a ChooseFromList to select a Sales Person (there is also an Udo in the form). It works fine when the form is in add mode or in update mode, but when I change to find mode, the form to select doesn't appear.
    How could I show the form to select when the main form is in find mode??
    Thanks in advance.

    Hi Dulce,
    That is a standard behaviour of SBO. Try for example in the A/R invoice form to use the choosefromlist for BP. It won't work.
    The way to use the find mode is just to fill all the data where you can filter your info and press the button Find.
    e.g. in the A/R invoice put * in Customer and when you press find the choosefromlist pops up.
    Hope this helps,
    Ian

Maybe you are looking for

  • Single Transaction code for ALE Configuration

    Hi All, I want to Know is there any Single Transaction code for the ALE Configuration instead of going through SALE, WEDI t-code or with defining logical systems assigning them to clients, creating RFC and Distribution Model, generate partner functio

  • Tween Class fails

    Hi, i was looking for some help with tween class beacuse i have a strange problem. I'm working with AS3, when i test my project, sometimes the Tween fails, sometimes it works. It's really strange, i don't know why. The animation stops before the end

  • Burn cds

    When i burn cds, they wont play on any other device?  what am i doing wrong?

  • Playlist problem after updating to

    Hi everybody! I updated my Zen Micro to 2.20.05 (Plays for sure) and it works well, but I've also got some problems: ) I can't create any playlists anymore on my computer. I'm using Creative Mediasource Organiser and I've updated it so its compatible

  • Dreamweaver help needed

    Hello. Well i've never used this program before and its been very many years since Ive done even basic of html related stuff. I have several little questions here and there and will more then likely continue to have more. I thought it best to include