Change of question. How to override correctly modified field in purchcreateorder? Right now it compiles but still the values didnt show in my form.
[ExtensionOf(formdatasourcestr(PurchCreateOrder, PurchTable))]
final class PurchCreateOrderGetDefAdress_Extension
{
[DataField]
class OrderAccount
{
void modified()
{
element.orderAccountModified();
InventLocation inventlocation;
UserInfoSz usrsz;
PurchTable purchtable;
FormDataSource ds;
FormDataObject df =any2Object(this) as FormDataObject;
next Modified();
ds = df.datasource();
PurchTable = Ds.cursor();
select InventLocation where InventLocation.inventsiteid == usrsz.InventSiteId && inventlocation.DefaultShipMaintenanceLoc == 'out';
purchtabke.orderaccount = '11111111111111111111';
purchtable.inventsiteid = 'ILA-LOG-01';// InventLocation.inventsiteid;
purchtable.inventlocationid = InventLocation.InventLocationId;
purchtable.DeliveryName = 'sasasasa';
//purchTable_ds.refresh();
}
}