To get value in detail part of master detail form

hi all
i am using forms 6i
there is a master detail form
in the master part
i am just mentioning one field as per the requiremnt
FIELD BELONGS TO DATA BLOCK XXNP_JL_001.FIELD
this FIELD field is populated by a flexfield NAP_GL_WELL
VALUES are
abc                           123
def                            456
fgh                            875
in the master part of the form there is also a button called POPULATE which populates values  for the fields in the detail form
in the detail part of the form
i am mentioning two fields
item_number belongs to data block XXNP_JL_EST_002 and      opn_value belongs to data block XXNP_JL_RES_005
now the requiremnt is as follows
say the WELL field has a value 'abc'
then in the detail part
whenever and only when the item_number is '1010103002' the opn_value field should have value 123
similarly when the WELL field has a value 'def'
in the detail part
when the item_number is '1010103002' the opn_value  field should display value '456'kindly guide on how this can be achieved
thanking in advance
i did a when validate trigger on opn_value field
BEGIN
IF  :XXNP_JL_RES_005.OPN_UOM_CODE='PKU' and :XXNP_JL_EST_002.ITEM_NUMBER='1010103002' THEN
        SELECT hierarchy_level
        INTO :XXNP_JL_RES_005.OPN_VALUE
        FROM fnd_flex_values
        WHERE flex_value_set_id = 1009757
        AND FLEX_VALUE=:XXNP_JL_001.FIELD ;
        END IF;
        END;Edited by: makdutakdu on Jul 4, 2012 12:40 PM
Edited by: makdutakdu on Jul 4, 2012 1:05 PM
Edited by: makdutakdu on Jul 4, 2012 1:09 PM

HI
If i understood your question on overview, your requirement is
get master details in details column.
If this is correct,
YOu can write a simple plsql to get master value in details columne thru trigger
If my understanding is not correct, please tell me

