Why is it that you must use a job?
Giray Simsek <[EMAIL PROTECTED]> wrote:
Giray Simsek <[EMAIL PROTECTED]> wrote:
Varden,
Thank you for your suggestion. However, I have to use
a job so I can't use your solution.
Giray.
--- Varden Morris <[EMAIL PROTECTED]> wrote:
> Giray
>
> Create a class with a static method that returns the
> required data type and paste the code from the job
> in this method. You may then call the method on the
> class with optional parameter and get the return
> value as follows:
>
> retValue =
> AxComObj.CallStaticClassMethod("ClassName",
> "MethodName", Parameter1)
>
> The parameter is optional and you can have up to six
> of them. You will have to use a parameter list for
> more.
>
>
> Varden Morris
>
>
>
> J. Wray & Nephew Ltd. - Group I.S.
>
> 234 Spanish Town Road
>
> Kingston 11, Jamaica, W.I.
>
>
>
> Phone: (876) - 923 - 6141 Ext. 2226
> Fax: (876) - 923 - 5372
>
> Cell: (876) - 3833566
> Email: [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>
>
> Giray Simsek <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I want to call a job on Axapta using Business
> Connector (COM Connector). Once the job executes, I
> want to return the result back to the client.
> However,
> since Axapta jobs can not return a value, I need to
> find another way to get this value on the client.
> The
> first way that comes to my mind is to set a static
> member variable of an Axapta class and get its value
> from COM Connector. However, I think static member
> variables are not supported in X++.
>
> The other possible way of doing this is writing the
> result to a file. Another one is inserting the
> result
> into a table. However, I thought there might be an
> easier way to do this. Does anybody have any idea?
>
> Regards,
> Giray
>
>
>
>
>
> __________________________________
> Celebrate Yahoo!'s 10th Birthday!
> Yahoo! Netrospective: 100 Moments of the Web
> http://birthday.yahoo.com/netrospective/
>
>
> Sharing the knowledge on Axapta.
>
>
> Yahoo! Groups SponsorADVERTISEMENT
>
>
> ---------------------------------
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
>
http://groups.yahoo.com/group/Axapta-Knowledge-Village/
>
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
> Your use of Yahoo! Groups is subject to the
> Yahoo! Terms of Service.
>
>
>
> ---------------------------------
> Celebrate Yahoo!'s 10th Birthday!
> Yahoo! Netrospective: 100 Moments of the Web
__________________________________
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web
http://birthday.yahoo.com/netrospective/
Sharing the knowledge on Axapta.
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web
Sharing the knowledge on Axapta.
Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/Axapta-Knowledge-Village/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.