How can I add an attribute to a node?

Hi,
How can I add an attribute to a node of a DOM Document?
I want to add attribute Maximum="6" for all Grade node as <Grade Maximum="6">.
Grade is a third level node in my document.
Thanks

Hi,
How can I add an attribute to a node of a DOM
Document?
I want to add attribute Maximum="6" for all Grade node
as <Grade Maximum="6">.
Grade is a third level node in my document.
ThanksGet the father of "Grade" elements as an element. Then get all elements named "Grade", and for each one set attribute "Maximum" with value "6". If you read api documentation you will know which methods to use.
But for helping you in getting the "Grade" parent.
1) get the root element of the Dom Doc
2)get the father of the "Grade" father: getElementsBytagName("his name") -> it will return a Node List get the first element casting as Element if there's only one, or elese if not case
3)the same method in 2 get the "Grade" father
4)getElementByTagName("Grade") over the "Grade" father -> for each "grade" element on nodelist do whatever you need
i hope u understood...

Similar Messages

  • How can i add custom attributes to a new Class Object using the API ?

    Hello everyone,
    Here is my problem. I just created a subclass of Document using the API (not XML), by creating a ClassObjectDefinition and a ClassObject. Here is the code :
    // doc is an instance of Document
    ClassObject co = doc.getClassObject();
    ClassObjectDefinition cod = new ClassObjectDefinition(ifsSession);
    cod.setSuperclass(co);
    cod.setSuperclassName(co.getName());
    cod.setName("MYDocument");
    ClassObject c = (ClassObject)ifsSession.createSchemaObject(cod);
    Everything seems to be OK since i can see the new class when i use ifsmgr. But my question is : how can i add custom attributes to this new class ? Here is what i tried :
    AttributeDefinition value = new AttributeDefinition(ifsSession);
    value.setAttribute("FOO", AttributeValue.newAttributeValue("bar"));
    c.addAttribute(value);
    But i got the following error message :
    oracle.ifs.common.IfsException: IFS-30002: Unable to create new LibraryObject
    java.sql.SQLException: ORA-01400: impossible d'insirer NULL dans ("IFSSYS"."ODM_ATTRIBUTE"."DATATYPE")
    oracle.ifs.server.S_LibraryObjectData oracle.ifs.beans.LibrarySession.DMNewSchemaObject(oracle.ifs.server.S_LibraryObjectDefinition)
    oracle.ifs.beans.SchemaObject oracle.ifs.beans.LibrarySession.NewSchemaObject(oracle.ifs.beans.SchemaObjectDefinition)
    oracle.ifs.beans.SchemaObject oracle.ifs.beans.LibrarySession.createSchemaObject(oracle.ifs.beans.SchemaObjectDefinition)
    void fr.sword.ifs.GestionDocument.IFSDocument.createDocument(java.lang.String)
    void fr.sword.ifs.GestionDocument.IFSDocument.main(java.lang.String[])
    So, what am i doing wrong ?
    More generally, are we restricted in the types of the attributes ? (for example, would it be possible to add an attribute that would be an inputStream ? Or an object that i have already created ?).
    Any help would be appreciated. Thanks in advance.
    Guillaume
    PS : i'm using Oracle iFS 1.1.9 on NT4 SP6 and Oracle 8.1.7
    null

    Hi Guillaume,
    you're welcome. Don't know exactly, but assume that ATTRIBUTEDATATYPE_UNKNOWN
    is used to check for erronous cases only
    and it shouldn't be used otherwise.
    Creating your own objects could be simply done via
    ClassObject ifsClassObject;
    DocumentDefinition ifsDocDef = new DocumentDefinition(ifsSession);
    // get class object for my very own document
    ifsClassObject = ClassObject.getClassObjectFromLabel(ifsSession, "MYDOCUMENT");
    // set the class for the document i'd like to create
    ifsDocDef.setClassObject(ifsClassObject);
    // set attributes and content for the document...
    ifsDocDef.setAttribute("MYFOO_ATTRIBUTE",....);
    ifsDocDef.setContent("This is the content of my document");
    // create the document...
    PublicObject doc = ifsSession.createPublicObject(ifsDocDef);
    null

  • How can i add selected element from one node to other node

    Hi All
    I have below requirement.
    Say In the view leftside Available Languages ItemList Box  Rightside Available Languages ItemList Box and Add & Remove Buttons in the middle.
    User selects languages from Available Languages ItemList Box clicks on add it will adds to the Available Languages Item List box and ViceVersa with Remove Button.
    1) I have created 2 nodes 1) AvlLang 2) SelLang both contains two attributes Key and Value.
    2) For AvlLang node,  Property : Data Dictonary binded with table. Values are coming fine in Available Languages ItemList Box.
    3) How can i add selected language into the node Available Languages.
    Please provide the code snippet how to achieve this.
    BR
    X- CW

    Hi Carlin,
    Find below code to copy selected record from one node to another.
    Here I am copying it_lips node into pack_mat node.
    DATA: wa_temp TYPE REF TO if_wd_context_element,
                lt_temp TYPE wdr_context_element_set,
                count type c.
          DATA : lo_nd_it_lips TYPE REF TO if_wd_context_node,
                 lo_el_it_lips TYPE REF TO if_wd_context_element,
                 ls_it_lips TYPE wd_this->Element_it_lips,
                 lt_it_lips TYPE wd_this->Elements_it_lips,
                 ls_unpack TYPE wd_this->Element_unpack,
                 lt_unpack TYPE wd_this->Elements_unpack.
    * navigate from <CONTEXT> to <IT_LIPS> via lead selection
          lo_nd_it_lips = wd_context->path_get_node( path = `ZRETURN_DEL_CHANGE.CHANGING_3.IT_LIPS` ).
          CALL METHOD lo_nd_it_lips->get_selected_elements
            RECEIVING
              set = lt_temp.
    * navigate from <CONTEXT> to <PACK_MAT> via lead selection
          lo_nd_pack_mat = wd_context->get_child_node( name = wd_this->wdctx_pack_mat ).
          LOOP AT lt_temp INTO wa_temp.
            CALL METHOD wa_temp->get_static_attributes
              IMPORTING
                static_attributes = ls_it_lips.
                  ls_pack_mat-vgbel = ls_it_lips-vgbel.
                  ls_pack_mat-vgpos = ls_it_lips-vgpos.
                  append ls_pack_mat to lt_pack_mat.
                  CLEAR ls_pack_mat.
          endloop.
            lo_nd_pack_mat->bind_table( new_items = LT_PACK_MAT
                                        SET_INITIAL_ELEMENTS = abap_true ).
    Cheers,
    Kris.

  • How can I add an attribute to a SAML 2.0 response?

    I am trying to implement SSO with a relying party while using Azure AD as the IdP and they require the email address to come from one of the following attributes below in the SAML response.  But I can't for the life of my find out where I can configure
    the response in the Azure management console and my search-fu has so far turned up nil.
    name="email"
    name="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"
    name="emailAddress",nameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"
    name="emailaddress",nameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"
    name="Email",nameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"
    name="saml_username",nameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"
    name="emailAddress",nameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified"
    name="emailaddress",nameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified"
    name="emailaddress",nameFormat="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"
    name="urn:oid:0.9.2342.19200300.100.1.3",nameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"
    name="mail",nameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic"
            <AttributeStatement>
                <Attribute Name="http://schemas.microsoft.com/identity/claims/tenantid">
                    <AttributeValue>[MYGUID]</AttributeValue>
                </Attribute>
    <!-- I want an email attribute here -->
                <Attribute Name="http://schemas.microsoft.com/identity/claims/objectidentifier">
                    <AttributeValue>[MYOID]</AttributeValue>
                </Attribute>
                <Attribute Name="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name">
                    <AttributeValue>[email protected]</AttributeValue>
                </Attribute>
                <Attribute Name="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname">
                    <AttributeValue>Tindall</AttributeValue>
                </Attribute>
                <Attribute Name="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname">
                    <AttributeValue>Jeff</AttributeValue>
                </Attribute>
                <Attribute Name="http://schemas.microsoft.com/identity/claims/displayname">
                    <AttributeValue>Jeff Tindall</AttributeValue>
                </Attribute>
                <Attribute Name="http://schemas.microsoft.com/identity/claims/identityprovider">
                    <AttributeValue>https://sts.windows.net/[MYGUID]/</AttributeValue>
                </Attribute>
            </AttributeStatement>
            <AuthnStatement AuthnInstant="2015-02-20T19:51:12.000Z" SessionIndex="_1eb9dd08-0bb7-48b0-b37c-64eb64d9a5f2">
                <AuthnContext>
                    <AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:Password</AuthnContextClassRef>
                </AuthnContext>
            </AuthnStatement>
        </Assertion>
    </samlp:Response>
    Thanks in advance.
    Jeff

    When I did not get a response here, I had to open a ticket with support.  The short answer is that you cannot customize the SAML response when using Azure AD as an IdP.
    Response from support:
    I discussed the issue with senior engineers to get action plan for this issue. After doing research Senior engineers updated me that we cannot add a custom attribute to the default
    SAML response of Azure AD.
    Below is the link to get the list of available attributes
    https://msdn.microsoft.com/en-us/library/azure/dn195587.aspx
    As default SAML response from Azure AD , we have email address of the user sent out as attribute value for the Attribute " NAME ".
    They suggested me to configure the application we are trying to integrate with Azure AD in such a way that it transforms the Attribute  " NAME " into " EMAIL
    This was not particularly helpful in my case as I did not have any control over the 3rd party which specifically documented that they would not extract the email address from the name attribute.
    Cheers,
    Jeff

  • How can I add cursor attribute values or change the size?

    I am using the SetCursorAttribute and would like to create and add additional cursor attribute values insteasd of the current 24 that are available. In particular, I would like to number each cursor in my list to each cursor on a graph so it can be identified easily by the user. Making each cursor a different value from the available 24 Attribute Value's is not desired since they are not easily identified due to the size of the cursor. (it's hard to discern a square box to a square box with an X).
    OR
    Another possiblity could be to allow for modification of the current size of the Attribute Values, is this possible?

    Hi Dennis,
    Unfortunately there is currently no way to change the size of a graph cursor, or to beyond the 24 point styles you mentioned. However, there are many other ways to differentiate cursors beyond point style. You can use differing crosshair styles and colors. Additionally, you can use "PlotBitmap(...)" to plot a bitmap image to the control using relative X and Y coordinates. With a little creative programming, you can use this function to simulate a graph cursor.
    regards,
    Eric Meyer
    Applications Engineer
    National Instruments

  • How can I add an adornment to a table model?

    Hi
    - Is it possible to add an adornment to a table model?
    -  If yes how can I do that? Interface? Sample?
    Thanks for any hint
    Hans

    Hi,
    How can I add an attribute to a node of a DOM
    Document?
    I want to add attribute Maximum="6" for all Grade node
    as <Grade Maximum="6">.
    Grade is a third level node in my document.
    ThanksGet the father of "Grade" elements as an element. Then get all elements named "Grade", and for each one set attribute "Maximum" with value "6". If you read api documentation you will know which methods to use.
    But for helping you in getting the "Grade" parent.
    1) get the root element of the Dom Doc
    2)get the father of the "Grade" father: getElementsBytagName("his name") -> it will return a Node List get the first element casting as Element if there's only one, or elese if not case
    3)the same method in 2 get the "Grade" father
    4)getElementByTagName("Grade") over the "Grade" father -> for each "grade" element on nodelist do whatever you need
    i hope u understood...

  • How can i add an custom attribute and assign it to an existing custom object class in sun ds

    I need to add an attribute to sun ds schema and assign it to an existing custom object class.
    I know how to add an attribute but how can i add the attribute to an existing custom object class.
    Please help.
    Thanks

    The objectclasses attribute is multi-valued, so you can add several values to it as long as they are unique.
    For instance, I think you can add several declaration of the same objectclass as below (note the difference is the number of spaces in the value) howewer, from a schema perspective, only 1 will be taken into account:
    objectclasses: ( 2.5.6.6 NAME 'person' DESC 'Standard LDAP objectclass' SUP top MUST ( sn $ cn ) MAY ( description $ seeAlso $ telephoneNumber $ userPassword $ CustomAttr) X-ORIGIN 'RFC 2256' )
    objectclasses: ( 2.5.6.6 NAME   'person' DESC 'Standard LDAP objectclass' SUP top MUST ( sn $ cn ) MAY ( description $ seeAlso $ telephoneNumber $ userPassword $ CustomAttr) X-ORIGIN 'RFC 2256    ' )
    That's the reason why it is safe to delete previous value if you want to update an existing objectclass. No problem to add a new objectclass (new oid and new name) to the schema.
    -Sylvain

  • Using the value "Image/*" for the accept attribute of the HTML input Element, how can I add .pdf to the array of preconfigured file types (.jpe, .jpg, .jpeg, .?

    On a form, using the value "image/*" for the accept attribute of the HTML input Element, how can I add .pdf to the array of pre-configured file types (.jpe, .jpg, .jpeg, .gif, .png, .bmp, .ico, .svg, .svgz, .tif, .tiff, .ai, .drw, .pct, .psp, .xcf, .psd, .raw)?
    Say I wanted to add .gif, .jfif or .ico. I find this array limited, how can I add types to image?
    <input type="file" name="file" accept="image/*" id="file" />
    mimeTypes.rdf does not seem to allow this.

    ''mimeTypes.rdf'' has nothing to do with web development. It's a file that stores your file handling preferences (e.g. if you want ZIP files automatically saved or opened).
    You can't change the file types of the pre-defined content specifiers (audio/*, video/*, image/*), but you can specify additional MIME types. To add PDF to your above example,
    <pre><nowiki><input type="file" name="file" accept="image/*,application/pdf" id="file" /></nowiki></pre>
    For details, see
    * [https://developer.mozilla.org/En/HTML/Element/Input developer.mozilla.org/En/HTML/Element/Input]

  • How can I add a custom attribute to a catalog area? (CRM Isa Sales)

    Gents,
    How can I add a custom attribute to a catalog area? (CRM Isa Sales)
    Actually I would like to use the Catalog Area Type (maintained in trx COMM_PCAT_ADM on Catalog Area Header level). This field doesn't seem to be available in J2EE webshop. (The field documentation says it is for documentation purposes only so I don't expect it to be transferred).
    As this field is not readily available, I would like to add is as an attribute to the Catalog Area. BADI's PCAT_IMS_FEED_ATT and PCAT_IMS_FEED_VAL seem to indicate that it should be possible to add additional fields not only on product level, but also on Area level:
    Example implementation code:
    method IF_EX_PCAT_IMS_FEED_ATT~READ_NEW_FIELDS.
    * Example, how to add new attributes to a indexcategory
    * Possible levels are 'C'ategory and 'P'roduct.
    * Field 'VALUE' carries the attributetype ('S'tring, 'I'ntegar or
    * 'F'loat)
    * Structure 'IS_OBJECTS' carries actuall identifiers
      data: ls_fields        type comt_pcat_ims_feed_ux.
      case iv_level.
        when 'C'.                        "Category Level
    *     no new field
        when 'P'.                        "Product Level
          ls_fields-field = 'CUSTOMER_EXIT_FIELD'.
          ls_Fields-value = 'S'.
          append ls_fields to ct_fields.
    *     exproduct fields
          ls_fields-field = 'REMAN_ABL'.
          APPEND ls_fields TO ct_fields.
          ls_fields-field = 'EXCH_BUS'.
          APPEND ls_fields TO ct_fields.
      endcase.
    endmethod.
    However, when I create an implementation and add some code in the when 'C' part, the attributes do not seem to get transferred. (I've checked in the debug mode of the developer studio).
    - My example code:
    METHOD if_ex_pcat_ims_feed_att~read_new_fields.
    * Possible levels are 'C'ategory and 'P'roduct.
    * Field 'VALUE' contains the attributetype
    * ('S'tring, 'I'ntegar or * 'F'loat)
      DATA:
      ls_fields LIKE LINE OF ct_fields.
      CASE iv_level.
        WHEN 'C'.                        "Category Level
          ls_fields-value = 'S'.
          ls_fields-field = 'ZTEST'.
           APPEND ls_fields TO ct_fields.
        WHEN 'P'.                        "Product Level
      ENDCASE.
    ENDMETHOD.
    and:
    METHOD if_ex_pcat_ims_feed_val~read_new_fields.
      CASE iv_level.
        WHEN 'C'.
         ls_fields-field = 'ZTEST'.
         ls_Fields-value = 'Value 1'.
         append ls_fields to ct_fields.
        WHEN 'P'.
      ENDCASE.
    ENDMETHOD.
    In the ABAP debugger, I can see that my code is touched during initial and delta replications, however, after replication, the fields do not show up in the Java debugger.
    Any ideas?
    regards,
    Wilco Menge

    Hi,
    How can I customize the /bin/wcmcommand or how can I make use of [2] to create a custom WCMCommand?
    I think the "formUrl" is to post those input value to the jcr repository?
    var createDialog = {
            "jcr:primaryType": "cq:Dialog",
            "id": CQ.Util.createId("cq-createdialog"),
            "title":CQ.I18n.getMessage("Create Page"),
            "formUrl": CQ.shared.HTTP.externalize("/bin/wcmcommand"),
            "params": {
                "cmd":"createPage",
                "_charset_":"utf-8"
    I have added a field called "starred"
    Moreover, when I using the firebug to trace the post command, I can see that the starred value is posted also.
    :status
    browser
    _charset_
    utf-8
    cmd
    createPage
    label
    b
    parentPath
    /content/keyword_elaboration
    starred
    c
    template
    /libs/collab/commons/templates/form
    title
    a
    Source
    cmd=createPage&_charset_=utf-8&%3Astatus=browser&parentPath=%2Fcontent%2Fkeyword_elaboration&title=a&label=b&starred=c&template=%2Flibs%2Fcollab%2Fcommons%2Ftemplates%2Fform
    However, when I go to the crxde to view the node's attribute, the properity starred is not created
    Are there anything I did wrong or missing?
    Thanks.
    Message was edited by: aslkit

  • How can I add multiple contacts to a text message on a droid bionic

    How can I add multiple contacts to a text message on a droid bionic?

    DH
    I was thinking that if he wanted to create multiple keyframes he might be creating a repeated effect rather than manipulating values that are shot specific - like creating an oscillation or some repeated step effect.  If he was creating keyframes specific to his content he'd probably not look for a way to do it "quickly" since each keyframe would require manipulation of specific values. 
    So my thought was to generate the series of keyframes on a dummy clip created for this specific purpose, copy the clip, paste attributes (maybe turn off "Scale Attribute Times") and add bunches of keyframes at once. 
    Still, you're right, it's tough to divine the intent of someone very new to FCP.  His question could be based on a misunderstanding about the use of keyframes.
    P

  • How can i add a new characteristic to Sap standard InfoObject?

    Hi Experts,
    Please anyone let me know how can I add a new characteristic or a key figure into an SAP standard InfoObject in order to add it to the standard InfoCube? The situation is I would like to add region and business unit to the characteristics of the Industrial Hygiene and Safety. After that, I would like to add them to the InfoCube called Accidents: Person Involved [0EIH_C02] that is located in the MultiProvider called Accidents: Complete View [0EIH_MC01]. Is it feasible to do this way?
    I just learned the BW/BI, so please help me with this. I would really appreciate your responses.
    Thanks,
    -Napadol

    Hi Napadol,
    To add a attribute in a char:
    1) Go to info object/char in change mode and add the additional attribute you want and select navigational attribute in attribute tab if you want. (Create these additional attribute first in info object catalouge)
    2) Activate the Object/Char
    3) open info cube in change mode and pick the characteristic from left panel to info cube dimension.
    4) Activate infocube.
    5) Go to multi provider add the char in one of the dimension and do identification for this char and activate.
    Regards,
    Kams

  • How can I add a new message(custom text message) to the holiday approval em

    How can I add a new message(custom text message) to the holiday approval email-notification sent to the manager?
    TIA

    The answer is 'not very easily', unless the information you want to display is the employee's leave balances. In 12.1.3 Oracle have delivered functionality that allows you to include the leave balances in the approval notifications out-the-box, ie, without customization.
    For any other information you're probably going to have to customize the standard delivered HRSSA workflow. Within this workflow, the Leave of Absence functionality uses the Notify Approver (Embedded) (HR_APPROVER_NTF) notification. The body of this notification is set to the Notify Approver (Embedded) (HR_NTF_EMBEDDED_REGION) attribute. This in turn defaults to:
    JSP:/OA_HTML/OA.jsp?OAFunc=-&HR_EMBEDDED_REGION-&NtfId=-&#NID-
    So essentially you can change the HR_APPROVER_NTF notification. The problem with changing this notification is that it's generic - it's used for all SSHR functions and not just Leave of Absence. That means you have to make other, more substantial, customizations to the workflow to ensure the changes you make only applies to LOA.
    The other option is to personalize the review page (ie, the region referenced in &HR_EMBEDDED_REGION) to include whatever messages you want. But that means they'll appear on the Review page and all LOA approval notifications and that might not be what you want.
    It's usually better to live with what Oracle deliver and find an alternative solution! What's the content of the message you want to include?

  • How can you add a where clause using "OR" with applied ViewCriteria?

    [JDeveloper 10.1.3 SU4]
    [JHeadstart 10.1.3 build 78]
    I am using JHeadstart, but have a question probably more in the ADF area. On the JHeadstart forum I asked:
    "I am overriding JhsApplicationModule's advancedSearch in order to be able to search in childtables. I created transient attributes, display those in advanced search and in the overridden method I check if any of these are filled by the user and create a where clause like 'EXISTS (SELECT 1 FROM <childtable> WHERE <column in childtable> = <column in EO's table> AND <another column in childtable> LIKE '<value supplied by user>)'. I add this whereclause using ViewObject.setWhereClause.
    So far so good and it works. However, if the user selects 'Result matches any criteria', combining setWhereClause and the normal advancedSearch QueryByExample implementation using ViewCriteriaRow do not provide the desired result, since the ViewCriteria and the setWhereClause are AND-ed together, which is fine if the user selects the (default) "Results match all criteria" (everything is AND-ed) but not the "Result matches any criteria", since then every criterium is OR-ed together, except for the setwhereclause criteria and the set of ViewCriteriaRows, they are AND-ed.
    I looked if I could specify that a WhereClause will be OR-ed to existing applied ViewCriteria, but no luck. Do I have to rewrite also advancedSearch's ViewCriteria implementation and write an entire setWhereClause implementation to be able to "OR" every criterium? Or any other suggestions? Can I look at the entire Where clause and rewrite it (after applyCriteria and setWhereClause are called on the VO)?
    Toine"
    Sandra Muller (JHeadstart Team) told me today: "This sounds like a JDeveloper/ADF issue that is not related to JHeadstart. The question is: how can you add a where clause using "OR" if there are already one or more ViewCriteria applied?
    To simplify the test case, you could create a simple ADF BC test client class in a test Model project without JHeadstart (in the test class, use bc4jclient + Ctrl-Enter), in which you first apply a few ViewCriteriaRows to a View Object and also add a where clause.
    Can you please log a TAR at MetaLink ( http://metalink.oracle.com/ ), or ask this question at the JDeveloper forum at http://otn.oracle.com/discussionforums/jdev.html ? (This what I am doing now ;-))
    Thanks,
    Sandra Muller
    JHeadstart Team
    Oracle Consulting"
    Anyone knowing the answer or am I asking for an enhancement?
    Toine

    Hi,
    Can you SET your whereclause as follows ?
    ('Y' = <isAnd>
    and EXISTS (SELECT 1 FROM <childtable> WHERE <column in childtable> = <column in EO's table> AND <another column in childtable> LIKE '<value supplied by user>))
    OR ('N' = <isAnd>
    AND EXISTS (SELECT 1 FROM <childtable> WHERE <column in childtable> = <column in EO's table> OR <another column in childtable> LIKE '<value supplied by user>))
    )

  • How can I add values on a Drop Down by Index Webdynpro Element?

    Hi every body
    Can anybody help me?
    How can I add values on a Drop Down by Index Webdynpro Element?
    How can I invoque my element on the Implementation Webdynpro?

    Hi Jesus,
    You can add elements to your DDbyIndex like this:
    //Example: Popular un Dropdown by Index usando Nodos de contexto  
    // NODE[Card: 1..n, Sele:1..1]  Si es obligatorio;            ||    NODE[Card: 0..n, Sele:0..1]  Si no es obligatorio y se puede dejar en blanco
    //Assuming we created a node called "Source", with a string attribute called "Texto" binded to the dropdownbyindex
    for (int i = 1; i <= 101; i++)
         ISourceElement sourceElement = wdContext.createSourceElement();
           sourceElement.setTexto("Text number "+i);
           wdContext.nodeSource().addElement(sourceElement);
    Regards.
    Julio Herrera

  • How can I add values on a Drop Down by Index Webdynpro Element by a Model?

    How can I add values on a Drop Down by Index Webdynpro Element with a Model RFC?

    Hi Jesus,
    Please use the below code for DropDownByIndex Elements :-
    Suppose you have model node ABC and attribute xyz. Now you have created custom node CustNode and attribute CustAtt.
    ICustNodeElement  ele = null;
    if(wdContext.nodeABC().size > 0)
                  for(int i=0; i< CustNode< wdContext.nodeABC().size; i++
         ele = wdContext. createCustNode();
                          ele.setCustAtt(wdContext.nodeABC().getABCElementAt(i).getXYZ)
         wdContext.nodeCustNode.add(ele);
    Refer to http://help.sap.com/saphelp_nw70/helpdata/en/3b/f1754276e4c153e10000000a1550b0/frameset.htm
    Best Regards
    Arun Jaiswal

Maybe you are looking for

  • Safari 2.0.4 crashing

    I work for a school district with 200 iBooks with these specs running this version of the OS and this version of Safari. I'm starting to see this issue just today, but I've had several come in with it. I've repaired permissions, I've reset Safari, I'

  • Boot Camp (and OS X) audio issues

    I've had my MacBook Pro (late 2013, Retina display) since November 2013. I installed Windows 7 on a Boot Camp partition at the end of December. I've noticed that only the high-frequency speakers are outputting when I'm using Windows. I don't normally

  • OMG! These web pages are java classes! :) A simple question!

    I imported a web page fragment as "header". Now I'm trying to display the header before "page1". I tried putting this into the page1.java, but no luck. public HtmlForm getHeader() { doug2005.header hd = new doug2205.header(); return hd.getForm1(); Th

  • PIX525 migrate to ASA5545-X

    Hi , Please some advice and help. I have a ha pair of PIX525 with 7.0(4) and prepare for migrating to ASA5545-X with version 9.x It seems that a PIX to ASA setup tool is available in download center but i am wondering if it can properly work for 7.0(

  • Import window is no longer completely visible

    Hi, After switching from fullscreen to window mode, the import dialog window is no longer completely visible. Restarting, reinstalling Aperture 3 did not help. I am no longer able to import an pictures! Does anyone know how to fix that? Thanks