You will need to manually place the userLogin object into the context. This object *should* be available to the FTL file, so add:
Static["org.ofbiz.base.util.UtilMisc"].toMap("userPrefGroupId",
"EXAMPLE_APP_DEMO_SCREEN", "userLogin", userLogin)
Andy
Adrian Crum wrote:
> I'm trying to execute the following statement in an FTL file:
>
> <#assign testPrefMap = dispatcher.runSync("getUserPreferenceGroup",
> Static["org.ofbiz.base.util.UtilMisc"].toMap("userPrefGroupId",
> "EXAMPLE_APP_DEMO_SCREEN"))/>
>
> but I keep getting exceptions thrown that basically boil down to there
> being no userLogin entity in the context when the service is invoked.
>
> What am I doing wrong?
smime.p7s
Description: S/MIME Cryptographic Signature
