How to create child without master context.

Hi,
I have a special requirement where I need to allow user to create a child record without master context.
I have two VOs MasterVO and ChildVO and have view link between those two. and cardinality is 0..1 to *. Here my master is read only VO. and it is typically group by of child attributes except Date column. I did like this, because my table is de-normalized table and column VersionNumber which is of type Date represent versions of each master. So I have created my Application module like below.
---MasterVO
         ---ChildVO.
In UI, when I create a child record using ChildVO, but due to view link, it is creating a record under the context of Master.  But is there any way where we can use the same ChildVO instance which is under masterVO to create a new record, but the newly created record should not be created under the context of master.
I want this requirement to reuse the jsff page, because, I have Create and Edit pages, both looks similar but In create I use ChildVO to input all the values, but in Edit page few attributes(which are common attributes except date for version to version of each master) are not editable, those will be under read only Master VO(I used group by here in VO to achieve this), and in edit screen we are allowing user to create new version of master where it copies all the values in the master VO except date. so in backend it get stored as separate record with different Date. 
Any help of this kind of implementation.
Thank you so much for your help in advance.
I am using JDev version  11.1.1.7.0.
Regards,
Dileep.

this wil surely work
RowKeySet selectedRows = treeTable.getSelectedRowKeys();
//use EL to access binding (note that you can do this in Java as well)
JUCtrlHierBinding treeTableBinding = (JUCtrlHierBinding) executeValueExpression("#{bindings.<tree binding name>}");  
//get first entry of selected rows (single selection case)
JUCtrlHierNodeBinding node =  treeTableBinding .findNodeByKeyPath((List)selectedRows .iterator().next());
... do the work with the node here ...
private Object executeValueExpression(String valueExpression){
      FacesContext fctx = FacesContext.getCurrentInstance();
      ELContext elctx = fctx.getELContext();
      Application app = fctx.getApplication();
      ExpressionFactory exprFactory = app.getExpressionFactory();
      ValueExpression valueExpr = exprFactory.createValueExpression(
                                elctx,
                                valueExpression,
                                Object.class);
       return valueExpr.getValue(elctx);

Similar Messages

  • How to create operations without entering a performing work center

    How to create operations without entering a performing work center ? which control key should i select ?

    Hi
    QM01 is control key used for all the task lists of Quality.
    there is no such a configuration associated with control key &  usage of work center.
    Work center is used for the activity capturing perpose & control key is to control operations.
    I hope this is clear.
    Entering a work center is totally depends on the scenario & not control key.
    Regards
    Sujit

  • How to create a material master with referrence to exsisting material maste

    hi experts
    how to create the material master with reference to an existing material master ?
    please explain in steps
    regards
    jai

    Dear,
    It is very simple.
    Enter  MM01 t-code.
    Enter your existing material code in field of reference material code.
    If your material number range is external number range then enter number of material otherwise direct enter industry sector and material type.
    After enter basic detail system ask you plant/storage location detail and view detail.
    Select reference plant and storage location in left sight of diglog and enter plant and storage location in right sight of diglog screen for which you want to maintain material master.
    Then click on all view, If you want to change some detail change it.
    Due to reference material all detail is come from reference material.
    Then click on save.
    NOTE: - You can create new material with reference of old material but it is prerequest material type should be same of both material old and new.
    Regards,
    Mahesh Wagh

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

  • How to create child part from Parent Item - BLOW UP Master - Automatically

    Hi to All,
    Have any one defined this process?
    To create child part from Parent Item - BLOW UP Master - Automatically ie. we receive FG from customer which we need to blow up to its child part. In that case, FG should be consumed & child parts should be generated in stock.
    We tried with recursive, but the stock of FG was again generating with recursive.
    Ex. FG after receiving from customer in stock 1
    Child parts (with offtake 1) X1, X2, X3 in stock zero.
    After processing, FG stock should be zero & X1, X2, X3 = 1.
    Regards
    Nitin

    Create a BOM for one of the "child" parts that has the "FG from customer" as a component and all the other child parts are negative quantity components (by products).
    To make it simple have all the components backflushed and auto goods receipt the child in the BOM header.  Create a production order, then process the confirmation (this will auto goods receipt the 1st child, consume by backflush the "FG from customer" and put the other child parts into stock as by products.
    You will need to get your material prices correct first so that there is minimal variance in the production order.

  • How to create PDF without embedded fonts from Indesign

    Can anyone tell me how to create from Indesign a PDF that certainly does not contain any fonts I don't want to include? But that would appear in the same layout in a substituted font, including italics and small caps?

    You can't, InDesign will embed the fonts for  you.
    To unembed fonts you need Acrobat Professional. Go to Tools>Print Production>Pdf Optimiser
    go to Fonts
    And select the fonts to unembed.
    You could select any text and change the Transparency to 99.9%.
    Then in Edit>Transparency Flattener make a new one using High as a base for the new
    Select Convert Text to Outlines.
    When you Export to pdf, choose Adobe PDF 1.3, and go to Flattening, choose the new Flattener Preset that you just made.
    And when you export it, any text forced through the Flattener will be converted to outlines. (this could violate the terms of the Font Licencing.)

  • How to create child iTunes account without credit card

    I Have my check card on file that can be used as debit or credit but iTunes says debit card on file. How can I create my child's account. I don't have a credit card

    No, from Family Sharing and Apple IDs for kids :
    Before you begin, make sure that you're using a credit card as your iTunes Store and App Store payment method. To comply with child online privacy protection laws, you will use the CVV or security code from a valid credit card as part of providing your parental consent. If the card on file is a debit card or another payment method, you’ll be asked to provide a credit card before you can continue. After you create the child's Apple ID, you can change your payment method back to a debit card.

  • How to create abapProxy without ESR connection

    I use local object in sproxy and i want to copy a local object service..but i cannot copy it because when i do right click,in context menu copy option doesnt exist..
    is it possible to create abap proxy without Integration Builder?and how can i do it?
    Thanks

    Hi Tuncer,
    From what i understood in your query below are few explanations.
    ABAP Proxy can be generated using:
    1. Using Object Navigator SE80
        a) Call the Object Navigator (transaction SE80) in the system where you want to generate the server or client proxy. Select a package. From the context menu, choose Create ® Enterprise Services / Web Services  ® Proxy Object.
        b) In the dialog box that appears, choose the WSDL Source (URL/HTTP destination, local file, UDDI, or XI Repository).The Object Navigator displays proxy objects created in the system in the navigation tree under Enterprise Services ® Web Service Library (client proxies, server proxies, and proxy Dictionary-objects).
    2. Using transaction SPROXY
    Hope this was helpful.
    Regards,
    Divya

  • IDOC: How to create child segment with abap code.

    Hi,
    I'am trying to write an abap code to create segments for an Idoc which structure is the following:
    ZLE_00060_DLVY
    >  E1EDL20
    > Z1DEL_CONS
    >Z1DEL_MAT_HEADER
    > Z1DEL_MAT
    > E1EDL20RET2
    > E1EDL22
    > E1EDL21
    > E1EDL23
    > E1EDL51
    I receive a sintax error: Error in IDoc with status 26 .
    Checking the result I note all segment at the same level and an error about the segment E1EDL22
    EDI: Syntax error in IDoc (segment cannot be identified)
         Message no. E0078
    Diagnosis
         The segment E1EDL22 does not occur at the current level of the basic
         type DELVRY05 (extension ZLE_00060_DLVY).
         This error can have several reasons:
         o   The segment E1EDL22 is assigned to a group whose header segment does
             not occur.
         o   The segment E1EDL22 does not exist in the syntax description of the
             basic type DELVRY05 (extension ZLE_00060_DLVY).
         o   The sequence of segments in the group in which the segment appears
             is incorrect.
         Previous errors ('mandatory' segment or group missing) may be due to
         this error.
    Procedure
         Please check the IDoc or the syntax description of the basic type
         DELVRY05 (extension ZLE_00060_DLVY).
    After the error I have:
    data records
    E1EDL20
    Z1DEL_CONS
    Z1DEL_MAT_HEADER
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    E1EDL20RET2
    E1EDL22
    E1EDL21
    Abap code:
            idoc_data-segnam = 'Z1DEL_CONS'.
            idoc_data-sdata = s_z1del_cons.
            append idoc_data.
              idoc_data-segnam = 'Z1DEL_MAT_HEADER'.
              s_z1del_mat_header-tsegment = 'MATERIAL'.
              idoc_data-sdata = s_z1del_mat_header.
              append idoc_data.
            clear idoc_data-sdata.                            <<<<<<<<<<< how to indent the structure because this is a child.
             idoc_data-sdata = s_Z1DEL_MAT.
             idoc_data-segnam = 'Z1DEL_MAT'.
             append idoc_data.
             idoc_data-segnam = 'E1EDL20RET2'.
             idoc_data-sdata = s_E1EDL20RET2.
             append idoc_data.
             clear idoc_data.
             idoc_data-segnam = 'E1EDL22'.
             idoc_data-sdata = s_e1edl22.
             append idoc_data.
             clear idoc_data.
             idoc_data-segnam = 'E1EDL21'.
             idoc_data-sdata = s_e1edl21.
             append idoc_data.
    Any help will be well appreciated.
    Thanks in advance.
    Regards,
        Giovanni

    Hi,
    following in debugging mode the abap code of the INCLUDE ZXTRKU02 where is defined the TABLES IDOC_DATA STRUCTURE  EDIDD, I find that all field of the table IDOC_DATA are not set. More exactly my expectation is to find values for SEGNUM, HLEVEL, PSGNUM.
    In a few words I need to execute an enhancement, via abap code, of the struscure of the idoc before sending it out since I have a requirement to test this enhancement in my XI environment, receiving as input this ideoc modified.
    Then, I need to add a new segment and one child.
    Any suggestion will be well appreciated.
    Thanks in advance.
    Regards,
        Giovanni

  • How to create a specific  master detail

    hi,
    my problem is that i have 3 tables(tab1,tab2,tab3);
    tab1 is master of tab2.
    tab 2 is master of tab3.
    i would like to make a master detail page between tab1 and tab3 without using tab2.
    i am using jdev10.1.3.2 and ADF BC Swing.
    can you help me.
    7rouz

    i've the same kind of treatement in my application.
    i did it this way.
    i created a view object based on entity tab1.
    i created a view object based on a join of entities tab2 and tab3
    (don't forget to create associations between your 3 entites first)
    i then created a viewlink between these two views.
    In the application module, i added the first view and then the second view via the first view.
    You can then use this to created your master/detail relation from the data control palette.
    hope it helps.
    J.

  • How to create time dependant master data table in R/3?

    Hi gurus,
             I am new to BW.I try to execute the 'Time dependant Attribute' into BW.in my scenario my source system must give me the data like "salesrep ID,Manager ID,Date to,Date from,Sales region". I like to know how to define this master data in SAP R/3(Source system)?. Give me the steps to create master data table in R/3.
    Manager may change periodically.even i need to maintain all the changes in R/3.
    Thanks & Regards,
    Bharath

    built-in type method means.,
    there is no need to create data element and domain objects seperately for each and every field of the table which ever you are creating, system will implicitly fix the size based on the data type you selected....

  • How to create a table type context node

    Hi,
    I am trying to create table type context node. While creating, in the wizard no where I can see the option for this.
    Could you please let me know how can I do this?
    In one standard component: SRQM_INCIDENT_H, I can see multiple table type context nodes. Not sure how and why?
    Thanks,
    Sandeep

    HI Sandeep,
      When you right click on context node and create , a wizard will open. In that Wizard in one sreen it will ask for type of view. There you have to select Table View.
    Regards,
    Lakshmi.Y

  • How to create bid without vevdors

    Hi everyone!!
    dose someone can help me and tell me how can i create bid with no vendor?
    I would like to create a bid without choosing vendor and publish the bid.
    The Vendors will be added to the bid after the publishing.
    Thanks,
    Yaron Malka.

    what you want to create is Bid Invitation it seems.
    Just choose the publication type of BI as "public".
    and you would not need to input the bidders.
    If you still get error message.
    Then change the type of this message in SRM IMG-> srm server -> cross applns -> message control --> infl. message control
    from E to W for BUS 2200
    BR
    Dinesh

  • How to create a new master and working repository

    We have a working env - with master and working repositories .
    we have solution for this env .
    I want ti create a new environment for a new version - and to create new master and working repository from the old environment .
    I tried several options but with no success .
    Please help me to understand how can this be done ?
    Thanks
    Tamar

    What options have you tried with no success ?
    Do you want to selectively release / migrate code from one env to the new one or will a clone of the working environment be sufficient? If you clone - you wont be able to selectively move updates across.

  • How to create a attribute to context node with the structure that is in DDIC

    Hi,
    I have created a 3 value attributes while creating a view.
    now i have changed the name of the one of the field in my own database table.
    now the problem is, when i open the webui and try to insert a row. i am getting error like "there is no field with that name(previous name) in collection".
    that is not showing the new name that i have changed. so i deleted the attribute from my view and tried to add the attribute again. and while adding a single attribute it is not taking the ddic structure. and one more problem is, when i open the ui it is showing an error like "  the attribute BaseEntityName is not defined or is still initial  "
    someone help me how to add the one more attribute from the same structure & how to provide BaseEntityName.
    Regards,
    Harry

    Hi Harry,
    If my understanding is correct you have added a attribute with name "ZX" and now you have changed the name of the field to "ZZX" and when you try to add the attribute it gives an error.
    In this case, if you are trying to add a attribute with the same name as you have used before. it will not allow so better to use a new name.
    If the attribute is there and if you are not able to get or set the value of it, Please change the attribute name in the getter and setter methods in the set and get property method call, because by default SAP generates a hard coded text for your attribute name in the methods and if you change the name of the field this will not change.
    Thanks,
    Ashok N.

Maybe you are looking for

  • Skydrive built in app wont let me update it and it doesn't work

    A day after the name change became official my built in skydrive app stopped working. Every time I click on the app it loads the clouds then goes to a message "This location can't be found, please try again later", then it flat crashes and I am back

  • Change shipping information address

    I'm trying to buy a photo book I did on iphoto. I live in swtizerland. When I want to order the book, on shipping information It comes as default "United Kingdom", Is there a way I can change this into " Switzerland" Thanks

  • Picture quality deteriorates

    I just made three short films on iMovie, which I imported into iDVD and burned to a single DVD. But when I play the DVD, the picture quality is fine for the first few minutes, then deteriorates, the picture becoming pixellated and the text being hard

  • Dealer portal system SSL setting with multiple domain name

    Hi gurus I have a Dealer portal system.(It is java java stack system just like EP) SSL certificate will expire in few days and I', planningl renew it soon.(in visual administrator key storage then send it to appropriate CA) Currently DP is used only

  • Form personlization using WHEN-VALIDATE-RECORD to call PLSQL Package

    Hi I am writing a Form Personalization on master Item Form for New Records Only. Once Item Is defined and saved, it should Invoke the Custom Procedure to insert the same record in Custom Table. =========== Trigger Event - WHEN-VALIDATE-RECORD Trigger