Can i run datasource methods on server side????

In Customized Form i wrote logic in write method which is i have to run on server side???

PurchFormLetter_Invoice invoice;

PurchID pid;

Purchtable purchtable;

CITPickUpReconcil CITPickUpReconcil;

;

super();

if(CITPickUpReconcil.OK == NoYEs::Yes)

{

purchTable = PurchTable::find(CITPickUpReconcil.PONumber);

invoice = PurchFormletter::construct(DocumentStatus::Invoice);

invoice.update(purchtable,pid,

SystemDateGet(),

PurchUpdate::All,

AccountOrder::None,

Noyes::No,

Noyes::No,

false,

true);

}

else

{

CITPickUpReconcil_ds.allowCheck(false);

Throw error(“Posting is Cancelled”);

}

this logic is working fine but,It should run on SERVER side…Any suggestions please…???

And the answer to my question is below…## Where and how is my code running

Performance issue can also occur when it is running on the wrong place. The next table show where the code is running.

Object Possible tier(s) Comments
Class Client, server, or called from Tier is specified by using the class RunOn property (set to Client, Server, or Called from).
Class instance method Client, server, or called from The value is the same as that for the class.
Class static method Client, server, or called from The value set for the class can be overridden by using the server or client method modifiers.
Form Client
Report Called from
Table Called from
Table instance method Called from
Table static method Called from
Table kernel method (update, insert, and so on) Called from unless overridden The value set for the table (called from) can be overridden by using the server or client method modifiers.
Job Client

hi pawan ,

move u r code to table level

thanks

srikanth