Skip to content

SHOW_EXPORT_DLG ​

SHOW_EXPORT_DLG shows a dialog for exporting models and attribute profiles. The dialog can be used for any export format (e.g. XML) which is generated by an AdoScript program.

Syntax ​

leo-grammar
CC "ImportExport" SHOW_EXPORT_DLG [ title:strValue ] [ multi-select:boolValue ] 
									[ model-groups-selectable:boolValue ] 
									[ filename:strValue ] [ filedescription:strValue ]
									[ fileextension:strValue ] [ mode:"adl" | "xml" ] 

#--> RESULT endbutton:"ok" | "cancel" filename:strValue
			modelids:tokenStr mgroupids:tokenStr
			attrprofids:tokenStr apgroupids:tokenStr 
			with-models:boolValue with-referenced-models:boolValue 
			with-mgroups:boolValue mgroups-recursive:boolValue
			with-attrprofs:boolValue with-referenced-attrprofs:boolValue
			with-apgroups:boolValue apgroups-recursive:boolValue
CC "ImportExport" SHOW_EXPORT_DLG [ title:strValue ] [ multi-select:boolValue ] 
									[ model-groups-selectable:boolValue ] 
									[ filename:strValue ] [ filedescription:strValue ]
									[ fileextension:strValue ] [ mode:"adl" | "xml" ] 

#--> RESULT endbutton:"ok" | "cancel" filename:strValue
			modelids:tokenStr mgroupids:tokenStr
			attrprofids:tokenStr apgroupids:tokenStr 
			with-models:boolValue with-referenced-models:boolValue 
			with-mgroups:boolValue mgroups-recursive:boolValue
			with-attrprofs:boolValue with-referenced-attrprofs:boolValue
			with-apgroups:boolValue apgroups-recursive:boolValue

Parameters ​

  • title (strValue, optional) - the title of the dialog; default is "ADL export - selection".
  • multi-select (boolValue, optional) - By default, multiple models can be selected and model groups are selectable. Set parameter multi-select:0 to allow just single selection.
  • model-groups-selectable (boolValue, optional) - set to 0 to disable model group selection.
  • filename (strValue, optional) - the (default) name of the export file
  • filedescription (strValue, optional) - the description of the files; default is "ADL files".
  • fileextension (strValue, optional) - the extension of the files;
  • mode (enumValue, optional) - one of the following values can be chosen: "adl" or "xml", default is "adl"; is currently only used to attach the correct online help.

Returns ​

  • endbutton (enumValue) - one of "ok" or "cancel"
  • filename (strValue) -
  • modelids (tokenStr) -
  • mgroupids (tokenStr) -
  • attrprofids (tokenStr) -
  • apgroupids (tokenStr) -
  • with-models (boolValue) -
  • with-referenced-models (boolValue) -
  • with-mgroups (boolValue) -
  • mgroups-recursive (boolValue) -
  • with-attrprofs (boolValue) -
  • with-referenced-attrprofs (boolValue) -
  • with-apgroups (boolValue) -
  • apgroups-recursive (boolValue) -

Details ​

The bool result values with-referenced-models and with-referenced-attrprofs are just for information. They have not necessarily be evaluated by the export routine. The consequences of these options are already applied to the ID container values. The referenced models (if with-referenced-models is true) are already included in modelids. The referenced attribute profiles (if with-referenced-attrprofs is true) are already included in attrprofids.

Some of the result parameter names contain minus signs ('-'). If you want to use a variable name containing one or more minus signs within an expression, you have to prevent the LEO compiler from interpreting them as minus operator by prefixing the variable name with a quotation mark ('?'). So, within an expression, instead of with-referenced-models you have to write ?with-referenced-models.

See Also ​

SHOW_IMPORT_SELECT_DLG
SHOW_EXPORT_DLG

Examples ​

asc
CC "ImportExport" SHOW_EXPORT_DLG
				title: "XML export - selection"
				filedescription: "XML files" fileextension:"**.xml"
IF (?with-referenced-models) {
    # ...
}
CC "ImportExport" SHOW_EXPORT_DLG
				title: "XML export - selection"
				filedescription: "XML files" fileextension:"**.xml"
IF (?with-referenced-models) {
    # ...
}

Versions and Changes ​

Available since ADOxx 1.3