Question on triggers in master-detail from

I'm a bit confused on what triggers will fire when in master-detail as follows:
If I understand correctly the post-query trigger in the master block will fire during query processing for each record, but not again when you use previous record or next record, unless the record needs to be fetched again.
In the detail block, are the records fetched each time, and post-query trigger fires, for a new instance of the master record or only once the first time they are queried? In other words, is the execute_query built in executed each time for the detail block when there is a new instance of the master record.

Never mind, found my answer.

Similar Messages

  • How to create a master detail from using jdeveloper

    i am using developer 9.0.2 is it possible to create a master detail from using developer like in forms and also the detail form should be in tabular form
    thank u

    Yes. Just use BC4J and JClient
    Frank

  • Need help with master detail from different datasets

    I have xml data from three different datasets that I want to use in a master detail region. 
    So initially, a list of model codes is displayed. When the user clicks on a specific model, the model inputs appear in the detail region.  One of these inputs is a list of map units. I also want a real name description of the map unit to be displayed.  It's working for one map code, but not for all of them. 
    My question is: "How do I get the description to disply for each of the map codes?"
    Here is my code: 
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script src="/SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="/SpryAssets/SpryData.js" type="text/javascript"></script>
    <link href="/SpryAssets/SprySpotlightColumn.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    var DSpresence = new Spry.Data.XMLDataSet("/SpeciesReview/Copy of tblSppMapUnitPres.xml", "dataroot/Copy_x0020_of_x0020_tblSppMapUnitPres");
    var DSancillary = new Spry.Data.XMLDataSet("/SpeciesReview/ModelingAncillarywname.xml", "dataroot/Sheet1", {sortOnLoad: "CommonName", sortOrderOnLoad: "ascending"});
    var DSpresence2 = new Spry.Data.XMLDataSet("/SpeciesReview/Copy of tblSppMapUnitPres.xml", "dataroot/Copy_x0020_of_x0020_tblSppMapUnitPres[strSpeciesModelCode='DSancillary::strSpec iesModelCode']");
    var dsMUDescription  = new Spry.Data.XMLDataSet("/SpeciesReview/tblMapUnitDesc.xml", "dataroot/tblMapUnitDesc");
    var dsMUDescription2= new Spry.Data.XMLDataSet("/SpeciesReview/tblMapUnitDesc.xml", "dataroot/tblMapUnitDesc[intLSGapMapCode='{DSpresence2::intLSGapMapCode}']");
    </script>
    </head>
    <body>
    <div style="width: 100%">
    <div id="Species_DIV" spry:region="DSancillary DSpresence dsMUDescription" width="50%" style="float:left">
      <table id="DSancillary">
      <tr>
      <th>Species Code</th>
      </tr>
      <tr spry:repeat="DSancillary" "DSpresence" "dsMUDescription" spry:setrow="DSancillary" >
      <td>{strSpeciesModelCode}</td>
      </tr>
      </table>
        </div>
      <div id="Species_Detail_DIV" spry:detailregion="DSancillary DSpresence dsMUDescription" style="float:right; margin-top:20px; width: 40%">
        <table id="Species_Detail_Table"  >
          <tr width="100%">
          <th style="font-family:Verdana, Geneva, sans-serif; font-size:14px; background-color:#CCCCCC; font-weight:bold">Modeling variables used for {strSpeciesModelCode}</th>
          </tr>
            <tr>
              <td spry:if="'{memModelNotes}' != ''">Hand Model Notes: {DSancillary::memModelNotes}</td></tr>
               <tr>
                <td spry:if="'{DSancillary::ysnHydroFW}' == 1">HydroFW: {DSancillary::ysnHydroFW}<br />Buffer from flowing water:  {DSancillary::intFromBuffFW}<br />
                Buffer into flowing water:  {DSancillary::intIntoBuffFW}
                </td></tr>
                <tr>
                <td spry:if="'{DSancillary::ysnHydroOW}' == 1"> Buffer from open water: {DSancillary::intFromBuffFW}<br />Buffer into open water:  {DSancillary::intIntoBuffOW}</td></tr>
          <tr><td><br /></td></tr>
           <tr><th>Mapcode:</th></tr>
        <tr spry:repeat="DSpresence">
                <td spry:if="'{DSpresence::ysnPres}' == '1'">{DSpresence::intLSGapMapCode}</td><td spry:if= "'{DSpresence::intLSGapMapCode}'=='{dsMUDescription::intLSGapMapCode}'">{dsMUDescription: :strLSGapName}</td>
            </tr>
            <tr><td><ul>
                <li spry:repeat="DSpresence" spry:if="'{DSpresence::ysnPres}' == '1'">{DSpresence::intLSGapMapCode}{dsMUDescription::intLSGapMapCode}</li>
            </ul></td></tr>
        </table>
        </div>
    </div>
    </body>

    The best way to do this is to use xPath filtering. This http://labs.adobe.com/technologies/spry/samples/data_region/FilterXPath_with_params.html example will give you the general idea.
    The example uses a URL variable but there is no need for that if you use a procedure similar to
    function newXPath(cat){
      DSpresence.setXPath("dataroot/Copy_x0020_of_x0020_tblSppMapUnitPres[strSpeciesModelCode=' {DSpresence::strSpeciesModelCode}']");
        DSpresence.loadData();
    The function can be triggered with an onclick event placed on {strSpeciesModelCode}
    Gramps

  • Spry Master Detail from two HTML tables?

    I'm trying to use two spry tables generated from html on the same page.I would like to set up an advaned master detail region where the "tbl_adrs" (contains Multiple addresses) references the "tbl_provider" (contains a provider name and the unique identifier 'ProNo'). Is this possible with spry data set from html tables? All examples reference spry tables from XML. If it is possible, here is the HTML to look at.
    Thanks in advance.
    John
    </style>
    <script src="../SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="../SpryAssets/SpryHTMLDataSet.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    var ds_provider = new Spry.Data.HTMLDataSet(null, "tbl_provider");
    ds_provider.setColumnType("ProNo", "number");
    var ds_adrs = new Spry.Data.HTMLDataSet(null, "tbl_adrs");
    ds_adrs.setColumnType("ProNo", "number");
    ds_adrs.setColumnType("ID", "number");
    //-->
    </script>
    <table width="300" border="0" id="tbl_provider">
          <tr>
            <th scope="col">Provider</th>
            <th scope="col">ProNo</th>
          </tr>
          <?php do { ?>
            <tr>
              <td><?php echo $row_rs_provider['BigName']; ?></td>
              <td><?php echo $row_rs_provider['ProNo']; ?></td>
            </tr>
            <?php } while ($row_rs_provider = mysql_fetch_assoc($rs_provider)); ?>
        </table>
        <p> </p>
        <div spry:region="ds_provider ds_adrs">
          <table>
            <tr>
              <th spry:sort="Provider">Provider</th>
              <th spry:sort="ProNo">ProNo</th>
            </tr>
            <tr spry:repeat="ds_provider" spry:odd="odd" spry:even="even" spry:hover="hover" spry:select="selected">
              <td>{Provider}</td>
              <td>{ProNo}</td>
            </tr>
          </table>
          <p>{ds_adrs::ProNo}{ds_adrs::ID}</p>
          <p>{ds_adrs::Group}</p>
          <p>{ds_adrs::Complex}</p>
          <p>{ds_adrs::Institution}</p>
          <p>{ds_adrs::Street}</p>
          <p>{ds_adrs::City}</p>
          <p>{ds_adrs::Phone}</p>
          <p>{ds_adrs::Fax}</p>
        </div>
        <p> </p>
        <p> </p>
        <table width="300" border="0" id="tbl_adrs">
          <tr>
            <th scope="col">ProNo</th>
            <th scope="col">ID</th>
            <th scope="col">Group</th>
            <th scope="col">Complex</th>
            <th scope="col">Institution</th>
            <th scope="col">Street</th>
            <th scope="col">City</th>
            <th scope="col">Phone</th>
            <th scope="col">Fax</th>
            <th scope="col">County</th>
          </tr>
          <?php do { ?>
            <tr>
              <td><?php echo $row_rs_adrs['ProNo']; ?></td>
              <td><?php echo $row_rs_adrs['ID']; ?></td>
              <td><?php echo $row_rs_adrs['Group']; ?></td>
              <td><?php echo $row_rs_adrs['Complex']; ?></td>
              <td><?php echo $row_rs_adrs['Institution']; ?></td>
              <td><?php echo $row_rs_adrs['Street']; ?></td>
              <td><?php echo $row_rs_adrs['Adrs_Comp']; ?></td>
              <td><?php echo $row_rs_adrs['Phone']; ?></td>
              <td><?php echo $row_rs_adrs['Fax']; ?></td>
              <td><?php echo $row_rs_adrs['County']; ?></td>
            </tr>
            <?php } while ($row_rs_adrs = mysql_fetch_assoc($rs_adrs)); ?>
        </table>

    Moved to the Spry forum.

  • Moving Large Quantities of Material Master details from  R/3 (BD10) thru XI

    We have been using BD10 in a  daily job to distribute Material Master details thru the MATMAS idoc via XI and JDBC adaptor to an external DBase. Each material master item produces one  corresponding  idoc. The scenario generally works fine. However when we need to move large quantities of items  (over 15,000) XI memory overflows and XI crashes. Does anyone have experience wth this problem. Is there a way bundle multiple idocs into one message as part of the solution?

    Refer 709400.https:///people/sravya.talanki2/blog/2005/12/09/xiidoc-message-packages
    Idoc Packages

  • Question about Extraction of master data from R/3 into BI 3.5

    Hi there,
    i want to extract master data, let's say customers or material, from an R/3 system into BI 3.5.
    Now I know that SAP delivers ready-to-go DataSources for certain SAP applications that can be used for this type of situation. These DataSources will map some R/3 table fields for example to the according Business Content objects in BI.
    My question is:
    Is there some ready-to-go DataSource for the master data i want to extract? Let it be customer data. Or "business partners" is the appropriate expression i think.
    When I use Tcode SBIW to activate the DataSource I need for the extraction, I kind of have problems finding the right one. But for some simple master data I assume there must be a standard DataSource that I can use without bothering to change anything.
    Or am I thinking the wrong way and it is easier than I think?
    Cheers,
    Stefan

    Hi Stefan,
    Some DataSources are 0MATERIAL_ATTR - 0ARTICLE_ATTR - 0MAT_PLANT_ATTR - 0ART_PLANT_ATTR - 0MAT_SALES_ATTR...
    Consider that in some cases (Retail for example) you can find Master Data with 50mln of records, in this case you need absolutely delta upload method, offered by these extractors.
    And above all you can always enhance these extractors.
    You can built your custom extractors, on MARA - MARC - MBEW - ..., but you will not have delta capabilities and support from SAP for maintenance.
    Ciao.
    Riccardo.

  • Question on master detail coordination

    Hi,
    Kindly help me with the following question.
    If a master details is waiting on its Wait for Flow activity, and it has previously spawned few detail processes, what happens when one of the detail processes at runtime didn't execute the Continue flow activity but completed successfully(for example .. due to a comparison activity) and other detail processes executed the continue flow activity and completed successfully?
    Thanks,
    Srini

    Hi,
    I've answered your duplicate post on the Workflow FAQ forum at http://smforum.workflowfaq.com/index.php?topic=599.0
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://thoughts.workflowfaq.com ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • Master-Detail Form Questions

    Master-Detail Form Questions
    I have two questions in regards to master-detail forms:
    First, the form I am working on has 25 detail rows displayed to the user. If the user has more than 25 detail records for the master, I want them to be able to add more. For instance, after they enter the 25th record, I would like a pop up window to ask them if they would like to add more detail records for this master. If they select yes, then the records they have entered would be saved and then the form would repopulate with the current master record and another empty 25 detail records.
    Second, I would like the Detail Action to be set to Insert if the user moves to a new detail row and selects an item from a combo box.
    Thanks for any and all help.
    Jeremy.

    Hi Sharmila.
    Is there a way to repopulate only the Master information without populating the detail after the 'Save' button is pressed? I have written code that uses the session variables and repopulates the form with all the data that has just been saved, but I need only the master without the detail.
    Thanks.

  • First/Previous/Next/Last buttons not working in Applications Master Detail

    Jdeveloper version: fusiondrop5primeb26
    accessed through appstta.oraclecorp.com
    I attempted to create an Applications Master Detail UI by selecting Applications : Master Detail from the Applications Component Palette. I created the UI using my headers table (APPLCORE_SHIPMENT_HEADERS) as the master and the lines table (APPLCORE_SHIPMENT_LINES) as the detail. The master is shown as a form and the details are displayed as a table below. On the screen with the checkboxes to include First, Previous, Next, Last buttons, I checked all of them.
    On the backend, my headers table has two rows.
    When I ran the page:
    1. When the page comes up, it shows the data for shipment header 1 and the associated details in the table below. This is correct.
    2. However, the First and Previous buttons are enabled at the top. They should not be enabled since I am on the first record, and there is no previous record. This is incorrect.
    3. When I click Next, the data does not update to the the next header record (shipment header 2). The data is still for shipment header 1. This is incorrect.
    4. When I click Next once more, an Error window pops up:
    Messages for this page are listed below.
    ShipmentLineId     Error java.lang.NullPointerException
    ShipmentHeaderId Error java.lang.NullPointerException
    LineNumber Error java.lang.NullPointerException
    ItemName Error java.lang.NullPointerException
    (same error is shown for all other columns in the lines table)
    I was under the impression that we do not need to do anything special for the First/Previous/Next/Last buttons to work, other than checking the boxes in the page creation process.
    The application in question is here:
    /home/sheyu/jdevhome/descflexdemo/.
    The ui project specifically is in this folder:
    /home/sheyu/jdevhome/descflexdemo/mywork/descflexdemo/ui/
    I have tried to start from scratch several times to no avail. Please advise.
    Thanks,
    Sherry

    Sherry, please use the internal JDeveloper forum at http://www.oracle.com/technology/products/jdev/customers/index.html for questions like this.
    The OTN forum is meant for versions that are available for the public.

  • To Load Master Data From Two Source System

    Hi All,
    I have a small question :
    - Can we load master data from two different source system say from flat file and R3 or any two different or similar source  system?
       If answer is "Yes", then how?? If possible step by step.
    Appreciate your valuable points.
    Thanks,
    Niraj Sharma

    Hi,
    Still i have problem.R3 Transformation and DTP is getting activated but when i am executing DTP for flat file,
    I am getting below ERROR.
    Object DTP DTP_d55.......could not found in version A.
    I have  checked the Master data locally for source sys in compounding Tab of the key field.
    Please help..
    Thanks,
    Niraj

  • Master Details Population

    Hi All
    Question
    I have a master detail form For eg. dept and emp tables.
    Both my blocks are multi record blocks.
    I enter one record for master block and then click on detail block and enters its corresponding rows.
    Then I try to enter the second record in master block.
    What happens is , it pops up a question asking me whether I want to save the records.
    Now my problem is -- I dont want this popup. But the records should get inserted (if not committed).
    And I should be able to enter the 2nd row for master block and its corresponding details.
    Also when I go up to the first record of master block it should show me the details of 1 record.
    This I want to achieve so that I can commit all records of master and detail at once and not record by record.
    My solution:
    I have thought of using POST command and then populating the detail records using a cursor.
    I can write this on "WHEN-NEW_RECORD_INSTANCE" trigger".
    But this involves a lot of coding and I am not sure whether it will work fine under all circumstances.
    ie . what if another user is updating /inserting/ deleting some record etc etc
    Can anyone provide me a simpler/better solution.
    Thanks in advance
    Ashwin N.

    Hi Duncan
    Thats what I dont want to do .
    I want to commit all my records at the same time.
    Thats the reason I have replaced "ASK_COMMIT" with
    "NO_COMMIT" and I am using POST to save the data .
    But there a lot of problems.
    Isnt there a simpler method ?
    I mean cant I set any property at design time to make this work ??
    Thanks
    Ashwin N.

  • Details from table

    Hi FI Gurus,
    There are two companies A and B both are inter company. Company B has raised PO and GR done  at Company B.  IV also  done by company B as well as company A which supposed not to done by company A.
    My question is how to get details from tables regarding PO,GR and IV with company code or is there any Std. transaction code from which I get these details.
    Thanks in advance.
    Regards,
    Jainp

    Use table EKBE, it stores the PO, the GR, and the IV of the particular PO.

  • Question of displaying Task Flow Region in Master-Details pattern

    We have a master-details page. There is a region on the details pane along with other widgets and the content of that details pane including the region depends on the row selection on the master table list.
    The first time page loads with no row selection on master table so this details pane displays nothing. When I select one row on the master table and the details pane and its region can display data of the row in master table properly.
    After several selection, I navigate to another page and then go back to this master-details page again, it automatically selects the row which was selected last time. And in the details pane, the region whose content was created basing a task flow call cannot display corresponding data of the default selected row while other widgets in the details pane can display corresponding data properly.
    The reason of having this problem is the region's parameter is generated before the selected row is determined. When the task flow call in page definition is parsed, the parameter of this task flow call is created before component binding of the master table. It means when the task flow call is parsed and generating the parameter, the ADF page believes there is no row selection of the master table because the component binding is null at that time.
    So my question is how to make the this task flow call for that region create the task flow call parameter after the component binding of the master table? Or is there any way to force a refresh of the region/task-flow-call after the render of response? Or is there anyway to disable this "auto-select" on the master table after navigating to other page?
    (My jdev version is JDEVADF_11.1.1.6.0_GENERIC_111205.1733.6192.1 )
    Edited by: user790224 on Sep 6, 2012 4:16 PM

    The reason we are using master-details patter here is it is designed in that way and the region is displaying the data of a selected row there.
    There is no master-details relationship on model layer. But the content of the region is from the result of several other Java API calls which call the task-flow from an external component.

  • Master-detail relationship - passing parameter from form to form

    Hello.
    I have a question about master detail relationship.
    In first form we have master-detail relationship.
    Example on dept, emp tables:
    We query dept (master), so we can get one or many emp (detail) records. Then we have a third table - tasks. Tasks table (detail) can have many records for one employee.
    Tasks table is in another form, which is called with call_form built_in. So we pass a parameter from master to detail - parameter empno. Because of that, we can only see tasks for one employee and can't navigate to another employee. This is normal.
    Now comes the question.
    Is it possible to call a form (with tasks table) with deptno parameter (so we can navigate through all employees with that department), but first show employee that was last used in first form?
    Example of our goal.
    Master: deptno = 20
    Detail: navigate to JONES employee
    Call new form (tasks)
    Tasks for JONES employee are first shown
    Can navigate to another employee - without requery
    Is this possible?
    If we pass deptno parameter, we can navigate through all employees - but must navigate to the employee we last used in first form.
    If we pass empno parameter to second form, we see last used employee but cannot navigate to another employee without requery.
    Hope you understand my problem.
    Thanks.

    Hi
    yes you can pass parameter from one form to another.
    In your master detail form set the trigger when-new-instance and there define the global variable like
    :GLOBAL.G_CIRCLE_ID := NULL;
    and in your task table set the trigger when-new-instance and there define the global variable like and also write this code
    :GLOBAL.G_DIVISION_ID := NULL;
    IF :GLOBAL.G_CIRCLE_ID IS NOT NULL THEN
         GO_BLOCK('DIVISION');
         SET_BLOCK_PROPERTY('DIVISION',DEFAULT_WHERE,'CIRCLE_ID ='||''''||:GLOBAL.G_CIRCLE_ID||'''');
         EXECUTE_QUERY;
    END IF;
    :GLOBAL.G_CIRCLE_ID := NULL;
    now you maintain your trigger according your need.
    Regards,

  • Master Detail Question

    I have two questions that deal with a wizard generated master detail form/report. The form has the master and detail forms on the same page.
    1. When adding a row to the detail table is there a way to have it automatically fill with the values from the previous row?
    2. I added the following javascript code onBlur="javascript:{this.value = this.value.toUpperCase(); }" to the Element Attributes of one of the detail form fields to force it to upper case. It works fine as long as the field is defined as a text field. If I change the field to a Popup LOV the functions no longer works. Is there a way to have both the Popup LOV and the javascript?

    Michael...
    Not truly an answer... I'm a 'newb' with just enough experience to put his foot in mouth. Here is my thinking about your questions.
    Q#1: I don't know.
    Q#2: The script is on detail page and runs when object loses focus. LOV is separate object and knows nothing about the script. My approach: Go back to table (serving as basis for LOV) and change entries to use 'caps'. If this isn't practical, use your script in the onLoad event for the Popup LOV. (Note: I haven't done this. It just 'makes sense'. Now THAT is a phrase that will get ya in trouble!)
    FWIW...
    gary b

Maybe you are looking for