alex.rodionov
30th March 2018, 10:18
Hello,
I am faced a problem with managed execution introduced in the latest LN version. It was required to zoom into session and return several field values into calling session. I used to use export function for this cases. Here is a code example in the zoom session:

zoom.from.all:
on.exit:
export("TABLE001.FLD1",TABLE001.FLD1)
export("TABLE001.FLD2",TABLE001.FLD2)
export("TABLE001.FLD3",TABLE001.FLD3)


and the code piece in the calling session:

field.table002.fld1:
after.zoom:
table002.fld1=table001.fld1
table002.fld2=table001.fld2
table002.fld3=table001.fld3


It worked fine in earlier LN versions. If I try to use it now warning message put.var function is untrusted and can't be used in trusted objects only.


Does anybody have any details on Managed execution and trusted/untrusted functions?

JaapJD
30th March 2018, 11:46
Is it a compile error or runtime? And what are the sessions codes of the calling session and the zoom session? It seems that the zoom session is a non trusted one, and the calling session is trusted. Then you are mixing extensibility (tx-package) and classic customizations.

alex.rodionov
30th March 2018, 13:07
It's a runtime error. Calling session is xrsls4100m10x, sessing being called xrcom7102m000. Both session are created myself without using extensibility.

JaapJD
30th March 2018, 13:32
Probably you have set the flag Extensions ready for Cloud in ttext0100m000. Switch it off and save. Then restart, recompile your called session and try again.

alex.rodionov
11th April 2018, 15:19
When I try to enter ttext0100m000 session, Initialize Extensibility ttext0200m000 is started instead.
ttext000 table is empty