RunNewFSObjectDialog (open)
Run the 'create new object' flow
Syntax
LOADLIB "mod::publisher/lib/dialogs.whlib";
INTEGER FUNCTION RunNewFSObjectDialog(OBJECT parentscreen, INTEGER parentfolder, RECORD options)Parameters
OBJECT parentscreenScreen invoking us
INTEGER parentfolderFolder which will receive the new object
RECORD optionsOptions
BOOLEAN isfolderIf true, create a folder
BOOLEAN issiteIf true, create a site
INTEGER ARRAY limittypesIf set, allow only templates and types with one of these IDs to be added
INTEGER templateIf not 0, duplicate this object. (isfolder and type options are ignored)
INTEGER typeType to create. If not set, this flow may launch a 'select type' dialog
Return value
INTEGERID of the newly generated fsobject, 0 if creation was cancelled
Description
This function invokes the standard 'new object' flow (which currently starts with a type selection and then runs the objectproperties dialog)