How to manage a node with cardinality 0..n

hi,
i implemented a application with webdynpro which uses a sap babi. everything wents fine, except that i don't know which container i have to use for a cardinality 0..n. one node has this and so the attributes can entered as often as possible.
but i only need one string, so i tried it with an input field, but this is greyed out. what have i to do?

Hi Marcus,
If there is no way you could change the cardinality of the node, and thus it can contain 0..n items, I think you should create-and-add a new element programmatically.
Since the collection can contain zero elements, I would add a 'new' button, which upon clicking adds one new element via:
IYourNodeElement yourNodeElem = wdContext.nodeYourNode().createYourNodeElement();
wdContext.nodeYourNode().addElement(yourNodeElem);
Hope this explains a bit!
Best,
Robin van het Hof

Similar Messages

  • How to set values to the structure containing a node with cardinality 0..n

    Hello.
    I 'm trying to set values for the node with cardinality 0..n. The node type is "Fields".
    <xsd:complexType name="Field">
       <xsd:sequence>
          <xsd:element name="fieldCode" type="xsd:string"></xsd:element>
          <xsd:element name="displayValue" type="xsd:string" minOccurs="0"></xsd:element>
       </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="Fields">
       <xsd:sequence>
          <xsd:element name="field" type="tns:Field" minOccurs="0" maxOccurs="unbounded"></xsd:element>
       </xsd:sequence>
    </xsd:complexType>
    I  need to set several values for the element "fieldCode" but it has cardinality 0..1 and BPM does not allow it but I did not find any option about how to set values for the structure of type "Fields". Could you help me?
    Best regards,
    Timur Semenchuk

    Hi Marcus,
    If there is no way you could change the cardinality of the node, and thus it can contain 0..n items, I think you should create-and-add a new element programmatically.
    Since the collection can contain zero elements, I would add a 'new' button, which upon clicking adds one new element via:
    IYourNodeElement yourNodeElem = wdContext.nodeYourNode().createYourNodeElement();
    wdContext.nodeYourNode().addElement(yourNodeElem);
    Hope this explains a bit!
    Best,
    Robin van het Hof

  • Hardcode values of the node with cardinality 0..n

    Good day!
    I need to hardcode a list of element to the node with cardinality 0..n.
    Node has two attributes.
    How can I fill the node with a few element in the input mapping? I know I can do it with a single element by separating values by comma. Is it possible to fill the node?

    Hello.
    I've the same problem. Can you say how to set list of values for a structure?
    For example, we've node FIELD containing two attributes:  ID and NAME.
    FIELD is a node with cardinality 0..*. How to set at least two elements to the node?
    Your example works only for simple attributes with cardinality 0..*, but it doesn't work for structures.
    Best Regards,
    Timur Semenchuk.

  • How to create a node with attributes at runtime in webdynpro for ABAP?

    Hi Experts,
             How to create a node with attributes at runtime in webdynpro for ABAP? What classes or interfaces I should use? Please provide some sample code.
    I have checked IF_WD_CONTEXT_NODE_INFO and there is ADD_NEW_CHILD_NODE method. But this is not creating any node. I this this creates only a "node info" object.
    I even check IF_WD_CONTEXT_NODE but i could not find any method that creates a node with attribute.
    Please help!
    Thanks
    Gopal

    Hi
       I am getting the following error while creating a dynamic context node with 2 attributes. Please help me resolve this problem.
    Note
    The following error text was processed in the system PET : Line types of an internal table and a work area not compatible.
    The error occurred on the application server FMSAP995_PET_02 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WD_CONTEXT_NODE~GET_STATIC_ATTRIBUTES_TABLE of program CL_WDR_CONTEXT_NODE_VAL=======CP
    Method: GET_REF_TO_TABLE of program CL_SALV_WD_DATA_TABLE=========CP
    Method: EXECUTE of program CL_SALV_WD_SERVICE_MANAGER====CP
    Method: APPLY_SERVICES of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: REFRESH of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE_DATA of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~UPDATE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_VIEW~MODIFY of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMPONENT~VIEW_MODIFY of program CL_SALV_WD_A_COMPONENT========CP
    My code is like the following:
    TYPES: BEGIN OF t_type,
                CARRID TYPE sflight-carrid,
                CONNID TYPE sflight-connid,
             END OF t_type.
      Data:  i_struc type table of t_type,
      dyn_node   type ref to if_wd_context_node,
      rootnode_info   type ref to if_wd_context_node_info,
      i_node_att type wdr_context_attr_info_map,
      wa_node_att type line of wdr_context_attr_info_map.
          wa_node_att-name = 'CARRID'.
          wa_node_att-TYPE_NAME = 'SFLIGHT-CARRID'.
          insert wa_node_att into table i_node_att.
          wa_node_att-name = 'CONNID'.
          wa_node_att-TYPE_NAME = 'SFLIGHT-CONNID'.
          insert wa_node_att into table i_node_att.
    clear i_struc. refresh i_struc.
      select carrid connid into corresponding fields of table i_struc from sflight where carrid = 'AA'.
    rootnode_info = wd_context->get_node_info( ).
    rootnode_info->add_new_child_node( name = 'DYNFLIGHT'
                                       attributes = i_node_att
                                       is_multiple = abap_true ).
    dyn_node = wd_context->get_child_node( 'DYNFLIGHT' ).
    dyn_node->bind_table( i_struc ).
    l_ref_interfacecontroller->set_data( dyn_node ).
    I am trying to create a new node. That is
    CONTEXT
    - DYNFLIGHT
    CARRID
    CONNID
    As you see above I am trying to create 'DYNFLIGHT' along with the 2 attributes which are inside this node. The structure of the node that is, no.of attributes may vary based on some condition. Thats why I am trying to create a node dynamically.
    Also I cannot define the structure in the ABAP dictionary because it changes based on condition
    Message was edited by: gopalkrishna baliga

  • How to manage answer tones with iPhone.

    I haven't seen this posted anywhere else, so if I am duplicating someone else's post I apologize ahead of time. But, if anyone was wondering how to manage answer tones with their new phone since it doesn't have access to Media Mall, the best way I have found is by going to cingularanswertones.com.

    Sync it as described in the User's Guide.

  • How to manage one library with two accounts

    how to manage one library with two accounts

    you can only be logged into one account at a time on the iTunes store. However, you can authorize your computer for both accounts, making your computer work with both. In the menu bar just click [Store > Authorize Computer]

  • Unable to add value to model node with cardinality 0..n

    Hi All,
       Im working with Webdynpro Java.i have an issue here.i have a input field item named customer and a drop down box item location.when i give customer and location as inputs,a WSDL (named Equipment WSDL) is called.the result is a  drop down list containing equipments id
    i took a custom node location with cardinaliy 0..n.i gave static values as input for location.i need to set the location values to model node location.when i m giving a single value to custom node location,that static value is not accepted by model node location(in WSDL) whose cardinality is 0..n.
    Please suugest a solution for this issue
    With Regards,
    Ushasri.

    HI Ushashri,
    What do you mean by 'static value is not accepted by model node location'
    how you have done the mapping
    send me the hierarchy of rfc and ur value node
    With Regards
    Naidu

  • How to highlight Tree node with a diff color

    I have created tree node and want to highlight Selected node with a different background color. Any Ideas how can we achieve that? -R

    It's an item on page 4 of the application that the blog example is taken from. The tree query:
    SELECT EMPLOYEE_ID AS ID
         , MANAGER_ID  AS PID
         , CASE
             WHEN EMPLOYEE_ID = :P4_EMPLOYEE_ID THEN
                 '<span style="color:white;background-color:blue;">'||
                 LAST_NAME||
                 '</span>'
             ELSE
                 LAST_NAME
           END AS NAME
         , 'f?p=&APP_ID.:4:'||:SESSION||'::NO::P4_EMPLOYEE_ID:'||EMPLOYEE_ID AS LINK
         , NULL        AS A1
         , NULL        AS A2
      FROM #OWNER#.EMPLOYEESgenerates leaf nodes that link to page 4, setting the value of P4_EMPLOYEE_ID. When page 4 is rendered, P4_EMPLOYEE_ID contains the ID of the clicked node, the page displays details of the employee with this ID, and the case expression in the tree query causes the corresponding display value to be highlighted.
    See the sections Managing Session State Values and Using f?p Syntax to Link Pages in the documentation to understand how to set session state values using URLs.
    http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/concept.htm

  • How to create a node with attribute?

    hi,
    does anyone can help with creating an XML node with only attributes but no value?
    e.g.
    <root>
       <category node_id='ND1'>
          <value id='1'>some value in here</value>
          *<extra_node desc="this is the new node i want to create"/>*
       </category>
       <category node_id='ND2'>
          <value id='1'>some value in here</value>
       </category>
    </root>in the example, what i want to do is to get the category using XPath, and insert one attribute node into it.
    anyone can help? sincerely appreciated!

    No, the question was not about attributes with no value, it was about elements with no value.
    Now I know that the "value" of an element is a meaningless term in XML, but the OP's example shows that the question was how to produce an empty element. Even though the text describes the operation as "insert one attribute node", which doesn't agree with the example.
    It's easy to create an empty element using DOM, but we have no idea whether the OP is talking about DOM programming or what.

  • How to manage J2EE Container with GUI?

    I have used Oracle9i J2EE Container for 6 months. I have managed via command-line (on Win2000). It's not convenient for admin the server. I searched for the documents about manage with GUI, admin tool or Enterprise Manager but I found a few document on Oracle website that didn't help me too much.
    Does anybody suggest me about any admin tool or how to use + configure Enterprise Manager or where to find rich documents?
    Thank you so much

    Narong,
    Enterprise Manager is available with Oracle9iAS Release 2 and OC4J is a managed component withiin Oracle9iAS. You have to download Oracle9iAS Release 2 from OTN(may be just J2EE Webcache edition) if you want to use the GUI tool.
    You can use the following link to download Oracle9iAS Release2 http://otn.oracle.com/software/htdocs/devlic.html?/software/products/ias/htdocs/winsoft.html
    regards
    Debu Panda
    Oracle

  • How to manage several databases with DWH

    hi,
    How to manage several databases within an Oracle datawarehouse.
    I.e. to memorize in a DWH the informations along various axes of analysis relating to each databases (I mean : operations, breakdowns, parmeters, caracteristic technical, statistics ...)
    Thanks
    Robert

    Mylenium, thanks for a helpful hint!
    I tried your suggestions and it seems that i have to save
    - mask shape and
    - Stroke effect settings incl. key frames
    as separate things, if i want them in the effects panel.
    When i set the Stroke effect to my preferred look (with custom colours, width, key frames for Start and Opacity) and save this as an effect, i cannot re-apply this to another mask with any of my custom settings still there. When i re-apply the saved custom Stroke effect, all settings like keyframes, custom colours and width are lost and it arrives with default settings and without any keyframes.
    Maybe i do something very wrong here?
    I wondered if i should save the mask with Stroke effect as an AE file and re-import it. But this mask can only be saved together with some footage and i don't see how to bring mask including Stroke effect into an existing composition and which of the File/Import ways to use.
    Thanks again!

  • How to Managing Firefox Settings with Group Policy?

    Hi
    Is there any way to manage Firefox Settings through Windows group policy?
    I want to replace Firefox with IE in the network but don't know how to customize the settings with GPO.

    There are some third party solutions that have worked for others in the past:
    You would need a user.js file and a lock file with a list a preferences please see the instructions on how to do this:
    *[kb.mozillazine.org/Locking_preferences]
    *[https://mike.kaply.com/2014/12/16/managing-firefox-with-group-policy-and-policypak/]

  • How to manage a connection with powershell using visual studio with C#

    Hi
     I want to manage a connection with powershell for a web app using visual studio with c#. and also run command with pipeline 
    Plz give a some suggestions..

    Hi Raj_Kumar_Saini,
    To make things clear, could you please clarify these thing?
    1. Do you mean you want to execute some PowerShell scripts from C# language? These blogposts may give you  some ideas:
    Executing PowerShell scripts from C#
    Powershell Automation and Remoting (a c# love story)
    Execute PowerShell from a ASP.NET Web Application
    2. Is your question related to Visual Studio Integration? Do you want to build a Visual Studio Extension?
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to populate value node with values?

    Hi Experts,
    I have created a new view with a vlaue node of table type.
    How can I populate values into the value node?
    Which method will be useful?
    Is there any material for Web UI Programing?
    Please help me in this.
    Thanks,
    Adi.

    Hi Adi
    If ZVal is your value node then,
      DATA: lref_entity    TYPE REF TO cl_bsp_wd_value_node,
            lref_bo_coll   TYPE REF TO if_bol_bo_col,
            lref_data TYPE REF TO <<your ZStructure>>,
             ls_data type <<your ZStructure>>.
    ls_data-<<field1>> = 'XYZ'
    ls_data-<<field2>> = 'XYZ'
         CREATE OBJECT lref_bo_coll TYPE cl_crm_bol_bo_col.
          CREATE DATA lref_data.
          CREATE OBJECT lref_entity
            EXPORTING
              iv_data_ref = lref_data.
          lref_entity->set_properties( ls_data ).
          lref_bo_coll->add( lref_entity ).
          typed_context->ZVal->set_collection( lref_bo_coll ).
    Hope this was helpful.
    Best Regards,
    Lakshminarayana

  • How to hide a node with no children in ADF Tree after Search

    Hi,
    I have a tree component with Search in my screen.
    I followed http://www.jobinesh.com/2010/01/search-by-child-attributes-on-tree.html to implement search.
    Search is performing on the childnodes, once the search is done I am expanding all the nodes and displaying only the filtered records.
    my code to expand all the nodes :
    public void expandAllTreeNodes() {
    UIXTree tree = getGroupTree();
    RowKeySet disclosedRowKeys = new RowKeySetTreeImpl(true);
    CollectionModel model = (CollectionModel)tree.getValue();
    JUCtrlHierBinding treeBinding = (JUCtrlHierBinding)model.getWrappedData();
    JUCtrlHierNodeBinding nodeBinding = treeBinding.getRootNodeBinding();
    List<JUCtrlHierNodeBinding> childNodes = nodeBinding.getChildren();
    if (childNodes != null) {
    for (JUCtrlHierNodeBinding _node : childNodes) {
    disclosedRowKeys.add(_node.getKeyPath());
    disclosedRowKeys.remove(_node.getKeyPath());
    tree.setDisclosedRowKeys(disclosedRowKeys);
    Now I want to hide the nodes which does not have children after search.
    how can I hide the node if _node.getChildren() is null.
    Could any one provide some inputs on this.
    Thanks,
    Swathi

    AE Basics
    Keyframe the mask path.

Maybe you are looking for

  • Crashing like a PC...

    Hi, I have a new Mac 3.6 Ghz Intel Core i5. Every thing work s fine except for the constant random crashes. Without any apparent reason, system suddenly crashes: mouse cursor freezes and keyboard gets unresponsive. Like if this wasn't enough trouble,

  • Bouncing to a track...

    When you bounce in Logic8, is the audio put into the audio window ? Or is it placed into the song where you wanted it to be (like pro tools, cubase, sonar, acid, nuendo, and live do) ?

  • Reg. CIN details not come during vendor creation

    Dear All I create one new user in SU01 refering the existing user(copy) who has all rights,but the newly created vendor has no CIN details tab, After added the user name at OMT3E that CIN details comming. Whereas in our company there are 30 users ,bu

  • Cannot change measurement in MM02

    Hi all, I need to change UoM of existing material in MM02. But there's 'Display Error' showing that: 1. Stocks already exist at plant level -->I've check the stocks, and already reversed and no stock left in the plant. 2. Routings already exist that

  • Can access network/inet but cannot get out to "browse"

    Greetings almighty MAC gurus! I have seen the light and thrown off the PC shackles. But alas, they chains are long! I am configured thru a linkys wireless router (attached to a pc homen network). I get an inet connect, IP addy etc. But when opening s