FoxInCloud
wcID
Hi Thierry,
In some cases, especially when using classes, it might be useful to set the wcID
of an object.
Currently, it is possible to do this but the value is overwritten when generating the screen.
Depends where you need this .wcID
:
- If it's during object's HTML generation, setting it in
.wcHTMLgen()
should be OK. - If you need it during HTML generation of other member objects, then you need to set it in a common parent's
.wcHTMLgen()
and you need this change inawHTML.prg
:
modify command awHTML.prg
replace
.wcID = .cObjAddrGet(m.toControl)
by
.wcID = iif(lProperty(m.toControl, 'wcID') and ga_type_IsChar(m.toControl.wcID, .T.), m.toControl.wcID, .cObjAddrGet(m.toControl))
You need to ensure the unicity of this custom .wcID
across the application.