To get node by node info

Hi,
I am creating context nodes and attributes dynamically.
After setting values to atttributes i need to get all info back.
is there any way, i can iterate to nodes one by one and get all attribute values.
Below is the kind of structure
root_node
1.node1
   attr1
attr2
2.node2
attr3
attr4
please help.
Thanks

Hi,
  see the code...
data:
      lr_screen_node type ref to if_wd_context_node,
      lr_screen_node_carrid type ref to if_wd_context_node,
      lt_sflight TYPE STANDARD TABLE OF sflight,
      w_sflight like line of lt_sflight,
      itemlist type standard table of if_view3=>element_sflight_carrid,
      w_screen like line of itemlist,
      v_text type string,
      v_text1 type string,
      v_text2 type dats,
      v_text3 type n,
      v_index type i,
      v_text4 type string.
*set values to attribute..
lr_screen_node = wd_context->get_child_node( 'node1' ).
lr_screen_node->GET_STATIC_ATTRIBUTES_TABLE( importing table = itemList ).
v_Index = lr_screen_node->GET_LEAD_SELECTION_INDEX( ).
clear w_screen.
read table itemList into w_screen index v_Index.
v_Text4 = w_screen-value.
select connid from sflight into v_text1 WHERE carrid = v_text4.
wd_Context->set_Attribute( exporting value = v_Text1  NAME = 'attr1'  ).
w_sflight-connid = v_text1.
endselect.
*get attribute...
lr_screen_node = wd_context->get_child_node( 'node1' ).
lr_screen_node->get_attribute( EXPORTING name = 'attr2' IMPORTING value = v_text ).
w_sflight-carrid = v_text.
reward me if this helps you..
Edited by: Shyja on Jan 29, 2008 3:39 AM
Edited by: Shyja on Jan 29, 2008 3:42 AM

