[Form]
public class CPLOperatorPackageAndStockTrackingDetails extends FormRun
{
[DataSource]
class HcmEmployment
{
/// <summary>
///
/// </summary>
public void executeQuery()
{
RecId selectedLegalEntityRecId;
QueryBuildRange employmentRange;
selectedLegalEntityRecId = CompanyInfo::current();
employmentRange = this.query().dataSourceTable(tableNum(HcmEmployment)).findRange(fieldNum(HcmEmployment, LegalEntity));
employmentRange.value(queryValue(selectedLegalEntityRecId));
super();
}
public void init()
{
QueryBuildDataSource qbds;
QueryBuildRange employmentRange;
super();
qbds = this.query().dataSourceTable(tableNum(HcmEmployment));
employmentRange = qbds.addRange(fieldNum(HcmEmployment, LegalEntity));
hcmEmployment_ds.executeQuery();
}
}
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter