Clearing items upon hitting "Enter Query"

I have a detail block with 5 fields in each record. There are five non-database items on the form to display the current record in this detail block. Upon moving the cursor to a different record in the block, the new record's fields are displayed in these non-database items.
What is required is that upon hitting "enter query" on this detail block, these non-database item fields become cleared also.
Any thoughts would be appreciated.
Ammar

this approach is not recommended as I think that these built-ins cause problems on some platforms (the go_block built-in)Never heard of such problems. If thisis so, then no forms-application would run on that platform, for forms also uses GO_BLOCK for master-details-relationships.
The easiest way to achieve your functionality (without any coding) would be to do the following:
Delete your second datablock with the non-database-items.
Duplicate the items in the databaseblock you want to show in a detail-area.
Set No. of tems displayed to 1 on these items.
Move the items in the layout to the desired position.
Set the poperty "Synchronize with" for each item so that it matches the item it should get the value from.
Thats all.

Similar Messages

  • [ Forms10g2 ] Default item value in Enter-Query mode

    Hello!
    How could I specify default value for an item in Enter-Query mode? E.g. I press KEY-ENTQRY, and :L_YEAR item gots current year as a default search condition (though it may change). I've tried to implement it this way:
    <pre>
    Enter-Query;
    :l_year := extract(year from sysdate);
    </pre>
    This work in a rather awkward way. If I run this once (e.g. as a result of a hotkey press), it just enters Enter-Query mode, but if I run this twice (by pressing hotkey second time) it fills :year variable and does search with it as a search condition! Then, I've tried to go straight and wrote:
    <pre>
    Enter-Query;
    :l_year := extract(year from sysdate);
    Enter-Query;
    :l_year := extract(year from sysdate);
    </pre>
    Well, this didn't work. And SYNCRONIZE call before the second Enter-Query didn't help either. So, my questions are: 1) how can I achieve needed behaviour? 2) What's going on in my experiments? Why :L_YEAR gets assigned on second keypress (as in first experiment) but not on second subsequent call (as in second experiment)?
    Thanks in advance!

    I don't know why that won't work but I have something which might:
    when-new-record-instance trigger:
    if :system.mode = 'ENTER-QUERY' then
      :l_year := extract(year from sysdate);
    end if;It's always best to use both the block and item names...:block.l_year

  • After hiighlighting a word and pasting it into another document, the clipboard does not clear ;when I hit enter it pastes again and again. How do I fix it?

    When I highlight a word or phrase and copy to the clipboard, then paste it in another area the clipboard does not clear the phrase. Therefore, every time as I type and hit the enter key it continues to paste the phrase all over my document. I do have the latest download of Firefox installed (16.0, win 7 and that is when this started. How do I stop this obnoxious behavior so I can type a sentence with normalcy?
    Louise

    Thank you, Iusually do that first thing with any computer problems. Old school computer fix. Hard Boot regardless! lol Thanks again.

  • Problems with LOV+Clear Form +Enter Query

    Hi Friends,
    I have a Master Detail Form which is only query form my
    requirement is as soon as the user presses F9(List of Values) on
    Employee Number then 3 activities should be done.
    1. Clear Form
    2. Enter Query
    3. Displaying List of Values
    Any ideas please let me know
    Thanks in Advance
    Rao Guduru
    null

    Hi Rao,
    Here is solution for your problem.
    in KEY-LISTVAL trigger of the Employee number filed write
    following code
    Begin
    Do_Key('clear_form');
    Do_Key('Enter_Query');
    End;
    in the WHEN-NEW-ITEM-INSTANCE Trigger of Employee number filed
    BEGIN
    If (:system.Mode = 'ENTER-QUERY') Then
    list_values;
    End If;
    END;
    If the Employee number is not the first navigable item in that
    block , then in the first navigable item's WHEN-NEW-ITEM-
    INSTANCE trigger write the following code
    If (:system.Mode = 'ENTER-QUERY') Then
    go_item('EMP1.EMPNO');
    End If;
    Let me know whether it solved your problem or not.
    Regards
    Surendra.
    Rao Guduru (guest) wrote:
    : Hi Friends,
    : I have a Master Detail Form which is only query form my
    : requirement is as soon as the user presses F9(List of Values)
    on
    : Employee Number then 3 activities should be done.
    : 1. Clear Form
    : 2. Enter Query
    : 3. Displaying List of Values
    : Any ideas please let me know
    : Thanks in Advance
    : Rao Guduru
    null

  • Cursor remaining in the current item even after pressing Enter-Query

    We have an application running in 10g.
    We are getting similar problems in three forms of the application.
    In the form there are 2 datablocks which has a master-detail relationship.
    After the data for the first datablock is retreived, when I click on any of the items and give enter-query, the cursor remains in the same item.
    Ideally the cursor should move to the first item in the datablock after entering the enter-query mode. But it is not happening.
    This is working fine in the other forms. When i give enter-query, the cursor is going back to the first item.
    Only in these three forms, it is behaving differently.
    Expecting a quick reply...

    did you check if the items in object navigator have the same order as on canvas?
    in normal case the cursor goes to the first enterable item in block when entering in query mode.
    as workaround you can write your own KEY-ENTQRY trigger:
    ENTER_QUERY;
    GO_ITEM('YOUR_BLOCK.YOUR_ITEM');

  • How to submit page by hitting "enter" in a text field - Solution

    Hi,
    I had this problem yesterday and thought it may come in handy for others who run into the same issue.
    My page had 2 text fields. Upon hitting enter in either of the boxes I wanted the page to submit. When only 1 text field was present it worked, however once the second field was added this stopped working.
    After reading a bit (http://ppewww.ph.gla.ac.uk/~flavell/www/formquestion.html) I fount that "When there is only one single-line text input field in a form, the user agent should accept Enter in that field as a request to submit the form.". This would explain why it worked with only 1 field, but not with 2.
    After doing some testing I found that to make it work with 2 or more text fields, I needed to add a submit button. This is not the same as a button in APEX. In APEX "button" just has a onClick call to a submit function. You need a native HTML submit button.
    In order to do that I created text field. Deleted the label, and set the static value to "Search" (this was for my search application). In the page attributes I added the following:
    < script language="JavaScript1.1" type="text/javascript">
    document.getElementById("P1_SEARCH_SUBMIT").type="submit";
    < / script >
    Note: I added extra spaces in the tags so they would display properly.
    This function changes the button type to submit.
    Now when I have 2 or more text forms it submits when I hit enter in either one.
    Martin

    Hi,
    Set the Source Used: Only when current value in session state is null in Edit Page Item.
    Regards,
    Kartik Patel
    http://patelkartik.blogspot.com/
    http://apex.oracle.com/pls/apex/f?p=9904351712:1

  • The compare photo function no longer works when I hit enter....

    When I select a photo that I want to set as the compare item by hitting enter, I just get a soft horn type sound and the select item does not set for compare. This used to work but no longer does. The menu option is even grayed out so I cannot perform this function. I have no idea why this just stopped working. If anyone has any thoughts it would be much appreciated.
    Thanks,
    Frank

    sailor is right, you have to enter the compare mode first. this however is only available when the viewer is open. apple claims, this is "by design" (and new to 2.1.1), i personally find this a step back and painful.
    if you use dual monitors and have the secondary screen set to alternate and only show the browser on your main monitor (just as an example), you can not enter the compare mode. in such setup you'd have to hit V first to enable the viewer, then enter compare mode, then switch back to browser (to get back to where you started). once compare mode is on, you can continue to compare on your secondary screen.

  • Display Item cleared when using 'Enter-Query'

    Hi all,
    i am going to develop a multilanguage application with very
    special heading texts using display items for these headings.
    BUT- if I press EnterQuery, they are cleared also.
    How can I restrict cleanup of these display items used as
    headings ?
    I was looking in the properties, but no idea.
    Thanks for help,
    udo

    I'm showing how to do it when switching modes. I'm
    not suggesting this is the best way to do a query.We need to look at this in the context of the original probelm in the thread linked to above. For most cases the when-timer-expired etc is just a huge detour around using the pre-query trigger but it's an interesting approach to the specific problem in the earlier thread. The OP there wanted to be able to type '>5000' into a number field in a non-database block, which we can do in a database block in enter-query mode, and use it as a query parameter in the database block. Perhaps if we enter this into a character field in the non-database block and populate the numeric field in the database block whilst in enter-query mode then we can do searches on ranges of data? Unfortunately it doesn't work - you get an ora-06502 error just like you do when using the pre-query trigger. For the situation in the original thread you would have to use a 'default where'.

  • Disableing an item in enter query mode

    Hello experts,
    i want that a perticular item will be disabled after you press enter button of query menu.(or query->enter).Can any body please tell me what is the actual trigger in which i write the disable statement.
    set_item_property('itemname', enabled, property_false);
    Regards
    Anutosh

    You can't set the enabled property if the cursor is in the item and I expect it's the same for the query_allowed property. if the cursor is in the item which you set to Query_Allowed=false and then you go to enter-query mode, perhaps forms doesn't know what item to move the cursor to, so just leaves it where it is.
    You can solve the problem by moving to a different item (with go_item) before setting the property.
    When do you need to set the item back to enabled? If you want it enabled at all times other than when a query is being entered then use the Property Pallet to set the Query Allowed property. If you want to disable the field under certain conditions then the when-new-record-instance trigger might be better for you. Eg
    if :system.mode = 'ENTER-QUERY' and <condition> then
      go_item(<another item>);
      set_item_property(<item>, enabled, property_false);
    else
      set_item_property(<item>, enabled, property_true);
      set_item_property(<item>, update_allowed, property_true);
      set_item_property(<item>, navigable, property_true);
      set_item_property(<item>, update_null, property_true);
    end if;It might be better to set the query_allowed property instead of the enabled property, but I can't check right now whether that's possible after the enter-query mode has begun.
    The update_allowed, update_null and navigable properties are all set to false as a consequence of the enabled property being set to false. If they should be true then you need to reset them after reenabling the item.

  • Non-Database items in enter-query mode

    I have a form with 2 base table blocks, typical master details situation. I wish to allow a field from the detail block to be queryable from the master block. I was considering adding a non-database item to the master block (visible only when in Enter-Query mode). In a pre-query trigger I would amend the DEFAULT-WHERE property of the master block when the appropriate where clause using the non-database item value. My prototype/test version works fine except the non-database item is not enabled while the master block is in enter-query mode.
    I think basically forms will enable only field s if they are database items and queryable set to yes. There are no more database items I can use to set the non-database item column name property.
    Any suggestions would be appreciated.
    Ralph
    Oracle Developer - Unisys Australia

    Hi Ralph,
    we have several Forms using non-database items as query-items which works fine.
    What we did is following:
    1) create non-database item xy in master-data-block
    2) set property database item to no
    3) set property query allowed to yes
    4) create a pre-query trigger on master-data-block where we change the where-clause (this is forms6i, in 9i we would use the one-time-where-clause)
    Peter

  • New item position for cursor after enter query

    I am trying to have my cursor being reposition in a different item once I click on enter query mode. For some reason, it will not go there. I have the following code in the key-entqry trigger
    go_item('cust.custno');
    enter_query;
    it will not go there till I do a cancel query which is no good.
    Please help,
    Joe

    Hi,
    Try this in the When-new-record-instance trigger of the 'CUST' block:
    if name_in('system.mode') = 'ENTER-QUERY' then
         go_item('cust.custno');
    end IF;
    Hope this helps you,
    Regards,
    CB

  • Cleared item swowing as a Open item

    Hi All,
    I posted a document in f-02 for bank charges the entry was bank charges a/c debit and bank a/c is credit. and i posted the same data into ff67. and for reconsilation i upload the same data into FEBA for bank statement. now this document is cleared.
    but the problem is when i see this document in FBL3N this document numbe showing in Open items but i cleared allready.
    Please give me the solution for this.

    Hi....
    Those are items we cannot delete first we have to reverse those items using the FB08 for open items ..other wise use T.code FBRA for clearing items
    once done the all activites after that you have dleted the statment number number useing program Goto SE38 and execute the following report: RFEBKA96.
    On application put 0001. Here you will find all the statements. Mark the ones you want to delete... and press Delete Statements. This will permanently delete the load from your system.
    HINT: to search the statement you want to delete (Short Key), query it using table FEBKO.
    After delete the Bank Statement, the following steps can be solved. Please try:
    T.Code: FEBP
    The following parameters to be entered:
    Statement date: The same statement date
    Statement number: The same statement number
    Select u201CPost immed.u201D Select
    Execute
    Note:
    Please note that statement date is very important and same to be entered to process all the data for posting.
    Finally check the statement file debit and credit balance it must be Zero
    Than try to post once again ..it will allows you post
    I hope it will helps you
    Regards
    vamsi

  • Document Split for Manually Cleared Items

    Hi SDN,
    Is there a way to inherit the document splitting characteristics for manually cleared items? To give you an example, please see below scenario in General Ledger View
    Invoice
    Dr Expense                 Cost ctr 10001
    Cr Trade Creditors      Cost ctr 10001 (inherited from expense item)
    Payment
    Dr Trade Creditors       (no cost center assigned)
    Cr Outgoing Bank          (no cost center assigned)
    Manual Clearing of vendor items via F-04
    Dr Trade Creditors        (no cost center assigned)
    Cr Trade Creditors        Cost ctr 10001
    Dr Zero Balance Clrg    Cost ctr 10001
    Cr Zero Balance Clrg    (no cost center assigned)
    This scenario happens since the company has instances where payment comes first before the actuall invoice. In this instance, the document split function won't properly reflect the correct cost center assignment.
    Is there a way for this to be inherited even for manual clearing (just like the one for bank reconciliation process wherein the cost/profit center assignments are inherited on the clearing items)
    Thanks

    Hello,
    Yes, you can have profit center as a characteristic for splitting and inheritance too. Your scenario will work as below:
    Invoice:
    Dr Expense  1000 CC1   PC1
    Cr A/C Pay   1000          PC1
    In above invoice PC1 will be inherited from the expense line in which the user will need to enter the cost center, and profit center will be derived from the Cost Center master.
    You make a payment:
    Dr  Vendor  1000      PC1
    Cr  Bank      1000    PC1
    In above scenario, user needs to give a profit center in bank line manually or it can be automatically derived using FAGL3KEH setting for bank accounts. From bank line the profit center will be inherited to the vendor line.
    Finally when you try to clear the vendor items using F-44, following entry will be passed:
    Dr Vendor 1000  PC1
    Cr Vendor 1000  PC1
    Only if the profit center entered during the payment and invoice are separate, zero balance clearing lines will be hit.
    Regards,
    Sam

  • Set save-as-pdf as a default action ("just hit Enter") in print-dialog (w/out Adobe PDF)

    The problem is clear: i don't print on paper
    ...instead, i just save documents as PDFs and send them over email.
    But it takes waaay too many clicks to get to that sub-menu-button-item on a regular basis.
    So just like with any other modal dialog i would prefer to just hit Enter and be done with that.
    And for that i aprntly need a “Save to PDF” option set up as a printer, so it would be always a default choice.
    I know Adobe Acrobat installs “Adobe PDF” as a printer, so it it's doable, but it costs money and i don't acly need any extra apps if PDFs are supported by the OSX itself. So strike that.
    Please, how else can i make it happen?
    Thank you for ur time.

    CUPS-PDF
    http://www.macupdate.com/app/mac/20219/cups-pdf
    PDFwriter for Mac
    http://sourceforge.net/projects/pdfwriterformac/

  • Prevent interpretation of special characters in enter-query mode

    My problem goes as follows:
    - forms version: Forms [32 Bit] Version 6.0.8.10.3 (Production)
    - non-database item block.X, char
    - block.X is filled in post-query trigger. The post-query logic cannot be integrated in a view because it uses procedures, and usage of a pipelined function + view is currently not allowed due to "internal restrictions". Put simply: all logic to fill the field must remain in the post-query trigger
    - user wants the field to be queryable. This is achieved by storing the entered criterium in a variable in the pre-query trigger, and using it in the post-query trigger to exclude records. E.g.
    pre-query ==> help_block.query_X := block.X;
    post-query ==> if help_block.query_X is not null and block.X is null or not block.X like help_block.query then raise form_trigger_failure; end if;
    - this works fine for "regular" search strings. However:
    - whenever the search string starts with <, <=, >, >=, !, forms seems to interpret the leading characters before doing anything else. During pre-query, block.X is null, and as soon as I use it in pl/sql, I get FRM-40831: Truncation Occured: value too long for field. E.g.
    user puts the following in block.X ==> '<X', so he wants to search for records with value '<X' (text; not 'smaller than ...')
    pre-query => msg.show(block.X) ==> appears to be empty/null, but right after the message, I get FRM-40831 Truncation Occured: value too long for field ...
    This only happens if < is the first non-space character in the search string.
    Does anyone know of a way to prevent oracle from interpreting the <, <=, ... characters entered in enter-query mode?

    I'm sorry for not making myself clear; I'll give it another go:
    The problem is that, if I enter '<abc' in a form field in enter-query mode (so during creation of the "example record"), forms immediately interprets the < as 'smaller than' and does some obscure things with it (my guess: converting to a where clause, but since I'm using a non db field, this actually does nothing), and finishes by erasing the field contents (in the example record). In the pre-query trigger, I can no longer get the '<abc' and store it. I want one of the following:
    - prevent forms from interpreting the '<' in front (same thing happens for !=, <=, >=, =, ...)
    or
    - capture the entered string ('<abc') before forms reacts to the '<' in front
    Edited by: [email protected] on Feb 17, 2009 12:30 PM

Maybe you are looking for

  • ABAP-XSLT mapping.

    Hi ALL,           I am using i scinario in my project of type IDOC to PI to SOAP . In this one my mapping is of type ABAP-XSLT . the interface is runnign fine for all the idocs except one idoc. When that particula idoc comming from r/3 it is giving s

  • 10gR2 on Windows XP Pro SP2

    Can anybody help: I just installed Oracle 10g Release 2 on Windows XP Pro SP2 and receive the following message when starting the Enterprise Manager: DBD Error: OCIServer Attach. Via SQLPlus I can work and the Instance is running. I would appreciate

  • Yet another grey folder thread, help!

    Sorry for yet another grey folder thread, but here goes: Today, earlier, installed Firefox update, along with some addon updates for that program. Quit Firefox and attempt to relaunch, relaunch fails. Reset computer, thinking that will do the trick,

  • Interactive report error when filter

    Hi, I'm new to Apex and get the following error when I create an interactive report: "Invalid set of rows requested, the source data of the report has been modified. reset pagination" This error occurs when I scroll through the pages of the report an

  • What is the shortcut to activate the tab list drop-down?

    I seem to remember I used to use a keyboard shortcut to activate the tab list drop-down, instead of clicking on the downward arrow. Can someone tell me if it still exists and what it is?