global variable

vickey

New Member
hi all,


Can anyone help me out with declaring a global variable declared in SDO and using it in viewer. where do i need to declare this variable in sdo.

thanks
vivek
 
you could use a calculated field in the sdo with an associated function to assign the value. then the field would be available to drop into a smartviewer just like the other fields in the sdo.

there is a progress white paper on sdo's that demonstrates how to use calculated fields.
 
(I'm assuming here you mean you want to use the variable in logic, rather than displaying it).

You won't be able to access the variable directly in the SDV (and nor should you).

Create get and set functions in your SDO to control access to any variables contained therein, and call them from the SDV.


Lee
 
Back
Top