Similar Messages

  • BC4J - To get the detail of details in a Master-Detail relationship

    Hi,
    I am developing an application in JDev using Buss Components for Java.
    I need to show the details from the details in a Master-Detail relationship of ViewLink Objects.
    e.g I am browsing through a list of book publishers, if I pick one book publisher, all the books published by this publisher should be displayed. And when I pick one book out of these, the list of buyers should appear for this book.
    Is it possible to do it via the wizards in JDev?
    If not, is their any other way of doing it?
    Thanks,
    Any help would be appreciated.
    null

    Sure. Arbitrary levels of master/detail are easy to handle. It's just the first time you set it up in the "Data Model" panel of your Application Module, the UI gestures may not be the most obvious.
    Depending on whether you need to just browse the data, or both browse and update it, you would decide whether or not you need underlying Entity Objects for Publisher, Book, and Buyer.
    To keep it simple, just assume you want to browse so the Entity Objects are not required to be involved.
    You would develop three View Objects:
    [list=1]
    [*]Publishers - with a query like SELECT publisher_name, publisher_id FROM PUBLISHER ORDER BY publisher_name
    [*]Books - with a query like SELECT title, isbn FROM book ORDER BY Title
    [*]Buyers - with a query like SELECT name, company FROM buyer ORDER BY company, name
    [list]
    Then, you define two View Links:
    [list=1]
    [*]BooksFromPublisher - linking the Publishers view to the Books view, and
    [*]BuyersForBook - linking the Books view to the Buyers view
    [list]
    Then, you define an Application Module that sets up the data model you want to work with in a particular application that reuses these reusable view object and view link components.
    On the "Data Model" tab, you'll see the master/detail views available in the "Available" list like this:
    - Publishers
    |
    +- Books
    - Books
    |
    +- BuyersTo construct a master/detail/detail view with these "raw ingredients" do the following:
    [list=1]
    [*]Click on Publishers in the Available list, and click (>) to shuttle it into the data model
    [*]In the data model tree, select the Publishers view to make it the active selection.
    [*]Back in the Available list, click on the Books view that is indented under Publishers and click (>) to use Books as a detail of the current view in the data model.
    [*]In the data model tree, select the Books view to make it the active selection.
    [*]Back in the Available list, click on the Buyers view that is indented under Bookss and click (>) to use Buyers as a detail of the current view in the data model.
    [list]
    Hope this helps.
    null

  • Make detail items in master/detail form read only

    I want to make detail items in master/detail form read only for certain conditions (master STATUS = Closed). I see how to do this on the master record items but not on detail items.

    Take a look at this thread: Re: Conditionally make a tabular form uneditable
    You will need to modify the code, but it should help since a master detail is just a standard form with a tabular form attached to it..
    Thank you,
    Tony Miller
    Webster, TX
    Time flies like the wind, but fruit flies like bananas.

  • Creating Detail record in Master Detail form

    I have created a Master Detail form with the Detail form being on a second page.
    I have no problem editing an existing detail record. However, if I attempt to create a new Detail record (insert). I get an error. It appears that the value of the field that I am linking the Master and Detail records with, does not get passed to the second (detail) form when I press the 'Create' button and I have not been able to ascertain where I may need to modify the parameters of the page.
    Any guidance would be appreciated.

    Hi Judy,
    It's been 5-6 months since I've created a Master/Detail APEX application, but I don't remember having to create any special trigger or anything. I created a few maintenance appls over tables I created, and created an inquiry appl using Oracle vendor tables. All of them have worked nicely.
    If the PK/FK's are set up correctly it just works. :-) Like magic. If I recall correctly, as you create the appl you define the the key fields to use. If the tables are defined correctly, and you 'tie' them together using the correct key fields in the application everything should work nicely.
    Tony

  • Limit on number of columns details of a master detail form/report

    Hi,
    I understand that there is a limit to the number of columns you can have in a master detail form/report. I am on Apex 4.01 and have a detail section that shows 24 months at a time as columns with integer hours assigned each month. My master detail was working fine with as many as 24 months/columns in this detail section, but I tried to re-use months by 'recycling' months, clearing them out of values and adding the months to the end of each row but now I am getting errors even though I had more columns showing before my 'recycliing' of the columns. The error is:
    "ORA-06502: PL/SQL: numeric or value error: character string buffer too small "
    What I don't understand is -- why am I getting this error now when I actually had more columns in the detail section months ago, and all I am doing is 'recycling' prior columns back into the detail report, not actually adding columns.
    Thanks for any insights anyone can give.
    Pat

    DBA tells me that we are at 9.0.2.2.14, (higher version than the one you suggested) but I still get the same error.
    Thanks,
    Karuna

  • Inconsistent inserts into detail table of master-detail form

    Hello,
    [I am not sure if this is a bug or user error, so I've also put this in the bug tracking system.  Apologize for the 'duplication']
    I have a master-detail form: Orders is the master, and Order_Details is the detail. I have noticed some inconsistent behavior when inserting the detail information.
    On occasion, the row will be inserted, and a null value will get inserted into the database for the first column of the detail table; all the other data values will be inserted fine. There doesn't seem to be any pattern to when it happens. I wrote down the following test steps:
    1. Enter new order information and click 'Create'
    2. Click 'Add Row' button so can add order detail info
    3. Enter detail row information
    4. Click 'Add Row' (I do this so I can see the success message that the detail data was actually inserted)
    5. Click 'Apply Changes' at the master level.
    I ran a query on the order details table and saw that the data inserted correctly. Then I ran the following test:
    1. Enter new order information and click 'Create'
    2. Click Add Row button so can add order detail info
    3. Enter detail row information
    4. Click 'Add Row' (success message appears that detail was inserted)
    5. Enter second detail row information
    6. Click 'Add Row' (success message appears that detail was inserted, however, now in the first column of that second detail row - the product name field/column - the data does not appear. I only see my null text value. The data in the first detail row is all correct)
    7. Enter third row detail information
    8. Click 'Add Row' (success message appears that detail was inserted, and this row's information appears correctly, as does the first row's, but the second row is still showing a null value for the product name column)
    9. Click 'Apply Changes' to get out of the form
    A query of the order details table shows that a null value (-) has indeed been inserted into the table for the product name column of the second detail row.
    This behavior also happens when I don't have a null value for the LOV (i.e., it defaults to the first row of the lookup table).
    Has anyone seen this before? Am I entering the data incorrectly?
    Thanks.
    -melissa
    Message was edited by:
    mblakene

    having the some problem. Any help with this ??
    milowski were you able to solve it ? can you share the information.
    Thanks

  • How can I insert in the table detail of a master/detail form??

    Hello, I have created a master/detail form from the assistant, and with the code generated by APEX I do not manage to insert a row in the table detail, I press the button 'Add Row' and refill information, when I press the button ' to apply changes ' me the following mistake appears:
    'Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. current checksum = "C85B64D53C8D63E9D3EE83B82728DFA3", item checksum = "244B1FED90DF5CC5B0DDB6728F4D02DD"., update "CRM_ADMIN"."ASIGNACIONES_AM_CONTACTOS" set "SECUENCIA" = :b1, "CODIGO" = :b2, "NOMBRE_CLIENTE" = :b3, "NOMBRE" = :b4, "COMENTARIOS" = :b5, "CODIGO_COMERCIAL" = :b6'
    How I can solve and be able to insert in the table it detail?
    Thanks

    Hi Law,
    Text in a shape or a text box will not feature in the table of contents.
    To get a colour behind your titles, type them into your document (not a shape). Format as Heading or some other paragraph style the TOC will recognise.
    Select the title text and Format Panel > Text > Font > Gearwheel > Advanced Options.
    Choose Character Fill Color and choose a colour from the palette (left) or colour circle (right).
    Example Titles (all on the same page for a smaller screen shot).
    Chapter 3 (in a coloured Text Box or Shape) does not appear in the TOC:
    Hint for cheats :
    To give the titles a wider Character Fill Colour, add some Tab characters before and after.
    Regards,
    Ian.

  • Can't add new detail record in Master Detail form

    Hi ,
    I've created a simple database application from scratch by initially selecting a Master Detail page. This generated a report page (for the parent ) and a form page (for the child ). On using the form to add a new child record the following error was generated:
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-01400: cannot insert NULL into ("STUDENT1"."DELEGATE"."DELEGATE_ID"), insert into "STUDENT1"."DELEGATE" ( "DELEGATE_ID", "CLIENT_ID", "SURNAME", "INITIALS", "SEX", "SPECIAL_NEEDS") values ( :b1, :b2, :b3, :b4, :b5, :b6)
    Error Unable to process update.
    The 'child' field listed in the error message is automatically hidden on the form and I had presumed that on generating this form using the wizard that I would have had an opportunity to link the delegate_id field to a trigger or a sequence as seems to happen when creating a database application scratch using other page types. I'm new to Apex so I'd be grateful if anyone could let me know as to why this default behaviour occurs,
    regards,
    Kevin.

    I tried it for Apex 4.0.2 (my version) and 4.1 (on apex.oracle.com) and I am asked for master and detail PK generation in both versions.
    What are your steps exactly in the wizard? Like this?
    Create page -> Form -> Master Detail Form
    Now you see a whole list of sub steps including "Primary Key Source".
    Oh I see "Create Application wizard." in your post. Start with an empty application (blank page) and use the Create Page wizard instead. Maybe that's the difference.
    Edited by: InoL on Nov 18, 2011 9:27 AM

  • DB-Adapter 10g: Filtering Detail-Rows in Master-Detail-Relationship

    Hi,
    I'm having a Master-Detail-Table e.g. Departments and Employees. Those are mapped with 1:N FK-Relationship. Using the Oracle SOA-Suite 10.1.3.5 DB-Adapter I'd like to setup a filter returning all Departments and all (e.g.) female Employees.
    For the example see: http://docs.oracle.com/cd/E11036_01/integrate.1013/b28994.pdf (chapter 4.3.9). Unfortunately, this doesn't work. If definining a where-clause empCollection.gender='female' I get the following behavior:
    - If a dept has no female emp, this department is not shown at all (however I want it to be empty)
    - If there is at least one female emp, the department and all employees are shown.
    Any idea on how to solve this problem would be highly appreciated!
    Regards,
    Johannes

    I gave it a try, 2 problems:
    1) the outer-join seems to be wrong. it provides me only departments that have at least one female employee. If I change that outer-join to:
    select DEP.id,DEP.name, EMP.id,EMP.GENDER
    from EMP, DEP
    where EMP.DEP_ID(+)=DEP.id
    and emp.gender(+)='female'
    it gives me what I want from sqldeveloper:
    select * from emp;
    ID NAME
    1 empty
    2 mixed
    3 male
    4 female
    select * from dep;
    ID DEP_ID GENDER
    1 2 male
    2 2 female
    3 2 male
    4 3 male
    5 3 male
    6 4 female
    7 4 female
    8 4 female
    select DEP.id,DEP.name, EMP.id,EMP.GENDER
    from EMP, DEP
    where EMP.DEP_ID(+)=DEP.id
    and EMP.GENDER(+)='female'
    ID NAME ID GENDER
    1 empty
    2 mixed 2 female
    3 male
    4 female 6 female
    4 female 7 female
    4 female 8 female
    2) However that doesn't solve my problem with the BPEL-Adapter. There I still get the folowing result:
    <DepCollection xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/test4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Dep>
    <id>2</id>
    <name>mixed</name>
    <empCollection>
    <Emp>
    <id>1</id>
    <gender>male</gender>
    </Emp>
    <Emp>
    <id>2</id>
    <gender>female</gender>
    </Emp>
    <Emp>
    <id>3</id>
    <gender>male</gender>
    </Emp>
    </empCollection>
    </Dep>
    <Dep>
    <id>4</id>
    <name>female</name>
    <empCollection>
    <Emp>
    <id>6</id>
    <gender>female</gender>
    </Emp>
    <Emp>
    <id>7</id>
    <gender>female</gender>
    </Emp>
    <Emp>
    <id>8</id>
    <gender>female</gender>
    </Emp>
    </empCollection>
    </Dep>
    <Dep>
    <id>3</id>
    <name>male</name>
    <empCollection>
    <Emp>
    <id>4</id>
    <gender>male</gender>
    </Emp>
    <Emp>
    <id>5</id>
    <gender>male</gender>
    </Emp>
    </empCollection>
    </Dep>
    <Dep>
    <id>1</id>
    <name>empty</name>
    <empCollection />
    </Dep>
    </DepCollection>
    This is how I used the wizard:
    1_Select_Table.png
    2relationship.png
    3objectfiltering.png
    4selection_Criteria.png
    Any futher ideas?
    Edited by: Johannes M on 17.01.2013 12:31
    Edited by: Johannes M on 17.01.2013 12:34

  • Search in the Detail of a Master\Detail Table

    Hi everyone.
    I have a master detail table. How can i search in the detail of that table?
    Thanks!

    Assuming your detail is setup using a view link and included as an actively-coordinated view link in the data model, then the detail VO will only display the data for the current master.
    In addition, if that detail has bind variables of its own, you can supply those bind variables values using ExecuteWithParam built-in action. This will further filter that current set of details for the current master.
    For example, imagine DeptView and EmpView.
    You can search the DeptView to find Depts you want, as you navigate between them the EmpView will show only the employees for that current department. Let's say you do this and have Dept = 10 as the current row in the master. The EmpView will show all employees having DEPTNO = 10.
    You can also further filter the detail by using a view criteria or using bind variables. If you're using the latter, then the ExecuteWithParam built-in action gives you a way to supply values to those bind variables and re-executing the query. The query will be a merging of your original query and the additional WHERE clause fragment added by the framework that restricts the rows to only be for the current department.

  • Unable to insert detail record using Master- Detail Form

    Hello All,
    I am new to Apex and we are using Apex 2.2.
    I am trying to create a Master-Detail page using the Wizard. Unable to insert the detail record as the foreign column value is not inserted. How can i assign this value to the child record before inserting? Hope you got my query.
    Pls reply asap
    Thanks
    Biju
    P.S - Can't upgrade to 3.0 yet

    G'day Guys,
    We just had to create a Child Tabular for Master Detail manually ourselves and finally worked out how to set the PARENT_ID field (Foreign Key fields). It was quiet easy after we finally found the little bugger :)
    Under The Reports Attributes for the tabular report, located the PARENT_ID field and edit it (column attributes). Goto the "Tabular From Element" and modify the following values:
    Default Type: Item (Application or page item name)
    default: PXX_FIELD_NAME
    Thats it, so when a new row(s) is added this field defaults to PXX_FIELD_NAME.
    Told you it was easy, but I've just got to glue my hair back in after near tearing it out.
    Reagrds
    Mark

  • How to access detail-rows in master-detail form?

    I have a master-detail form(one to many relationship). The master and detail are in separate blocks. The detail rows are displayed in a tabular form.
    I need to access the detail-rows since the database writes for the detail rows will be managed by a procedure.
    I have been looking through the documentation and have been unable to find any syntax for iterating through the detail-rows.
    Any help is appreciated. Thanks.

    go_block(detail)
    first_record;
    in a loop while not last_record
    -- do your stuff
    next_record;
    end loop;

  • ADF 10.1.3.3 - Set current row on detail table in master/detail

    I want my master/detail form to remember the row the user selected in the detail table before pressing submit/commit.
    Today is it always the last row displayed that default is selected.
    How can that be accomplished ?
    Message was edited by:
    jsteenberg
    Message was edited by:
    jsteenberg

    Which technology are you using?

  • How to get value of selected part in sap.viz.ui5.pie chart

    Hi,
       I have designed a basic Pie Chart. But i am looking for the code to get the value of the selected part of the Pie Chart,so that i can report a details based on it.
    Is their is any sample code snippets available for all event handlers of sap.viz.ui5 charts..
    Thanks,
    Prakash

    Hi Prakash,
    Refer this thread How to get the value of Selected Dimension in a Pie Chart ?
    I shared example code in this thread and I hope it will solve your question.
    also you can see example at this link https://sapui5.netweaver.ondemand.com/sdk/test-resources/sap/viz/demokit/VIZCharts.html?sap-ui-debug=true&sap-ui-language=en-US&sap-ui-theme=sap_bluecrystal&sap-ui-accessibility=true&sap-ui-jqueryversion=1.7.1
    see the eventing section and source code to know all event handles.
    Regards,
    Chandra

  • Help!  After validation failure, Detail region of Master Detail page does not refresh.

    Hello.
    I am running a validation to prevent deletion of a purchase order (PO) when invoices exist for the PO.
    When the condition is found (invoices exist), the deletion process is halted and a message is posted to the page.
    I would like for both Master and Detail data of the PO to be refreshed.  However, only the Master
    record is refreshed.  I get the following error for the detail data:  The detail is found through the Master Header primary Key (DetailRecord.PO_ID = :P230_PO_ID )
    ORA:01445: Cannot select ROWID from, or sample, a join view without a key preserved table.
    ORA-06510 - PL/SQL unhandled user-defined exception.
    I'm not sure why this message should come up.  I do not clear cache or reset the page or anything like that.
    Any hints?

    Just an FYI for everybody who may have this very same problem in the future.  I fixed the error and it had nothing to do with ROWID or views or anything like that.  Under the Page Rendering section where you define the region definition under the source section, I had included the 'order by' clause in my SQL statement.  This was the cause of my ORA-01445 error!  When I removed the clause from the source definition and instead included it within the Report Attributes by checking the Sort box for the appropriate column (thus allowing APEX to generate the sort for me), the error disappeared!  The Oracle error message would NEVER have given me a clue into what caused the error.  I just happened to think 'what if I take the order by clause out'!  How's that for a flukey fix! 

