9.3 how to have an in-component storage of a $collhandle
Author: ulrichmerkel@web.de (ulrich-merkel)
I'm using 9.3 and have to load huge volumes of data from the outside world into multitudes of entities.
To speed up processing, I want to wrap a lot of methods (fill_in_field) in Collection Operations so I have to work out the $collhandle only once and the code is identical.
Expl in PSEUDOCODE, thats why I use "-" in names.
if (whatsoever-most-complicated-action)
$my-coll-handle$ = $collhandle(ABC)
endif
And now looping through all kind of information (like CALLBACKs from UXMLREADER)
$my-coll-handle$->fill_in_field()
compare/next (A_PK_SURROGATE) from "INPUTA"
if ($result <= 0)
$my-coll-handle$->finalise_record()
endif
For this, I need a place to store this handle, either as a field in HEADER.USYS or as a component variable.
Doing this in 9.3, I am pushed to specify some "Classification" which browses through the component signatures.
Confusing, isn't it?
Has someone (perhaps from CPWR) the experience how to define collhandle field?