PDA

View Full Version : Wrote myself into a corner - need another eye



nezzir
February 27th, 2008, 03:01
Could someone have a look at my script here? I have it creating a list with a check box, but for some reason the check box is not surviving closing the character sheet. Any check marks placed on this sheet are reset to the default "off" when the ruleset is closed and reopened.

I think it's something in the "talenttaken" generic control.

Foen
February 27th, 2008, 06:29
You are creating your own checkbox control, based on genericcontrol, for the list windowclass. Genericcontrol isn't bound to the database (its a _control instead of a _field) and none of your script attempts to do that.

You might try re-using the checkbox template control provided in the d20 ruleset, which creates an underlying number node to record the current state in the database.

Hope that helps

Stuart

nezzir
February 27th, 2008, 07:20
Thanks, I'll try to figure that out. Sounds like the right direction.