Maybe you are looking for

  • Apps do not update

    For about a week, when I get a notice of update available for an app...upon entering App Store for update...nothing happens.  I have rebooted the Ippad and rebooted the wireless router. Nothing changes.  All other functions at App Store work, includi

  • How to get bulk action to update resource

    I have to update some users data in a particular resource. I'm attempting to add a location to their user object, the resource and their waveset info via a bulk action script (which I have very little experience with). Currently I have it set up so t

  • Lightroom 4.4 Metadata Auto Sync switch missing from Sync Button.

    I am using Lightroom 4.4 on a 2013 Macbook Air OS 10.8.4. I cannot see the Switch enables auto sync on the Metadata sync button. Its currently visible on another machine a MacPro with Lightroom v4.3. I find this useful to be bale quickly enable and d

  • How do I install XIR3.1 on Windows IIS.

    I am trying to install Business Objects XIR3.1 and use IIS instead of Tomcat. I can not seem to find any documentation on this process or figure out how to accomplish the installation. Can anyone help me out or point me in the right direction? Thanks

  • Malgré mon enregistrement, l'editeur de photoshop element 13 ne se lance pas

    Malgré mon enregistrement; je ne peux lancer ni photoshop element 13 ni premiere element 13. Après l'acceptetion du contrat de licence, la fenêtre se ferme.