Implement solving indirect context

Description

This is to explore the idea annotated on IDEMPIERE-528:

Expand the context parsing and evaluation to allow indirect references. I mean instead of just using @AD_User_ID@ I would like to be able to use something like @AD_User_ID.Password@ for the context meaning that we want to get the AD_User.Password based on AD_User_ID - this could be applicable for all the "logic" fields (display, readonly, mandatory, default) and that would make it very powerful.

Regards,

Carlos Ruiz

Environment

None

Activity

Show:
Heng Sin Low
September 4, 2013, 1:16 PM

Patch to add indirect reference ( e.g @C_DocType_ID.IsSOTrx@ ) support for readonly, mandatory and display logic.

Heng Sin Low
September 4, 2013, 1:17 PM

Please review, thanks.

Tomáš Švikruha
May 1, 2015, 9:31 AM
Edited

Hi,

I've just discovered this feature and it is very helpful, thanks! I tried to use it in Process Parameters and here it doesn't work because gridTab is null and referenced table couldn't be identified. I created patch IDEMPIERE-701_support_process_params.patch to get it work, please review it, it could be also very helpful for Process Parameters Display & Read Only Logic

Tomáš Švikruha
August 25, 2015, 9:57 AM

Added patch IDEMPIERE-701_support_for_tabs.patch for support same behaviour on tab Display & Read logic.

Henrique Soares da Silva
June 25, 2020, 5:56 AM

Triaged by Henrique Soares da Silva.

Last patch was not applied (suport for tabs). Everything else works as expected.

Assignee

Tomáš Švikruha

Reporter

Carlos Ruiz

Labels

Tested By

None

Affects versions

Priority

Major
Configure