Relation cannot access calculation

Hi

I noticed that relations cannot access calculations defined in a dependent module. In my opinion this is an unexpected and unneccessary restriction. Because of that I have to define relations in a modules where they do not belong to.

Will this be changed in a future release?

Regards

Hi Birgit,

I think you are bitten by the ‘scope’ issue.
Check out the following thread: viewtopic.php?f=3&t=13602

Hope this helps.

Thanks for your answer. But no. The scope issue I understand :-)

Module variables are visible. Calcs are not (for relations only). Can anyone confirm this?

Regards

No confirmation so far. No vote against it neither. Is this because of the WM?

Please, can anyone confirm: If you define a relation, you select From and To attributes. In each list you see table attributes (first group), global variables (last groups) and calculations (middle group). But in the calcs list you only see the calcs defined in the module where you define the relation in. Calcs of dependent modules are not visible. Right?

Thanks and regards

Birgit,

That is a bug, it should also be possible to base a relation on a calc that is defined in a module.
Please file a case in our support system.

Rob

Hi Rob

Thanks for clarification.

Regards

Birgit,

This is fixed in Servoy 5.2.

Thanks,

Rob