FoxInCloud
wcID
Gravatar is a globally recognized avatar based on your email address. wcID
  Vincent H.
  All
  Oct 5, 2021 @ 04:50am

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.

Gravatar is a globally recognized avatar based on your email address. re: wcID
  FoxInCloud Support - Thierry N.
  Vincent H.
  Oct 5, 2021 @ 09:07am

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 in awHTML.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.

© 1996-2024