FUNCTION Contains(list1$, list2$)
|
FUNCTION Contains(list1$, list2$, missingList$)
Does list1$ contain all of the elements of list2$? The comparison doesn't care about order, number, or case, but it does care about whitespace. This is useful for checking if the list of fields in an SData request includes all of the key fields for a table.
|
Parameter | Description |
list1$ |
[input, string] Comma delimited list of elements |
list2$ |
[input, string] Comma delimited list of elements to look for in list1$ |
missingList${optional} |
[output, string] Comma delimited list of the elements from list2$ that are not in list1$ |
|
Returns |
[boolean] Whether list1$ contains list2$ |
|
FUNCTION CreatePropertyString(inRecord$, inIOList$, inResourceName$, outString$)
Creates a special serialized property string from a set of variables and values.
|
Parameter | Description |
inRecord$ |
[input, string] A ProvideX record variable containing the values to be serialized |
inIOList$ |
[input, iolist] A ProvideX iolist describing the names of the variables to be serialized |
inResourceName$ |
[input, string] The name of the resource whose properties we are serializing |
outString$ |
[output, string] The serialized property string |
|
|
FUNCTION CreatePropertyString(busObj, inResourceName$, outString$)
Creates a special serialized property string describing the currently selected record in a business object and its children.
|
Parameter | Description |
busObj$ |
[input, object] A business object. SetKey() on the record you want to create a property string for first! |
inResourceName$ |
[input, string] The name of the resource whose properties we are serializing |
outString$ |
[output, string] The serialized property string |
|
|
FUNCTION ParsePropertyString(inString$, outFields$, outValues$, separator$)
Parses a special serialized property string into a set of variables and values.
|
Parameter | Description |
inString$ |
[input, string] The serialized property string |
outFields$ |
[output, string] A comma delimited list of the variable names from the property string |
outValues$ |
[output, string] A separator$ delimited list of the values from the property string |
separator$ |
[output, string] The single character used to delimit outValues$. This will be the ProvideX SEP character unless the data itself contains SEPs, in which case every effort will be made to use a character not found in the data. |
|
Returns |
[boolean] Whether the property string was successfully parsed or not |
|
FUNCTION LOCAL AppendFieldsAndValues(fields$, values$, newFields$, newValues$, separator$)
|
FUNCTION LOCAL CreatePropertySubstring(inRecord$, inIOList$, inResourceName$, outString$)
|
FUNCTION LOCAL CreatePropertySubstring(busObj, inResourceName$, outString$)
|
FUNCTION LOCAL DetermineSeparator(inString$, separator$)
|
FUNCTION LOCAL ParsePropertySubstring(inString$, outFields$, outValues$, separator$, prefix$)
|