LedgerJournalTransEFT ledJournalTransEFT; --->table
ExportEFTDetails exportEFT; ------------->Class
FormDataSource LedgerJournalTransEFT_ds;--->datasource declaration
str fileName,folderPath;
if (args.record().TableId == tableNum(LedgerJournalTransEFT))
{
ledJournalTransEFT = args.record();
LedgerJournalTransEFT_ds = ledJournalTransEFT.dataSource();
exportEFT = new ExportEFTDetails(LedgerJournalTransEFT_ds);
}
if (LedgerJournalTransEFT_ds.anyMarked()) ----->selected lines
{
formRun = LedgerJournalTransEFT_ds.formRun();
if(formRun)
{
frmCtrl = formRun.design().controlName(formControlStr(LedgerJournalTransEFT,StringEdit));
if(frmCtrl)
{
folderPath = frmCtrl.valueStr();--------->get selected folder path
if(!folderPath)
{
throw error("Kindly select the export folder path");
}
}
}
}
ExportEFTDetails exportEFT; ------------->Class
FormDataSource LedgerJournalTransEFT_ds;--->datasource declaration
str fileName,folderPath;
if (args.record().TableId == tableNum(LedgerJournalTransEFT))
{
ledJournalTransEFT = args.record();
LedgerJournalTransEFT_ds = ledJournalTransEFT.dataSource();
exportEFT = new ExportEFTDetails(LedgerJournalTransEFT_ds);
}
if (LedgerJournalTransEFT_ds.anyMarked()) ----->selected lines
{
formRun = LedgerJournalTransEFT_ds.formRun();
if(formRun)
{
frmCtrl = formRun.design().controlName(formControlStr(LedgerJournalTransEFT,StringEdit));
if(frmCtrl)
{
folderPath = frmCtrl.valueStr();--------->get selected folder path
if(!folderPath)
{
throw error("Kindly select the export folder path");
}
}
}
}
No comments:
Post a Comment