PDA

View Full Version : Data Source of several fields



Fenloh
July 20th, 2011, 15:17
Hi,

during my recent work i stumbled over something, that is unclear to my. The Reglar numberfields etc. can have sources and it works fine in the database. Controls dont seem to have a source. (I hope i have used control in the correct context)

Lablecyclers e.g. or Checkcounters and checkboxes dont seem to have sources. That is why i stumbled over several things latley. Is there any way to apply a sourcepath to those controls?

Fenloh

Sorcerer
July 20th, 2011, 16:11
controls by their definition don't have database entries they are generally used for values that are calculated within the window.
if you have a number or a string control, and want the value to be saved all you have to do is change them to a number or string field, and the value will be saved.

checkboxes and cyclers are dependent on template files to define what they do, so it depends on which ruleset you are using and who wrote the original template.
the checkbox template used in d20 ruleset for example can be made to save to database by inseting a sourcename tag within the checkbox definition

<sourcename>adatabasesnodepath</sourcename>

similarly teh iconcycler can be made to save the value by adding the srcnode tag
<srcnode>adatabasesnodepath</srcnode>

your ruleset may use different tags or another method. try finding the template file (xml or lua) and see if it refers to these or some other similar tag.