http://devexpp.blogspot.in/2012/02/refresh-datasource-and-retain-position.html
int position; ; position = myTable_ds.getPosition(); myTable_ds.research(); myTable_ds.setPosition(position);http://devexpp.blogspot.in/2012/02/refresh-datasource-and-retain-position.html
int position; ; position = myTable_ds.getPosition(); myTable_ds.research(); myTable_ds.setPosition(position);static void addDoc( Common common, DocuTypeId docuTypeId, FileName fileName){ DocuRef docuRef; DocuValue docuValue; if(common && docuTypeId) { ttsBegin; docuRef.clear(); docuRef.initValue(); docuRef.TypeId = docuTypeId; docuRef.Name = filename; docuRef.RefRecId = common.RecId; docuRef.RefTableId = common.TableId; docuRef.RefCompanyId = curext(); docuValue.initFromDocuRef(docuRef); docuValue.insert(); docuRef.ValueRecId = docuValue.RecId; docuRef.insert(); ttsCommit; if(filename) { DocuValue::writeDocuValue(docuRef,filename); //after ttsCommit to enable catching of file system errors } }}
public container
pack()
{
container
con;
con
= super();
return
con;
}
|
public boolean
unpack(container packedState)
{
boolean
ret;
ret = super(packedState);
this.parmDialogCaption(this.parmArgs().record().TableId == tableNum(SalesTable) ? "@CIT467" : "@CIT130");
return
ret;
}
|
|
static void
ReportRun(Args _args)
{
SrsReportRun srsReportRun;
srsReportRun = new SrsReportRun("ItemLabelReport.Report");
srsReportRun.init();
srsReportRun.reportCaption("InventOnHand");
srsReportRun.showDialog(false);
if(
srsReportRun )
{
srsReportRun.executeReport();
}
info("Report
Saved");
}
|