Hi guys!
Is there a way to create a WAPIWORK object from the workid?
And also, can I get the prgCtx in a weblingo page?
Best regards
Hi Diogo,
In answer to your first question: you'll want to use WAPI.AccessWork. For example:
WAPIWork work = prgCtx.WSession().AllocWork() WAPI.AccessWork (work, workID, subWorkID)
In answer to your second question: it depends on the context of your weblingo. If you're asking about the weblingo that's associated with a request handler then the "this" for such weblingo is the request handler object itself. As such you can reference features of that object directly:
;Object prgCtx = .PrgSession()
Hope this helps,
-chris
Hi Chris!
It worked perfectly!
Thanks a lot