2014 Jun 10 3:28 PM
Hi ,
I have a Standard class of method A and B . The requirement is like i need to create a global attribute in a class so that i copy certain values from method A to global attibute in order fill certain values in B from tha same global attribute..
Is this possible to create global attribute?
Thanks
Vijay
2014 Jun 10 3:36 PM
yes, so long as it is within the same session
in class X set your global (public) attribute...
in the a & b methods of class Y you can read in the global attribute you set in class X and so on..
if it is a standard class you will have to use the Enhance feature to add your parameters....that you want to set...
2014 Jun 10 3:36 PM
yes, so long as it is within the same session
in class X set your global (public) attribute...
in the a & b methods of class Y you can read in the global attribute you set in class X and so on..
if it is a standard class you will have to use the Enhance feature to add your parameters....that you want to set...
2014 Jun 10 3:42 PM
Hi steve,
It is a standard class, like i should use implicit enhancement to read a value to this global attribute,?
2014 Jun 11 10:33 AM
Sorry - I am confused about your problem.
I do know you have a standard class and want to enhance it to add the public attribute.
You can create the public attribute using the Enhance menu option
I
After you have created the attribute(s) you need - how will you set it? in your own code externally to the class or within a method that you call of the class? I assume the latter - well I would suggest try using an implicit enhancement at the end of the method to write the value to the attribute.
You can read that back in your external coding...for the lifetime of your session