RunWRDEntitySelectDialog (open)
Run an entity selection screen
Syntax
LOADLIB "mod::wrd/lib/dialogs.whlib";
INTEGER FUNCTION RunWRDEntitySelectDialog(OBJECT owner, OBJECT wrdtype, INTEGER entityid, RECORD options)Parameters
OBJECT ownerOwner screen
OBJECT wrdtypeWRD type
INTEGER entityidWRD id of the entity to preselect, 0 if none
RECORD optionsSTRING ARRAY columnsNames of columns to show when selecting. Defaults to WRD_TITLE if present, WRD_GUID otherwise
RECORD entitycontextValues that are set at creation/update, and cannot be edited
Return value
INTEGERThe id of the created or edited entity. 0 if the dialog was cancelled