My current build: 2800-4476 (from April of 2015)
I want my home builders to be able to 'draw' on an image they have uploaded for a punch list. So I have gotten myself as far as using a Signature Capture field to do this. The name of the field is signaturecapture1 and it in PANELCARD_7. I have another field named ImageRef that contains the entire path to their image on the server. That ImageRef field value is on my UX by itself and its value is set from a list control's system event OnSelect , then I set the panel that contains the signature control field as active as follows:
Let's say the value in the ImageRef field, after the OnSelect of a record in the list control is currently: C:/Web_CHS/ClientUploads/DEMO/Jellyfish.jpg
And I am trying to use the 'In-line style for signature capture area - canvas' property for the signaturecapture1 field that is in PANELCARD_7
I can, of course, hard code that property as follows, but I need to replace the url to be the path in the ImageRef field...
In that property, 'In-line style for signature capture area - canvas', for the signaturecapture1 field, I have tried the following, but it's not working.. just get a blank canvas...
My signaturecapture1 field is not currently bound to anything.... I am just trying things out. ANYWAY, my question is if there is a way to dynamically change the background image using the value from another field on the UX??
I want my home builders to be able to 'draw' on an image they have uploaded for a punch list. So I have gotten myself as far as using a Signature Capture field to do this. The name of the field is signaturecapture1 and it in PANELCARD_7. I have another field named ImageRef that contains the entire path to their image on the server. That ImageRef field value is on my UX by itself and its value is set from a list control's system event OnSelect , then I set the panel that contains the signature control field as active as follows:
Code:
var imgPath = {dialog.object}.getValue('list::LIST4::ImageRef'); {dialog.object}.setValue('IMAGEREF',imgPath); {dialog.object}.panelSetActive('PANELCARD_7');
And I am trying to use the 'In-line style for signature capture area - canvas' property for the signaturecapture1 field that is in PANELCARD_7
I can, of course, hard code that property as follows, but I need to replace the url to be the path in the ImageRef field...
Code:
background-image: url('C:/Web_CHS/ClientUploads/DEMO/Jellyfish.jpg'); background-repeat: no-repeat;
Code:
var imgPath = {dialog.object}.getValue('ImageRef'); background-image: url(imgPath); background-repeat: no-repeat;
Comment