Mephisto
October 6th, 2024, 20:34
Hi there,
I have an issue with the createControl command. I create a control with the following command.
_ctrlDiceTestField = window.createControl("dicefield_ability", sControlName, DB.getPath(nodeChar, "abilities." .. sStat .. ".score"))
DB.getPath(nodeChar, "abilities." .. sStat .. ".score") value is "charsheet.id-00001.abilities.athletics.score".
However, when I fetch the path of the control with "Debug.chat("Path self", _ctrlDiceTestField.getDatabaseNode())", it shows "charsheet.id-00001.skilllist.id-00072.charsheet.id-00001.abilities.athletics.score", i.e. it adds the window DB path to the path I hand over during creation.
I'm lost on how to assign the DB path "charsheet.id-00001.abilities.athletics.score" only to the field.
I have an issue with the createControl command. I create a control with the following command.
_ctrlDiceTestField = window.createControl("dicefield_ability", sControlName, DB.getPath(nodeChar, "abilities." .. sStat .. ".score"))
DB.getPath(nodeChar, "abilities." .. sStat .. ".score") value is "charsheet.id-00001.abilities.athletics.score".
However, when I fetch the path of the control with "Debug.chat("Path self", _ctrlDiceTestField.getDatabaseNode())", it shows "charsheet.id-00001.skilllist.id-00072.charsheet.id-00001.abilities.athletics.score", i.e. it adds the window DB path to the path I hand over during creation.
I'm lost on how to assign the DB path "charsheet.id-00001.abilities.athletics.score" only to the field.