on 04-07-2010 6:37 AM
Hi Experts,
I have one Question,
What is the difference between context Tab Attribute means
COTEXT.
- NODE
- ATTRIBUTE X
and Attribute Tab defined attributes... This Attribute Tab we have in Comp controller,view and Window also... What is the difference??
if possible can anyone explain with an example please???
Thanks and Regards,
Krish.
Edited by: kissnas on Apr 7, 2010 7:41 AM
Hi kissnas,
The atributes u define in the context Tab are used for data storage in the application but attributes in the Attribute Tab are reference varaible for different Interafaces or Classes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check the below link to for concepts.
[Controller Attibutes|http://help.sap.com/saphelp_nw2004s/helpdata/en/27/13fb8442e7fa4a99f5d37eab90c0bf/content.htm]
[Controller Context|http://help.sap.com/saphelp_nw2004s/helpdata/en/7b/c10f2a93c8b84d8c8ee6105d8f64ed/content.htm]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
If in doubt use the context.
context elements can be bound to UI elements - attributes cannot.
So anything that you want to represent in your views - make it part of your context.
I'd also not use too many attributes - as I prefer to keep my coding in the assistance class and use class attributes there if I absolutely need to use global type variables.
Cheers,
Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.