Pravin Sonar
8th October 2009, 14:15
Hi friends, F1 Please............

Actually by using AFS i am trying check and install a solution.
so for that i am first setting all the feild values,
and then calling the PMC session "ttpmc2204s000" command continue(function type) as shown below.

stpapi.form.command("ttpmc2204s000", 5, "exec.cont.process", error.msg)

After above API call it should open select device session,
?but what happening is everytime when executing command its giving error Printing Cancelled ???????

before i could handle the "ttstpsplopen" session by subproc its getting closed so its giving "Printing Cancelled" error.

below is code i am trying handle print session.
stpapi.handle.subproc("ttpmc2204s000", "ttstpsplopen", "add")
stpapi.put.field("ttstpsplopen", "devc", "D")
stpapi.form.command("ttstpsplopen", 5, "exec.cont.process", print.err.msg)

How can i catch select device session after executing continue on "ttpmc2204s000" ???????????????? so that i can avoid printing cancelled error.

Thanks and Regards,
Pravin Sonar

Juergen
8th October 2009, 16:36
Hi,

stpapi.set.report("<session>", "<report code>", "<device>", error) should do the trick.

Please refer also to the AFS documentation or search the board for examples.

Regards,
Juergen

Pravin Sonar
9th October 2009, 09:33
Hi Juergen,

:)Thanks a lot for your reply, it works fine.

Guide line say Only one report can be set, so sessions that print more than one report in one execution cannot be executed with the AFS.

Actually there are 2 reports in my process.
i did setting for only 1 report "ttpmc220311000"

but when stpapi.form.command(...) is called it handles 2 reports "ttpmc220311000"(check Solutions) and "ttpmc220312000" (post installation action) second itself get process????:confused:.
Hope it will not make problem further.



Thanks and Regards,
Pravin Sonar