myStoreModule.ListStores([nameFilter][, ownerFilter][, timeoutInSeconds]);
| myStoreModule | The name of the Store module instance |
| nameFilter | A STRING defining a filter to be applied to the store's name; the filter accepts the '*' wildcard character to indicate 'match anything' and '?' to match any single character; string comparisons are case-insensitive; an empty string is equivalent to '*'; OPTIONAL, defaults to '*' |
| ownerFilter | A STRING defining a filter to be applied to the store's owner; the filter accepts the '*' wildcard character to indicate 'match anything' and '?' to match any single character; string comparisons are case-insensitive; an empty string is equivalent to '*'; OPTIONAL, defaults to '*' |
| timeoutInSeconds | The number of seconds to wait for the underlying SOAPCALL to complete; set to zero to wait forever; OPTIONAL, defaults to zero |
| Return: | A ListStoresResponseRec RECORD |
The ListStores function gets a list of available stores based on the provided filters.
Example:
IMPORT STD;
myStore := STD.System.Store();
// List all stores
allStores := myStore.ListStores();
OUTPUT(allStores.stores);
// List stores starting with 'App'
appStores := myStore.ListStores('App*', '*');
OUTPUT(appStores.stores);
// List stores owned by specific user
userStores := myStore.ListStores('*', 'myusername');
OUTPUT(userStores.stores);See Also: ListStoresResponseRec