PDA

View Full Version : Refreshing/Updating a List via an External Control



damned
February 5th, 2019, 14:47
Hi team,

I have a number of Skill Lists on a Character Sheet.
The Skills are added automatically on Init but most characters will not put points in all Skills and the lists are longish.
I have a getFilter/onFilter working on the List that kicks in when a Tickbox on the same page is ticked AND there is a change to the List - eg you edit an entry or use a skill point.
Id like to initiate a refresh or update on the list when the tick box is ticked or unticked.

Any suggestions?

Trenloe
February 5th, 2019, 14:51
Why can't you run the same/similar code when the tick box is ticked? Can you use the windowlist.applyFilter (https://www.fantasygrounds.com/refdoc/windowlist.xcp#applyFilter) command?

damned
February 5th, 2019, 21:15
Very good - thats the one Trenloe - thanks!