radio9001
23rd November 2022, 09:48
Hello , I added custom form command , in my session .
I would like to run Generate outbound advice , with the data of the marked record .
In Generate outbound advice session there are variables like range data :
cwar.f cwar.t
orno.f orno.t
oorg.f oorg.t
oset.f oset.t
pono.f pono.t
My session is on my vrc level , which by default is not in the Generate outbound advice session script.
How can I run this session with my range/data ?
Thank you very much for your helpful comments.

query.extend.where.in.zoom(sprintf$("tixmr075.orno = orno.f", quoted.string(orno.f)))
start.session(MODAL, "whinh4201m000", "", "")

andreas.toepper
23rd November 2022, 11:41
I have not used it, but you may want to look at the Public Interfaces for OutboundAdvice.

OutboundAdvice.StartAutomaticOutboundProcessing(..)

See the Infor LN Public Interfaces & Process Extensions Reference Guide.

srkndnsn
24th November 2022, 09:43
Hello , I added custom form command , in my session .
I would like to run Generate outbound advice , with the data of the marked record .
In Generate outbound advice session there are variables like range data :
cwar.f cwar.t
orno.f orno.t
oorg.f oorg.t
oset.f oset.t
pono.f pono.t
My session is on my vrc level , which by default is not in the Generate outbound advice session script.
How can I run this session with my range/data ?
Thank you very much for your helpful comments.

query.extend.where.in.zoom(sprintf$("tixmr075.orno = orno.f", quoted.string(orno.f)))
start.session(MODAL, "whinh4201m000", "", "")


Hi,

query.extend.where.in.zoom used for list sessions(for example tcibd0501m000) not for report sessions. In report session there are no records to filter.

You should use import, export if you use last LN versions with extensions. If you dont use version, maybe already imported these variables you should try or you can look script of standart session( if you have a chance)

Best regards
Serkan

radio9001
25th November 2022, 08:26
Hello ,
We have Infor LN 10.7 , also I can check script of outbound advise , but could you show me some example how to export , import data to this session ?

BR

srkndnsn
25th November 2022, 09:06
Hello ,
We have Infor LN 10.7 , also I can check script of outbound advise , but could you show me some example how to export , import data to this session ?

BR

You can search in the forum, there are tons of example.

You should use export your variables in Command Execute section of your custom command, then import your variable in Outbound Advise Extensions (Before Display Object section good to use)

Also lastly your variable must be extern,

Best regards
Serkan

JaapJD
25th November 2022, 09:21
You should use export your variables in Command Execute section of your custom command
This is a common misunderstanding, I often see. Exporting variables (with the export function) always updates the variable in the parent session. So, not useful/needed in this case. Importing the variables in the child session is enough, And indeed, you can only import variables that are declared as extern in the parent session.

crayonte
29th November 2022, 15:25
Hello , I added custom form command , in my session .
I would like to run Generate outbound advice , with the data of the marked record .
In Generate outbound advice session there are variables like range data :
cwar.f cwar.t
orno.f orno.t
oorg.f oorg.t
oset.f oset.t
pono.f pono.t
My session is on my vrc level , which by default is not in the Generate outbound advice session script.
How can I run this session with my range/data ?
Thank you very much for your helpful comments.

query.extend.where.in.zoom(sprintf$("tixmr075.orno = orno.f", quoted.string(orno.f)))
start.session(MODAL, "whinh4201m000", "", "")

in the zoom.from.all section use import like below
import ("tixmr075.orno", orno.f)

Note: You dont need to export table fields if the main table of source and target sessions are same.