Accessing node within a node in a context

Hi!
I have Node strucrure like this in my context..
Node           (0..n)(singleton="true")
   Node1      (0..n)(singleton="true")
     Node11  (0..n)(singleton="true")
       atrr1
       attr2
Can you tell me that how can I access Node11 and its attributes?
Iam having n number of Node1's under each Node and again n number of Node11's under each Node1. I need to access attributes of each Node11. How can i do that??
Thanks,
Archana

Hi Archana,
As u described ur scenario, there are multiple instances of Node1 exist for Node
and Node11 for Node1.So u have to set "singleton" property of child nodes to false.
Otherwise the elements of the relevant node are instantiated for only one element of the parent node.
for(int i=0;i<wdContext.nodeNode().size();i++)
  wdContext.nodeNode().setLeadSelection(i);
for(int j=0;j<wdContext.nodeNode1().size();j++)
   wdContext.nodeNode1().setLeadSelection(j);
   for(int k=0;k<wdContext.nodeNode11().size();k++)
    wdContext.nodeNode11().setLeadSelection(k);
    wdContext.currentNode11Element.getAttributeValue("attrName");
Hope it helps!

Similar Messages

  • Creating nodes straight under context dynamically

    Hi,
    I need to build a dynamic amount of tables dynamically. They all have the same buildup (same columns) but their data is different. I wanted to solve this by creating nodes under the context dynamically and manually binding them to created tables....the only problem is I can't find a way to create a node dynamically.....
    Found some links to a weblog but its seems out of sync...
    can anyone help me out here?
    Much thanks & regards,
    Hugo

    Hi
    Code for creating a node dynamically and code for creating the table dynamically and binded it dymaically created value node
    public void wdDoInit()
        //@@begin wdDoInit()
         // creation of value Node for table dynamically
         IWDNodeInfo nodeinfo=wdContext.getNodeInfo().addChild("tablenode",null,true,true,true,false,true,true,null,null,null);
         nodeinfo.addAttribute("tableattr1","ddic:com.sap.dictionary.string");
         nodeinfo.addAttribute("tableattr2","ddic:com.sap.dictionary.string");
         nodeinfo.addAttribute("tableattr3","ddic:com.sap.dictionary.string");
         //Code for removing the intial element in the table node
         IWDNode node=wdContext.getChildNode("tablenode",0);
         IWDNodeElement ne=node.getElementAt(0);
         node.removeElement(ne);
    // filling the data for table node
         Object obj1=..;   //  Data for table convert to object type
         Object obj2=..;
         Object obj3=..;
         //creating elements for tablenode and displaying it
         IWDNode node=wdContext.getChildNode("tablenode",0);
         IWDNodeElement ne1=node.createElement();
         ne1.setAttributeValue("tableattr1",obj1);
         ne1.setAttributeValue("tableattr2",obj2);
         ne1.setAttributeValue("tableattr3",obj3);
         node.addElement(ne1);
        //@@end
    public static void wdDoModifyView(IPrivateDynamicProgrammingView wdThis, IPrivateDynamicProgrammingView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
        //@@begin wdDoModifyView
         if(firstTime){
            IWDTransparentContainer con=(IWDTransparentContainer)view.getElement("RootUIElementContainer");
                //creation of table
            IWDTable table =(IWDTable)view.createElement(IWDTable.class,"table1");
            table.bindDataSource("tablenode");
            IWDTableColumn tablecolumn1=(IWDTableColumn)view.createElement(IWDTableColumn.class,"tablecolumn1");
            IWDTextView tabletextview1=(IWDTextView)view.createElement(IWDTextView.class,"ttv1");
            tabletextview1.bindText("tablenode.tableattr1");
            IWDTableCellEditor editor1=tabletextview1;
           tablecolumn1.setTableCellEditor(editor1);
           IWDCaption cap1=(IWDCaption)view.createElement(IWDCaption.class,"cap1");
           cap1.setText("Name");
           tablecolumn1.setHeader(cap1);
            table.addColumn(tablecolumn1);
            IWDTableColumn tablecolumn2=(IWDTableColumn)view.createElement(IWDTableColumn.class,"tablecolumn2");
                    IWDTextView tabletextview2=(IWDTextView)view.createElement(IWDTextView.class,"ttv2");
                    tabletextview2.bindText("tablenode.tableattr2");
                    IWDTableCellEditor editor2=tabletextview2;
                   tablecolumn2.setTableCellEditor(editor2);
                    table.addColumn(tablecolumn2);
              IWDTableColumn tablecolumn3=(IWDTableColumn)view.createElement(IWDTableColumn.class,"tablecolumn3");
                     IWDTextView tabletextview3=(IWDTextView)view.createElement(IWDTextView.class,"ttv3");
                     tabletextview3.bindText("tablenode.tableattr3");
                     IWDTableCellEditor editor3=tabletextview3;
                    tablecolumn3.setTableCellEditor(editor3);
                     table.addColumn(tablecolumn3);
                 con.addChild(table);
        //@@end
    Thanks and Regards,
    Arun Srinivasan

  • Access Nodes Programmatically in Hierarchical Viewer

    Hi All
    Can any one tell me how to Access Nodes Programmatically in Hierarchical Viewer
    Tx

    How is the HierarchyViewer component populated (What is the data model for the HierarchyViewer)?
    What is your exact use-case/flow for your use-case?
    As the underlying data model/structure for the HierarchyViewer is exactly the same as the treetable, adding & deleting of nodes to the HierarchyViewer is exactly same as how we do for tree table.
    Thanks,
    Navaneeth

  • Access Node effecting Other Building Nodes

    We have one access ring having 6 Access Nodes(3750) and 6 Building nodes(2950) connected to each Access Node.Find ring connectivity diagram in attachment.
    Whenever Access Node 4 is become unreachable (i.e Due to power problem) Access Node 3 & 5's Building Switches got fluctuated twice for 10 to 15 seconds (Once when access Node 4 is down and second time when access node 4 is up). We've checked logging also on both Building Switches but not found any info. for this problem.
    Also, We've checked all the configuration on all switches (AS/BS) and found all configuration is ok on all switches.
    Pls help....

    This probaly has something to do with Spanning-Tree convergence.
    What do you mean by "Fluctuated"? Do you see complete downtime on the building nodes?
    Do you have any trunking going on between your building and access nodes? What settings are your building-access uplinks on?
    May we see a sample of your configs for a building as well as access node?
    Cheers,
    Josef.
    PS - I think the convention for naming "Building" (or Distribution) and "Access" functions may be the reverse of what you have in your diagram.

  • Access variables within a timer

    How can I access variables within a timer?
    I mean variables, that I can use in another class that extends applet i.e.?

    The Code can be compiled now with the Java Compiler.
    But the image won't move on the screen.
    import java.applet.*;
    import java.awt.*;
    import java.util.*;
    public class ChangingApplet extends Applet {
      private Image EricsBild;
      private int x,y;
      private TimerTask update;
      public void start() {
      EricsBild = getImage(getCodeBase(), "heuschrecke.gif");
      x=5;y=5;
        update = new TimerTask() {
          public void run() {
            if (x<300) x++;
            if (y<200) y++;
            if (x>3) x--;
            if (y>2) y--;
            repaint();
        Timer t = new Timer(false);
        t.schedule(update, 1000, 1000);
      public void stop() {
        update.cancel();
      public void paint(Graphics g) {
        g.drawImage(EricsBild,x,y,this);
    }

  • Access Violation within a Single Role Report displays duplicate data

    The output of the 'Access Violation within a Single Role' report under Incident Reports in GRC includes some rows which repeat with identical data.
    I created a test responsibility with conflicting controls in Oracle r12 instance to find out whether it gets reflectedwhen i run the report. But i didnt find the responsibility.
    Is it a set-up error or is there a logic behind this occurance? Please provide inputs.
    Edited by: 963133 on Oct 4, 2012 5:25 AM

    I believe the conflicts shown would show up as many times as there are violations. So if a particular control had 2 entitlements and those had several access points, I would think a violation would show for each access point. Can you confirm this?
    Also do you have the latest AACG? This will help verify that you have the latest with bug fixes.

  • Access traceability within PeopleSoft

    Hi all,
    I'm looking for a little user information regarding how traceable access is within PeopleSoft, particularly concerning how much information can be obtained from PeopleSoft to monitor access to personal data. i.e. is it possible to review any sort of access logs that record what PC has accessed an individuals personal records and how detailed can this information be, for example would it only tell you that a persons record has been accessed or would it also trace what specific data has been accessed, i.e. dependants, remuneration, emergency contacts etc.
    I'm trying to get a feel for how easy / reliable it is to gain information that could aid an investigation into potential security breaches.
    Many thanks for any help you can provide.
    SF

    There's a handy table called PSACCESSLOG which records the login IP address, login and logout time of a particular operator ID. If you need to trace down what a user "did" during a PeopleSoft session, then your application server log files (e.g. APPSRV_1234.log) are a good to place to log. This is all delivered and a good place to start. It won't tell you everything though. If you have specific scenarios that you want to capture, you'll need to write your own auditing. E.g log whenever a person views a specific page.
    You might want to take a look at implementing trigger based auditing for changes to user profiles & security as this is lacking in PeopleTools:
    http://www.peoplesoftwiki.com/auditing-user-profiles (this is for Oracle).

  • Access attribute of a context node in another context node of the same view

    Hi all,
    I want to acess value of an attribute PERNR of context node CUSTOMERS in another context node AUTHENTICATION of the same view. A sample syntax would be helpful .
    Thanks,

    You didn't specify your version of Oracle so here are two options. If 10.2 or greater, use XMLTable, else use the ExtractValue option.
    -- The WITH simply simulates your existing table that I do not have.
    WITH fake_tab AS
    (SELECT XMLTYPE('<?xml version="1.0" encoding="ISO-8859-1"?>
    <Settings>
      <Setting Name="A1" Value="N"/>
      <Setting Name="A2" Value="N"/>
      <Setting Name="A3" Value="SOMEVALUE"/>
      <Setting Name="A4" Value="N"/>
      <Setting Name="A5" Value="Y"/>
      <Setting Name="A6" Value="N"/>
    </Settings>
    ') tab_col
      FROM dual)
    -- For 10.2 and higher use this SELECT
    SELECT a5
      FROM fake_tab,
           XMLTABLE('/Settings'
                    PASSING fake_tab.tab_col
                    COLUMNS
                    a5   VARCHAR2(10)  PATH 'Setting[@Name="A5"]/@Value');
    -- For 10.1 and before
    SELECT ExtractValue(tab_col, '/Settings/Setting[@Name="A5"]/@Value')
      FROM fake_tab;

  • How to access a dynamic created attribute in a context node?

    <i>Hello,</i>
    <i>who could help? I can't set a value for a dynamically created attribute which is bind to a table.</i>
    <i>My context of the view looks as follow (is defined in NetWeaver):</i>
      - Context
         - Availability (Node)
             - vctxService (Attribute)
             - vctxServiceDesc (Attribute)
             - ... (further predefined attributes)
             - ... (some have to be set dynamically as follows)
    <i>Then I have added attributes dynamically in the wdDoModifyView(...) - method, as follows:</i>
    for (int i = 0; i < max; i++) {
       // some code to dynamically create table columns
       // adding attributes dynamically
       IWDAttributeInfo attrInfo =       wdContext.nodeAvailability().getNodeInfo().      addAttribute("vctxAvailability_" + i, "ddic:com.sap.dictionary.string");
       tv.bindText(attrInfo); // bind to TextView in table
    <i>In the method onPlugFrom... I tried to set the values for the attributes "vctxAvailability_ + i" as follows:</i>
    for (int i = 0; i < max; i++) {
       IAvailabilityElement newAvailNodeElement =     wdContext.createAvailabilityElement();
       // some values will be set for the
       // predefined attributes of AvailabilityNode
       // newAvailNodeElement.set...( value );
       // newAvailNodeElement.setVctxService( xy.getServ() );
       // now the values of dynamically created and added
       // attributes in AvailabilityNode will be added
       // THIS DOESN'T WORK
       newAvailNodeElement.setAttributeValue    ("vctxAvailability_" + i, "value" + i);
    <i>It would be great if someone could help me.
    Thanks in advance.
    Kind regards,
    Carsten</i>

    Carsten,
    Here is a sample code that creates context attributes dynamically and also sets values:
    //Creates a node
    IWDNodeInfo nodeInfo = wdContext.wdGetAPI().getRootNodeInfo().addChild("TestNode", null, true, true, false, true, false, true, null, null, null);
    //If you want to bind the node to a model node then the
    //second argument to the above method should be the
    //model class.
    //Creates an attribute under the node just created.
    IWDAttributeInfo testAttrib = wdContext.wdGetAPI().getRootNodeInfo().getChild("TestNode").addAttribute("testAttrib", "ddic:com.sap.dictionary.string");
    IWDNodeElement testNode = wdContext.getChildNode("TestNode", IWDNode.LEAD_SELECTION).getCurrentElement();
    IWDNode testNode2 = wdContext.getChildNode("TestNode", IWDNode.LEAD_SELECTION);
    //Now you can bind testNode with the Model Node
    //You can also set a value to the newly created attribute
    testNode.setAttributeValue("testAttrib", new String("Value"));
    Hope this helps.
    Shakeel

  • 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.

  • Accessing Node Labels - TreeControl with CheckBoxes

    Hello,
    I have a Tree component that is loaded with CheckBoxes.  Each node has a label associated with it, and I need to be able to collect the labels and display them on the right of the component - probably using a Label or Text control.
    I can't seem to figure out how to access the names of the items that are checked.  I'm including a complete, and simplified, mxml file.  If anyone would like to take a look at it, I would appreciate it.
    Thanks.
    OH - And I am using the Tree CheckBox component from this site:  http://www.sephiroth.it/file_detail.php?id=151
    Sorry, but the forum will not allow me to upload the files directly.
    You will probably need to add those classes to see the Tree CheckBox.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:controls1="it.sephiroth.controls.*">
        <mx:Script>
            <![CDATA[
                import mx.events.DataGridEvent;
                import mx.controls.dataGridClasses.DataGridColumn;
                import mx.effects.easing.Bounce;
                import mx.effects.easing.Elastic;
                import components.MyPanel;
                import mx.effects.easing.Bounce;
                import mx.effects.easing.Elastic;
                import mx.events.MenuEvent;
                import mx.controls.Alert;
                import mx.controls.Menu;
                import mx.events.CloseEvent;
                import mx.controls.*;
                import mx.events.ListEvent;
                import mx.events.TreeEvent;
                import it.sephiroth.renderers.TreecheckboxItemRenderer;
                //*******************************  TREE CONTROL CHECKBOX ******************************************
                 * Called on checkbox click
                 * check and update for both parents and child nodes
                 * according to the checkbox status
                private function onItemCheck( event: TreeEvent ): void
                    updateParents( event.item as XML, ( event.itemRenderer as TreecheckboxItemRenderer ).checkBox.checkState );
                    updateChilds( event.item as XML, ( event.itemRenderer as TreecheckboxItemRenderer ).checkBox.checkState );
                 * @see it.sephiroth.controls.CheckBoxExtended#checkState
                private function updateChilds( item:XML, value: uint ):void
                    var middle: Boolean = ( value & 2 << 1 ) == ( 2 << 1 );
                    var selected: Boolean = ( value & 1 << 1 ) == ( 1 << 1 );
                    if( item.children( ).length( ) > 0 && !middle )
                        for each(var x: XML in item.node )
                            x.@checked = value == ( 1 << 1 | 2 << 1 ) ? "2" : value == ( 1 << 1 ) ? "1" : "0";
                            updateChilds( x, value );
                private function updateParents( item: XML, value: uint ): void
                    var checkValue: String = ( value == ( 1 << 1 | 2 << 1 ) ? "2" : value == ( 1 << 1 ) ? "1" : "0" );
                    var parentNode: XML = item.parent( );
                    if( parentNode )
                        for each(var x: XML in parentNode.node )
                            if( x.@checked != checkValue )
                                checkValue = "2"
                        parentNode.@checked = checkValue;
                        updateParents( parentNode, value );
            ]]>
        </mx:Script>
        <!--*********************  CHOOSE FUNCTIONAL AREAS/CAPABILITIES FOR SCENARIO TREE DATA ******************-->
        <!--
            Example of the xml used as dataprovider
            for the treecheckbox component.
            @label used for the item label
            @checked used for the checked status:
                0 = un-checked
                1 = selected
                2 = 3rd status selected
                otherwise you can use the set the "checkField" attributes of the
                treecheckbox component to specify which xml attribute to use for the
                checked status
        -->
            <mx:XML xmlns="" id="treeSource">
                <node label="home" checked="">
                    <node label="First Responder" checked="">
                        <node label="1RSP First Responder - Medical" checked=""/>
                    </node>
                    <node label="Battalion Aid Station/Sick Call" checked="">
                        <node label="Battalion Aid Station" checked=""/>
                        <node label="BAS - NBC" checked=""/>
                        <node label="Evac" checked=""/>
                    </node>
                    <node label="Forward Resuscitative Surgery (FRSS)" checked="">
                        <node label="Pre-Op" checked=""/>
                        <node label="Operating Room" checked=""/>
                        <node label="Post-Op" checked=""/>
                        <node label="Evac" checked=""/>
                    </node>
                    <node label="Surgical Company" checked="">
                        <node label="Triage/SST" checked=""/>
                        <node label="Triage Evac" checked=""/>
                        <node label="Operating Room" checked=""/>
                        <node label="OR Evac" checked=""/>
                        <node label="OR Evac" checked=""/>
                        <node label="Ward" checked=""/>
                        <node label="X-Ray" checked=""/>
                        <node label="Laboratory" checked=""/>
                        <node label="Pharmacy" checked=""/>
                        <node label="NBC Unit" checked=""/>
                        <node label="Dental" checked=""/>
                        <node label="PMO/EHO/PMT" checked=""/>
                        <node label="PM Entomology" checked=""/>
                        <node label="Occupational and Environmental Healty Sur" checked=""/>
                    </node>
                </node>
            </mx:XML>
            <controls1:TreeCheckBox id="mytree"
                showRoot="false"
                width="345"
                height="100%"
                dataProvider="{treeSource}"
                openItems="{treeSource..node}"
                labelField="@label"
                checkField="@checked"
                itemCheck="onItemCheck( event )"
            />
            <mx:Label x="455" y="48" text="Label" fontSize="16" color="#FFFFFF" id="tree_label1"/>
    </mx:Application>

    Natasha,
    Thanks for your reply.
    I attempted the code:
    public function get labelText():String 
     if (this.label != null) 
    return this.label.text 
    else
     return ""; 
    return "";
    But when I try to access the code in the application I get the error "Call to possibley undefined method labelText."
    I'm not sure I understand exactly how to implement this change within the application itself.  Could you explain?  Thanks.

  • Problem with filling nodes of a context with data

    hi,
    i've got the following problem with filling a controller context:
    the context of the controller looks like:
    Context
    |-Node1             0..n singleton
      |-Subnode1        0..n singleton
      | |-SubVal1.1
      | |-SubVal1.2
      |-Subnode2        0..n singleton
      | |-Subval2.1
      | |-Subval2.2
      |-Val1.1
      |-Val1.2
    that means every Element of Node1 should have its own Subnode-Elements & Val1-Values
    in wdDoInit() of the controller I fill the context like this:
    Collection Node1, SubNode1, SubNode2
    for (Iterator iter = Node1.iterator(); iter.hasNext;) {
       newNode1NodeElement = wdContext.createNode1Element();
       newNode1NodeElement.set... //setting the values
       wdContext.nodeNode1().addElement(newNode1NodeElement);
       for (Iterator iter2=Subnode1.iterator(); iter2.hasNext;) {
          newSubnode1NodeElement = wdContext.createSubnode1Element();
          newSubNode1NodeElement.set... // setting the SubVal1.x
          wdContext.nodeSubnode1.addElement(newSubnode1NodeElement);
       for (Iterator iter3=SubNode2.iterator(); iter3.hasNext;) {
          newSubnode2NodeElement = wdContext.createSubnode2Element();
          newSubNode2NodeElement.set... // setting the SubVal2.x
          wdContext.nodeSubnode2.addElement(newSubnode2NodeElement);
    i've got the impression, that <b>all</b> my SubNodes are filled in the <b>first</b> Node1-Element. is there an error in the code above? because in the first place, i see every values in the first Element of Node1-views and if i navigate to the next Element of Node1, every views are empty.
    for every Node (Node1, Subnode1, Subnode2) i've got an own view, that maps its context to the corresponding Node of the controller context, e.g for the SubNode1-View:
    Context                  Context
    |                        ....
    |- ViewNode      --->    ..|- Subnode1
      |- SubVal1.1   --->    ..   |-SubVal1.1
      |- SubVal1.2   --->    ..   |-SubVal1.2
    in these views, i navigate through the nodes via
    wdContext.nodeViewNode().move...()
    in the SubNode1-View i see the SubVal1.1, SubVal1.2 (that's what i want) <b>and</b> additional SubVal2.1, SubVal2.2 (that's what I don't want...)
    kind regards, achim
    ps: i've studied the Master/Detail-Tutorial and i think the choice for cardinality 0..n and type singleton is correct in my case.

    hmm, let's look at the code:
    for (Iteration Node1) {
      newNode1NodeElement = wdContext.createNode1Element();
      wdContext.nodeNode1().addElement(newNode1NodeElement);
      for (Iteration SubNode1) {
         newSubNode1NodeElement = wdContext.createSubNodeXElement();
         newNode1NodeElement.nodeSubNode1().addElement(newSubNode1NodeElement);
         for (Iteration SubNode1.1) {
            newSubNode1.1NodeElement = <b>wdContext</b>.createSubNode1.1Element();
            newSubNode1NodeElement.nodeSubNode1.1.addElement(newSubNode1.1NodeElement);
       for (Iteration SubNode2) {
          newSubNode2NodeElement = wdContext.createSubNode2Element();
          newNode1NodeElement.nodeSubNode2.addElement(newSubNode2NodeElement);
    is there an error in creating the SubNode1.1-Node (bold line)?
    if the code is correct, perhaps it's only a viewing problem:
    i use views that point on every node and display the values in that node. if i move in the view for Node1 to another node, the values for SubNode1 point to the correct values too, but the values for SubNode1.1 still stay on the old values. is the move of a grandfather node not correctly propagated to his first child?
    kr, achim

  • Road to the Missing Node- Help on Contexts/Queues

    Hi all ,
    I have a source structure like
    Root
    Structure Node1- (1.1)
    Structure Node2 -(1..unbounded)
    StrcutureNode3(1)
    StructureNode4(1...n)
    Value Node
    I set the context of "value node" to structureNode2 .
    There are totally 10 "Structure node2" s each with / without the Value Node.
    Now , if i check the "Queue" for Value node in the mapping editor, I should be having 10 entries between 2 default "suppress" entries but I am able to see only 9.
    Can any one help me to find the 10 th entry in the queue for the 10th "structure Node2"?:)
    regards
    krishna

    Jai
    I already have test values and i am playing around with them . but i cant get a clear idea about what is going on behind the scenes and what causes the 10th node to disappear
    regards
    krishna

  • Cannot read attribute of another context node in a context node

    Hello Sap gurus,
    such a long time that I do not post any issue. Now unfortunately time has come down.
    My functional requirement is that whenever the status of an opportunity is changed from "Won" to "Booked", then I have to retrieve the Status reason previously marked for the status "Won" and paste into the attribute Status_Reason (CON_KEY) for status "Won".
    In order to do that I need to read the context node BTADMINH or ZBTCUSTOMERH from the context node BTSUBJECT, in the method GET of attribute CON_KEY.
    I have implemented the following code in the method GET_CONC_KEY of the context node BTSUBJECT.
      DATA:
              lr_entity TYPE REF TO cl_crm_bol_entity,
            lr_comp TYPE REF TO ZL_BT111H_O_DETAILS_IMPL,
             lv_ref_guid     TYPE        crmt_object_guid,
             lr_collection TYPE REF TO cl_crm_bol_bo_col,
             lr_bdc type ref to  if_crm_ui_data_context.
        TRY.
    lr_entity ?= lr_comp->ZTYPED_CONTEXT->ZBTCUSTOMERH->collection_wrapper->get_current( ).
         lv_ref_guid = lr_entity->get_property_as_string( iv_attr_name = 'REF_GUID' ).
          CATCH cx_sy_ref_is_initial.
          ENDTRY.
    Whenever I try to read the context node BTADMINH or ZBTCUSTOMERH from BTSUBJECT  I got always the same dump:
    OBJECTS_OBJREF_NOT_ASSIGNED ZL_BT111H_O_DETAILS_CN06======CP CRM
    Somethins is defitenely wrong and I am at the moment stuck with this code.
    Please any help is really welcome.
    Thanks in advance,
    Andrea

    Hi Andrea,
    Sorry I got it wrong , for lr_comp you will have to take reference from controller IMPL class.
    DATA:
              lr_entity TYPE REF TO cl_crm_bol_entity,
            lr_comp TYPE REF TO ( component controller IMPL class),
             lv_ref_guid     TYPE        crmt_object_guid,
             lr_collection TYPE REF TO cl_crm_bol_bo_col,
             lr_bdc type ref to  if_crm_ui_data_context,
             comp_controller type cl_bsp_wd_component_controller.
    lr_comp  ?= me->comp_controller.
    IF lr_comp IS BOUND.
        TRY.
    lr_entity ?= lr_comp->ZTYPED_CONTEXT->ZBTCUSTOMERH->collection_wrapper->get_current( ).
         lv_ref_guid = lr_entity->get_property_as_string( iv_attr_name = 'REF_GUID' ).
          CATCH cx_sy_ref_is_initial.
          ENDTRY.
    ENDIF.
    Hope it helps.
    Regards,
    Manjeet Singh.

  • Accessing Node Name in XSL

    Hi all,
    Is there some way I can access the node name of a node when I'm in an xsl, perhaps some kind of xpath statement, for example, I have the following:
    <row>
    <agreement>test</agreement>
    <date>today</date>
    </row>
    When I access all the child nodes of the row element, how can I find out the name of each child node, like "agreement" and "date"? thanks in advance.

    I Think this will help u
    <xsl:template match="/">
    <xsl:for-each select='.//row'>
    Node Name is : <xsl:value-of select="name()"/>
    <xsl:for-each select='./@*'>
    Attribute Name is :<xsl:value-of select="name()"/>
    Attribute Value is :<xsl:value-of select="."/>
    </xsl:for-each>
    Node value is : <xsl:value-of select="."/>
    </xsl:for-each>
    </xsl:template>
    Regards
    John Bruno
    508-740-2696

Maybe you are looking for

  • Bex's hello example

    is it compatible with ECM 11g?we tried to run the hello example of unit 7 but it says "no service defined for hello user" and "Configuration error for request 'HELLO_USER'. No dynamic HTML page. " can you help me what the problem is?

  • BADI HRBAS00INFTY for PD Infotypes 1018

    Hello, I'm implementing BADI HRBAS00INFTY to check and modify some fields in infotype 1018 Cost Distribution. I need field PROZT which is not in NEW_INNNN. How and where can I find this field? I can imagine that NEW_INNNN-VDATA could help me, but how

  • How to recover data from corrupt redo

    Hi All, I have one qurey regarding redo file. My database is in Noarchive mode and all redo files size is 1G, there are 3 groups and all group having 1 member each. Now in case my all redo corrupt/dropped then can I recover my data from corrupt redo?

  • IPOD SOFTWARE USING WIN98

    hello i am on a computer right now that has a win98 operating system. i know ipod software requirements state win2000 sp4 or winxp sp2. is there any adjustments i can make in the registry (i'm very good and mostly careful with registry but not excell

  • Master-detail module in Web PL/SQL

    Hi, I'm a beginner and I'd like to ask how many tables can I use in order to create a master-detail module. The example I have is only 2 tables which is master table and detail table respectively. What should I do if I want to include more than 2 tab