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


1TypeNameComment
2GENERICmodelIdThe model identifier of the model to which the hash table belongs
3GENERICentityIdThe entity identifier for which the hash table is generated
4BOOLEANsubTypes

Include all subtypes of the entity when TRUE

5STRINGattrName(n)The names of the attributes that constitutes the keys.

Return Value


 

TypeNameComment
INTEGERhashTableIndexThe 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.

Â