Calling a global method from within a calculation field

Hi there,

Can I call a global method from a calculation field? This seems to be working. But is this a hidden feature? I affraid this feature will be gone in future version.
I see that in the calculation editor, under the Globals tree, only the global variables are displayed but the global methods are not displayed. Is there a reason for this?

The above feature is very useful indeed. For example I can use row_bg_color calculation in one global method and use in all the forms attached to different tables.

Please confirm that this feature is an intended one.

Thanks
Hameed

yes you can use it.
But it is a hidden feature because if we open it up. people will not thing about it as you do now.

Because you can never call things of the controller/currentcontroller. Also elements of a form shoudn’t be touch in a calculation. That’s why we have hidden global methods because people could do those things in a global method and thenn call them from a calculation.

Now I understand what stuffs I can do within a calculation.

Thanks,
Hameed

Now I understand what are the stuffs I can do within a calculation.

Thanks,
Hameed

Now I understand what are the stuffs I can do within a calculation.

Thanks,
Hameed

almost anything except touching the gui, external foundset (current) controller and elements ect.

I am not sure if I follow. How do I get to use a global rowBGColor calculation? Do I? Don’t I? The property field doesn’t let me type the method name, for reasons I understand now. I am just plain lazy and don’t want to copy and paste my rowBGColor calculation into every list form I am using.

Thomas,

Like the property name implies you need to select a calculation. Not a method. Just call a global method in that calculation.
And yes…it does still mean you have to make a calculation per table you want to use in your lists.

Too bad, so sad. Just wanted confirmation.

Thx.