I created New Table “Test_DataArea” having all the same fields as in DataArea. i need two things.
- I want this table should contain all the existing data of Dataarea.
and
- if i create new company in Data Area Table then it should reflect to my this Test_DataArea.
Can we achieve this ?
Hi Satya,
Wirte a job to update those data into this Test_dataArea table and write code in SysDataArea form → data source → DataArea → Write method.
after super write like below
void write()
{
boolean insert;
Test_DataArea _cmydetails;
;
if (! dataArea.RecId)
insert = true;
super();
if (insert)
{
xDataArea::insertPost(dataArea);
SecurityKeySet::reloadDomainRestrictions();
_cmydetails.IT_DataAreaId = DataArea.id;
_cmydetails.IT_Name = DataArea.name;
_cmydetails.insert();
}
}
Regards,
Abbas.I
hi.Is this correctly working? anyone try this?