DOMActivate event not working properly with xforms:action

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

DOMActivate event not working properly with xforms:action

Rajesh_1229
Hi,

I have a requirement in which i have 2 htmlareas.One is master htmlarea and another one is normal htmlarea in which we can enter remarks/comments and when we click the add button,the entered remarks will be added to remarks in master htmlarea.

my code is as follows,

<xforms:output ref="RemarksBuffer" id="HTMLRemarks" mediatype="text/html"></xforms:output>
<xhtml:br/>Add Remarks : <xhtml:br/>
<xforms:textarea ref="AddRemarks" mediatype="text/html"></xforms:textarea><xhtml:br/>
<xforms:trigger>
<xforms:label>Add Remarks</xforms:label>
<xforms:action ev:event="DOMActivate" if="/client/AddRemarks !='' ">
<xforms:setvalue ref="/client/RemarksString" value="concat  (/client/Seperator,/client/HTMLLineBreak,/client/UWActivityLabel,' : ',/client/UWActivity,/client/HTMLLineBreak,/client/LoginIDLabel,' : ',/client/LoginID,' ',/client/CurDateTime,/client/HTMLLineBreak,/client/Seperator)"/>
<xforms:setvalue ref="/client/Remarks" value="concat(/client/Remarks,/client/HTMLLineBreak,/client/RemarksString,/client/HTMLLineBreak,/client/AddRemarks)"/>
<xforms:setvalue ref="instance('clientinstance')/AddRemarks" value="/client/Blank"/>
</xforms:action>
</xforms:trigger>

This code is working fine normally but sometimes add button will not work in which i'm not getting error log or any exception.but again after giving focus to the htmlarea and again click on buttin,this time it was working and remarks being added to master remarks.



Waiting for help:-(
Rajesh