frostbyte000jm
April 14th, 2021, 05:15
I have been spinning my wheels for too long so I thought I should ask.
Background:
I created a new container on the sidebar. Let's call it Powers; It has a link, name, some fields, description, and a link to an Item.
When the user creates a Power they will manually drag and drop the Item link into here.
This all works as expected.
Current issue:
I have a location on my character sheet in a subwindow to drop this to. I drag the link and drop it on the subwindow everything fills out (almost). The name and other values all fill out just fine.
I have 2 slots for links (created with linkfield). The first slot is the link to the Powers and the second is the link to the attached Item. I can't for the life of me, set the value of these to be a link.
I can (if I add <allowdrop />) manually drop the links on here. But what I want, is to drop the link in the subwindow and everything fills out (which it all does, except for these 2 links).
Using the dragdata.getDatabaseNode() and running a forloop with getChildren(), I can see the link and the item_link, I just can't figure out how to set them.
Any/all help greatly appreciated.
Background:
I created a new container on the sidebar. Let's call it Powers; It has a link, name, some fields, description, and a link to an Item.
When the user creates a Power they will manually drag and drop the Item link into here.
This all works as expected.
Current issue:
I have a location on my character sheet in a subwindow to drop this to. I drag the link and drop it on the subwindow everything fills out (almost). The name and other values all fill out just fine.
I have 2 slots for links (created with linkfield). The first slot is the link to the Powers and the second is the link to the attached Item. I can't for the life of me, set the value of these to be a link.
I can (if I add <allowdrop />) manually drop the links on here. But what I want, is to drop the link in the subwindow and everything fills out (which it all does, except for these 2 links).
Using the dragdata.getDatabaseNode() and running a forloop with getChildren(), I can see the link and the item_link, I just can't figure out how to set them.
Any/all help greatly appreciated.