FillFromStore

int FillFromStore(IListSource ioList, string inStoreName)

Description

This function is used for List sources in order to set the list source configuration (Click here to learn more about List sources)

Parameters

The following is a list of parameters the functions receives 

Parameter Type Description
ioList IListSource System object of the list to generate (send the parameter as: list)
inStoreName string Name of subject store

 

Return Type

Int32

Overloads

List of overloads for this function

int FillFromStore(IListSource ioList, string inStoreName, string inWhere, string inOrder)
int FillFromStore(IListSource ioList, string inStoreName, string inTextExp, string inValExp, string inWhere, string inOrder)
int FillFromStore(IListSource ioList, string inStoreName, string inTextExp, string inValExp, string inWhere, string inOrder, string inGroup, bool inDefaultGroupBy)

Parameters for overloads:

Parameter Type Description
ioList IListSource System object of the list to generate (send the parameter as: list)
inStoreName string Name of subject store
inWhere string Where command in SQL
inOrder string Order command in SQL
inTextExp string Column name of values to display
inValExp string Column name of values to be used as the displayed items codes
inGroup string Group By command in SQL
inDefaultGroupBy bool To use the "inGroup" parameter, write as: true

 

Overload Example

FillFromStore(list, "my_store123","city","cityCode","@@[country]='UK'","");
(*the ‘@@’ is needed from internal system requirements)
The above will fill the "list" object with all the values from the "city" column where the value under the "country" column is 'UK', and will set those items codes to be the corresponding values from the "cityCode" column.

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.