Oracle Portal master details default value set up.

Hi All,
Using Oracle Portal to create a master details form.
I have tried to set up the details table foreign key. I used the master table primary key as a default value for the details table foreign key.
Does anyone know what the correct syntax is when I fill in the Default Value field on the "Formatting and Validation Options for Detail Row" tab?
Also related to this: What should I choose from the drop down menu for the "Default Value Type"?
Best Regards.
Liviu Minda & Paul Williams
Cape Town City Council.

Hi Liviu & Paul,
NOTE: The following is applicable to Portal version 3.0.8 and above .
Well, if you want that the Detail table Foreign key should get the value of The Mater Table Primary key, then you need not do anything like setting the Default value for the Foreign Key of the Detail section. It works like this :-
Operation INSERT:
When you are INSERTing a master record and the corresponding detail records, just fill up the master form and need not worry about the Foreign key(FK) in the Detail rows. Fill up the other columns for the detail rows and choose the appropriate action for each of the detail rows i.e. INSERT and click on the SAVE button. If the FK in the Detail have been left blank, then while inserting into the detail table, the Primary Key (PK) value of the master will be picked up and inserted . However, if you specify any value in the FK column of the Detail, then the specified value would override the PK value of the master.
Generally, what ppl do is make the FK in the detail of type Hidden.. so users cannot tamper with the FK values.
Hope this helps.
null

