xpfMakeAttrsHashTable
FUNCTION xpfMakeAttrsHashTable (modelId, entityId : GENERIC; subTypes : BOOLEAN; attrName1 ,attrName2, attrName3 : STRING; attrName4, attrname5, attrName6 : STRING; attrName7, attrName8, attrName9 : STRING; attrName10 : STRING) hashTableIndex : INTEGER;
The xpfMakeAttrsHashTable function generates a hash table with instances for a specific entity type that belongs to the specified model (population). The hash table can have from 1 one up 10 keys (names entity attributes). This function has a variable length argument list.
Arguments
1 | Type | Name | Comment |
2 | GENERIC | modelId | The model identifier of the model to which the hash table belongs |
3 | GENERIC | entityId | The entity identifier for which the hash table is generated |
4 | BOOLEAN | subTypes | Include all subtypes of the entity when TRUE |
5 | STRING | attrName(n) | The names of the attributes that constitutes the keys. |
Return Value
Â
Type | Name | Comment |
INTEGER | hashTableIndex | The index of the generated hash table |
Options
Â
Example
entityId := xpfGetEntity(XPXSOURCEMODELID, 'PRODUCT'); product_hash_index := xpfMakeAttrsHashTable(XPXSOURCEMODELID, entityId, FALSE, 'PRODUCT_ID');
Â
See also
Filter by label
There are no items with the selected labels at this time.
Â