rahul ingale
22nd August 2018, 15:36
Hello,
i had requirement where full stock point field should be set to no value.
when i run session stock point inventory and perform move to location(
whinr1250m000) full stock point is set to yes.
i want to set this value as no. it is form field and whinr1250m000
is standard session.
when i run manually also it should be defaulted to no only.
can we handle this in extensibility?the Tools version 10.5 and TIV no 2152.
giggty
22nd August 2018, 15:48
I had similar requirement handled by implementing before.command hook for modify.set standard command. If this command gets executed when session starts (not every session does it), then you can exploit it. It is a sloppy solution, but I could not come up with something more clean (within the framework of extensibility).
rahul ingale
22nd August 2018, 16:25
I tried this think but the problem is an process session and modify.set is default command.it is disabling some field in init.group.i think its need standard component customization.thanks for input giggty.
giggty
22nd August 2018, 16:34
Why not enable them yourself?
function extern void modify.set.before.command()
{
full.stock.point = tcyesno.no
enable.fields("stock.quan.str", "storage.unit")
display.all()
}
rahul ingale
23rd August 2018, 08:14
Thanks giggty.i tried this but when i call this session by stock point inventory (whinr1540m000) it call before command of extension twice but all other things working fine.
giggty
23rd August 2018, 12:29
I don't see how calling before.program twice can break anything (given your particular requirement ofc).
Also you can opt for a solution that allows you to extend (and suppress) standard functionality (http://www.baanboard.com/baanboard/showthread.php?t=559), which would be a more elegant approach. Recently I have posted an update to the original library, feel free to check it out :)