User defined property / tag (OpenInsight 32-bit Specific)
At 10 DEC 2003 05:34:15PM ps wing wrote:
Hello,
Im having to use OI after many years break and have a query.
Does the sysreposwins record contain a user defined property or field which could be used to hold the Arev @pseudo field number so that we can recreate the record? Can use the dict pos for bound controls but for collectors converted to dialog this position is lost.
At run time a UDP of say @POS could hold the position but how can we store this value on the actual sysreposwins record for use at run-time?
Any ideas?
At 10 DEC 2003 05:45PM The Sprezzatura Group wrote:
The most obvious thing that springs to mind is to use a prompt on the existing designer that you don't use and strip it out in the CREATE event. A less obvious thing (and if you're rusty we don't recommend this) is to use the EVENTDESIGNER to add a PSEUDO event to all of the control classes you wish to map then use the QuickEvent Designer to add the values into the PSEUDO event you want on the window within the form designer. You'll have to assign an arbitrary EXECUTE command to the event but it will work.
The Sprezzatura Group
World Leaders in all things RevSoft
At 10 DEC 2003 06:01PM ps wing wrote:
Thanks for the quick reply.
The event designer sounds interesting, havnt played with that before, might give it a go! look out.
I have read a thread on appending the position onto the control name but Im sure there must be a better way as we want to retain the arev names.
At 10 DEC 2003 06:20PM The Sprezzatura Group wrote:
Good luck! This is way too bleeding edge for it not to constitute consultancy if you can't sort it yourself though
![]()
The Sprezzatura Group
World Leaders in all things RevSoft
At 10 DEC 2003 07:14PM ps wing wrote:
For a minute there I thought it would have been possible to write the FMC to each control in sysreposwins using the POS_MISC$ field (ie value 16) then use get_property (ctrlentid,"MISC") but it seems this value is wiped out when saved in the forms designer - d'oh.
At 10 DEC 2003 07:56PM The Sprezzatura Group wrote:
good call though - tempted to investigate that further - but bed calls…
The Sprezzatura Group
World Leaders in all things RevSoft
At 11 DEC 2003 02:55PM ps wing wrote:
I see this always returns the current record for bound forms:
WINID=@WINDOW
$INSERT OIWIN_COMM_INIT
@RECORD=SUBROWS@(0)
Not sure what the others in the array are.
Which it was as easy for dialogs (converted from Arev).
At 11 DEC 2003 03:30PM The Sprezzatura Group wrote:
If the form updates multiple tables these are subrows…
The Sprezzatura Group
World Leaders in all things RevSoft
At 11 DEC 2003 05:19PM ps wing wrote:
Cool, thanks for your help.
Still might have a play with the event designer.