* fhUpdateDisplay doesn't update Attribute Value

Homeless Posts from the old forum system
Locked
User avatar
tatewise
Megastar
Posts: 27078
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

fhUpdateDisplay doesn't update Attribute Value

Post by tatewise » 25 May 2012 13:34

When running a Plugin that updates a Record then fhUpdateDisplay() should update that Record if it is on display in FH.

Such a Plugin may change the value of an Attribute by using say fhSetValueAsText(ptrAttr,strAttr).
This Attribute may be selected on the Facts tab of the Property Box.
When fhUpdateDisplay() is executed, the Attribute Value in the Fact list is updated.

But the Value in the panel below is NOT updated.
The danger is that if the user clicks on this old Value then the Attribute reverts back to the pre-Plugin Value.

Other data such as Place and Address do update in the panel below OK.

ID:6267

Locked