cancel
Showing results for 
Search instead for 
Did you mean: 

Add a new data record to the context attribute

Former Member
0 Kudos
85

Hi all,

Please help me with the following problem.

I have a context node PERSON_DETAILS with attribute PERSON which is binded to a Internal table. I want toadd one more data record to the attribute PERSON at runtime.

For eg. The Attribute PERSON is populated with person details, But i would like to append the userid of the person logged in to the the attribute PERSON at runtime based on a condition(whether the user logged in a manager, add the data to the context attribute) without deleting any values populated in the context.

(The context is not populated with usedid logged in at design time. I would like to appedn this to the existing attribute at runtime

Thanks a bunch for the help.

Accepted Solutions (0)

Answers (3)

Answers (3)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

I suggest that you start here and learn the basics about Contexts rather than someone just write the logic for you:

http://help.sap.com/saphelp_nw70/helpdata/EN/2d/de1c42375d5033e10000000a155106/frameset.htm

There are also the Web Dynpro Code Wizards. On 7.0 they only generate context read logic (although in Enhancment Package 1 they are considerable extended to include write and append). Once you understand the arrangement of a context, they can help you to quickly build your declarations and code. However it is critical that you learn and understand how contexts are structure and how they are manipulated. This is critical to being a Web Dynpro developer.

Former Member
0 Kudos

Hi, I am new to WDA. Could any one please post example code.

I appreciate the help.

abhimanyu_lagishetti7
Active Contributor
0 Kudos

append or add data record to attribute PERSON?

we add records to context nodes not in particular an attribute

Abhi