günther
26th July 2023, 09:19
Hi,

we would like to set zoom session and zoom return value of a Infor LN standard session (currently these are not set). For CDFs, that can bei done inside the extension modeller. But for standard fields, I don't see a chance.

Any ideas are welcome
Günther

Hitesh Shah
27th August 2023, 20:44
Hi,

we would like to set zoom session and zoom return value of a Infor LN standard session (currently these are not set). For CDFs, that can bei done inside the extension modeller. But for standard fields, I don't see a chance.

Any ideas are welcome
Günther

Can u copy the session to customized vrc and have zoom session defined on the form . In some standard session in Baan IV c4 there is some specific zoom name to be given in zoom.to$ session to get the return values . May be with more details some one can answer it.

king1980
30th August 2023, 15:45
You can use session extention to attach zoom session for CDF filed.
Use Get Zoom session and Get Zoom Retunred Filed hook.

function extern string tfcmg101.cdf_lcno.get.zoom.session()
{
|* Use this hook to retrieve the code of the zoom
|* session. You can do that based on conditions.
return("tfgld0510m000")
}


function extern string tfcmg101.cdf_lcno.get.zoom.return.field()
{
|* Use this hook to retrieve the code of the zoom
|* return field. You can do that based on conditions.

return("tfgld010.dim1")
}

günther
30th August 2023, 16:58
Hi friends,

thanks for your replies. Unfortunately, I'm not satisfied with your proposed soultions. I don't have CDFS, but standard fields. And I don't want to copy a std session to a private VRC. Sorry.

Regards
Günther

OmeLuuk
31st August 2023, 11:43
Hi friends,

thanks for your replies. Unfortunately, I'm not satisfied with your proposed soultions. I don't have CDFS, but standard fields. And I don't want to copy a std session to a private VRC. Sorry.

Regards
GüntherTry something like this.
In Extensions add the session (like session ppmmmx1xxxm000)
Add the Standard Field you want to add the zoom to (ppmmmxxx.fldt)
You can see only the When Field Changes hook is presented, add Implementation.function extern void ppmmmxxx.fldt.when.field.changes()
{
|* Use this hook to perform actions when the field's
|* value changes.
| Now comes a tricky part: based in the input zoom is started,
| so depending on the type of data
if ISSTRING and
trim$(ppmmmxxx.fldt) = "?" then
ppmmmxxx.fldt = start.session(MODAL, "ppmmmy5yym000",
"ppmmmx1xxm000", "ppmmmyyy.flds")
else
if ppmmmxxx.fldt = -1 then
ppmmmxxx.fldt = val(start.session(MODAL, "ppmmmy5yym000",
"ppmmmx1xxm000", "ppmmmyyy.flds"))
endif
endif
}Now train users to input ? or -1 to trigger the zoom...

Another option may be to add a Custom Form Command of type Function linked to Field ppmmmyy.fldt using function ext.custom.function.1 in which you perform the similar assignment as shown in the code block above.
PS. I have not tried any of those options myself before or now. So no warranty this would work.

günther
31st August 2023, 13:04
Thanks, omelook. That's a workaorund in my opinion.

Maybe we should discuss with Infor about an enhancement request.

OmeLuuk
31st August 2023, 17:09
Thanks, omelook. That's a workaorund in my opinion.

Maybe we should discuss with Infor about an enhancement request.Agree, I'd push for without enhancement request.