This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Is it possible to pass arguments to server method which is written in VB from a client method

Santhosh - Friday, March 18, 2011 7:28 AM:

Hi All,

Could anyone please suggest me a way which applies to my requirement.

I  need to call a server method which is written in VB and pass arguments to it.

Please suggest a way.

Thanks

Santhosh



Brian - Sunday, March 20, 2011 5:25 AM:

Hi Santhosh,

See section 7.12 Apply a Generic Method in the Programmers Guide.

Basically you can call a server method from another client or server method and pass arguments as an XML string.

It's all in the guide.

Cheers,

Brian.



Santhosh - Monday, March 21, 2011 2:21 AM:

Hi Brain,

If I'm not wrong....generic methods cannot be written using VB method templates which ARAS is providing.

Within in a generic method can we define our own sub routine and call it recurrsively?

Please correct me if I'm wrong.

Thanks

Santhosh



Santhosh - Tuesday, March 22, 2011 1:45 AM:

Hi Brain,

I think I got a solution for this. I could possibly use "VBMain" template for my requirement.

Brain could you please clarify one more thing, from a client method when we are calling server method using "applyMethod" can we pass anything other than an XML?

Please advice

Thanks

Santhosh



Brian - Tuesday, March 22, 2011 4:42 AM:

Hi Santhosh,

The string passed to the generic method must be well formed XML.

This gets added to the context item (this or Me) of the called method and is retrieved using the Me.getProperty( ) method.

Cheers,

Brian.



Santhosh - Wednesday, March 23, 2011 1:23 AM:

I got it Brain thanks.