tmannais
21st January 2019, 10:20
First things first,
I have looked into this thread
http://www.baanboard.com/baanboard/showthread.php?t=71316
but it is about the updating process while my case is about on creating a new record.
It is about Call session (tsclm1100m000).
I want it to set a default value to a field, let's say tsclm100.emno, in the session when the user clicks New.
I tried using both Before Command and After Command hooks in Extension type Session to set the field to the desired default text and then display.all().
That is what I followed from the link above.
I implemented those hooks inside New (add.set) of Standard Command.
It does not work. Nothing gets defaulted in the field. It is still empty.
It is now like this.
tcmcs100.emno = "test"
display.all()
Any suggestions?
I have looked into this thread
http://www.baanboard.com/baanboard/showthread.php?t=71316
but it is about the updating process while my case is about on creating a new record.
It is about Call session (tsclm1100m000).
I want it to set a default value to a field, let's say tsclm100.emno, in the session when the user clicks New.
I tried using both Before Command and After Command hooks in Extension type Session to set the field to the desired default text and then display.all().
That is what I followed from the link above.
I implemented those hooks inside New (add.set) of Standard Command.
It does not work. Nothing gets defaulted in the field. It is still empty.
It is now like this.
tcmcs100.emno = "test"
display.all()
Any suggestions?