Similar Messages

  • Node info of a table cell

    Dear All,
    I am creating a web dynpro view for sales order, I have to apply a front end check using message pool.
    How to apply any validation on a table cell? I tried it on my side I am getting the message for the validation for each row but the corresponding filed is not being focused after message, but the same thing I am applying on header data then corresponding field is been focused if validation goes true.
    How to send the correct cell node info to the message manager, if any one has done it then please solve this issue.
    Thanks in Advance..

    If you are comfortable in ALV (in WD) then you can use that option, here you have different events and method to read the selected cell.
    You want row or cell.
    why you need that in WDDOMODIFYVIEW. Are you familiar with leadselection or not..?

  • How to clear value set values from node info

    Hi,
    I have set some values on value set to display on a dropdown in my view.  using following method.
      l_node_info->set_attribute_value_set(  name      = 'XYZ'  value_set = l_value_set ).
    Now i need to clear node info value set. Otherwise particular attribute which i used for dropdown is always showing values added .
    Please suggest how to clear value set.
    Thanks,
    Venkat.

    Hi,
    Interface IF_WD_CONTEXT_NODE_INFO is for metadata of a node. It has nothing to do with the values in dropdown list.
    In order to manipulate the values in the dropdown of an attributes, you can use the IF_WD_CONTEXT_NODE.
    As you are saying its a dropdown, what I can suggest is to write supply function for the node.
    And then get the index (V_INDEX) of the value you wanted to see in the dropdown list, and then use the following code in the method WDDOINIT
    LO_NODE->SET_LEAD_SELECTION_INDEX( INDEX = V_TABIX ).

  • How to get nodes and its attributes of an XML file usiong DOM parsing?

    how to get nodes and its attributes of an XML file usiong DOM parsing?
    i am new to XML parsing.......
    Thanking you........

    import org.w3c.dom.Document;
    import org.w3c.dom.*;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.DocumentBuilder;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;      ...
    //Setup the document
    DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
         DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
         Document doc = docBuilder.parse (new File("MY_XML_FILE.xml"));
    //get elemets by name
         String elementValue = doc.getElementsByTagName("MY_ELEMENT").item(0).getTextContent();
    //This method can return multiple nodes, in this instance I get item(0) , first nodeRead the api for other methods of getting data.

  • GET Node in logical database to be executed on a condition

    Dear Friends,
    I have used GET NODE (get pernr) to extract data from HR LDB- PNP.
    Using HR Report Category I have customized selection screen so that user cannot enter employee number (so that he can only see his payslip only) but can select just the period.
    So in the calling program I want "GET pernr" to execute only when pernr = sy-uname. How can I do it???
    Thanks,
    Amit

    Hi ,
    After the Get event ,put a check statement on node data like
    Get Pernr.
    Check pernr-pernr = sy-uname.

  • Get Node Key Multiple Items Selected  from ALV tree

    Hello Experts,
    I'm having a problem in getting Node keys for the items displayed as ALV tree.
    I'm able to get Node key, when only ONE record (Item) is selected.
    But, when I select multiple items under a Single node am not able to read(get) the node keys for all the selected items.
    I'm using the classCL_GUI_ALV_TREE.
    I have tried using the method GET_CHECKED_ITEMS, but not getting the keys.
    method GET_SELECTED_ITEM is giving node for a single item. I need it for multiple items selected.
    Thank you for your time.
    -SANGAR

    Hi,
    You need to use checkbox concept. and use method GET_CHECKED_ITEMS get selected items
    please check this tread.
    CL_GUI_ALV_TREE and Checkboxes
    aRs

  • Get node jtree without click

    hi all,
    I want get node from jtree without click, just with mouse in node.
    I look in google but dont find nothing...
    I try use listener but MousePressed dont help-me.
    thanks

    jTree1 = new JTree1(treeModel);Sorry, now
    jTree1 = new JTree(treeModel);
    MouseMotionListener mm = new MouseMotionListener(){
          public void mouseMoved(MouseEvent e) {
                System.out.println("moved "+e.getX()+" "+e.getY());
                 int selRow = jTree1.getRowForLocation(e.getX(), e.getY());
                TreePath selPath = jTree1.getPathForLocation(e.getX(), e.getY());
                if(selRow != -1) {
                                    System.out.println("mouse moved..."+selPath);
        public void mouseDragged(MouseEvent e) {
                   System.out.println("dragged "+e.getX()+" "+e.getY());
    jTree1.addMouseMotionListener(mm);
    jScrollPane1.setViewportView(jTree1);

  • GET NODE

    HELLO,
    can any one tell me what is the difference between GET NODE and GET NODE LATE ?
    Thank you very much in advance.

    HI,
    GET NODE
    This is the most important event for executable programs that use a logical database. It occurs when the logical database has read a line from the node node and made it available to the program in the work area declared using the statement NODES node.
    When you define the corresponding event block in the program, you can specify a field list if the logical database supports field selection for this node:
    GET node [FIELDS f1 f2...|.
    please check this link
    http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9aa335c111d1829f0000e829fbfe/content.htm
    GET node LATE
    This event is triggered when all of the data records for a node of the logical database have been read.
    When you define the corresponding event block in the program, you can – as with GET –specify a field list if the logical database supports field selection for this node:
    GET node LATE [..FIELDS f1 f2...|.
    Please check this link
    http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9abd35c111d1829f0000e829fbfe/content.htm
    regards
    raam

  • Iam not getting nodes in enterprise manager consol

    while iam logging from oms(enterprisemanager) not getting nodes
    iam getting the error as home agent is not started
    if i start manually in services it is not starting
    pls help me
    thanks
    kiran
    [email protected]

    I don't know about the error but alternatively you can get the list via DBA_NETWORK_ACLS and DBA_NETWORK_ACL_PRIVILEGES views.

  • Web Dynpro Java : Failed to get deployable object part info for component

    Currently we have a web dynpro java project which connects to the ABAP backend with Web Services. Everything seems fine, and when we transport to the production server via NWDI, we have the following error. Everytime we try to access the application , the error is occurred.
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to get deployable object part info for component com.sie.attachmentcomp.AttachmentComp
        at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.getComponentDeploymentDescription(ClientComponent.java:784)
        at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createComponent(ClientComponent.java:934)
        at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createComponent(ClientComponent.java:177)
        at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponentInternal(ComponentUsage.java:149)
        at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponent(ComponentUsage.java:116)
    It is working properly in our development , and testing environment. Only production has this error. And one weird thing is that this particular error occurred only sometimes to some user. For example; I could not access to the application with this error yesterday but my friend can access. Today, I can access in the morning but my friend cannot. For another friend , Yesterday he can access by using IE but not by Firefox. But today Firefox is fine but not with IE. It seems crazy.
    For more information, in our J2EE engine for the production server, we have 3 server nodes (clusters). And we are not sure it is the source of the problem. Is there any solution , and any way to know from the application that we are on which server?
    We also go and check from the Content Administrator in Web Dynpro Console. Under our project name, in the list of Components, sometimes we can see AttachmentComp but sometimes not.
    Please help us as our project is about to go-live next week.
    Thanks,
    Yu

    Hi Meenge,
    Please check below document for finding root cause for "Failed to start deployable object part info for <development component> and application <application name>"
    http://help.sap.com/saphelp_nwce711core/helpdata/en/44/7716e1633a12d1e10000000a422035/frameset.htm
    OR http://help.sap.com/saphelp_nw04/helpdata/EN/f4/1a1041a0f6f16fe10000000a1550b0/frameset.htm
    Hope it helps
    Regards
    Arun

  • HT1918 how  can i get the user manual  info back  which has  been  erased  from my  settings  icon  pafe  after  a restore from itunes

    how  can i   get  my user  manual info  back onto  my  settings   menu 
    this  heading  did  not  appear  on the settings  menu following  a  restore  necessitated  bt  a  freezing screen  glitch  thanks

    I'm not entirely sure what you are referring to, there isn't a user manual section in the iPad's Settings app. If you want an iPad then you can either download it from here : http://support.apple.com/manuals/ipad/
    Or if you download the iBooks app then there should be a copy in the ibookstore in it

  • I recently got a new iphone but when I restored it in iTunes one of my games that I have played for months RESET. How do I get my old game info back?

    I recently got a new iphone but when I restored it in iTunes one of my games that I have played for months RESET. How do I get my old game info back?

    If you made a backup before you restored it you can restore your iPhone from a backup and your game data should be restored.  When you connect your iPhone in iTunes you can right click on it in the sidebar and select restore from backup.

  • Hi I just bought an iTunes to card to purchase music but it won't let me download anything because I can't remember my security question I'm trying to get my credit card info off

    Hi I just bought an iTunes to card to purchase music but it won't let me download anything because I can't remember my security question I'm trying to get my credit card info off

    If you can't get the answers emailed to you, phone Apple from a number listed in article HE57 and ask for the Account Security team.
    (95160)

  • Sync performed on new iphone 4, and all my new info (contacts, pics, etc.) GONE!  It went back to my old iphone info....  how do I get my iphone 4 info back!!??

    sync performed on new iPhone 4, and ALL my new info (contacts, pics, etc)  GONE!!  It went back to my old iPhone info... how do I get my iPhone 4 info back??  The look and everything about the phone is like I have the older version!!!  I'm sure the data was backed up... but where, and how do I retrieve!!???

    If you don't have the prior computer backup files, you may want to look at this to get your information from the phone:
    http://www.wideanglesoftware.com/touchcopy/index.php

  • Using OSX 10.5 with DynDNS...how do I get the silly host info from ISP out

    Hi There,
    As I said, running an OSX server from home. Connects using DHCP so it pulls all the host info from the ISP. I'm using DynDNS for a domain I have registered. I can access the server from internet using my domain but how do I get all the host info from the ISP out of the system and just use the domain I have setup.
    Thanks in Advance,
    Jeremiah

    The following is from this Apple document, iCloud: Photo Stream FAQ, and will help you understand how Photo Stream works:
    My Photo Stream
    When you take photos on an iOS device, or import photos from your digital camera to your computer, My Photo Stream can automatically upload your new photos to iCloud and push them to all of your other devices. 
    When do photos upload to My Photo Stream?
    How long are My Photo Stream photos stored in iCloud?
    The photos you upload to My Photo Stream are stored in iCloud for 30 days to give your devices plenty of time to connect and download them.
    How many photos are stored in My Photo Stream on my devices and computers?
    iCloud pushes all your photos to the My Photo Stream album on your devices and computers, and manages them efficiently, so you don’t run out of storage space.
    Your iOS devices keep a rolling collection of your last 1000 photos in the My Photo Stream album. From there, you can browse your recent photos or move the ones you like to your Camera Roll or another album to keep them on your device forever.
    Since your Mac and PC have more storage than your iOS devices, you can choose to have all of your My Photo Stream photos automatically downloaded. In iPhoto or Aperture preferences on your Mac, be sure to select Photo Stream > My Photo Stream > Automatic Import. All of your photo stream photos will be imported into your Events, Projects, Photos, Faces, and Places folders in iPhoto or Aperture. On your PC with Photo Stream enabled in the Control Panel, all of your photos will be imported into C:\Users\<user name>\Pictures\Photo Stream\My Photo Stream.
    OT

  • [Developer] How to RELIABLY get Acrobat Reader Version info from registry

    (Using Wise Installation system 9.02)
    First, we get the path from here:
    SOFTWARE\Classes\SOFTWARE\Adobe\Acrobat\Exe
    if it is not found, we get it from here:
    SOFTWARE\Classes\Applications\AcroRD32.exe\shell\Read\command
    and if it is still not found, we get it from here:
    SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\AcroRd32.exe
    Then we check the version info for the file AcroRd32.exe that is
    located in one of those directories and compare it to the version
    we are installing; if it is less, we install the version included
    in our setup package.
    Now, is this the most RELIABLE way to do this?
    Should we just search for the file and get it's version info?
    What if you have > 1 version of Reader installed?
    What if you have Full Acrobat installed?
    Is there also a way for Reader installation to NOT change the
    PDF file association from Full Acrobat?

    If you look at our current process, you'll see that we are checking
    for multiple versions. However, there have been times when our version
    installed over a later version and we cannot understand why this
    happened that is why I'm addressing this here to see if anyone had
    any "fool-proof" way to do it.
    I know I can also check the PDF association but it may be set to Acrobat
    and we do not want to modify that. We just want to check the latest
    version of Reader they have installed against the one we have in our
    package.

Maybe you are looking for