Skip to content

Instantly share code, notes, and snippets.

@ztirom

ztirom/lookup Secret

Last active Apr 22, 2016
Embed
What would you like to do?
Delete WHS Mobile Device Portal User Session in AX2012
public void lookup(FormStringControl _control)
{
Query query = new Query();
QueryBuildDataSource queryBuildDataSource;
SysTableLookup sysTableLookup = SysTableLookup::newParameters(tableNum(WHSWorkUserSession),
_control);
sysTableLookup.addLookupField(fieldNum(WHSWorkUserSession, UserId));
sysTableLookup.addLookupField(fieldNum(WHSWorkUserSession, InventLocationId));
sysTableLookup.addLookupField(fieldNum(WHSWorkUserSession, LastActionDateTime));
queryBuildDataSource = query.addDataSource(tableNum(WHSWorkUserSession));
sysTableLookup.parmQuery(query);
sysTableLookup.performFormLookup();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment