How to typecast the given attribute.

Hi all,
I am getting an error.
I am using dropdownbyindex and using following code.
    Iprivate<ur view name>.IEt_Fragen_output obj = wdcontect.nodeET_Fragen_output.creatEt_Fragen_outputelement();
               List list1=new ArrayList();
               for(int i=0;i<obj.length;i++)
                    IPrivateCompView.Idropdownnode data=wdContext.nodedropdown.createdropdownElement();
                    data.setvalue
->->->(wdcontext.currentcontextelment.getelementat(i).getfrange);
                    list1.add(data);
               wdContext.nodedropdown.bind(list1);
now in this when i try to put (see arrows)currentcontextelment. then i do not get "getelementat(i)." method. Now how to typecast this. I need this method to use "getfrage".
plz help!!...Its urgent!!!
Cheers,
Darshna.

Hi,
here is your code. I am using the same structure as you said.
ValueCollection (value node)
Values  (value node)
frage  (value attribute)
     String[] Names = new String []
        "Monthly","Weekly"};
     List monthsOrWeek = new ArrayList();
IPublic<Component Name>.IValuesElement valuesElement = null;
     for (int i =  0; i < Names.length; i++)
          valuesElement = wdContext.createValuesElement();
          valuesElement.setFrage(Names<i>);  
          monthsOrWeek.add(valuesElement);
     wdContext.nodeValues().bind(monthsOrWeek);
Hope it helps. Please reward points if it helps....
Thanks and Regards
Avijit

