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.
Related Articles
BIND_STRUCTURE method of interface IF_WD_CONTEXT_NODE to assign structure to context
BIND_TABLE method of interface IF_WD_CONTEXT_NODE
Get the name of the button the user has clicked on within the SAP web dynpro action ABAP code
Create field Refering to datatype of webDynpro context element
WebDynpro context for creation of screen field including standard search help
Disable SAP User Personalisation in Web Dynpro app using WDDISABLEUSERPERSONALIZATION and WDENABLEUIELEMENTSHIDE
GET_ATTRIBUTE method of interface IF_WD_CONTEXT_NODE to retrieve value of context element
GET_SELECTED_ELEMENTS to get selected row of ABAP web dynpro table when not using lead selection
GET_STATIC_ATTRIBUTE_TABLE method to return all rows of a context table node
ABAP code to manually trigger ABAP web dynpro plug
Popuate SAP WebDynpro field
Freely Programmed search help for your web dynpro application (custom value help/OVS)
Change the stylesheet theme used by your web dynpro and portal apps (i.e. SAP_TRADESHOW, SAP_CORBU)
Change the stylesheet theme used by your web dynpro and portal apps (i.e. SAP_TRADESHOW, SAP_CORBU)
SET_ATTRIBUTE method of interface IF_WD_CONTEXT_NODE to assign value to individuale context attribute
Clear context attribute using SET_ATTRIBUTE_NULL method of interface IF_WD_CONTEXT_NODE
Add Dropdown by index UI Element to table field within abap web dynpro
Add freely Programmed search help to a web dynpro application field
Retrieve SAP webDynpro field value entered by user
ABAP Web dynpro ALV report table
Hide fields of a web dynpro ALV table
Display web dynpro ALV report select options to resict output results
Assign value to ABAP web dynpro context via table, structure or individual attribute
Get selected ABAP Web dynpro dropdown byindex value (dropdownbyindex UI element)
ABAP web dynpro Dropdown by index UI Element allows a field to display a drop down list of values
ABAP web dynpro Dropdown default value, allow you to set current value of dropdown UI element
Change SAP web dynpro logon screen
Read ABAP Web dynpro table context on action / button click
ABAP Web Dynpro tables to allow users to view and change data
Get selected row of ABAP web dynpro table
Get all selected rows of table within your web dynpro for ABAP applications using GET_SELECTED_ELEMENTS
Get selected row of ABAP web dynpro table
ABAP Web Dynpro tree structure, display HR org structure as example
SAP ABAP Web Dynpro UI elements
View Container UI Element to display a web dynpro view within a wdp view
ALV ABAP Web Dynpro application
ABAP Web dynpro button click / Action
Call URL from SAP Webdynpro for ABAP ACTION
Call URL from SAP Webdynpro for ABAP ACTION
Display popup screen within ABAP Web dynpro
ABAP Web dynpro populate table on action / button click
ABAP code to Print abap web dynpro table
Adding URL parameters to you ABAP webdynpro to change thinks like the CSS