okneb1
1st July 2019, 14:52
Hello all,
We have a stand. LN session (modify) X for changing data (LN 10.5.)
X session has two fields, field A and field B. A is not part of the maintable (only form field), B is part of the maintable.
Now, when users inputs some value into field A and leaves it with tab (focus jumps on field B), field B gets recalculated, depending on the value in field A.
Recalculation for field B is done in the LN stand. program script in the before.checks and when.field.changes sections of the field A. But we cannot modify the stand. script.
Goal: Instead of user manually inputing value into A, session should have custom command, that calculates value in the field A - as a result field B also should get recalculated.
So, instead of:
A: User manually inputs value into field A, tab, value B gets recalculated
we should have:
B: User clicks on the form command, that fills the A, value B gets recalculated
We've added custom command for session X (session extension point - > new custom command). On command excecute the code fills some value in the field A (value gets displayed when field gets focus), but the field B doens't get recalculated when pressing TAB or setting focus on field B. Looks like the field A sections are not getting triggered. Custom form command is under Actions -> command name.
How can I trigger the when.field.changes or before.checks for field A with session extension point? Is this even possible?
I've already tried with check.all.input and display.fld, but it does nothing. Also I cannot use table extension, because field A is not part of the table, it's only defined as a formfield.
We have a stand. LN session (modify) X for changing data (LN 10.5.)
X session has two fields, field A and field B. A is not part of the maintable (only form field), B is part of the maintable.
Now, when users inputs some value into field A and leaves it with tab (focus jumps on field B), field B gets recalculated, depending on the value in field A.
Recalculation for field B is done in the LN stand. program script in the before.checks and when.field.changes sections of the field A. But we cannot modify the stand. script.
Goal: Instead of user manually inputing value into A, session should have custom command, that calculates value in the field A - as a result field B also should get recalculated.
So, instead of:
A: User manually inputs value into field A, tab, value B gets recalculated
we should have:
B: User clicks on the form command, that fills the A, value B gets recalculated
We've added custom command for session X (session extension point - > new custom command). On command excecute the code fills some value in the field A (value gets displayed when field gets focus), but the field B doens't get recalculated when pressing TAB or setting focus on field B. Looks like the field A sections are not getting triggered. Custom form command is under Actions -> command name.
How can I trigger the when.field.changes or before.checks for field A with session extension point? Is this even possible?
I've already tried with check.all.input and display.fld, but it does nothing. Also I cannot use table extension, because field A is not part of the table, it's only defined as a formfield.