sang1285
12th June 2014, 10:49
Hello,

We have created an AFS Session for tdsls4244m00 (generate project structure session).
When I run the standard session, there are some messages which come as pop-up in windows.
But when I run the AFS Session, the messages come on the console.

Please find the attached snapshots.

I am not able to find why the messages are printed on the console.
Is there some way to get the messages as pop-up instead.

Thanks,
Sangeeta

bhushanchanda
12th June 2014, 12:12
Hi,

Have you tried answering the question with stpapi.enum.answer() in your AFS Code?

sang1285
12th June 2014, 12:51
Its actually a message and not a question.

bhushanchanda
12th June 2014, 13:18
Hi,

You can take a look at these threads and try different variations:-

Thread 1 (http://www.baanboard.com/baanboard/showthread.php?t=64561)
Thread 2 (http://www.baanboard.com/baanboard/showthread.php?t=56498)
Thread 3 (http://www.baanboard.com/baanboard/showthread.php?t=56181)
Thread 4 (http://www.baanboard.com/baanboard/showthread.php?t=42359)

mark_h
12th June 2014, 13:52
This also reminds me of this thread (http://www.baanboard.com/baanboard/showthread.php?t=65691&page=2). The messages/questions/warnings should not come up at all for the AFS session. That should all stay in the back ground.

sang1285
18th June 2014, 14:39
Hi,

Thanks for the replies. I checked the threads but my concern is not about getting rid of the messages. The issue is that messages are coming on DsCm Window but I need it as a normal pop-up on windows.

Forgot to mention, these messages are not the standard messages , those are customized messages and it is not coming from the standard session , it is coming from somewhere else.

Thanks,
Sangeeta

mark_h
18th June 2014, 15:18
I can't answer what is causing, but just the functionality of using AFS code means that messages from a session will not pop up for the client running the session. Typically you trap messages (thinking errors) and then the AFS session you wrote presents the message to the user. I use stpapi.get.mess.code to get the messages concerned.

Sorry really do not know anything about the DsCm windows or the console.