Similar Messages

  • How to deactivate the marketting attributes for BP in CRM

    Hi,
    how to deactivate the marketting attributes for BP in CRM
    I can add and maintain the same using tcode crmd_prof_char
    But how do I deactivate.
    Points will be rewarded
    Thanks

    .

  • How to set the DFF Attribute Programmatically?

    hi
    how to set the DFF Attribute Programmatically in Process Request of CO
    thanx

    Hi
    Do u want to set the value in DFF Programmatically ?
    u can capture the VO used for DFF and set the the value in controller.
    Thanks

  • How to remove the XML attribute value in Indesign file by javascript

    Hi all,
    How to remove the XML attribute value in Indesign file.

    Try this,
    if(elm.xmlElements[i].xmlAttributes[j].name == "aid:pstyle" || elm.xmlElements[i].xmlAttributes[j].name == "aid:cstyle")
    Vandy

  • How to find the unindexed attributes

    Hi friends,
    We migrated from 5.1sp3 to 5.1 sp4.
    After migration i am facing the error unindex search error.
    how to find the unindex attributes.

    You can compare what is indexed against your complete list of all allowed attributes in your schema. Or cheat and use the console.
    To generate a list of all indexed attributes, use ldapsearch:
    ldapsearch -h <host> -p <port> -D "cn=Directory Manager" -w <password> -b "cn=index,cn=userRoot,cn=ldbm database,cn=plugins,cn=config" objectclass=*
    Each common name (cn) returned is the name of an indexed attribute. Note this will also return the type of indexes defined, which is handy. You can save this to a text file for future reference.
    You can dump your schema using the following search:
    ldapsearch -h <host> -p <port> -b cn=schema objectclass=*
    Look for "attributeTypes" entries. Note: there are a lot of system attributes.
    You can also login to the Administration Console and under the Configuration tab, expand Data and then select your suffix. In the right hand pane, you will be taken to the Indexes tab by default, here all indexed attributes are listed. Those attributes not indexed can be viewed in a list by clicking the Add attribute... button at the bottom of the screen. You'll be presented with a list of all attributes not currently indexed.
    Cheers,
    sn3ak3rp1mp

  • How to write the given query using 'ANY ' operator

    Hi,
    How to write the given query using 'ANY ' operator , I dont need to fetch to grade_master table twice in database, just need to fetch within the result set.
    SELECT dsg_code,dsg_name,dsg_grade FROM designation_master WHERE dsg_orgn='&&Orgn' and dsg_ctry='&&ctry'
    And dsg_loc ='&&loc' And dsg_oru = '&&oru' and dsg_grade in decode('&&radio_group',
    1, SELECT grd_code FROM grade_master WHERE grd_osm_code in (Select grd_osm_code FROM grade_master WHERE grd_orgn='&&Orgn' and grd_ctry='&&ctry' And grd_loc ='&&loc' And grd_oru = '&&oru' and grd_code ='&&emp_grade'),
    2, SELECT grd_code FROM grade_master WHERE grd_osm_code > (Select grd_osm_code FROM grade_master WHERE grd_orgn='&&orgn' and grd_ctry='&&ctry' and grd_loc ='&&loc' And grd_oru = '&&oru' and grd_code),
    3, SELECT grd_code FROM grade_master WHERE grd_osm_code < (Select grd_osm_code FROM grade_master WHERE grd_orgn='&&orgn' and grd_ctry='&&ctry' And grd_loc ='&&loc' And grd_oru = '&&oru' and grd_code ='&&emp_grade'))
    thanks
    rincy

    Hi,
    One thing I understood my your issue is you want to perform, execution of query once or fetch the results sets my minimizing the number of times executions of queries. It would be hard for us to check in this way, atleast provide some temporary data and some business rules. Only I can IN, >, < (queries logical conditons on inner query)
    - Pavan Kumar N
    - ORACLE OCP - 9i/10g
    https://www.oracleinternals.blogspot.com

  • How to deactivate the marketting attributes

    Hi,
    how to deactivate the marketting attributes for BP
    I can add and maintain the same using tcode crmd_prof_char
    But how do I deactivate.
    Points will be rewarded
    Thanks

    Hi,
    I think you didnt understand my problem.
    While creating BP, we have created some 5 mktg attributes.
    Among them I want to deactivate or hide 1 attribute.
    So that in future no one can select that attribute again.
    from main attribute screen i got option for delete.
    When I select that attribute and press delete. It says you can not delete, because it has been already valued or used.
    So I want to hide that it.
    Pls suggest,
    Thanks

  • How to get the naming attribute of an LDAP using JNDI.?

    Hi,
    How do we fetch the naming attribute of a LDAP using JNDI. Is this possible using JNDI..?
    By default, every LDAP has been set with a naming attribute such as 'uid' or 'cn'. This could be changed according to business needs.
    How to determine this using JNDI.
    Regards,
    Barani

    Are you trying to call the portlet Customization form directly from the browser?

  • How to change the groupType attribute of a user group object?

    I'm trying to change the "groupType" attribute, of a user group object, from 'Distribution' to 'Security' (and the group scope is set to 'Global').
    The CAD bit mask value needed would be: 0x80000002 (Decimal -2147483646).
    How to change/modify the "groupType" attribute for this user group object?
    Thanks,
    UD

    Attribute attr= new BasicAttribute("groupType", "-2147483646");
    items[0]=new ModificationItem(DirContext.REPLACE_ATTRIBUTE, attr);
    ctx.modifyAttributes(dn, items);
    --does not work.
    javax.naming.OperationNotSupportedException: [LDAP: error code 53 - 00002141: SvcErr: DSID-031A0B56, problem 5003 (WILL_NOT_PERFORM)
    Is it possible to modify it?
    Thanks,
    UD.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to find the given job and all the programs in it

    Plz suggest me how to find a job whether it exists in sap or not?
    I searched using sm37 and using table TBTCO still the job name is not available there.
    Note: I know one program name which is part of that job.
    I could not found the given job ?

    Goto SM37 and the last field there is ABAP program name.
    give the program name there and select period well back from past to til till now say -
    01.01.2006 to 12.02.2007.
    and execute ..
    u will find the list of the jobs using this program.
    or Use FM  -
    BP_FIND_JOBS_WITH_PROGRAM

  • How to generate the encoding attribute

    Hi,
    After reading a lot of posts on this forum and trying out suggestions on both 9.2 and 10G databases my question is stil unanswered. So I thought I'd ask my question again.
    Original post is here (dbms_xmlgen how to generate encoding attribute
    I'm currently generating XML using the dbms_xml packages. But same problem exists when using sql/xml functions.
    I get this header :
    <?xml version="1.0"?>
    My database has the WE8MSWIN1252 characterset. So I want the header to be:
    <?xml version="1.0" encoding="windows-1252"?>
    My question is how can I generate the xml header automatically, depending on the database characterset?
    The code has to work on 9.2 and 10G. I see 2 possible solutions.
    1 The encoding attribute value is generated automatically
    2 I generate it myself but then I need a to translate the database characterset name to the proper value for the encoding attribute value.
    Rene

    You could write (indeed as you mentioned option in 2) your own, for instance, as shown here:
    Re: Concatenation, Attributes, and Processing Instruction
    and/or use XMLROOT
    but that said, you can't use XMLROOT in 9.2 yet.
    but based on your requirements it is not easy / a lot of work to do, although I wonder what you are trying to achieve and don't forget that if you pick the database characterset you will probably overrule situations based on:
    (http://download.oracle.com/docs/cd/B19306_01/server.102/b14225/ch3globenv.htm#i1006415)
    NLS_SESSION_PARAMETERS shows the NLS parameters and their values for the session that is querying the view. It does not show information about the character set.
    NLS_INSTANCE_PARAMETERS shows the current NLS instance parameters that have been explicitly set and the values of the NLS instance parameters.
    NLS_DATABASE_PARAMETERS shows the values of the NLS parameters for the database. The values are stored in the database.
    or in other words if NLS settings are manually changed within a session, instance or database context.
    Message was edited by:
    Marco Gralike

  • How to get the checked attribute of a checkbox item from a PL/SQL process?

    Hello,
    I have a simple static form with one checkbox linked to a LOV containing one single value. I use this checkbox just to enable/disable other fields via Javascript. I am interested to fetch the "checked" attribute of this checkbox (and not the value of the checkbox) from an After Submit PL/Sql page process, so that I can process only the enabled fields.
    I can already imagine a workaround where we may store via Javascript the checked attribute of this checkbox in an hidden page item and then getting it from there, but I would really like to avoid it, as it would add unnecessary complexity and I would have to add more code to keep the hidden item always in synch with the checkbox status.
    Is there something like the V('page_item') PL/Sql function that can get a different attribute from a page item (like the checked one from a checkbox) and not only its value?
    I searched the forum for an answer to my question, but I couldn't find anything related.
    Thanks a lot,
    Paolo

    Paolo,
    HTML checkboxes are POSTed only if they are checked. So if your "checked" value is 'Y', for example, then your after-submit process can check if the item's value is 'Y' or not. Of course, you must be careful to set that item to null (or some non-checked value) in session state during page rendering so that previous values are not retained.
    Scott

  • How to restore the "Linked" attribute of a picture to "false"?

    Just after importing a picture, the "linked" attribute of the
    picture member is "false". When distributed, the data of picture is
    packed in the DCR file.
    If some lingo code changed the "filename" of the member,
    like follow:
    member("MyPicMember").filename = ".\NewPicture.jpg"
    The content of the picture would be changed. And as a
    result, the "linked" attribute of the member would be changed to
    "true" at the same time. A triangle appears on top right conner of
    the icon of the picture member. If distributed again at this time,
    the data of picture is not packed in DCR file. Picture file must
    exist beside the DCR.
    Now I want to restore the "linked" to "false" (because I
    want to write new projects based on the old, I want to let the
    picture data in the DCR again). I found it is difficult to restore
    it. The "linked" attribute can not be modified, whether in Property
    Inspector or in code. I found the only method is delete the member
    and import again, manually, one by one. But there are many pictures
    in my program, so it makes me tired.
    Anyone tell me a good method to restore them? I hope it can
    use code to do it.

    put the following handler in a movie script:
    on mUnlinkBitmaps
    cl = the activecastlib
    sel = the selection of castlib cl
    anz = sel.count
    repeat with n = 1 to anz
    repeat with m = sel[n][1] to sel[n][2]
    memref = member(m, cl)
    if memref.type = #bitmap then
    fname = memref.filename
    if fname.length then
    memref.importfileinto(fname, [#trimwhitespace:0])
    put "imported:"&&memref
    end if
    end if
    end repeat
    end repeat
    end
    select the members you want to import (or "select all" to
    import all linked bitmaps) and type
    mUnlinkBitmaps
    into the message window and press return.
    you can also take a look at my handlermenu tool:
    http://www.farbflash.de/cgi-bin/blosxom.cgi/Dokumente/Director/Tools/handlermenu.html
    which has this among other authoring utilities in the
    utilities menu.

  • How to get the one attribute value in another attribute getter method

    Hi,
    I have a requirement to get one attribute's value in the another attribute getter or setter method.
    Help needed ASAP.
    Thanks,
    sreenivas.

    Check if both the attributes are under the same context node.
    If so directly call the getter method of the other attribute here like this:
    lv_customer_type = me->get_customer_type( attribute_path = 'STRUCT.CUSTOMER_TYPE' ).
    If it is under a different context node,check if it is available from some relation, if so
        lr_agr_rel = current->get_related_entity( iv_relation_name = 'TpmAgrre'l ).
         CALL METHOD lr_agr_rel->if_bol_bo_property_access~get_property_as_value
            EXPORTING
              iv_attr_name = 'EXTERNAL_ID'
            IMPORTING
              ev_result    = lv_cust_plan_id.
    Regards,
    Masood Imrani S.

  • How can traverse the  xpath attribute name having namespace?

    tell application "Adobe InDesign CS5"
        set Xpath to {"//*/ext-link[@xlink:href !='']"}
        set myXPath to {Xpath}
        set myRuleProcessor to make XML rule processor with properties {rule paths:Xpath}
        set myRootXMLElement to XML element 1 of active document
        tell myRuleProcessor
            set myMatchData to start processing rule set initial element myRootXMLElement
            repeat while myMatchData is not equal to nothing
                set myParentElement to get element of myMatchData
                select myParentElement
                set myMatchData to find next match
            end repeat
        end tell
    end tell
    -- error occur........

    Here's an idea. Have your error page (in the hidden frame), look something like this:
    <%
      String strErrorMessage = ... // get your error message text here
    %>
    <html>
    <head>
      <script language="JavaScript">
        parent.mainframe.location = "ErrorPage.jsp";
      </script>
    </head>
    </html>So the error page loads in the hidden frame, which then extracts the error information from the exception object. Then, using javascript, the hidden frame tells the main frame (using window references) to reload to the desired page. The only issue is how to get the error message text to the new page since your exception object is lost. You can store it as a session variable, and then pass the id of the message in the url to the new page, or you could just pass the text in the url itself.
    I hope that gives you some ideas!
    Michael

Maybe you are looking for