Click or drag to resize

LinkarCltGetTableAsync_Text Method (LinkarCltOperationAsyncCallbackString, CredentialsOptions, String, String, String, String, TableOptions, String, Int32)

Returns a query result in a table format, in a Asynchronous way.
Direct Method.

Namespace:  LinkarClient
Assemblies:   LinkarClientCore (in LinkarClientCore.dll) Version: 2.1.0.0
  LinkarClientMono (in LinkarClientMono.dll) Version: 2.1.0.0 (2.1.0.0)
  LinkarClient (in LinkarClient.dll) Version: 2.1.0.0 (2.1.0.0)
Syntax
public static void GetTableAsync_Text(
	OperationAsyncCallbackString cmdGetTableFinished,
	CredentialsOptions credentialsOptions,
	string filename,
	string selectClause = "",
	string dictClause = "",
	string sortClause = "",
	TableOptions tableOptions = null,
	string customVars = "",
	int receiveTimeout = 0
)

Parameters

cmdGetTableFinished
Type: LinkarClientOperationAsyncCallbackString
Return type in asynchronous methods
credentialsOptions
Type: LinkarCommonCredentialsOptions
Object that defines the necessary data to access to the Linkar Server: Username, Password, EntryPoint, Language, FreeText.
filename
Type: SystemString
File or table name defined in Linkar Schemas. Table notation is: MainTable[.MVTable[.SVTable]]
selectClause (Optional)
Type: SystemString
Fragment of the phrase that indicate the selection condition. For example WITH CUSTOMER = '1'
dictClause (Optional)
Type: SystemString
Is the list of dictionaries to read, separated by space. If dictionaries are not indicated the function will read the complete buffer. For example CUSTOMER DATE ITEM
sortClause (Optional)
Type: SystemString
Fragment of the phrase that indicates the selection order. If there is a selection rule Linkar will execute a SSELECT, otherwise Linkar will execute a SELECT. For example BY CUSTOMER
tableOptions (Optional)
Type: LinkarCommonTableOptions
Different function options: rowHeaders, rowProperties, onlyVisibe, usePropertyNames, repeatValues, applyConversion, applyFormat, calculated, pagination, regPage, numPage.
customVars (Optional)
Type: SystemString
It's a free text that will travel until the database to make the admin being able to manage additional behaviours in the standard routine SUB.LK.MAIN.CONTROL.CUSTOM. This routine will be called if the argument has content.
receiveTimeout (Optional)
Type: SystemInt32
It's the maximum time in seconds that the client will keep waiting the answer by the server. By default -1 (wait indefinitely).
Examples
CredentialsOptions crdOpt = new CredentialsOptions("127.0.0.1", 11300, "admin", "admin", "ENTRYPOINT");

string filename = "LK.CUSTOMERS";
string selectClause = "";
string sortClause = "";
string dictClause = "";

ROWHEADERS_TYPE rowHeaders = ROWHEADERS_TYPE.MAINLABEL;
bool rowProperties = true;
bool onlyVisibles = true;
bool usePropertyNames = true;
bool repeatValues = true;
bool applyConversion =true;
bool applyFormat = true;
bool calculated = true;

// Get query with Schema type LKSCHEMAS
TableOptions tblOpSchTypeLk = new TableOptions(rowHeaders, rowProperties, onlyVisibles, usePropertyNames, repeatValues, applyConversion, applyFormat, calculated);
LinkarClt.TableAsync_Text(new LinkarClt.OperationAsyncCallbackString(TableAsyncFinished), crdOpt, filename, selectClause, sortClause, dictClause, tblOpSchTypeLk);

// Get query with Schema type SQLMODE
TableOptions tblOpSchTypeSql = new TableOptions(onlyVisibles, applyConversion, applyFormat, calculated);
LinkarClt.TableAsync_Text(new LinkarClt.OperationAsyncCallbackString(TableAsyncFinished), crdOpt, filename, selectClause, sortClause, dictClause, tblOpSchTypeSql);

// Get query with Schema type DICTIONARIES
TableOptions tblOpSchTypeDict = new TableOptions(rowHeaders, repeatValues, applyConversion, applyFormat, calculated);
LinkarClt.TableAsync_Text(new LinkarClt.OperationAsyncCallbackString(TableAsyncFinished), crdOpt, filename, selectClause, sortClause, dictClause, tblOpSchTypeDict);

// Get query without any Schema type
TableOptions tblOpSchTypeNone = new TableOptions(rowHeaders, repeatValues);
LinkarClt.TableAsync_Text(new LinkarClt.OperationAsyncCallbackString(TableAsyncFinished), crdOpt, filename, selectClause, sortClause, dictClause, tblOpSchTypeNone);
See Also