On the form I have an image, say form1_scx-image1. I have a text field with a date, say form1_scx-text1.
In the form's wcHTMLgen method I added
WITH toHTML AS awHTMLGen OF awHTML.prg .cScriptJSadd("Calendar.setup( {dateField: 'form1_scx-text1', triggerElement: 'form1_scx-image1' });") ENDWITH
Works great. When I click the image, the calendar comes up, I pick a date, and that data gets filled into the .value property of text1. The JS code does something like:
. . . . figure the date and format it . . . . datefield.value = newDate
The form appears correct and the text field appears to have the new date in it. But appearances are deceiving. Somehow FiC does not recognize that the value of text1 has changed, and returns whatever the original value was. Or if I type in a value. But even though the HTML text field is displaying the new value correctly, and vaue is in wcpropSave, you get the new value if you check the HTML text1.value and you get the old value if you check in VFP the text1.value.
IOW despite changing the attribute in the HTML.JS, how do I get VFP/FiC cloud to recognize that change?
p.s. (Thierry: you can see this on the search in iptest)
