VishalMistry
25th April 2018, 16:26
Hello Everyone,
NOTE: This is regarding Baan IV.
Is there any way to display message in the status bar? I came across a function status.mess that displays message in the status bar, but, it displays the message in the second short section of status bar (second portion blue marked).
Screen shot is attached for reference.
Is there any way to display the message in status bar (red marked).
Vishal
vahdani
25th April 2018, 17:21
Hi Vishal,
the function mess() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_message_handling_mess) with second Parameter "separate window" set to 0 is I think the function you are looking for!
VishalMistry
25th April 2018, 17:46
Thanks Vahdani,
I got the function, but the issue is, when I simulate clicking on Report Complete button by calling stpapi.continue.process, I display the message in the status bar "Completion in progress".
But, when I execute stpapi.update("tisfc0202m000",1,msg) and display another message indicating "Order completed", the message appears momentarily, and it disappears, making the status bar empty.
Is there any clue why this is happening? Following is the given code snippet:
long retval
if order.found then
check.all.input()
post.to.inventory = ask.enum("tisfc02029",tcyesno.yes)
stpapi.enum.answer("tisfc0202m000", "tisfc02029", post.to.inventory) |Ask user if he wants to post to inventory the delivered quantity
mess("tisfc01021",0)
stpapi.put.field("tisfc0202m000", "qdlv.frm", str$(qdlv.frm))
stpapi.put.field( "tisfc0202m000", "comp.frm", str$(comp.frm))
stpapi.continue.process("tisfc0202m000",msg)
if not isspace(msg) then
message(msg)
stpapi.recover("tisfc0202m0000",msg)
else
retval = stpapi.update("tisfc0202m000",1,msg)
endif
mess("tisfcs0027",0)
stpapi.end.session("tisfc0202m000")
endif
Vishal
bhushanchanda
14th May 2018, 16:28
Because, from what I see, you are ending that particular instance of the session and hence the message disappears with that.