DataSourceUserOrderByGet

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 DataSourceUserOrderByGet(  )

Applications call the DataSourceUserOrderByGet method to get the order by statement used in the last populate of the data source.

Returns

The return value is the last order by statement.

Example

Function: Refresh
Actions
   ! Repopulate data source with current where and order by statements (refresh)
   Call DataSourceUserWhere( METHOD_Execute, SalHStringToNumber( DataSourceUserWhereGet( ) ) )
   Call DataSourceUserOrderBy( METHOD_Execute, SalHStringToNumber( DataSourceUserOrderByGet( ) ) )
   Call DataSourcePopulateIt( TRUE )
new C# coding.
private void tbwInfo2_OnPM_DataRecordRefresh(ref SalMessage message)
{
	#region Actions
	message.Handled = true;
	if (Sys.wParam == Ifs.Fnd.ApplicationForms.Const.METHOD_Execute) 
	{
		tbwInfo2.FromHandle(this.i_hWndFrame).bRefresh = true;
		this.DataSourceUserWhere(Ifs.Fnd.ApplicationForms.Const.METHOD_Execute,
						 this.DataSourceUserWhereGet().ToHandle());
		this.DataSourceUserOrderBy(Ifs.Fnd.ApplicationForms.Const.METHOD_Execute,
 						 this.DataSourceUserOrderByGet().ToHandle());
		this.DataSourcePopulateIt(true);
		message.Return = true;
		return;
	}
	else
	{
		message.Return = Sal.SendClassMessage(Ifs.Fnd.ApplicationForms.Const.PM_DataRecordRefresh,
 						Sys.wParam, Sys.lParam);
		return;
	}
	#endregion
}