Thanks Michael, that works well.  Should I be concerned that _session is a
private variable?  Should there be a way to invoke getSession() without
having knowledge of the application name?

-Scott Boyd


On Thu, Feb 28, 2008 at 4:41 PM, Michael Mikhaylov <[EMAIL PROTECTED]>
wrote:

> Hi Scott!
>
>
> Thanks for your interest in XAP!
>
> I have attached a complete sample. Let me know if that answers your
> question.
>
>
> Thanks again,
>
> Michael.
>
>
> __________________________________________________________
> Michael Mikhaylov  |  Software Engineer
>
> Nexaweb Technologies  |  www.nexaweb.com
>
> 781.345.5418 o  |  Skype(tm): michael.mikhaylov
>
>
>
> "An Application Platform for the Productivity-driven Enterprise"
>
>
> -----Original Message-----
> From: Scott Boyd [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 28, 2008 4:06 PM
> To: [email protected]
> Subject: Using RequestService without writing an MCO
>
> XAPers,
>
> In some application development scenarios, I'd like to specify whether
> or
> not to generate a Synchronous or Asynchronous request, and whether or
> not to
> process the response.  The RequestService API provides 4 methods to do
> this,
> but I don't want to write an MCO just to invoke one of these methods.
>
> After looking at the DOM in firebug, I settled on this approach, but I
> think
> its too verbose, and I don't like having to be aware of the XAP
> application
> ID for XAL that is obviously being executed in the context of a single
> XAP
> application already.
>
> <button height="25px" onCommand="javascript:
> window.xapApplications.nxAjaxPlatformProject.getSession
> ().getRequestService().retrieveAndProcess('setButtonRed.xm')"/>
>
> I tried window.xap.requestservice... but that doesn't work without the
> clientSession object.
>
> <button height="25px" onCommand="javascript:
> window.xap.requestservice.RequestService.prototype.retrieveAndProcess('
> setButtonRed.xm')"/>
> What is the simplest way to access the clientSession object from any
> component in the DOM without writing an MCO?  Is there some global
> variable
> that I missed in firebug?
>
> -Scott Boyd
>

Reply via email to