Context - adding elements dynamically?

My Context looks like this:
  MAIN 1:n
    FORM_DATA 1:1
Where FORM_DATA is a deep structure(including tables) that represents 1 Project.
My main objective is to append multiple instances of FORM_DATA into my MAIN so i can pass MAIN to by Adobe UI element.
I am filling FORM_DATA from a webservice but am having trouble binding it back to MAIN, then creating a new instance of FORM_DATA to populate and bind back to MAIN.
any help?
thanks,
rp.

Hi,
FORM_DATA is a deep structure then how can you give the cardinality 1:1 which cannot store the Internal table data etc.
Regards,
Lekha.

Similar Messages

  • JList adding Icons+Text String  dynamically adding elements

    Hi
    is it possible in JList to add Icons with image .
    also if i want to add the element dynamically what will be the procedure ?
    If possible plz inform me ....
    at [email protected]

    The JList tutorial explains both how to use icons and how to add elements dynamically. And it has code examples too. You will find it here:
    "How to Use Lists":
    http://java.sun.com/docs/books/tutorial/uiswing/components/list.html

  • Hiding an UI element dynamically in webdynpro ABAP

    Hi Gurus,
      I want to hide a Interactive form UI element dynamically at run time. Please let us know how to proceed with this and provide the code for this, which will be helpful.
    Thanks
    Rahul

    hi ,
    bind the VISIBLE property of the UI element with  a context attribute created in the CONTEXT tab. This context attribute should be of type WDUI_VISIBILITY
    u can refer this code
    wd_context->set_attribute( name = '<attribute name>' value = if_wdl_core=>visibility_visible )." to make it visible.
    wd_context->set_attribute( name = '<attribute name>' value = if_wdl_core=>visibility_none ). "to make it invisible
    regards,
    Amit

  • Is there a way you can add elements dynamically to an existing array??

    hey guys... i need to add elements to an array dynamically... how do i do that?
    for example... in one of my functions i do..
         for each(var item:Object in fileList){
              fileListArr.push(item);
    and in a later function i need to add one more element to my fileListArr...
    so i tried doing
    fileListArr[indexNum].push({
         key:videoKey
    so i need to have an array which resembles something like this...
    Before adding elements...
    fileListArr:
         [0]:  name:test1
                Size:12K
                caption:testing caption
                number:1
         [1]:  name:test2
                Size:12K
                caption:testing caption
                number:2
    after adding key to array
    fileListArr:
         [0]:  name:test1
                Size:12K
                caption:testing caption
                number:1
                key:xyxyyy11y1yy1y1y2y2u33n
         [1]:  name:test2
                Size:12K
                caption:testing caption
                number:2
                key:iiduudjmenri112jj2n4n3m2j1j21
    any ideas?

    hmm interesting... so i made the changes... i changed the array to arraylist and the code i have is as follows... but i still get an error... the error says ... "ReferenceError: Error #1056: Cannot create property key on flash.net.FileReference."
    public var videoReference:VideoHandler;
    public var fileRef:FileReferenceList = new FileReferenceList();
    [Bindable] public var fileListArr:ArrayList = new ArrayList();
    [Bindable] public var fileNames:ArrayCollection = new ArrayCollection();
    public function selectionHandler(event:Event):void{
         fileRef.removeEventListener(Event.SELECT, selectionHandler);
         var numSelected:int = event.target.fileList.length;
         var fileList:Array = event.target.fileList;
         for each(var item:Object in fileList){
              fileListArr.addItem(item);
              fileNames.addItem({
                   num: fileNames.length + 1,
                   name: item.name,
                   size: formatFileSize(item.size),
                   status: ""
         var newListLength:Number = fileListArr.length;
         if(fileCounter > 0){
              loopList(fileCounter);
         else
              loopList(0);
    public function loopList(value:int):void{
         //trace("looplist -->");
         if(value < fileListArr.length){
              _numCurrentUpload = value;
              file = new FileReference();
              file = FileReference(fileListArr.getItemAt(value));
              file.addEventListener(Event.COMPLETE, loadVideo);
              file.addEventListener(ProgressEvent.PROGRESS, fileProgress);
              file.load();
    public function setUploadKey(event:ResultEvent):void{
         if(event.result.ThereWasAnError){
              Alert.show(event.result.ErrorMessages[0]);
         }else{
              videoKey = event.result.UploadKey;
              if(fileCounter >= fileListArr.length){
                   trace("in if");
                   fileCounter = 0;
                   uploadLoopList(fileCounter);
              }else{
                   trace("in else");
                   //fileListArr[fileCounter - 1]['videoKey'] = videoKey;
    -----> get an error here --->fileListArr.getItemAt(fileCounter - 1).key = videoKey;
                   //fileListArr[fileCounter - 1] = [{key: videoKey}];
                   loopList(fileCounter);

  • Loading XML file with missing elements dynamically through ODI

    Hi Guys ,
    I have the below xml file with two nodes Employee and Address. On a daily basis , sometimes the address element might not come in from the source xml file , but my interface has columns mapped to address elements, and hence it can fail due to the source element not being found in the file or data might not get loaded due to the 'and' condition in the sql query generated between the employee and address elements.  Is there a way where i can load the data dynamically where i can search in the file only for the elements (Employee) present and load data only for those elements dynamically?
    XML File:
    <?xml version="1.0" encoding="UTF-8" ?>
    <EMP>
    <Empsch>
    <Employee>
    <EmployeeID>12345</EmployeeID>
    <Initials>t</Initials>
    <LastName>john</LastName>
    <FirstName>doe</FirstName>
    </Employee>
    <Address>
    <WorkPhone>12345</WorkPhone>
    <WorkAddress>Test 234</WorkAddress>
    </Address>
    </Empsch>
    </EMP>
    Thanks ,
    Revanth Tambisetty

    I was able to resolve it by using left outer joins and referring the table structure from the XSD

  • Xsl:element: generate name of element dynamic

    Hi everybody,
    in the target structure I have to create elements dynamically.
    But this does not work:
         <xsl:template name="process-message">
              <!-- params: pattern, role -->
              <xsl:variable name="ELEMENTNAME">
              <xsl:value-of select="anyNode"/>
              </xsl:variable>
              <xsl:element name="($ELEMENTNAME)"> // HERE IS THE ERROR
                   <xsl:apply-templates mode="text"/>
              </xsl:element>
         </xsl:template>
    Any ideas?
    Regards Mario

    Hi Prateek,
    thanks.
    Does not work.
    Regards Mario

  • How to create an UI element dynamically on action in drop down?

    Hi,
    How to create an UI element dynamically on action of selecting a value from the  drop down?
    help out with the steps i need to follow..

    Hi,
    <u><i><b>Dynamic UI Element creation</b></i></u>
    We can create it only in the WD Modify View.
    Get the instance for the Root UI Element Container.
    Create the UI element Ex: Input Field, Text View etc.
    Bind the UI Element to the Attribute Value.
    Now bind the UI Element to the Root UI Element Container.
              IWDTransparentContainer root =(IWDTransparentContainer)view.getRootElement();
              IWDDropdownByIndex DdbName = (IWDDropdownByIndex)view.createElement(IWDDropdownByIndex.class,"DdbName");
              IWDDropdownByIndex DdbAge = (IWDDropdownByIndex)view.createElement(IWDDropdownByIndex.class,"DdbAge");
              IWDDropdownByIndex DdbGender = (IWDDropdownByIndex)view.createElement(IWDDropdownByIndex.class,"DdbGender");
              IWDNode Mad =wdContext.getChildNode("Person",0);
              IWDAttributeInfo NameAtt = Mad.getNodeInfo().getAttribute("Name");
              IWDAttributeInfo AgeAtt = Mad.getNodeInfo().getAttribute("Age");
              IWDAttributeInfo GenderAtt = Mad.getNodeInfo().getAttribute("Gender");
              DdbName.bindValue(NameAtt);
              DdbAge.bindValue(AgeAtt);
              DdbGender.bindValue(GenderAtt);
              root.addChild(DdbName);     
              root.addChild(DdbAge);
              root.addChild(DdbGender);
    <u><i><b>Dynamic Action Creation</b></i></u>
    Create the Action in the Action tab.
    Create a Button.
    Get the reference for the created action (Through the Event Handler).
    Bind the Action to the Button.
    Bind the Button to the Root UI element Container.
    IWDButton ButGo = (IWDButton)view.createElement(IWDButton.class,"ButGo");
    IWDAction ActGo = wdThis.wdCreateAction(IPrivateStartView.WDActionEventHandler.GO,"Click");
    ButGo.setOnAction(ActGo);
    root.addChild(ButGo);
    Now write the required code for the Event Handler that is associated with the Action.
    //@@begin onActionGo(ServerEvent)
        IWDNode Mad = wdContext.getChildNode("Person",0);
         wdComponentAPI.getMessageManager().reportSuccess(Mad.getCurrentElement().getAttributeAsText("Name"));
         wdComponentAPI.getMessageManager().reportSuccess(Mad.getCurrentElement().getAttributeAsText("Age"));
         wdComponentAPI.getMessageManager().reportSuccess(Mad.getCurrentElement().getAttributeAsText("Gender"));
    //@@end
    Regards
    SURYA

  • How to save only newly added elements from the trailing list

    Dear,
    I have a shuttle bean with left and right trailing lists.
    At some point I save the right trailing list content to DB. Then I add additinal elements to the trailing list. Trying to save again gives me oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key
    exception.
    What is the approach I can take to only save newly added elements from the shuttle?
    I am wondering if I can put the extra logic (what logic would that be - do I need to check the PK value that is already in the database?) in the AM method with which I save the shuttle like here (TicketID and ResponsibilityID are primary key)
    if (items != null)
    Object ia[] = items.toArray();
    for(int i=1; i<ia.length; i++)
    Row rowApproval = vo.createRow();
    vo.insertRow(rowApproval);
    rowApproval.setNewRowState(Row.STATUS_INITIALIZED);
    Row row = vo.getCurrentRow();
    row.setAttribute("TicketId",items.get(0));
    row.setAttribute("ResponsibilityId",items.get(i) );
    row.setAttribute("Status",items.get(i));
    or should I do something in the EO?
    Thank you
    Anatoliy

    Hi,
    Can you please clarify - do I have to make a loop? I mean for every record/element in the trailing list
    I run the VO (that I will create) VO.executeQuery?Yes you do need to execute the VO for every record....by passing the different parameter in each iteration.
    Regards,
    Gyan

  • Adding column dynamically

    Hi all
    I have a requirement of adding the columns to a Classic Table at run time.. the number of columns are not fixed. the number of The data in there columns will be dispaled from the view initialized at run time.
    I tried searching out threads on adding column dynamically but didtn get one..
    pls help me out ..
    naveen

    Of course you can add columns dynamically, but this always needs to be from the same VO, a OA table cannot be based on more than one VO.
    So if it all the columns are from the same VO, why take the pain of adding and removing columns, why not just either render it or hide it.
    Thanks
    Tapash

  • Creating context node with dynamic type

    When we are creating context node thru wizard,  Dictionary type must be filled. I'm trying to create Context node manually.Did any one tried created Context node class with Dynamic type.

    Hi Prasad,
    I have a similar requirement.
    Can you please share with me how did you create context node with dynamic table data?
    Thanks
    Vicky

  • Select array elements dynamically

    Hello ... 
    I am trying to write a program where one can select the array elements dynamically from the front panel when the VI is in run mode.
    So far, IC_OpenDevice.vi gives me the various Video formats [It is a 1D array], right now I assume the last but one among this array as an example. But, I would like to design the program in such a way that the user can select any Video Format from the front panel. How do I achieve that ??
    Block Diagram :
    Front Panel:
    Abhilash S Nair
    Research Assistant @ Photonic Devices and Systems lab
    [ LabView professional Development System - Version 11.0 - 32-bit ]
    LabView Gear:
    1. NI PXI-7951R & NI 5761
    2. The Imaging Source USB 3.0 monochrome camera with trigger : DMK 23UM021
    OPERATING SYSTEM - [ MS windows 7 Home Premium 64-bit SP-1 ]
    CPU - [Intel Core i7-2600 CPU @ 3.40Ghz ]
    MEMORY - [ 16.0 GB RAM ]
    GPU - [ NVIDIA GeForce GT 530 ]
    Solved!
    Go to Solution.

    I tried following the same method on my program. 
    However, I get the Error -2147352567 ... Below is the changes I made to my program ... 
    Abhilash S Nair
    Research Assistant @ Photonic Devices and Systems lab
    [ LabView professional Development System - Version 11.0 - 32-bit ]
    LabView Gear:
    1. NI PXI-7951R & NI 5761
    2. The Imaging Source USB 3.0 monochrome camera with trigger : DMK 23UM021
    OPERATING SYSTEM - [ MS windows 7 Home Premium 64-bit SP-1 ]
    CPU - [Intel Core i7-2600 CPU @ 3.40Ghz ]
    MEMORY - [ 16.0 GB RAM ]
    GPU - [ NVIDIA GeForce GT 530 ]
    Attachments:
    Image_Capture_Dev5.vi ‏25 KB

  • How to bind the attribute in the context to a dynamic created element?

    Hi, experts,
    There are some attributes in the node context(ee_node) that contained the attribute named "ANSSA" in the view(test_view) in the WDA for abap. In the method modifyview of the view(there is a transfered parameter that represent the name of "ANSSA")
    I want to create a dynamic element(inputfield) in the test_view. The element need bind the context attribute (ANSSA).Through the transfered parameter(para), I only know the name of the attribute binded. 
    How can I bind the attribute of the context in the following code?
    METHOD modifyview .
    *importing para type string.
    *importing m_view type ref to  if_wd_view.
    data wd_inputfield type ref to cl_wd_input_field.
    create one element automatically in the view.
      wd_inputfield = CL_WD_INPUT_FIELD=>NEW_INPUT_FIELD(
                                        view = m_view
                                        id = para
                                        BIND_VALUE = ???
    ENDMETHOD.
    I don't know how to replace the "???" in the method modifyview? Do you give me some hint for it?
    You can reply back to me via e-mail if you think we should discuss this internally at [email protected] or [email protected]
    Thanks.
    Best regards,
    tao

    Hi, Suresh,
    Thanks a lot for your help.
    The last mail have some errors. Now, I modify my code error. The following is my new code in the wddomodifyview method in the ADDR_AUTO_DISP_VIEW view.
    Now, I modify my code. The following is my new code in the wddomodifyview method in the ADDR_AUTO_DISP_VIEW view.
    METHOD wddomodifyview .
    importing view   type ref to if_wd_view.
      DATA      transparent_container           TYPE REF TO cl_wd_transparent_container.
      DATA      inputfield                      type ref to cl_wd_input_field.
      transparent_container ?= view->get_element( `TRANSPARENT_CONTAINER` ).
      transparent_container->set_visible(
        EXPORTING
          value = if_wdl_core=>visibility_visible ).
    wd_this->SET_DYNAMIC_INPUT(
       EXPORTING
         inputfield_ID =  'ANSSA'
       IMPORTING
         INPUTFIELD    =  inputfield
    **************The web page will occur error when running the WDA as soon as I write the code.***********
      transparent_container->add_child( THE_CHILD = inputfield ).
    ENDMETHOD.
    The following is the code of the SET_DYNAMIC_INPUT method.
    method SET_DYNAMIC_INPUT .
    *importing
    *INPUTFIELD_ID    type STRING
    *exporting
    *INPUTFIELD    type ref to CL_WD_INPUT_FIELD
    Data binded_context       type string.
    concatenate 'ADDR_AUTO_DISP_VIEW.EE_ADDRESS.' INPUTFIELD_ID into binded_context .
    inputfield = CL_WD_INPUT_FIELD=>NEW_INPUT_FIELD(
    id = inputfield_id
    read_only = abap_true
    BIND_VALUE = binded_context
    endmethod.
    When I run the WDA, The web page occuring the error information:
    Note
    The following error text was processed in the system DEV : Access via 'NULL' object reference not possible.
    The error occurred on the application server devserver_DEV_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
    Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
    But when I delete the code of the wddomodifyview, and create a inputfield in the layout of the view, and bind the "ANSSA" to the "value" property in the layout, the WDA is running correctly.
    Do you give me some hints?
    Thanks a million.
    Best regards,
    tao

  • How to access the structure of a dynamically created context node/element

    Hi All,
    in method wddoinit I have added a context node and some attributes
    lo_node = wd_context->get_child_node( name = wd_this->wdctx_instructors ).
      lo_node_info = lo_node->get_node_info( ).
      lo_node_info = lo_node_info->add_new_child_node( name                  = 'OCCUPANCY'
                                                       is_mandatory          = abap_true
                                                       is_multiple           = abap_false
                                                       is_multiple_selection = abap_false ).
          lo_node_info->add_attribute( ls_attr ).
    So far, I have node INSTRUCTORS (0...n) with a subnode OCCUPANCY (1...1)
    In the supply_method of INSTRUCTORS I would like to fill the instructors node and the OCCUPANCY subnode.
    The thing is I do not know the structure of the dynamicaly created subnode OCCUPANCY there. How can I get a description of this node (that, what in non-dynamic programming would be wd_this->element_occupancy...)??
    THANKS,
    Johannes

    ...I got this one solved by myself...
    I simply added this coding:
    lo_node_info = lo_node->get_node_info( ).
      lt_attributes = lo_node_info->get_attribute_names( ).
    This appers to be enough information to be good to gogo
    Thanks anyway.

  • Adding Screen Elements Dynamically

    Hi!
    <b>Is it possible to add screen elements at run time?</b>
    I have tried doing
    APPEND g_wa_screen TO screen
    but it is not allowed.
    Im trying to add new colums to my table control. I've already added columns in the cols sub-structure of my table control but nothing gets displayed. My hunch is that those fields arent defined in the screen structure.

    Hello Emir,
    You might struggle to do this with dialog screens.
    A better alternative would be to use ALV Grid control. Using this, you could dynamically add columns etc. You can even include a grid control on a dialog screen using a custom control in the screen painter. Look at transaction SE83 for examples of ALV grid control and the documentation on class CL_GUI_ALV_GRID.
    Cheers,
    Martin

  • Adding elements to html form dynamically

    hi All,
    I would like to add input boxes to html form dynamically onclick event.
    But this doesnot work at all.. can u spot the trouble?
    <html>
    <body>
    <input type=file name="fileName" value="browse">
    <input type=button value="Add more file" onclick="add();">
    <input type=hidden name="theValue" value='0'>
    <script type="text/javascript">
    function add()
    var num=parseInt(theValue.value)+1;
    theValue.value=num;
    var name="fileName"+num;
    var element=document.createElement(input);
    element.setAttribute('type','file');
    element.setAttribute('name',name);
    element.setAttribute('value','browse');
    document.appendChild(element);
    </script>
    </body>
    </html>
    thanks in advance

    Hi,
    Since no one is giving you the hint: I'm afraid you're in the wrong forum. This is not a Javascript forum. I know it sounds confusing but despite the name, Javascript and Java have nothing really in common. Javascript runs on the client side. Java web technologies don't. Although, what you are asking for can be done with JSP's, I'm afraid, I can't help you with Javascripting :(....
    Cheers,
    Joerg

Maybe you are looking for

  • Upgrade to os4 - A way to get lost information - CONTACTS and TEXTS

    I have been spending hours, and hours, trying to figure out what happened to this phone. I upgraded to os4, and when I did, I lost everything (contacts, texts, pics, apps, etc.), eventhough I backed up everything on a weekly basis. Not sure where App

  • TG4MSQL ora-28500 error on RECOVER login in READ-ONLY mode

    We're connecting from a 10.2 dbase to SqlServer2000 via TG4MSQL. No upfront problem connecting but the Oracle .trc file shows below error: ORA-28500: connection from ORACLE to a non-Oracle system returned this message: [Transparent gateway for MSSQL]

  • Photo Stream Sharing Difficulties

    My daughter is currently travelling in China and has shared a dedicated photo stream with me. She's on a 5C running 7 and I'm on a 4S running 7. I have been able to add photos to her stream which she can see, but I can't see any of her photos. She's 

  • Instructions for Configuring RMAN (Oracle 11g Enterprise Edition)

    Good Afternoon, Having problems configuring RMAN. Can someone tell me how to configure RMAN using the command line? Thanks

  • Can I use my new nano with old itunes??

    Can i use the old itunes with my new nano???? Because the new ituns want dl and I cant get help no where, this *****!!! I guess I bought a $200 turd!!!!!! I guess I should just go buy a walk man, I dont need a pc for that.....yet!!!!!!