ADF DI: Create child records without the master populated

Hi,
We have an ADF DI table component for the insert purpose. After populating the table with the required data, we want to upload the data to the server.
But, before uploading each row, we want to call an AM exposed method with the parameter from the current VO row which is getting uploaded.
Is it possible to call an AM method while passing the current VO Row parameter (for an insert purpose) ?
Thanks
Anil

Hi Anil,
You can specify your AM method in InsertAfterRowActionId which gets called for each row that is inserted on performing Upload and refer current row details inside that using viewObject.getCurrentRow().getAttribute("<Attr_Name>").
Sireesha

Similar Messages

  • How to create Child record at the time of master record creation.

    Hi,
    I have MasterVO and ChildVO. And association between both are 1 to *. I have a requirement like, I need to create row in ChildVO at the time of MasterVO row creation.
    I have used entity based association to create view link. This view link created ChildVO accessor in MasterRowImpl as type RowIterator.
    Actually my idea is to override create method in MasterVORowImpl and call ChildVO ViewObject and call .createRow() method on it. But I don't have access to ViewObject, instead it gave access to RowIterator.
    Could you please provide any pointer to achieve above functionality?
    Many thanks in advance.
    Jdev version - 11.1.1.7.0
    Regards,
    Dileep.

    Hi Tim,
    Now it is creating child record at the time of master row creation. But it is working only through BC tester. But when I drag the child VO instance in the jsff page, only master is get created as editable only, child is displayed as read only without populating any default values like child VO surrogate key and other default attributes. But through BC tester it is working fine.
    Am I missing anything here while implementing in UI?
    Thanks,
    Dileep.

  • Is it possible to create info record without material number

    Hi all,
    Is it possible to create infor record without material master and what is the importance of the field Info update in PO.
    Thank you for the help.

    Hi,
    1.Yes you can create Info record without material no. but you have create it for material group.Go to ME11 and only enter vendor ,Purchasing organization , and Plant don't enter material no.. and again enter maitain material gruop and require data for Material group.
    2.Info Update indicator -
    Info record update
        Determines whether the prices and conditions of this purchase order ite
        are suggested in future PO items.
    Use
        Selecting InfoUpdate causes one of the following situations to occur:
            -   If just one info record (with or without plant) exists, it is
                updated.
            -   If no info record exists and "plant condition requirement" was
                specified in Customizing, an info record with plant is created.
                Otherwise, an info record without plant is created.
            -   If two info records exist (that is, one info record with plant
                and one without plant) the info record with plant is updated.
    reward if helpful,
    Regards,
    Chetan.

  • Master-Detail only shows the first record of the Master's data

    I have an ADF Master Table, Detail table. I use ExcuteWithParams on the Master Table. When executed from a button (Button has partial submit = true for button, Master Table has PartialTrigger on button, and Detail table has PartialTrigger on Master table and button), it works fine. However, I want to pass the parameters in pageFlowScope variables, and have the ExecuteWithParams invoked upon page load. When I try to do this, the Detail table only shows the first record of the Master's data, no mater what row is clicked on the Master table.
    Master table now has no PartialTrigger, and Detail table has PartialTrigger on Master table. In my pageDef, I used an invoke action as follows:
    <invokeAction Binds="ExecuteWithParams" id="invokeExecuteWithParams"
    Refresh="always"/>
    What am I missing? I am using verion 11.1.1.3. Any help would be much appreciated.
    Thanks,
    Jessica

    Yes, it works when I drag the data control as a master detail without filtering any data. I want the user to be able to set search criteria to filter the data in the master table (For example, only pull back data with a transaction date between :startdate and :enddate). I can get it to work if I execute from an executewithparams button on the page, but not if I want to invoke the executewithparams upon page load with the parameter set by pageflowscope variables.
    Thank you for responding.
    Jessica

  • Can not delete record from the master block ,frm-40202 field must be entere

    hi ,
    i have built a form which contain master and details blocks
    the problem is
    when i try to delete a record from the master block it gives me new serial for the transaction and when i try to save it, it says
    >frm-40202 field must be entered
    where this field is required and i cant save it
    although in another form when i delete from the master it gives me the previous record and it works properly
    if any one has any ideas pls help me
    thank u
    ------- the master block has a trigger when-create-recoder
    Declare>v_dummy number;
    Begin
    Select nvl(max(ERNT_NO),0) + 1 >Into v_dummy
    From LM_RENT_EXPNMST >Where cmp_no = :LM_RENT_EXPNMST.cmp_no
    And brn_no = :LM_RENT_EXPNMST.brn_no>and fiscal_yr = :LM_RENT_EXPNMST.fiscal_yr;
    >:LM_RENT_EXPNMST.ERNT_NO := v_dummy;
    END;
    IF :PARAMETER.RNT_NO IS NOT NULL THEN
         :LM_RENT_EXPNMST.RNT_NO:=:PARAMETER.RNT_NO;
              :LM_RENT_EXPNMST.RNT_YR:=:PARAMETER.RNT_YR;
         :LM_RENT_EXPNMST.CUST_DESC:=:PARAMETER.RNT_ADESC;
    END IF;Edited by: ayadsufyan on May 8, 2013 2:03 PM

    If this is a FORMS question you should mark this one ANSWERED and repost your question in the FORMS forum
    Forms

  • How to delete the child record from the database

    how to delete a parent and child record from the database can we do it in the servlet and my database is oracle

    I'm not sure I understand the question but you could certainly use the JDBC API from within your servlet to access and modify a DB. You could also use an EJB layer to access your DB and accomplish the same tasks.

  • The detailRegion is always forced to populate the first record from the Master region

    Hi fellow Spry enthusiasts,
    My question is in regards the undesirable data population of
    the regiondetail on initial load. I have 2 sections, one which is
    my master region (which goes out and retrieves a bunch of records),
    and a related detailregion which reacts based on the master.
    However, every time I initiate a query of the master region to
    retrieve records, the detail region also responds and automatically
    grabs the FIRST record of the master region (which is undesirable
    in my case because I do not want the detail region to react UNTIL I
    select a record in the master region). Let me know if this makes
    sense.
    Psuedo Code:
    var moveRequestor = new
    Spry.Data.XMLDataSet("cfc/QueryThatReturnsABunchOfEmployeeRecords")>
    <span spry:region="moveRequestor">
    {EM_ID}
    {NAME}
    <span spry:detailregion="moveRequestor">
    {EM_ID}
    {NAME}
    {PHONE}

    This question was posted a while ago, and was one of the
    search results that came up when I was looking for my own answer. I
    had a nearly identical question and answered it here:
    Disabling
    default linked region and detailregiondisply until click
    Hopefully it will help others too!

  • HT5114 How can I create multiple accounts without the necessity to create multiple email addresses?  I now have 2 i-phones (mine and my wife's#, 1 i-pad #mine#, 1 i-pad mini #10 year old's#, and 1 I-pod touch #11 year old's).  I would like to maintain pur

    How can I create multiple accounts without the necessity to create multiple email addresses?  I now have 2 i-phones (mine and my wife's), 1 i-pad (mine), 1 i-pad mini (10 year old's), and 1 I-pod touch (11 year old's).  I would like to maintain purchase control, but would like to be able to have a separate account ID for each person.  Is that possible?

    Each email address can only be on one iTunes account, and all purchases are tied to the account that buys them. If you want to have separate iTunes accounts on each then you will need separate email accounts for each iTunes account

  • I need a BAPI or function that can create a PO without the purchase req.

    I need a BAPI or function that can create a PO without the reference to a purchase requisition. We are creating "direct POs" (with no reference to PR) manually. And we have a large amount of documents to create. I can't figure out if BAPI_PO_CREATE and BAPI_PO_CREATE1 can help us by doing this, because I've understood this BAPIs creates POs only with the reference to a purchase requisition.
    Thanks in advance!!
    Sebastian

    Sorry I'm late guys, I couldn't replay your posts because I was busy.
    Charlie,
    ...just because we have the data already in the SAP system.
    My client doesn't want purchase requisitions to be created from the PM orders. Instead he asked us to create the purchase workflow by generating direct purchase orders from the PM orders, basically taking the information from the purchase agreement within the order's tasks. Maybe you don't understand a bit what I'm saying, but let me get this straight: we can't use LSMW because data doesn't come from a legacy.
    Ian,
    ...after all, and like you've said, we're gonna use BAPI_PO_CREATE1 for creating the POs. Today I finally realized that, purchase requisitions aren't mandatory for the bapi to perform the process. If something goes wrong, I'll let you know.
    Thanks anyway for your attention.
    Sebastian

  • Create a form without the option to submit or send via email

    Just oant to know is it posible to create a form without the option to submit or send via email. I want my students to fill in the form and save it to a personal folder. The submit form button creates confusion.

    Many thanks Randy, I'll give it a go. But it means setting up the how to pay question at the top of the form. Currently we have it setup at the bottom.
    Think I can do a "Will you be paying by credit card?" check box at the top - Tick equal show Fields A (which I have already mapped to the payment option) and Unchecked Show Fields B.
    Sound logical..will be cumbersome though as there are 12 mult show/hide fileds in there already  here's the link just for the original form for future reference for anyone in the forum wanting to see what the form looks like and is facing the same problem.
    Will make the changes in a quiet perios and anyone interested can take a look next week and see how I got on.
    Appreciate your response Randy
    Roger

  • Is it possible to create "places" tags without the maping feature?

    Is it possible to create "places" tags without the maping feature? I updated from PSE 10 (where I created my own list of "places,") to PSE 12, where "places" seems to require the mapping feature. I would prefer not to use the map, and stick to my old way.
    Thanks for any help!
    Tom

    Apparently, not only is the mapping feature required, but once the GPS-loaded Place tag is created, it is not listed in alphabetical order with other place tags.  It is listed by country, then by state, then by title!!  !! VERY irritating!!  And what if I want to create a place tag (of which I already have many) which does not have a recognizeable address, like, say, Grandmother's House?  VERY irritating.
    And if I use the Keyword feature to create Place tags, they will be in an entirely separate list from the other Place tags.  VERY irritating!
    Who designed this upgrade?  I will soon start looking for an alternative, though I have used Photoshop Organizer for years and have thousands of photos in it.  My upgrade to PSE 12 has caused me nothing but headaches.

  • ADF,how to delete parent record and related child record without manual cod

    Hi All,
    I'm using 11g adf.
    I have one parent table PAR and two child table CHD1 , CHD2 respectively.
    I'm inserting values in three tables , making a form having add , delete and edit buttons.
    Issue when i want to delete a record from PAR table , it gives child table record exists . i have did manual coding to delete the child records with related to the selected parent table PAR.
    Is there any process in ADF to delete the child records with respective selected parent record with out manual coding.
    thanks in advance.

    http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/bcentities.htm#BABHFJFJ
    John

  • One record in the master Query, many in the child. Data Template Woes

    Hi Folks.
    Can't get my head around this and I wonder if anyone could shed some light.
    I have the following simple data template set up.
    <dataTemplate name="Invoice" description="Default Invoice" version="1.0">
    <parameters>
    <parameter name="P_INVOICE_ID" dataType="character"/>
    </parameters>
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[select invoice_id                  
                 from vw_invoice_summary
                 where invoice_id IN (:P_INVOICE_ID)]]>
    </sqlStatement>
    <sqlStatement name="Q2">
    <![CDATA[Select invoice_line_item_id
                from invoice_line_item
                 where invoice_id = :invoice_id]]>
    </sqlStatement>
    </dataQuery>
    </dataTemplate>
    When I set the Parameter to a valid invoice ID, I only get the following result. There should be two sets of data being returned. One set with the single parent record and the second set with roughly thirty records.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <INVOICE>
    <P_INVOICE_ID>16946</P_INVOICE_ID>
    - <LIST_Q1>
    - <Q1>
    <INVOICE_ID>16946</INVOICE_ID>
    </Q1>
    </LIST_Q1>
    </INVOICE>
    Where is the Q2 data set? Can anyone see what I'm doing wrong? Can anyone point me to the right section of the documentation? I have read and re-read the BIP Users Guide (Section 4) but I guess I must be missing something.
    Any help gratefully received.
    Many thanks.
    Simon

    Hi Ike.
    Quick question for you.
    I have the Groups defined and my template is working well with them.
    My final sticking point is the incorporation of a parameter.
    My template starts like this...
    <dataTemplate name="Invoice" description="Invoice">
    <parameters>
    <parameter name="invoiceid"/>
    </parameters>
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[select * from vw_invoice
                       where invoice_id IN(:invoiceid)]]>
    </sqlStatement>
    <sqlStatement name="Q2">
    <![CDATA[Select.................
    I am trying to call it using a SOAP Envelope containing this...
    <parameterNameValues>
    <item>
    <name>invoiceid</name>
    <multiValuesAllowed>true</multiValuesAllowed>
    <values>
    <item>18421,16946,19178</item>
    </values>
    </item>
    </parameterNameValues>
    The result being recorded in BIP Schedules is "Data not defined".
    What am I doing wrong? Any thoughts?
    Kind regards.
    Simon.

  • Gender issue when creating Child Record in ESS

    Dear experts,
    I'm currently have a problem when creating new child for family infotype (0021). Everytime I create a new child record, the gender will always be 'Male' eventhough when I input the data, I choose the 'Female' radiobutton, but when I choose Next and display the 'Review' page, the gender will always be Male.
    It make sense if it is creating a spouse record, since the spouse must be an opposite gender, but supposedly I can change the gender freely when I create the child record.
    Is there something I missed out in the customization process? Or is there anything else that could solve this problem?
    I found a topic that almost similar to our problem in Gender Unknown after selecting female/male in Family data But in that topic the gender will always set to  'Unknown', in our problem it will always set to 'Male'
    Thank you for all the answers

    Hi madav ,
    create inforecord me11
    vender name
    mat
    purchase org
    plant
    maintain that and enter,
    go to text  maintain, then click on condition hear maintain as per as the  requirement,
    go back
    click on purchase organization data  then save
    u will not get error .
    hope it will help u .
    thanks
    BIswa

  • Creates new record in the Qualifier Table while importing.

    Hi Guys,
    When sending new bank details to MDM, then MDM creates a new record in the Bank Detail qualified lookup table. This is OK. But when sending exactly same bank details again to MDM, then MDM creates again a new record in the Bank Detail qualified lookup table. I would expect that it
    first performs the Automap and only if it cannot find a value, it will add a new record!
    Can you guys help me out from this?
    Best Regards
    Devaraj PK

    Hi Devaraj,
    Please check these configuration options of Import Manager
    1. Default Qualified Update - The default setting for whether incoming source subrecords either are appended to, completely replace,or update the set of existing qualified links of a qualified lookup field when updating existing records.
    2. Default Matching Qualifiers - The default setting for which qualifiers to use as matching qualifiers when matching existing qualified links when updating existing records.
    Any operation on the qualified tables will depend on the above two options.
    Reward if found useful
    Regards,
    Jitesh Talreja

Maybe you are looking for