Click or drag to resize

DataContextRenderLookupFunctionTModel Method

Renders client-side Javascript function for looking up single values from a table.

Namespace: GSF.Web.Model
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.181-beta
Syntax
public string RenderLookupFunction<TModel>(
	string valueFieldName,
	string keyFieldName = "ID",
	string lookupFunctionName = null,
	string arrayName = null
)
where TModel : class, new()
View Source

Parameters

valueFieldName  String
Table field name as defined in the table.
keyFieldName  String  (Optional)
Name of primary key field, defaults to "ID".
lookupFunctionName  String  (Optional)
Name of lookup function, defaults to lookup + TModel name + valueFieldName + Value.
arrayName  String  (Optional)
Name of value array, defaults to camel cased TModel name + valueFieldName + Values.

Type Parameters

TModel
Modeled database table (or view).

Return Value

String
Client-side Javascript lookup function.
See Also