sapdev logo background
sapdev logo sapdev logo
Comments

IF_WD_CONTEXT_NODE interface methods withn ABAP Web Dynpro to enable users to view and change data




Here is a list of all the methods contained within the interface IF_WD_CONTEXT_NODE. This is the reference type for accessing the context elements associated with UI elements on your web dynpro application. This would be declared using abap code similar to the following and demonstrates how to use a few of the methods from the list below:

Data: context_node type ref to if_wd_context_node,
      it_scarr type standard table of scarr.
select * from scarr into table it_scarr where CARRID = 'AA' .

context_node = wd_context->get_child_node( name = 'CARRIERS').  "CARRIERS' is the context node
context_node->bind_table( it_scarr ).

BIND_ELEMENT
Binds Element (SET_INITIAL_ELEMENTS=ABAP_TRUE)

BIND_ELEMENTS
Binds Elemente (SET_INITIAL_ELEMENTS=ABAP_TRUE)

BIND_STRUCTURE
Binds Structure (SET_INITIAL_ELEMENTS=ABAP_TRUE)

BIND_TABLE
Binds Table (SET_INITIAL_ELEMENTS=ABAP_TRUE)

CLEAR_SELECTION
Deletes Selection

CREATE_ELEMENT
Creates an Element with all Static Attributes

CREATE_ELEMENT_STATIC_ATTR
Exclusively Creates the Statically Declared Attributes

GET_ATTRIBUTE
Returns the Value of Individual Attribute

GET_ATTRIBUTE_REF
Returns Reference to Copy of Attribute Value

GET_CHILD_NODE
Child Node of Lead Selection or Specific Index

GET_CHILD_NODES
All Lower-Level Nodes of Lead Selection or Specific Index

GET_CONTEXT
Provides Context

GET_ELEMENT
Element of Lead Selection or Specific Index

GET_ELEMENTS
Returns All Elements

GET_ELEMENT_COUNT
Returns Number of Node Elements

GET_LEAD_SELECTION
Returns Element of Lead Selection

GET_LEAD_SELECTION_INDEX
Returns Index of Lead Seletion

GET_META_PATH
Returns the Meta Path of the Node Including the Controller

GET_NODE_INFO
Returns Meta Information About Node

GET_PARENT_ELEMENT
Returns the Element whose Child Node this Node Is

GET_PATH
Returns the Path Including Controller and Element Indices

GET_SELECTED_ELEMENTS
Returns All Selected Elements

GET_STATIC_ATTRIBUTES
Returns Copy of All Statically Declared Attributes

GET_STATIC_ATTRIBUTES_REF
Returns Reference to a Copy of All Static Attributes

GET_STATIC_ATTRIBUTES_TABLE
Returns All Static Attributes of All Elements

SET_ATTRIBUTE_PROPS_FOR_ELEM
Sets the properties for multiple attributes

GET_ATTRIBUTE_PROPERTIES
Returns the attribute properties for an attribute

INVALIDATE
Invalidates All Elements of Node

GET_ATTRIBUTE_PROPS_FOR_ELEM
Returns the attribute properties for the whole element

IS_ATTRIBUTE_NULL
Returns TRUE if Attribute Is NULL

IS_CHANGED_BY_CLIENT
True if Node or Element Is Changed by Client



IS_FINALIZED
True if Node Can No Longer Be Changed

IS_SELECTED
True if Element Is Selected

IS_SUPPLIED
True if Supply Method Has Already Run

MOVE_ELEMENT
Moves Element from Index FROM to Index TO

MOVE_FIRST
Set Lead Selection to First Node Element

MOVE_LAST
Set Lead Selection to Last Node Element

MOVE_NEXT
Set Lead Selection to Subsequent Node Element

MOVE_PREVIOUS
Set Lead Selection to Previous Node Element

MOVE_TO
Set Lead Selection to Specified Node Element

PATH_GET_ATTRIBUTE
Resolves the Path to an Attribute

PATH_GET_ELEMENT
Resolves the Path to an Elenemt

PATH_GET_NODE
Resolves the Path to Node

REMOVE_ELEMENT
Removes Single Element if Existing

RESET_CHANGED_BY_CLIENT
Resets CHANGED_BY_CLIENT Flag (Recursive).

SET_ATTRIBUTE
Sets the Value of Individual Attribute

SET_ATTRIBUTE_NULL
Sets Value of Individual Attributes to NULL

SET_CHANGED_BY_CLIENT
Denotes Node as Changed by Client

SET_FINALIZED
Denotes Node as No Longer Modifiable (Except Invalitdate)

SET_LEAD_SELECTION
Set Element of Lead Selection with Index

SET_LEAD_SELECTION_INDEX
Set Element of Lead Selection with Index

SET_SELECTED
Set Element as Selected or Remove Flag

SET_STATIC_ATTRIBUTES
Sets the Value of Statically Declared Attributes

SET_STATIC_ATTRIBUTES_NULL
Sets the Value of Statically Declared Attributes to NULL

TO_XML
Returns Canonical XML Representation

SET_ATTRIBUTE_PROPERTY
Sets a property for an attribute

SET_ATTRIBUTE_PROPS_FOR_NODE
Sets attribute properties for the whole node

GET_ATTRIBUTE_PROPS_FOR_NODE
Returns attribute properties for the whole node

IS_ALIVE
Checks if Relevant Controller has Already Been Ended

Please note: This page is a work in progress so if there is a specific method you would like an example for just post a message below and i'll try and get one uploaded as soon as i can.





comments powered by Disqus