I'm making a web application in Applicationcraft for a school project. I have to dynamically create a bunch of images (depending on the amount of images in our database). These images need to have a link attached to them, the Image widget in Applicationcraft has a property for this, but I could not find out what the syntax for using this would be.
I currently have this:
for (var i = 0; i < data.length; i++)
{
app.createWidget('PanelContainerSponsorLabel', 'WiziCore_UI_LabelWidget', undefined, {name:"HoofdsponsorLabel"+i, pWidth:100, height:50});
app.createWidget('PanelContainerSponsorLabel', 'WiziCore_UI_LabelWidget', undefined, {name:"fillerLabel"+i, label:"", pWidth:100, height:50});
app.createWidget('PanelContainerSponsorImage', 'WiziCore_UI_ImgWidget', undefined, {name:"HoofdsponsorImage"+i, pWidth:100, height:50});
app.createWidget('PanelContainerSponsorImage', 'WiziCore_UI_LabelWidget', undefined, {name:"fillerLabel"+i, label:"", pWidth:100, height:50});
app.setValue("HoofdsponsorLabel"+i, data[i].BI_SponsorNaam);
app.setValue("HoofdsponsorImage"+i, data[i].BI_SponsorImage, {link:{type:"url",title:"http:\/\/www.google.nl\/",body:"new_window"}}); //Link to URL here
}
The documentation doesn't go into specifics about how to format this property and I'm not getting an error message, so I'm kind of stuck