Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Calling XPP client code from .Net code

10 views
Skip to first unread message

orenb

unread,
Dec 23, 2009, 9:49:02 AM12/23/09
to
Is it possible to call to XPP code from .Net class.
I've a .Net class that I'm invoking from the client code. After a while I
need to call back from the .Net class to XPP class.
How can I do it? I looked on the Business Connector class but it is not in
the same session as the client.

Markus

unread,
Dec 23, 2009, 5:52:01 PM12/23/09
to
You can imagine the business connector as non-interactive client. So it is
somewhat limited in calling forms and reports. But in general, you are free
to call any X++ as you want. You may instantiate objects, call methods and
call static methods on classes, work with tables etc. @see MSDN or Developer
Documentation for help. Example:
http://msdn.microsoft.com/en-us/library/aa851743.aspx
--
My LinkedIn Profile:
http://www.linkedin.com/in/noebauer
Xing:
https://www.xing.com/profile/Markus_Noebauer

orenb

unread,
Dec 27, 2009, 5:41:02 AM12/27/09
to
I will try to explain better what I'm trying to do.
I need to interact between Dynamics client and another application.
Calling from Dynamics to my app is easy as I can call a /Net class and
delegate the call forward.
The other way around is problematic. I didn't find a way to call from my
application to the running session of the client.

Markus

unread,
Dec 28, 2009, 1:57:01 AM12/28/09
to
The business connector is a non interactive client and has its own session.
It does not alter an active session from a user. If you want to interact with
a special user, you may some queueing mechanism. For example you could start
a batch job when a user logs in and the batch job queries MSMQ; Or you may
create a message table [User:string|Message:string|Processed:boolean] that is
populated by your application over a WCF service and processed by the batch
job.

Luegisdorf

unread,
Dec 28, 2009, 9:48:01 AM12/28/09
to
Hi Orenb

May be you can use DDE commands if you need to get access to the client
application.

See in AOT forms tutorial_DDE_Client and tutorial_DDE_Server.

Best regards

orenb

unread,
Dec 30, 2009, 1:44:01 AM12/30/09
to
Thank you for your replies, I'll check this out.

I'm also considering using PipeServer as I saw the DDE commands are disabled
by default (due to security)

Happy new year,

orenb

unread,
Dec 30, 2009, 1:47:01 AM12/30/09
to
Thank you for the replies, I'll check these options.
I'm also considering using PipeSercver as the DDE commands are disabled by
default (security). The pipe is more raw but doesn't requires security
changes.

Thanks and happy new year.
orenb

0 new messages