Execute_query after LOV

Dear Experts,
i want to use execute_query after selecting value from lov so that the record appear in edit mode and i can get the functionality of editing record. what should i do?

a block manually and set database property to YES
Correct.. database property is set to yes to accept retrieving the data u want to retrieve from the detail block.
data source name sis_registration data source name sis_registration[b] NOoo no data souce it's set to NULL
create an item with the the same field name as i have already created
yes but don't take copy from the detail block cause this is only a text item that will copy the value u entered to the detail one to retrieve the query..!
FRM-30047: Cannot resolve item reference :MSTRBLK.ITEM10FRM-30047: Cannot resolve item reference %s.
Cause:     The item referenced does not exist.
Action:     Change the reference or create the item.
Off course it's not existing in the table of sis_registration as u referenced in the Master block where u set >data source name to sis_registration
i am sorry as i am new to Oracle Forms I were like u no boady starts from the top,one day u will be able to solve same problem and others in this forum but u should first pass through it.
i am happy to help..!
Regards,
Abdetu..

Similar Messages

  • Invoke execute_query after an on-update trigger

    Hi there,
    i try to do an execute_query after an on-update trigger.
    The trigger can't do this. When, and with wich trigger can i make the block to 'refresh'??
    Thanx in advance.
    Edwin Smal

    Hello,
    ON-UPDATE trigger fires in the validation process (commit)
    put the execute_query after the commit_form (which is placed in a KEY-COMMIT trigger)
    Francois

  • How to populate form data after LOV search on primary key

    This is the description:
    Pg. 1 contains an item defined as P1_CUSTOMER_ID (Popup Key LOV (Displays description, returns key value) with the list of values definition:
    select
    last_name || ' , ' || first_name display_value, cust_num return_value from customers order by 1
    Pg. 1 contains a button defined as P1_FIND_NOW (Redirect) with a URL redirect to Pg. 4.
    Pg. 1 contains a branch defined as Go To Page 4 (after processing), branch point = On Submit: After processing, action = page in this application, When Button Pressed = P1_FIND_NOW
    Pg. 4 contains two regions with multiple items, for example P4_ADDRESS_1, Display as Text Field (disabled, does not save state), Source Used = Always, replacing any existing value in session state, Source Type = Database column, Source value = ADDRESS_1
    Pg. 4 contains a process (before region) defined as POPULATE_CUST_INFO, Process point = On load, before region, Process error message = Customer could not be found, Source process =
    BEGIN
    SELECT
    CUSTOMERS.FIRST_NAME,CUSTOMERS.LAST_NAME,CUSTOMERS.BIRTH_DATE,
    CUSTOMERS.SEX,CUSTOMERS.MARITAL_STATUS,CUSTOMERS.PHONE_NUMBER_V,
    CUSTOMERS.PHONE_NUMBER_M, CUSTOMERS.ADDRESS_1,CUSTOMERS.ADDRESS_2,
    CUSTOMERS.ADDRESS_3,CUSTOMERS.CITY_NAME,CUSTOMERS.STATE_CODE,
    CUSTOMERS.ZIP_CODE,CUSTOMERS.COUNTRY_CODE
    INTO
    :P4_FIRST_NAME,:P4_LAST_NAME,:P4_DOB,:P4_GENDER,:P4_MARITAL_STATUS,
    :P4_VOICE,:P4_MOBILE,:P4_ADDRESS_1,:P4_ADDRESS_2,:P4_ADDRESS_3,
    :P4_CITY_NAME,:P4_STATE_CODE,:P4_ZIP_CODE,:P4_COUNTRY_CODE
    FROM CUSTOMERS
    WHERE :P1_CUST_ID = CUSTOMERS.CUST_NUM;
    END;
    I am getting the pop-up LOV and selecting a customer from the LOV, then clicking the FIND NOW button. This redirects to Pg. 4 where I expect to see all the data for the selected Customer populated into the various text fields (name, address, etc.). What is actually happening is I'm being redirected to Pg. 4 but
    the Process error message = Customer could not be found is displaying.
    If I run the same Source process query within SQL, I get a screen to
    enter bind variables, I enter an existing customer number (e.g.Y0001), and I get the message:
    ORA-06502: PL/SQL: numeric or value error
    The primary key for the CUSTOMERS table is CUST_NUM varchar2(17)

    Your message refers to "P1_CUSTOMER_ID" and "P1_CUST_ID". Is that a typo in the message? If not, perhaps that's the problem.
    Rodney

  • Execute_query after on-insert trigger

    Hello.
    I use on-insert trigger to insert data into database and then i want to execute_query so i can see all records including the last one i inserted.
    How can i workaround the problem with using execute_query or go_item in (or after) on-insert trigger?
    Thanks.

    Hi,
    you cannot execute navigational or query built-ins when in a transaction control point (ON-INSERT).
    ON-, KEY triggers replace the functionality of the events they fire upon.
    You can use the KEY-COMMIT Trigger to do this. For instance:
    <<KEY-COMMIT>>
    Commit_Form; -- all validation triggers are fired
    -- WHEN SUCCESSFUL
    Go_Block ('BLOCK_NAME');
    Execute_Query;
    Go_Block ('STARTING_BLOCK_NAME');
    -- END KEY-COMMIT
    Regargds,
    Hans

  • Execute_query after enter_query

    i want to filter the results obtained on execute_query
    for that i wrote a trigger on a button:
    When-button-pressed
    enter_query();
    :ename:='WARD';
    execute_query();
    but i am stuck at enter query mode and not proceeding
    there is one one data block emp
    i am using forms 6i
    Edited by: 875107 on Jul 26, 2011 5:16 AM
    Edited by: 875107 on Jul 26, 2011 5:16 AM

    Hi,
    The ONETIME_WHERE is the keyword using in 10g. In 6i, you have to use DEFAULT_WHERE. So change the line to
    set_block_property('<block_name>', DEFAULT_WHERE, 'ENAME = ''WARD''');And if the WARD is from an item in a block, then write
    set_block_property('<block_name>', DEFAULT_WHERE, 'ENAME = ''' || :<block_name>.<item_name> || '''');Hope this helps,
    Regards,
    Manu.
    Edited by: Manu. on Jul 26, 2011 3:59 PM

  • LOV Display - "Do you want to save changes?"

    Hello,
    I setup and simple LOV with just a few fields. When the user enters runs the form they can click on a button "View List", then the LOV displays nicely. They can choose a record from the list and it displays just fine in my form.
    The problem is that when they click on the "View List" button again, then chose a differnent record, I keep getting the message "Do you want to save the changes you have made?". Even when you say "NO" it doesn't even bring up the record that I clicked on.
    My "View List" whe-pressed trigger looks like this:
    IF Show_lov('LOV_NEWSLETTER') THEN     
         execute_query;
    END IF;
    Do I need to clear the form or something like that ?
    Please help,
    Bob

    Hi Bob,
    the reason is your execute_query statement in the trigger. The user picks up a value out of the LOV, the record get marked for insert/update inside forms. The next time the user picks up a value, forms have to ask for saving the changes because you wan't to progress a execute_query against the same table again. Why do you use execute_query after showing the LOV ?
    Hans

  • How can I create a loop in a multi-record block (on the background)

    I have a multi-record block.
    In one item I change a value.
    Upon this change, in the when-validate-item I would like to
    change other records in the same block.
    I planned to loop the block with go_record and to do my things
    in each record. Unfortunately the go_record built-in is
    restricted and cannot be used in a wvi-trigger.
    Another approach can be to update the records in the database
    and to perform an execute_query after this change. Also this
    procedure cannot be used in a wvi.
    How can I easily loop in a multi-record block???

    You can try to put loop with go_record in KEY-NEXT-ITEM on that
    field.
    Or if you change something and then press KEY-COMMIT you can
    update another records in database and after commit do again
    execute_query. Something like :
    on KEY-COMMIT:
    update_another_records;
    commit_form;
    execute_query;

  • Gettig "Record has been modified" error while opening a window

    Hi,
    I have a window 'A' and window 'B'. On click of a button from 'A' window 'B' is opened. There are 3 fields in the window 'B' and these 3 fields are the part of the query which gets executed in window 'A'.
    Now on click of the button I am executing a proc which is setting window 'B' field values again.After this when you open the window 'B' it gives the error saying "Record has been modified". I tried giving commit_form after setting the fields but still it throws the error.
    Please advice on this.
    Thank you

    Deepak Jambhekar wrote:
    Hi,
    I have a window 'A' and window 'B'. On click of a button from 'A' window 'B' is opened. There are 3 fields in the window 'B' and these 3 fields are the part of the query which gets executed in window 'A'.
    Now on click of the button I am executing a proc which is setting window 'B' field values again.After this when you open the window 'B' it gives the error saying "Record has been modified". I tried giving commit_form after setting the fields but still it throws the error.
    Please advice on this.Just add
    EXECUTE_QUERY;after the commit_form;
    Hope this works..
    Hamid

  • Execution of ddl statement  in post-insert trigger

    hi,
    I'm working on headstart 6.5. I wants to execute a DDL statement in post-insert-trigger.The problem is this trigger is executed in between pre-commit and post-forms-commit.In pre-commit the transaction is opened with a insert statement that is inserting "open" in field status which is having a deffered check constraint QMS_NEED_TO_CLOSE_TRANSACTION.In post-forms-commit it will check whether the transaction is open if yes will check the business rule will delete the data that was inserted into qms_transaction in pre-commit trigger and will close the transaction .
         In between if i execute a DDl statement a commit will be performed on the insert statement written in pre-commit trigger.This will violate the check-constraint and we will get the error qms_need_to_close_transaction violated.
         My business logic wants this statement to be executed at the post-insert trigger on the block.Is this possible??
         Does anyone have face the same problem?Whts the workaround for the same?

    Hello,
    You could use the execute_query after the commit_form called, by exeample in a KEY-COMMIT trigger.
    KEY-COMMIT trigger
      Commit_Form ;
      Go_block( 'master_block' ) ;
      Execute_Query ;Francois

  • Oracle Forms 6i - mySQL (Commit Problem)

    Hi,
    i'm using Oracle Forms Builder 6i to connect to mySQL 3.23.49 via
    Oracle Open Client Adapter for ODBC 6.0.5.35.0
    Now I have a problem of controlling which form to commit if more than one form are opened.
    E.g. I need to open 2 forms (eg. A, B) and only want to commit the changes made on Form A
    1.
    I open the forms using the follows (i can't use OPEN_FORM('A', SESSION); since mySQL doesn't support)
    OPEN_FORM('A');
    OPEN_FORM('B');
    2.
    then I changed both forms
    Now the :SYSTEM.FORM_STATUS, :SYSTEM.RECORD_STATUS, :SYSTEM.BLOCK_STATUS are 'CHANGED'
    3.
    I then press my custom save button on form A (triggers KEY-COMMIT). Inside KEY-COMMIT, it calls COMMIT_FORM, then triggers
    ON-COMMIT eventually. In ON-COMMIT, i use the built-in COMMIT to commit the changes.
    Then I found that :SYSTEM.FORM_STATUS, :SYSTEM.RECORD_STATUS, :SYSTEM.BLOCK_STATUS are 'QUERY' which is normal. However both
    forms are committed.
    4.
    So I fixed it by: In ON-COMMIT, add RAISE FORM_TRIGGER_FAILURE; after COMMIT. Although it stops committing changes on another
    form. But :SYSTEM.FORM_STATUS, :SYSTEM.RECORD_STATUS, :SYSTEM.BLOCK_STATUS are still 'CHANGED'. Then I do a EXECUTE_QUERY
    after COMMIT_FORM to change back :SYSTEM.FORM_STATUS, etc to 'QUERY'
    5.
    It works. Only Form A is committed. However when Form A has a lot of records (eg. >500), it affects performance.
    Does anyone know how to solve this problem?
    Any help would be greatly appreciated
    Peter

    The question is not how you disable a key, it might be more how to disable a functionality. What functionality do you want to disable? By default F5 maps to the KEY-MENU-trigger, if thats the function you want to disable, write a NULL; in the KEY-MENU-trigger.

  • Petition: Chinese Song and Artist Search Function in the Next ZM Firmw

    Hi Everyone,
    Right now I can search for english song or artist in my ZM, but I have no way of doing the same thing for my chinese songs. It would be great if Creative can implement this feature in future firmware (Non-unicode search ability), maybe using Microsoft IME for input.
    Mutax2003

    I investigated a little bit further the music app and found, that the issue is caused by the "Music Videos" in the Music Collection.
    The MusicVideos are not shown in the list of the search results, but the sound from the MusicVideo is played, when the MusicVideo matches the search criteria.
    I realized that the "out of order selection" for the song to be played, typically happended, when there is a large search selection, e.g. when you search for "love". In my search result for "love" in title, the first song in search results is "After Love (Blank&Jones)". When I select it, it plays correctly.
    The second title in search results is shown as "Cant get enough of our love (Barry White)". When I select it, MusicApp plays "Bleeding Love (Leona Lewis)", which is a MusicVideo.
    When I now select the third title in search results, the second (Barry White) is played. And we have this phenomenon that "some song before the selection" is played.
    So it is a bug how Apple MusicApp performs searching when MusicVideos are part of the collection: In search results the matching MusicVideos are simply ignored and not shown. But when selecting a song from the search results, by clicking at position x in list, this position x is somehow calculated on a (not visible) list including the MusicVideos. With the result that a previous song in list is played.
    Hope that we see a fix in the near future??!
    T

  • Concurrent users problem ADF JDev 10.1.2(1811)

    Hallo,
    I've posted it earlier on JHeadstart forum but this forum may be better for this problem.
    We have ADF(JHeadstart) application with uix view. Application is created with JDev 10.1.2(1811) and run on IAS 9.0.4 with WebCache enabled, DB 9.2.0.4.
    We have problem with concurrent users.
    Application creates rows by inserts to view and instead-of trigger. Only inserts are allowed and every VO i configured to allow only "while new" modifications. When one user uses application it works fine, but when many users do same actions something strange is happend. It looks like sessions mismatch or sth.
    After LOV validation or JBO exception(from validation trigger) form returns and display error messages but users get in forms values they don't entered(they look like values entered by another users). Also form is in strange state - some fileds are made readonly. Non-visible fileds like fk were validated against mendatory.
    Regards,
    Kuba

    To tell you the truth I'm using a combination of 10.1.2 and 10.1.3 since the beta is still lacking the capability to handle BC4J. I'm waiting eagerly for the final release.
    As regards that document I followed the instructions to setup the 10.1.3 and followed the same guidelines to apply the same settings on 10.1.2 which has a different screen to setup the libraries. maybe I just missed out some jar files in the library setup in 10.1.2

  • How to refresh page after selecting value from LOV item , in a tabular form

    Hi ,
    I have a tabular form, which contains 2 items(columns), of type "Select List - named LoV".
    Now, couple of issues here.
    1.
    2nd item(column) in tabular form, that LoV should get populated based user's selection value in first item LoV. So how do i refer to the value, that user selected in first item's LoV? I will have to use this reference in LoV query of my 2nd item ( on this tabular form)
    2.
    How can we refresh the page, when user selectes value in first item ( from LoV). As this is a tabular form, here item type is Select List, we dont have an option to pick item type as Select List with Submit. So problem is that when user selects value for item 1, refresh does not happen and item 2 LoV does not get populated as per user's selection in item 1.
    Please help here. Would be really appreciated.
    Thanks and Regards,
    Rave.

    Thanks Ben and Dan for your responses.
    Ben, your solution helped me with refresh of page, as page got submitted.
    This answers to my 2nd question. However, I still need to know first question, which basically is, how do i refer to the value, that user selected in first item LoV.
    Issue is, I selected the value in first item LoV, it got submitted and page fot refreshed. But after page refresh, first item LoV loses its value that I had selected last time. It does not retain the selected value after refresh.
    I have an unconditional process, that on every submit(refresh) of page, I set my items with their corresponding values. But problem is what do i mention there to refer to this item.
    I looked in view source of my page, this item is referred as f03.
    So i used "apex_application.g_f03", to set this item to its value, in my uncoditional submit process. But it did not work. I tried to refer this item as "f03" in this unconditional submit process. But still it did not help, the selected item loses its value after page refresh(submit).
    Any help here would be really appreciated. Please suggest how do we refer to this item's selected value.
    Thanks and Regards,
    Ravi.

  • Refresh LOV after inserting data in correspondent table

    Hi all,
    I am using Jdeveloper 11.1.1.2 and ADFBC.
    I have a page with a table (tableA) with some fields. One of them has a LOV associated to another table(tableB). I have a button (button1) that shows a popup(popup1) and opens a new task flow with a fragment to insert data in the tableB.
    After inserting/modifying rows in tableB and after pressing commit (property: end-transaction) or rollback buttons (property: end-transaction and restore save point), LOV does not refresh.
    I have tried to set the property partial triggers of the LOV to button1 or popup1 and it does not work.
    How can I solve it?
    Thank you.
    Andrea

    How about VO for table B ? Did you refresh that ? I didn't use the same VO for table & LOV.
    so in "List data Source" -- VO -- I am using "SQL statement" and statement includes fields from Table B and Table A.
    VO for LDS using "Rows populated by a SQL query with read-only access". I didn't use "Updateable Access through Entity Objects".
    Sample of VO of LDS:
    select A.model_number modelNumber, a.part_number partNumber, b.MODEM_TYPE ModemType
    from table A a,Table B b
    where a.PART_NUMBER_ID = b.PART_NUMBER_ID
    and a.part_number_id =:partID
    Edited by: albertpi on Mar 16, 2010 7:26 AM

  • Date is not getting populated soon after a change in a field which has LOV.

    Hi friends,
    I have a requirement in my form......
    I have a two fields, in my form......
    One field which has a LOV's list---------------> the name of the field is "PRIORITY" and it has following LOV's
    *) LOW *) MEDIUM *) HIGH..
    Second field is of date field-----------------> the name of the field is "DUEDATE"....
    I needed is that soon after i select anyone of values from the list in "PRIORITY" column for example assume it has "LOW"...
    The due date column should automatically populate the date, accordingly that is setted for LOW..
    The same is in case of "MEDIUM" and "HIGH"....
    How it is possible to populate the date accordingly soon after i picked one of the LOV's from the priority column...
    Whether i need to set any dynamic actions for the due date column...or else....if so means......
    guide me friends..in stepwise manner......whether to write any query in back end....
    i also tried with query it didnt worked.......
    regards,
    Harry......

    Hi,
    If i gave the query that i mentioned above post, in my sql statement, the dynamic action is working but not fetching the correct date for the selected priority..
    what is the answer that im getting is
    When i select priority as low means
    what is populating in my due date field is not the date im expecting........
    it is giving some thing in the due date field like the below i mentioned.......
    " ,,11/10/10 0&amp;#58;0&amp;#58;0,11/10/10 0&amp;#58;0&amp;#58;0,,,,,,,,,,11/24/10 0&amp;#58;0&amp;#58;0,11/24/10 0&amp;#58;0&amp;#58;0,,,,,,,,,,,11/04/10 0&amp;#58;0&amp;#58;0,,,,,,,11/24/10 0&amp;#58;0&amp;#58;0,,,,,,,,,,,,,,,,,,,11/18/10 0&amp;#58;0&amp;#58;0,,,,,,11/24/10 0&amp;#58;0&amp;#58;0,,,11/24/10 0&amp;#58;0&amp;#58;0,11/24/10 0&amp;#58;0&amp;#58;0,,,,11/27/10 0&amp;#58;0&amp;#58;0,11/26/10 0&amp;#58;0&amp;#58;0,,,,,,,11/05/10 0&amp;#58;0&amp;#58;0,,,,11/24/10 0&amp;#58;0&amp;#58;0,11/24/10 0&amp;#58;0&amp;#58;0,,,,,,,,,,,11/19/10 0&amp;#58;0&amp;#58;0,11/05/10 0&amp;#58;0&amp;#58;0,11/24/10 0&amp;#58;0&amp;#58;0"
    i dont know why it is returning like this......please help me........
    Regards,]
    Harry......

Maybe you are looking for

  • Error message on VSS

    Hi All, I would like to ask if you have see following error message and if it is realated to problem below.. Aug 24 18:15:56 core.schmid.local 753: Aug 24 18:15:55: %FIB-2-FIBDISABLE: Fatal error, slot 41/0 (41): XDR disabled At the time of the perfo

  • Default databse with E-Business Suite 11.5.10.2 or the latest EBusiness

    I would like to know the list of products bundled with the E-Business Suite latest version, especially the databse. Is it 91R2 or 10gR2. I need the default database as well as compatible version.

  • Weird! I thought crimson.jar/jaxp.jar were included in rt.jar for jsk 1.4!!

    I am trying a Wrox Books Example (Chapter 2 in Professional Java XML), and if I do this:   java BookMain I get this error:   Exception in thread "main" java.lang.NullPointerException     at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java

  • Can't find adobe flash in system

    To update adobe flash player someone told me to go to apple>system preferences>adobe flash, but I can't find adobe or flash in my system preferences.  What now, if I need to update (or get) adobe flash?

  • 15" Macbook pro (late 2010) shuts down randomly! HELP!

    hey guys, i bought a 15" macbook pro core i7 late 2010 model a few years back, and i havent had a problem with it until now, it shuts off randomly and then when turning it back on it dsays "macbook shut down because of a problem" . NOW,  I dont know