DataSourceCreateWindowTrans

Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.

SalBoolean DataSourceCreateWindowTrans(SalNumber nWhat, SalString sMessage)	

This method works similary to DataSourceCreateWindow, except that the parameter is not only the window name, but an IFS Message containing the window name in the __NAME attribute, and the rest of attributes are the keys to be included in the data transfer. The values of the attributes are the names the keys have in the destination window. If only __NAME is provided, DataSourceCreateWindow will be called instead.

Note: code moved into __DataSourceCreateWindowTrans.

Parameters

Name Description
SalNumber nWhat Standard method parameter. Possible values are Const.METHOD_Inquire, Const.METHOD_Execute.
SalString sMessage Name of window to create.

Returns

When nWhat = Const.METHOD_Inquire: the return value is TRUE if the window is included in the application, and the corresponding data source is available.
When nWhat = Const.METHOD_Execute: the return value is TRUE if the window is successfully created, FALSE otherwise.