Dynamic LOV problem in Master Detail form in 3.0

I am using Master detail layout for my app, In detail there is a LOV depending on the value of one of the items in master.
LOV statement is like this
select col1 a,col1 2
from test_tab
where col2 = :P2_VAL ;
Note: :P2_VAL is the value of the one of the master table column value
This code is working fine in version 2.1 .
After I Upgraded to 3.0 , it is not working .
If I put the hardcoded value like col2 = 'TEST' , it works for those values. Any suggestions for this problem is greatly appreciated.

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;

Similar Messages

  • Problems in Master-Detail forms when the detail contains LOVs

    I am having problems with master detail forms when the detail contains and lov.
    In my detail form I have a messageLovInput field that returns 2 values (code and description). When the lov window returns both values the messageLovInput disappear from the form.
    This problem happens only when I iterate in the master view and I try to add a record in the detail form.
    If I add a new record without navigation for the master view there is no problem.

    Jode,
    which technology are you using, ADF JClient ? If yes, please provide a step by step description of how to setup a testcase to reproduce the problem.
    Frank

  • Problem in Master Detail form when using ADF table for Detail

    hi,
    jdev version-11.1.2.1.0
    i have create Master detail form using datacontrol drag as ADF Master Form Detail Table.
    Now when i create a new row in Detail table using CreateInsert button a blank new row created on the top of detail table.
    and other row show that data of previous record based on master.
    problem is that i want when i click on createInsert button all row of detail table should be blank and when user fill two or three row then commit.
    Thanks in Advance

    Hi,
    if a detail table has data, then createInsert adds to these. If you want to hide existing rows, create a new View Object instance and set its "Retrieve from the Database" option to "No Rows". The use an af:switcher to change the table shown when the user clicks the createInsert button. There is a bit of coding required to have this use case in ADF, but its mostly declarative. Bottom line is that there is no automated option other than creating new rows in a separate page or dialog if you are bothered by existing rows
    Frank

  • Post-trigger problem in master detail form.

    I have designed a master detail form having two data blocks.
    in detail data block there is a post-query.
    when i tried delete one record in master block
    an error occurred ie
    'frm-40654. Record is updated by another user
    re-query to see changes'.
    in detail block there are 3 non database items.
    when i delete the post-query trigger the record is deleting properly.but the post-query trigger is also needed to display the non database item values. please give me a solution to tackle this problem.

    Hi,
    Even though yout items are non-database items, when you assign a value to them forms sets the block status to "CHANGED".
    Add the following lines add the end of your post-query trigger to reset the block status to "QUERY"
    set_record_property (GET_BLOCK_PROPERTY('YOUR_BLOCK_NAME',CURRENT_RECORD)
    ,name_in('system.cursor_block')
    ,STATUS
    ,QUERY_STATUS
    Hope this helps,
    Hugo

  • JTable problem in master detail form

    I've created a master detail form. There is only one Navigation bar for both master and detail. Detail has a JTable component. JTable doesn't get focus when it doesn't have any row and I am uanble to insert new rows. To cope with this problem I've added two new buttons in Navigation Bar to travers to the next and previous iterBinding.
    When I start my form cursor apperas in the first field of master view when I press Next Button nothing happens ( Status Bar should show the next iterbinding/view). I've addes some debug mesgs in iterBindingChanged method of NavitaionBar class and it seems by looking the mesgs that detail/Jtable's iterBinding get focus two times but at last focus has been returned to the master iterBinding.
    Is there any suggestion to solve this problem.
    Regards
    Aamir

    Hi,
    I'm using 1.4.0 for my JClient and, due to the improved focus management provided in the new JDK, I am able to properly manage master-details configuration with only one navigation bar (of course, the JTable must be able to receive the focus, but this also is much easier in 1.4.0...)
    Nevertheless, the solution I found is quite complex and I would happily discard it.
    If you could find a solution that works "naturally" on frames with only one navigation bar, it would be great! I think that the buttons in the nav bar should apply to the "current" iterator binding (the iterator binding for the control having the focus).
    Thanks,
    Adrian

  • Problems with Master-Detail Form not retrieving Detail Rows

    Portal 3.0.7.6.2 on NT
    I am having problems with a Master-Detail Form not retrieving Detail Rows. Sometimes it retrieves all, sometimes about 50%, the majority of the time it's not retrieving any. If it never retrieved any I would suspect that the 'join' condition was wrong but that isn't the case. I didn't have this problem with a prior MD Form I created. I have tried re-creating the MD Form but I get the same problem.
    Is anyone having similar problems/is this a know bug??
    Any help or thoughts are appreciated.

    I experienced performance problems. The simpiest MD form takes about 10 secs. to requery. I's not answer to your question, but there is more problems with this concept.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Michael Finch ([email protected]):
    Portal 3.0.7.6.2 on NT
    I am having problems with a Master-Detail Form not retrieving Detail Rows. Sometimes it retrieves all, sometimes about 50%, the majority of the time it's not retrieving any. If it never retrieved any I would suspect that the 'join' condition was wrong but that isn't the case. I didn't have this problem with a prior MD Form I created. I have tried re-creating the MD Form but I get the same problem.
    Is anyone having similar problems/is this a know bug??
    Any help or thoughts are appreciated.<HR></BLOCKQUOTE>
    null

  • Problem in Master Detail form

    Hello I am new to Form Developer and the question I am asking may be very simple for experienced programmers but as I said I am new to forms development so I am finding it a bit hard.
    I have got the following three tables in database.
    1. Student (roll_no, name) Primary key is roll_no
    2. Fee_type(Fee_code, Type, Amount) Primary key is Fee_code
    3. Fee_Receipt(roll_no, Fee_code, Date_of_Payment) roll_no & fee_code are foreign keys
    I want a form containing a combo box filled with all the roll numbers of students, a combo box containing all the fee types and then fields for entering data into fee_receipt table by using text items.
    I dont want to see the names of students, just their roll numbers filled in the combo box. I dont want to see the fee code i just want to see the fee types in the second combo box.
    how would i be able to do that. Any sort of help big or small will be appreciated. Thanks in advance

    Hi,
    Check this out... *[url http://www.holowczak.com/oracle/dev9i/#creatingmasterdetail]Creating Master-Detail Form*
    It is a similar kind of master-detail form. But you have to adapt your requirement accordingly.
    Hope it helps

  • Problem with Master -Details forms in seperate pages

    Hi ,
    Below is the scenario:
    I have Institution and a department tables where there is a foreign key relation between the tables. So now i have two entity objects for the 2 tables and 2 view objects(DepartmentView,InstitutionView) from the entity objects.
    I also have a view link between them.I made a master-detail relation between them in the datamodel using the view link.So my appmodule now has getters for the department view,institution view and viewlink.
    I now have a jsp page "createInstitution.jsp" which contains a form for the institution , i have a "next" button on the same jsp which calls a method in my appmodule class .This methods just inserts the record into the Institution view. In this method i am able to see what the user entered in the form by getting the viewrow record like the below code :
    InstitutionViewRowImpl newInstitutionRow=(InstitutionViewRowImpl) getInstitutionView().first();
    The next button navigates to the next page "listDepartments.jsp" which contains the list of departments that are added. This page has a button "Add Department" which takes to to the "addDepartment.jsp" page which shows a form for adding a department. This page also has a button which calls a method in app module class. The method just inserts the record into the view(DepartmentView)
    Here when i say
    DepartmentViewRowImpl newDepartmentRow=(DepartmentViewRowImpl ) getDepartmentView().first();
    the newDepartmentRow is null.
    Also on the addDepartment.jsp form , i had used a output field to see what the parent id was and interestingly the parent id is 75 which is first institution in the database. It should have been "-10" , a temporary id assigned.
    Can someone please tell me what is the problem with my approach?

    I don't understand why you are using a method on your button to insert the record into the table - An Oracle ADF Form will do the insert for you by default without any coding.
    See the create pages in these tutorials:
    http://www.oracle.com/technology/products/jdev/11/cuecards/adf_set_21/ccset21_ALL.html
    http://www.oracle.com/technology/obe/obe11jdev/11/dev_ui/developuserinterface.html#t2s5
    The method that you are calling just returns the first record in the rowset - I don't see how it has anything to do with actually inserting the data into the table.

  • 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;

  • Problem in master-detail form on "Apply"

    Hi experts,
    I've got a master-detail OAF page and in the details resultsTable (based on a VO, which is based on an EO) i've
    1. one messageLovInput item
    +"Location(View attr: LocationCode[transient])"+.
    2. two messageTextInput items
    +"LocationId(View Attr: LocationId[EO])",+
    +"LocationNameId(View Attr: LocationNameId[transient])"+
    3. three more messageStyledText items
    +"LocationType(View Attr: LocationType[EO])",+
    +"LocationName(View Attr: LocationName[transient])" and+
    +"SubinventoryCode(View Attr: SubinventoryCode[transient])"+
    Now, the ideal situation or ideal way how the program should run:
    1. On invoking and selection of LOV, the values for all the 6 items should be returned from the lov(*which is working fine).
    2. I've two VO attributes VendorId and OrganizationId which i need to set the value of +LocationNameId[transient](mentioned above)+ depending on the LocationType
    attribute. So, i've a custom logic to iterate through the VO and set these attributes, which is executed when "Apply" button is clicked before getTransaction().commit();
    (But, this is not happening actually when i do this iterate portion, the changes ain't committed. And when i removed this iteration portion, changed are committed, but my
    objective ain't fulfilled)
    3. When on-ProcessRequest() of the page the executeQuery() of VO runs, i need to get the respective values in the transient attributes of VO also to display them in detailsTable
    so, after executeQuery() i've added a custom logic to iterate through the VO and retrieve the values for transient attributes by using PreparedStatement. (This is also not
    working)
    Plz help experts .. ASAP
    Regards
    Ari

    Hi,
    As per my understanding, your issue is that you are displaying some other value (transient attr) in field and storing something else (VO/EO attr) in DB table.
    So instead of creating a transient attribute, modify your VO query and add another column for the value you are displaying on page like:
    EO.value1,
    EO.value2,
    (select value from table_name where val = EO.value1) display_val,
    from tablename EO;
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Master Detail Form is ignoring the 4th join condition

    Hello All,
    I have master detail relationship between two tables with a
    composite foreign key (of 4 columns). I'm creating a master
    detail form in O9iAS Portal 3.0.9.8.0 on these 2 tables
    successfully with no errors. The only thing I have noticed, is
    that the wizard does not populate the join conditions
    automatically in step#3. The form runs Okay but it ignores the
    last condition (i.e., 4th), which means that it brings too many
    details records.
    Any ideas
    Much appreciated if you can CC me: [email protected]
    Hamada Hima

    I had this same problem with master/detail form and 4 join conditions. I opened up a TAR and after several weeks
    Oracle determined this to be a bug and submitted it to developers.
    For a work around, I created a view with two of the join fields concatenated together, then created another md form
    with 3 join conditions and it worked. Good luck.

  • Dynamic action in a report region in a master detail form

    hi
    I have created a master detail form , in which many validation etc is done ,the MASTER is a FORM  and DETAIL is a REPORT
    Now I am stuck up with the detail region .i.e report
    I have Line Detail where there are ITEMS such as SL NO: ,ITEM_ID , UOM ( Unit of measuremnt ) etc
    Now here is where I need help .
    Using POP UP LOV i have managed to fetch in LOV for the item "ITEM_ID",--- i can select an item name using the pop up LOV ,
    Now all that I want is when I select an item name from the pop up lov , an Item Id is displayed or fetched in that particular place , now i want the corresponding UOM to be diaplayed  ( i.e the UOM for that particular Item Id which has been selected by me from the pop up lov ).
    In order to resolve this I created a Dynamic action where in I get the UOM . Bt the problem is that the ITEMS displayed for selecting in the WHEN section (
    DYNAMIC action
    -IDENTIFICATION section
    -WHEN section----- items (  here i am not listed with ITEMS of the REPORT region instead ITEMS of the MASTER is available )
    -TRUE ACTION section etc is only the
    ITEMS of the MASTER region ..
    Please help me sort this out

    Mod: moved from Japanese Apex

  • Master Details form (LOV based on Detail Column of Join Condition)

    I have created a master detail form where user_id is joining master and details.
    I have created one dynamic lov based on child user_id in detail block to diplay all user who works under current user.
    Problem : When i want to select Insert detail action in detail block the dynamic lov should read the user_id which is going to be inserted when you press Save button. Means as its not getting populated till one click on save button my lov is not getting refereshed.
    Please advice what should i do.
    Thanks
    Bakulesh

    I solved myself by modifing some guru's script from this forum little bit. I am adding here for feedback or use to any.
    htp.p('<script language="JavaScript1.3">
    function getMstFieldValue(form,fieldName)
    var objName = "";
    var tmp = "";
    var dAction = "";
    var sel_idx = 0;
    var cnt = 0;
    var instance = 0;
    var slicedName;
    var fillData = new Array();
    var blkname;
    for(var i = 0; i < form.length; i++)
    slicedName = form.elements.name.split(".");
    tmp = slicedName[2];
    instance = parseInt(slicedName[3],10);
    blkname = slicedName[1];
    //alert("Fld "+tmp+" blk "+blkname+ " instance "+instance);
    if (!tmp)
    continue;
    objName = tmp;
    if (objName == fieldName && blkname == "MASTER_BLOCK")
    return form.elements[i].value;
    function setDetFieldValue(form,fieldName,value)
    var objName = "";
    var tmp = "";
    var dAction = "";
    var sel_idx = 0;
    var cnt = 0;
    var instance = 0;
    var slicedName;
    var fillData = new Array();
    var blkname;
    for(var i = 0; i < form.length; i++)
    slicedName = form.elements[i].name.split(".");
    tmp = slicedName[2];
    instance = parseInt(slicedName[3],10);
    blkname = slicedName[1];
    //alert("Fld "+tmp+" blk "+blkname+ " instance "+instance);
    if (!tmp)
    continue;
    objName = tmp;
    if (objName == fieldName && blkname == "DETAIL_BLOCK")
    form.elements[i].value = value;
    </script>');
    thanks
    Bakulesh

  • Post query trigger problem in master detail oracle forms

    Hello experts,
                        I am new in oracle forms n using Fission middleware 10g with oracle forms 11g at windows 7 platform.
    I have made a master detail form using a tab canvas.There is a database column STUDENTID and it is in my student tab with a TBL_STUDENTENTRY data block.Now I Have an another tab named previous_education with TBL_STUDENT_PREVIOU_EDU datablock here there is also a database column STUDENTID and corresponding field in my  previous_education TAB under TBL_STUDENT_PREVIOU_EDU  datablock.Now i want to add a display item to show  student name corresponding to STUDENTID.For this I have tried to make a select query in TBL_STUDENT_PREVIOU_EDU data block POPST_QUERY TRIGGER.
    begin
    select STUDENTNAME into :TBL_STUDENT_PREVIOU_EDU.STD_NM   from TBL_STUDENTENTRY where STUDENTID=:TBL_STUDENTENTRY.STUDENTID;
    end;
    But, This trigger is not fired at runtime,Please suggest me what is going wrong and give me the solution.
    Thank You
    AADITYA.

    http://www.club-oracle.com/forums/post_query-problem-in-oracle-forms-t9751/#post23794 ,  This is the link at where  I have tried to show my problem with the help of an image,Please get the link:
    thanx
    regards Aaditya.

  • Problem: trying to update all detail rows on pre-commit (MASTER DETAIL FORM

    Hi:
    I got a MASTER DETAIL form... and I need to update every detail row of this form (if the master was updated) before commiting the changes. the problem is that i cannot do that for instance in PRE-COMMIT or ON-COMMIT... it's an "illegal operation". I achieved part of it by coding KEY-COMMIT... but that did not solve the all problem. first take a look of the kind of code i want execute before commiting.
    form trigger key-commit code is is somehow like this:
    DECLARE
    tot_line NUMBER (3);
    line NUMBER (3);
    begin
    IF NAME_IN ('system.form_status') = 'CHANGED'
    THEN
    GO_BLOCK ('DETAIL');
    LAST_RECORD;
    tot_line := GET_BLOCK_PROPERTY ('DETAIL', current_record);
    FIRST_RECORD;
    line:= 1;
    LOOP
    :detail.quant := :detail.quant + 1;
    EXIT WHEN line= tot_line;
    next_record;
    line:= line+ 1;
    END LOOP;
    FIRST_RECORD;
    GO_BLOCK ('MASTER');
    END IF;
    COMMIT;
    end;
    The problem is for instance when the users close form in the "X" button (right top, near minimize form) ... If they do that Forms ask "Do you want to save changes?" ... and with this i do not execute the update of the detail rows...
    But there are other situations when this happens... for instance if EXECUTE_QUERY when i change a record...
    Anyone help?
    Joao Oliveira

    Use PRE-UPDATE trigger (Master block).
    begin
    update <detail_table>
    set quant + 1
    where <detail_table>.<relaition_column1> = :<Master_block>.<relaition_item1>
    and <detail_table>.<relaition_columnN> = :<Master_block>.<relaition_itemN>
    and <detail_block_WHERE>;
    EXCEPTION WHEN OTHERS THEN NULL;
    end;

Maybe you are looking for

  • Brand new to Mac, does TM backup all users files, even when not logged on?

    Hi Im brand new to Mac so please be gentle with me!! Im about to use TM for backup, I have an account and have made one for my wife, as we both have an iPod and so Ive herd its easier to use 2 accounts. She wont be logged on much, so if when Im logge

  • Fax Error Reports

    We are getting this report every 10 minutes whether or not we have used the maching.  How can this be turned off?  We do want the confirmation of fax sent (number of pages).  This one is useless!

  • Labview performance suffering with analog input

    Hello, I am using a PCI-6036E and a cDAQ-9172 with LabView 8.0. I have created a VI that systematically writes four different digital outputs, three to the PCI-6036E and one to the cDAQ-9172. Just recently I added a thermocouple to the mix, using an

  • Unable to Activate Screen Buttons on Secure Web Sites with Safari 5.0.2

    I often pay bills online with secure sites, but today I was unable to complete any of those actions. The problem was that I could not produce the desired action when I clicked on action buttons (associated with secure emails in a list), such as SEND

  • Problems with UNION

    Hi, I'm trying to execute this query: SELECT silt.ISIN,         silt.DESCRIPTION,        sidm1.BUSINESS_DATE, sidm1.AZIONE, sidm1.CAMBIO, sidm1.EMITTENTE, sidm1.OPZIONE, sidm1.PAESE, sidm1.TASSO, sidt1.VAR_TRIMESTRALE, '|' as "END"   FROM SPR_ISIN_LI