%ClearTable of Ens.Util.LookupTable class is deleting the entire table
As per the documentation, this is supposed to delete the contents of the lookup table, but it is deleting the table as well.
Delete the contents of the lookup table pTable.
Purpose: I need to use a temporary Data lookup table within a DTL for repetition count of a key field.
Initialize - s tmpTable = ##class(Ens.Util.LookupTable).%New()
Lookup & add new entries -
s % = tmpTable.%UpdateValue("myTempTable",sThisPhone,(iCount+1),1)
Either i need a method to create a temp table on the fly so that it can be deleted or just clear the entires.
really appreciate your help and input in steering me in the right direction.