Monday 3 July 2017

Groovy script Issues while writing sequence expression in Jdev 12.2.1.2.0


In Jdeveloper 12.2.1.2 There are no inline Groovy expressions anymore. Expressions are saved in separate Groovy language file, external code source (All new expressions are created in separate *.bcs file). Each EO/VO will be assigned with separate file to keep Groovy expressions. This improves Groovy script maintenance (easier to check all Groovy expressions from EO/VO located in one file), also it improves runtime performance (as JDeveloper ADF code audit rule suggests). 

When you are writing sequence groovy for one of thre attribute in VO and while testing through AppModule If there is an error something like below:

Error(10,1): [Static type checking] - [ADF security error] Calling the constructor for class oracle.jbo.server.SequenceImpl is not permitted.

 One approach to fix this issue is :

-> Goto respective VO, open the Souce Code
-> check for TrustMode property
-> set this to "trusted" instead of "untrusted".


Change to trusted mode.



No comments:

Post a Comment

Select Multiple values from LOV component (Choice List) on UI

There are scenarios where user wants to select multiple values from Input List of Values (LOV) component and store in DB column as comma se...