Hi all, Have a clarification on the look up form.
Need to modify the look up method for the Project Purchase Order form for the display of activity number in the drop down. Currently the activity number dropdown appears with the task ID with respect to the project. With the existing method,i need to add a code to bring the values which the HierarchyTreeTable.parentelementnumber != null.
Existing code:
public void lookup(FormControl _formControl, str _filterStr)
{
HierarchyTreeTable::lookupHierarchyTree(_formControl, ProjTable::find(purchLine.ProjId));
}
I modified as
public void lookup(FormControl _formControl, str _filterStr)
{
HierarchyTreeTable::lookupHierarchyTree(_formControl, ProjTable::find(purchLine.ProjId));
Query query = new Query();
QueryBuildDataSource queryBuildDataSource; QueryBuildRange queryBuildRange;
// SysTableLookup sysTableLookup = SysTableLookup::newParameters(tableNum(HierarchyTreeTable), this); HierarchyTreeTable::lookupHierarchyTree(_formControl, ProjTable::find(purchLine.ProjId));
queryBuildDataSource = query.addDataSource(tableNum(HierarchyTreeTable));
queryBuildRange = queryBuildDataSource.addRange(fieldNum(HierarchyTreeTable,ParentElementNumber)); queryBuildRange.value(’’);
} But am not sure how to write not equal to with the above code.
For example:
For the Purchase order of the project 100471 . the activity number displays with dropdown with the following values
-
Petrofac Project (parentelementnumber == null)
-
Northern island (parentelementnumber == 2)
-
Southern Island (parentelementnumber == 3)
.
With the above list I want it to display in the look up as Northern Island and Southern Island where parentelementnumber is not null
Please let me know if am not clear.
Thanks