Similar Messages

  • Master Detail : Default value to '0' in Detail

    Hi All,
    I am new to Apex. I need some assistance with a Master-Detail form I created in Oracle APEX. The detail table has few columns and during ADD ROW (@ detail level), I have been trying to default the values in the detail table to '0'. But, I have had no luck with my multiple attempts. Can the experts please tell me how to get the default values working? I really appreciate your assistance
    Thanks!!

    Hi Ben,
    I have Master/Detail page which I have created. In Detail section I have close to 15 columns. In that 10 are number columns. In those number columns when I do a add row I would like to have a default value of '0'. Lets say I have Price column and in that column I would like to have a default value of '0'. I have tired a lot but could not figure it out. Please let me know if its not clear. I can put some examples.
    Thanks!

  • Portal Master-detail form how to auto assign detail record sequence number

    Portal Master-detail form how to auto assign detail record sequence number.Please help me?

    You can just read the following section
    Can I specify a sequence number generator as the default value for a form column?
    Yes. Enter the following in the "default value" field for the column:
    #<schema name>.<sequence name>.nextval
    where <schema name> is the name of the schema containing the sequence, and <sequence name> is the name of the sequence. The entry is preceded by a "#".
    For example, if the schema name is "SCOTT", and the sequence name is "CUSTOMER_SEQ", the default value entry is:
    #SCOTT.CUSTOMER_SEQ.NEXTVAL
    same way you can do for master - detail form.
    for more information on forms please refer the following URL.
    http://otn.oracle.com/products/iportal/htdocs/portal_faq.htm#BuildingApplications
    hope it helps.

  • Default values set  for Tax data in material master

    Hi
    Can anyone tell me how to set default values for  TAx dat in sales view  while creating material master.
    so that it automatically take  values while creating material master.
    Regards
    Vijay Shukla

    Mary and Vijay,
    I probably understood your question wrong.
    I was somehow assuming you were referring to classification data.. Sorry abt that.
    The tax data gets populated automatically while creating the material master.
    Th key lies in configuration..  You would have to use Tcodes OVK1, OVK4 to define the material and the tax categories by country
    The tax data is populated by the assignment that you make in OVX6.. I believe.. assigning plants t Sales org. Th country code defined in the plant OX10 is used to determine the tax data and once you customize this part.. You should start seeing the tax data populate when you use that sales org while creating MM
    Hope this answers your query.
    Edited by: Pavan Kumar on May 2, 2008 8:10 AM

  • Issues in Processing the Master-Detail Form values

    We have a requirement in Oracle Internet Expenses (11.5.10) to fetch the form values from the Expense Allocations Screen.
    This page is based on Multiple VOs with Master Detail relationship. The data from the VOs mentioned are displayed in the Hgrid region.
    I need to fetch the input values for three fields (from different VOs) and pass them as paramater to the database function to perform the validation.
    Here, I am creating the handle for VO objects and using the Row object getting all rows in range (getAllRowsinRange()).
    The issue here is always, the Row length() is always fetched as 1 even it has multiple rows.
    Any help on this would be highly appreciated.

    Using Select Options u will get mulitiple values also u will get values like table.
    regards,
    kumar.

  • How to move elements within the master region of a Master/Detail spry data set?

    Hi there,
    I am unsure of how to move the different items within the master region of a master/detail spry dataset. The default style is such that if I include 3 or more elements e.g. Thumb, etc., they are stacked vertically :
    How do I move them so that they can be positioned differently? The look I am going for is one where the thumb image is positioned to the left while the other items are stacked alongside it so that the end effect for the master region would look like this:
    I greatly appreciate the help! Thanks!

    This is the complete page
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:spry="http://ns.adobe.com/spry">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Check :: Fashion+Lifestyle</title>
    <link href="styles.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryEffects.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryHTMLDataSet.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMasterDetail_final.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    <!--
    var cal4 = new Spry.Data.HTMLDataSet("calendarList.html", "calendarList", {sortOnLoad: "When", sortOrderOnLoad: "ascending"});
    cal4.setColumnType("Thumb", "html");
    cal4.setColumnType("Picture", "html");
    cal4.setColumnType("When", "date");
    function MM_effectAppearFade(targetElement, duration, from, to, toggle)
        Spry.Effect.DoFade(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
    function closeAd() {
        document.getElementById('adRollover').style.visibility='hidden';   
    function MM_effectBlind(targetElement, duration, from, to, toggle)
        Spry.Effect.DoBlind(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
    function MM_effectSlide(targetElement, duration, from, to, toggle)
        Spry.Effect.DoSlide(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
    function MM_effectGrowShrink(targetElement, duration, from, to, toggle, referHeight, growFromCenter)
        Spry.Effect.DoGrow(targetElement, {duration: duration, from: from, to: to, toggle: toggle, referHeight: referHeight, growCenter: growFromCenter});
    //-->
    </script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="pageContainer">
        <div id="adBanners">
            <div id="halfBanner"><a href="#" onClick="document.getElementById('adRollover').style.visibility='visible';"><img src="images/banner_half_1.jpg" alt="Half Banner" width="237" height="90" /></a></div>
            <div id="leaderboardBanner"><a href="#"><img src="images/banner_leaderboard_1.jpg" width="728" height="90" alt="Leaderboard Banner" /></a></div>
            <div class="clearFloats"></div>
        </div><!--div#adBanners-->
        <div id="mainHeader">
            <div id="homepageLink"><a href="index.html"><img src="images/spacer.gif" width="400" height="100" /></a></div>
            <ul id="MenuBar1" class="MenuBarHorizontal">
                <li><a href="feature.html">FEATURES</a></li>
                <li><a href="#">FASHION</a></li>
                <li><a href="calendar.html" class="on">CALENDAR</a></li>
                <li><a href="#">VIDEO</a></li>
                <li><a href="blog.html">BLOG</a></li>
            </ul>
        </div><!--div#mainHeader-->
        <div class="MasterDetail">
          <div class="DetailContainer" id="event" spry:detailregion="cal4">
            <div class="DetailPicture">{Picture}</div>
            <div class="DetailColumn DetailTitle">{What}</div>
            <div class="DetailColumn"><div class="DetailLabel">WHEN:</div> {When}
            </div>
            <div class="DetailColumn"><div class="DetailLabel">WHERE:</div> {Where}
            </div>
            <div class="DetailColumn">{Details}</div>
          </div>
          <div id="calHeader"><p><img src="images/calendar_hdr.gif" width="492" height="100" /></p></div>
          <div spry:region="cal4" class="MasterContainer" onclick="MM_effectAppearFade(this, 1000, 0, 100, false); MM_effectBlind('event', 1000, '0%', '100%', false);">
            <div class="MasterColumn" spry:repeat="cal4" spry:setrow="cal4" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected"><div class="MasterColumnPicture">{Thumb}</div>
              <div class="MasterColumnTitle">{What}</div>
              <div class="MasterColumnText"><div class="DetailLabel">WHEN:</div> {When}</div>
              <div class="MasterColumnText"><div class="DetailLabel">WHERE:</div> {Where}</div>
              <div style="clear:both"></div>
            </div>
          </div>
          <br style="clear:both" />
        </div>
    </div><!--div#pageContainer-->
    <div id="footer">
        <div class="text">Use of this site constitutes acceptance of our User Agreement and Privacy Policy. &copy; 2008 Adobe All rights reserved. The material on this site may not be reproduced, distributed, transmitted, cached, or otherwise used, except with the prior written permission of Adobe is a trademark owned by Adobe.</div>
    </div><!--div#footer-->
    <div id="adRollover" style="visibility: hidden;">
    <script language="javascript">
        if (AC_FL_RunContent == 0) {
            alert("This page requires AC_RunActiveContent.js.");
        } else {
            AC_FL_RunContent(
                'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
                'width', '536',
                'height', '479',
                'src', 'watch_ad',
                'quality', 'high',
                'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
                'align', 'middle',
                'play', 'true',
                'loop', 'true',
                'scale', 'showall',
                'wmode', 'transparent',
                'devicefont', 'false',
                'id', 'watch_ad',
                'bgcolor', '#ffffff',
                'name', 'watch_ad',
                'menu', 'true',
                'allowFullScreen', 'false',
                'allowScriptAccess','sameDomain',
                'movie', 'watch_ad',
                'salign', ''
                ); //end AC code
    </script>
    <noscript>
        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="536" height="479" id="watch_ad" align="middle">
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="allowFullScreen" value="false" />
        <param name="movie" value="watch_ad.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />
        <param name="wmode" value="transparent" /><embed src="watch_ad.swf" quality="high" bgcolor="#ffffff" width="536" height="479" name="watch_ad" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
        </object>
    </noscript>
    </div>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    </html>

  • Oracle BI Master Detail RPT

    Financials modules
    Below is the report format and Example,
    Account GRP1(1-4 BU) GRP(5,4) GRP(6-11) TTL GL_ITL DELTA
    10121 $92 * 2 90 100 10
    BU's are Business Units, Here Company i think,
    Description: First column is account number, example is GRP1,BU,Account,Dept,Fiscal period
    Account number is at master Level.When i click account number 10121, it should drill down to all the details or child which it makes 92 dollers.
    Basically master detail report.But the format should be like this
    The question is whether our datware house pre built is supported to do this type of report or we need to custom some thing from the dataware house.
    What more information, i need to ask if i need more information from the client

    The name of this forum is "Database - General"
    The first line of your question indicates your question has nothing to do with the Oracle database.
    Please change the subject to "Please Ignore" and repost your question in an E Business Suite forum.
    Thank you.

  • ORACLE FORMS MASTER DETAIL HELP

    GOT 2 DATA BLOCKS. 1 REPRESENTING ALL EMPLOYEES, THE OTHER REPRESENTING ALL SALARIES. uSING A MASTER - DETAIL RELATIONSHIP WHEN TRYING TO SHOW ALL SALARIES BESIDE ALL EMPLOYEES IN A MULTI-ROW TABULAR VIEW I CAN'T SEEM TO LIST THE SALARY FOR EACH EMPLOYEE ONLY THE FIRST...EG.
    EMPLOYEE SALARY
    |||||||||||||||||||||||| ||||||||||||||||||||
    SMITH _____10000
    JONES
    REGERG
    SDGS
    SDFGSR
    HOWEVER, AS I MOVE THROUGH THE EMPLOYEES THE SALARY CHANGES BUT STAYS AS THE FIRST ENTRY.... THANKS FOR ANY HELP OFFERED
    Message was edited by:
    user445629
    Message was edited by:
    user445629
    Message was edited by:
    user445629

    You have master - detail relationship here. So unless you click on second employee it won't show you salary for second employee.
    You can create a control block and capture values in this block through cursor. You can also create a view and get values from view. In both cases you need only one block not two.
    Are you showing this only for display or user can also modify these values?

  • Initialize some fields in material master with default values

    Hi,
    I would like to initialize some fields in material master MM01 with default values.
    for exemple in the view MRP1 there is a field MRP type I would like to initialize PD in the field as default value.
    but when I go to the technical information there is no parameter id that I can use in SU3.
    Do you know how I can the initialize the field those don't have parameter ID?
    thank
    Dede

    Dear Glenn,
    This is possible in SAP for this use T code MMD1 and create MRP profile and assign this MRP profile while creating material using MM01 in the organisation level put this created MRP profile. The values you maintained in this profile get copied to the material by default.
    To maintain MRP profile go to MMD1->give your profile name...........> click on  selection screen push button--->give here profile description--->select what MRP  field which u want to make fixed one/default. if make fixed later you can not change--
    >click on data screen 1 push button and maintain your value and save
    sree

  • CC01 Default Value Setting

    Hi DMS
    I would like to set a default value in one of the fields on transaction code cc01, Where and how do i do that?
    Thank you
    Charity

    Hi Charity ,
    You can set a default value in CC01 using the menu path Settings - Default Values .
    Here you can set the default values for the fiellds :
    Change Type
    Profile
    Effectivity type
    Function
    If that doesnt include the field you want to default then the alternative is to default the
    value through using a transaction or screen variant created using SHD0
    I hope that answers your question
    Enda.

  • Oracle 10gr2 Master/detail form running very slow when you navigate to the detail record.

    Hi All, I have a master detail  form, running in webserver, when I navigate to the detail block, the form start buffering and buttering for about 2 min. There is a trigger when-new-record instance that is firing when you navigate to  a new record : The select part of this stament is taken a long time to execute. I modified this in toad and what used to take 25 seconds to run is taken less than a second now, but the slowness still persists in the form.
    for rec in (select wrrh_col
                      wpbh_col_lvd,
                       wpbh_col_doc_no
          from wh_col,
               wkpl_col,
               wh_col
         where wrrh_col_no = :block.wreh_wrrh_col_no
           and wrrh_col_no = wreh_wrrh_col_no
             and wrrh_col_no = wpbh_col_no
           and wrrh_col_proj    = wpbh_col_proj
           and wrrh_proj_no     = wpbh_proj_no) loop
       if fun_name(rec.wpbh_col_lvd) = 'Y' then                      
        do something,
       end if;
      end loop;
    The select staement that used to run for 23 seconds is running in less than one second, but the form is still running very slow when I navigate to the detail record.
    Please advise.
    Thanks.

    Thanks Andrea for your prompt response, the problem is the select statement and like I stated, I tuned the select statement in toad and what normally takes 23 secs is taking less than 1 sec to run. If I comment out the call to the function, it is still slow. The select stament will returned null and it will still be slow. When I comment out the for loop, it run very fast. I dont know what else to do than tuned the select statement.

  • Oracle ADF Master-Detail query

    Hi I am using Jdeveloper 11.1.1.3.0, whenever I create master(Form)-detail(Table) relationship on JSF/view, in page defination files of same under the bindings section I found the bindings as
    "*attributValue, action, tree*", but according to theory it should appear like "*attributValue,action, table*" so can anybody explain me why I am getting *'tree'* type binding insted of *'table'.*

    Hi,
    can you please elaborate a bit more on how do you expect to have attributValue, action, table instead of attributValue, action,tree ?
    According to the following documentation, you should be expecting a tree:
    http://docs.oracle.com/cd/E17904_01/web.1111/b31974/web_masterdetail.htm#BJEHGCFJ
    http://docs.oracle.com/cd/E17904_01/web.1111/b31974/web_tables_forms.htm#CJADDIEJ
    Can you please elaborate a bit more on your question?
    Regards,
    Dimitris.

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

  • Setting Default values in portal form

    I have a portal Master/Detail Form. I want to set some of the detail block columns value to the value of a field in the master block.
    In the formattng option of the detail column, I tried setting default value to:
    p_session.get_value_as_varchar2(p_block_name=>'MASTER_BLOCK', p_attribute_name=>'A_CLASS_CD');
    and default value type to: function (I also tried expression). It compiles, but gives me an error when I ry running form. How can you set the default value (from the value of a differnt field)?

    HI,
    You can set the default value to value of a different field. The only way is to use javascript like onFocus.
    Thanks,
    Sharmila

  • Set Default Value of Multi-select list item

    I have a multi-select list item I want to default the value of to '%' (which is really '%null%') and have it selected. I tried setting default value of item, but it doesn't take '%null%'. I also tried a computation with a static of
    :P507_ITEM := '%null%'; How do you get the default value set and selected?

    Hi
    Shijesh is right, you need to change your null return value and use that return value as your default. Try and use something of the same datatype as your real return values if you plan to use '%' to display all as it will make your queries simpler. eg.
    Company A returns 1
    Company B return 2
    % returns 0
    Then your query would be...
    SELECT ...
    FROM ...
    WHERE company_id = DECODE(:P_COMPANY,1,1,2,2,0,company_id)
    Hope this makes sense.
    Cheers
    Ben

Maybe you are looking for

  • Inbound delivery goods receipt

    G'day All, We have just implemented WMS and use both EDI and manual ASN's for Purchase Orders. Pre WMS we would receipt the Inbound Delivery via MIGO and if the receipt amount is outside the Confirmation Control Key tolerance for KG's we would receiv

  • How to get child process instance id from main process

    Hi All, I have a main process invoiking a child process 1 and child process 1 inturn calling child process 2.Is there any way to get the child process 2 instance id from main process or main process instance id from child process 2.. Using tree finde

  • Nokia Lumia 800 microphone problem (sounds like a ...

    I got my new Lumia about 1 week ago and after switching from N900 to Lumia 800 I have been getting lot of complaints from people whom I talk with. Everybody starts the phone call the same way, by saying that is there something wrong, or am I in a spe

  • Add field in dynamic selections to ME2A, to create aselection view in LDB

    Hi all, I would like to include in the search selection of ME2A the field 'Relevant for agency business', but this field doesn´t appear at the purchasing document . I´ve been reading that by the Logical database builder it is possible to do this, but

  • Difference between Partial payment and residual payment

    Hi, What is difference between partial payment and residual payment and what is the effect of this payment on Payment Terms and Customer aging analysis report? Can any body help me out. Thanks & Regards Amar Adam