As part of our slow migration from CS to DSP, I have a form with an HTML widget, (the only field painted).
On the loaded DSP I have an attributes only field (button) with a call to unifaceTriggers in the onClick. This is supposed to call another instance which runs crystal reports and produces a print. The first click on this field performs the actions as appropriate. After which, none of the fields in the DSP are responsive. I can't type in text areas, I can (apparently) click one radio group, but the onChange is not fired, clicking the 'button' which just worked does nothing.
To try and find the issue, the uniface trigger in the form is now
askmess "Printing"
return 0
But the issue persists.
The onclick trigger I am clicking is
webtrigger onClick
javascript
p=this.getParent();
f=p.getField("PPV_PREP_ID");
id=f.getValue();
rpt=p.getInstance().getEntity("FILTERS.NOMODEL").getOccurrence(0).getField("D_REPORT_FILE").getValue()
if (typeof window.unifaceTriggers === "function") {
window.unifaceTriggers("web_print",id,rpt)
};
endjavascript
end
id and rpt are populated correctly, and the popup message appears the first time. The mouse pointer after the click is arrow with circle (busy), and whilst I can get a textbos to show the focus border, I can't type in it.
Am I missing something in the javascript to reset the state somehow?
I need to get this to work if we are going to be able to develop a hybrid system to bridge the 'modernisation' gap.
Regards,
Iain
------------------------------
Iain Sharp
Head of Technical Services
Pci Systems Ltd
Sheffield GB
------------------------------