How to use dataset method in Webpart :

Q ) How to use Data set method in web part  to access the data

A) By using this code we can call dataset level method .

For method:
 this.DataSource.GetDataSet().DataSetRun.AxaptaObjectAdapter.Call(“methodName”);

we can use same code for job and static methods also , just by replacing .CALL to job or static method.

for JOB:
this.AXPNewsDataSource.GetDataSet().DataSetRun.AxaptaAdapter.CallJob(“job name”);

For StaticClassMethod :
this.AXPNewsDataSource.GetDataSet().DataSetRun.AxaptaAdapter.CallStaticClassMethod(className,methodName)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s