Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Enhance Standard class attributes

Former Member
0 Likes
2,920

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,810

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...

3 REPLIES 3
Read only

Former Member
0 Likes
1,811

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...

Read only

0 Likes
1,810

Hi steve,

It is a standard class, like i should use implicit enhancement to read a value to this global attribute,?

Read only

0 Likes
1,810

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