Fill in detail block automatically when master block is populated

Hi,
I have a form with 4 blocks. 2 are on a regular canvas, the other 2 are on tab canvases. When the first block is populated all the other blocks should be populated as well. This works for the one block which is not on the tab canvas. The other block are only populated the moment they get focus. (the cursor moves in).
Workaround would be to work with execute_query but in which trigger would I need to place this? (POST_QUERY, ON_FETCH do not work. WHEN_NEW_RECORD_INSTANCE works with plenty of errors)
Best Regards,
Kris

Is this a new form written by you and you know what code it contains ?
If it an existing form written or maintained by other people, you ought to check for code you are unaware of.
Using find and replace pl/sql to search for SET_RELATION_PROPERTY might be worth doing for a start.

Similar Messages

  • Populating the detail block

    Hi Gurus,
    I have a master block and a detail block. the detail block should be always disabled for user entry.
    Master block is based on table X and detail block on Table Y.
    In the master block there is a field A . When this filed is entered with a value, when it is in insert mode, I have to execute a procedure which populates the detail block (the expected data has to be derived from another table based on the value of field A. But if Block A is in query mode the detail block is populated throu relationship.
    Now having the detail block as insert not allowed and update not allowed, my procedure is not able to populate the block. But if I changed insert allowed yes and update allowed =yes, the procedure populates the block. But I make the user enter values on the block which is not entertained. Please help me how can I achieve this?
    Thanks and Regards,

    try setting INSERT/UPDATE allowed = 'NO' for the all the detail fields, rather than
    block. should work.

  • Updating Detail Block when Master Block Updates

    Using scott/tiger: I have Dept in Master and EMP in detail on Form6i.
    The relation is made as dept.deptno=emp.deptno.
    When I change the first record of Dept (I changed deptno=10 to deptno=11), I don't get changes of detail block.
    I just want to have synchronize result....... confused???... I think I made it... I hope

    This is a common problem that we usually face...<br>
    Isn't it? Don't we have any Form level Casscade<br>
    Update (as we have Casscade Delete)?<br><br>
    Well, I cannot say that's a common job to update primary key. That' even very rare... maybe one or two time I seen this one in the real world, and that was during migration application or such like thing.<br>
    Some days ago, there was same discussion Re: For update cascade<br>
    <br>
    But if you have to update very often your PK, you maybe need to rethink the datamodel.<br>
    <br>
    Nicolas.

  • When moving from one master block to detail block  it must save record.

    when moving from master block to detail block it must save record or it will give message like 'save changes '....
    when i write it ,but this message will be coming.
    But if i save record message will appear two times.
    plz Help me.
    Thanks & Regards
    Venkata.
    Message was edited by:
    venkata

    Hi,
    you could ask for Form_Success when moving to detail_block (in wehn-new-block-instance i.e.) and if not form_success you could show an alert to ask for commit changes...
    Jose.

  • HOWTO: Avoid go to detail block without fullfill the master block?

    Hi:
    I have a master detail form with 2 blocks. When the user open the form the focus is on the first text item (required = yes) of the master block. If the user tries to get out of that item with keyboard (tab or enter), it gets the correct message saying that the item is required and must be filled. But the problem starts when the user click with the mouse on another item of the detail block. Here, I will have 8 or 9 messages saying that is impossible to create records without a master record. This is really annoying. This message has no ID (FRM-XXXXX), and I really must get a way to forbide users to go to the detail block without filling required items in the master.
    Anyone?
    Best Regards
    Joao

    Hello,
    if there is a relation between the two blocks double click on that rel.and mark the check box property:prevent Masterless operation try this option and tell me what's ur feed back..?
    Regards,
    Abdetu..

  • Detail blocks in tab pages not queried automatically

    Hi
    I have some generated forms with the following layout:
    - in the content canvas top, the master block
    - below the master block (in the same content canvas), a tab canvas with 2 (or more) pages with detail blocks
    When I query the master block, the detail blocks are not automatically queried, the user must navigate to them to make the automatic query work.
    I found out that it is something related to the blocks not being in the same canvas. But visually, they are in the same canvas, I would like that the detail blocks were queried automatically.
    Is this possible? I think this layout is very common and useful, I am sure Designer has some way to do this.
    Thanks
    Luis Cabral

    Hi
    I found it - I just set BSCSCP preference correctly, and now it works fine!

  • Execute_Query in MASTER-DETAIL form queries the DETAIL block...?

    I'm using Oracle Form Builder with a Master-Detail relationship, I have a WHEN-NEW-FORM-INSTANCE trigger which runs 'EXECUTE_QUERY;' but it is returning records from the Detail block rather than the master block. Can anyone tell me how to return records from the master block?
    I have no idea what the block name is. I've tried the data block name and the title above the block and both say they are undefined.
    Thanks.

    Welcome at OTN
    Please Before posting on this forum please read
    I have no idea what the block name is. I've tried the data block name and the title above the block and both say they are undefined.At Layout Editor expand the Data Block nodes. Here you will get the block name.
    Check in When-New-Form instance trigger, is there any code like
    Go_Block('details_block');IF yes , delete this line...
    Hope it helps...
    Hamid
    If someone's response is helpful or correct, please mark it accordingly.

  • Master-detail Block save behaviour

    Hi,
    I have master detail block just consider Forms A as a master and Forms B as a Detail,when my cursor is in form A i try to save the record, it is saved Form A and putting Form B data as null, i have to put a validation to stop this activity, i have to inform the user "Provide values for form B text item",
    I created a post block trigger in form A
    Begin
    If (:FORM-B.TEXT1 is nul)l or( :FORM-B.TEXT2 is null)
    then
    Message( 'provide value for FORM-B');
    Message( 'provide value for FORM-B');
    raise form_trigger_failure;
    ELSE
    NULL;
    END IF
    END;
    Im Getting error message and navigation got stopped in last item of form A, please advice me which trigger i have to use for this.
    Thanks and regards
    karthik

    Hi
    Getting error message what is the error message ?
    to inform the user "Provide values for form B text item", Pls try to use WHEN-CREATE-RECORD or WHEN-validate-RECORD Trigger instead
    Besides raise form_trigger_failure;
    stops the navigation
    or to inform user and stop saving
    u can use pre-commit Trigger the raise form_trigger_failure;
    will stop saving...
    Regards
    Abdetu...
    Edited by: Abdetu on Feb 5, 2011 9:33 AM

  • Oracle Forms : Master Detail : Cannot query detail block

    MY requirement is: when user enters records in master block, the corresponding records should be displayed in the detail block. (Detail block is just for viewing).
    Master block is a database block based on a custom table. All fields are enetereble in this block.
    Detail block is a a database block based on view which is built joining the custom table(on which master block is built) & a standard table. None of the fields in detail block are editable. they are just display only. For detail block, set the Key Mode=Non-Updatable, Enabled a field as Primary Key.
    I have created a relation between the 2 blocks. (Deferred=No, AutoQuery=No, Delete Record Behaviour=Isolated.). There is a join between master table & this view.
    But when I enter record in master block & save. the detail block records are not displayed. (Message : No Navigable Items in Detail Block).
    Yes, there are no navigable items in detail block, because its just for viewing purpose. How can this be achieved.
    Thanks,
    Naveen

    Thanks for your inputs. I got the solution for this. Earlier all items in the block were DISPLAY_ONLY. Now, I have selected them as TEXT_ITEMS (even though they are not updatable). It is working fine now. Thanks.

  • LOV problem in Master-detail blocks

    Hi,
    I'm working with Designer 6.0.3.5.0.
    I've got a form with two master-details blocks :
    Block A
    |
    |||
    Block B
    |
    |||
    Block C - Lov D/E
    In my block C, i want to create two lovs (D/E).
    When i'am displaying the key item of the block (FK between C and the LOVs) and with the property "Enter FK with Descriptor"=NO. The LOV is OK on the key item and works correctly.
    But when i want to display only the descritor item (with the property "Enter FK with Descriptor"=Yes). The item is correctly displayed but without the LOV. If i open my module with forms, i can see that the lov is not built.
    Does somebody know if i miss something or if it's a bug ?
    Thanks for your help.
    Dominique

    I solved it by commenting the Go_Item(startitm); line in the clear_all_records program unit which is generated by oracle forms.
    as shown below.
    IF :System.Cursor_Item <> startitm THEN
    --Go_Item(startitm);
    Check_Package_Failure;
    END IF;

  • Multiple master blocks populating the same detail blocks

    Hey guys. Im doing something a little weirder than I usually do but I can't get it to work correctly and im wondering if any of you have accomplished this before.
    I have a call center application which processes applications by either the application or by follow up. The application and follow up are each a block by themselves located on a separate pages on a tab canvas. Both these blocks are master blocks to the detail blocks which would be user_phones, user_addresses, user_bank_accounts, etc. The idea is I can use either page of the tabs and flip through either the follow up, or application master block and have it populate the user tables according to the user_id found on the master blocks. I figured I could use a when-new-block-instance trigger to switch off which block fires the on-populate-details trigger.
    The problem is.... complicated. If I go to the follow up block and execute query, it brings back the right information on the detail block. The strange thing is it seems like when I move the cursor to a different record on the same block, forms is almost setting a SET_BLOCK_PROPERTY DEFAULT_WHERE action. This is un-noticeable until i go to the other master detail block. When I start using the applications block, it seems like all the detail records actually MATCH the user_id that the cursor was on in the follow up block...
    phew! thats a lot of description for such a strange problem..
    Anyways. Anyone encountered this before? Has anyone ever built a two master block form to populate the same detail block? Is it possible? I haven't found a thread in the forum about this subject..
    Any help would be great. Thanks in advance :)

    Having one detail block for two master blocks was never a use case that we considered for Forms. It sounds like you are trying to make a many-to-many relationship work with two master blocks. I suggest you think about having an intermediate block (hidden or not) that drives the detail block and make each master block drive that intermediate block instead of driving the detail block directly.

  • How to commit in master detail block

    Hi
    I have a master and a detail block .
    In detail block if i try to insert a record and commit it is working fine .
    But when i try to insert multiple records then I am unable to commit .
    Error given is frm 40508 :Unable to insert record .
    Plz help me
    thanks shubh

    Could you, please check out the complete error message by clicking the help-> display_error menu option ?

  • Ora-03114   when  saving data after  second update  for the detail block

    hi
    i am using developer 6i and i did a form which includes masters and details blocks
    when i create a record for the master and detail and save it , then it saves , and if i make any changes on the detail block for the first time and save it saves , but if i make changes for the second time and save it gives me
    ora-03114 not connected to oracle
    if any one knows what is causing the problem, then let me know please. Thanks

    Hi
    This is very strange...
    What if u re-connect to oracle form ...? is same problem occured ?
    1.Pls check any trigger block level as post-update and other related...
    2.Remove any un-necessary triggers u thought they r ignored by ur forms but they almost causes unexpected problems...!
    3.pls share us the code u have in key-commit or post-commit trigger , etc.
    or remove it temporary just for test purposes compile , generate and run.
    Hope this helps...
    Regards,
    Amatu Allah

  • Master-detail blocks

    I developped a form with 2 blocks
    that are linked with a master detail relation
    The second block contains the details record of the first one
    Example of tables : dept - emp
    Is it possible to add a record in the dept table that will show all the records from the emp table when you click on it.
    Thank you for your help
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Emmanuelle OTT ([email protected]):
    Hi!
    When you create a detail block using wizard and you get a page in which you have create relationship button which will help you in your desired relation.
    if you create them manually then got to master block and under that create relation in which you you can choose the detail block and the type of relation and the condition and for any further query you can refer to help in the same page by pressing F1.
    regards
    Vidya Verma
    I developped a form with 2 blocks
    that are linked with a master detail relation
    The second block contains the details record of the first one
    Example of tables : dept - emp
    Is it possible to add a record in the dept table that will show all the records from the emp table when you click on it.
    Thank you for your help<HR></BLOCKQUOTE>
    null

  • URGENT HELP PLS :  Issue with Multi Level Master Detail block

    This is an issue someone else had posted in this forum few years back but there was no solution mentioned, I have run into this same issue , The problem is as explained below.
    Any help on this is appreciated.
    Scenario:
    There are 3 Blocks in the form : A (Master Block)
    : B (Detail of A )
    : C (Detail of B )
    There is master detail relation created between A and B and B and C. So initially when we query for a record in Master A, it shows all records properly in B and C.
    Now if i navigate to the first record of B , and then second record of B , records corresponding to that record shows up properly in C block.
    Till now everything works fine.
    Issue 1:
    But in case after querying initially on Master Block A,If I go directly to the second record of B block, it clears the whole B block and C block.
    Issue 2:
    Same thing happens if I am on C block ( corresponding to second record of B block) and then navigate to first record in B block , it again clears the whole B block and C block.
    Please Help !!
    Thanks !

    Thanks Xem for Your reply , I tried those settings but it did not help..here is the original link that to the thread that talks about the same problem ,
    Issue with Multi Level Master Detail block
    The last update to this was the following :
    "I figured out that this is happening because Block Status is set to 'Changed' and this is causing it to clear out the blocks.
    But cant figure out why the status is setting to 'Changed' "
    Any Help from the form Gurus on this form in this matter is truely appreicated !!
    Thanks,
    Zid.

Maybe you are looking for

  • Adding 16GB Ram to Macbook Pro

    I purchased a Macbook Pro and would like to add ram memory. I have recently read that the MacBook Pro 15-inch 2.5GHz quad-core Intel Core i7 is capable of having 16GB of ram added: CNET http://reviews.cnet.com/8301-13727_7-20125391-263/add-16gb-ram-t

  • DBMS_XMLSave AND trigger

    Why isn't possible to use DBMS_XMLSave into an INSTEAD OF TRIGGER context ! XSU want to set a savepoint and this is not allowed into a trigger.....

  • Calling actionscript file package classes

    I have composed a simple actionscript class called "test.as" under this directory \project\as\test\. The test.as class is packaged as "package as.test". In my main flex file main.mxml, how can reference this test.as class without getting a complied e

  • Error REEXFI243 during periodic posting

    Hello everyone, I am trying to perform periodic posting for commercial lease-out contract and I get the following message: Cannot generate tax statement item for tax code V0 Message no. REEXFI243 Will appreciate for any suggestions. Thanks.

  • Is there any SAP standard HUM report

    Hi Guys Is there any SAP standard HUM report which can have the fields like Contents of HU field and HU identification2 field Please help Thanks in advance