DataSourceFormatSqlColumnUser

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.

SalString DataSourceFormatSqlColumnUser(  )

Applications should override the DataSourceFormatSqlColumnUser method to specify extra columns to be included in the select statement for the data source.

Returns

The return value should be a list of comma-separated column names, with no comma sign after the last column.

Comments

The columns specified returned here must match the bind variables returned by method DataSourceFormatSqlIntoUser.

The DataSourceFormatSqlColumnUser is intended to be used when applications need information from the data source, that doesn't need to be presented to the user. Using DataSourceFormatSqlColumnUser and DataSourceFormatSqlIntoUser, the application can retrieve this information into window variables instead of data items, hence reducing the number of objects in the window, speeding up window creation times, and reducing the size of the application.

Example

Function: DataSourceFormatSqlColumnUser
Actions
   Return "id, name"
The Late bound method will call the DataSourceFormatSqlColumnUser()  of the given class. The new modifier creates a new member with the same name and causes the original member to become hidden. So that child class implementation will be called.
public override SalString vrtDataSourceFormatSqlColumnUser()
{
	return this.DataSourceFormatSqlColumnUser();
}
public new SalString DataSourceFormatSqlColumnUser()
{
	#region Actions
	using (new SalContext(this))
	{
		return "SCHEDULE_METHOD_ID, INSTALLATION_ID,EXTERNAL_ID";
	}
	#endregion
}