On Tue, Feb 16, 2010 at 5:06 AM, Laxmi Narayana <
[hidden email]> wrote:
> Hi All,
> In my xhtml I have provided code as below.While using temp variable in
> javascript:jsFunctionForDownload('{$temp}')
> It shows error like Undeclared variable $temp .I am using ops3.7.0 version.
> Please help me How to avoid this problem?
>
> <xforms:repeat nodeset="instance('template-instance')//record">
> <xxforms:variable name="temp" select="title"/>
> <xxforms:variable name="temp1"
> select='substring-after(substring-after(substring-after(title,"/"),"/"),"/")'/>
> <xforms:group
> ref=".[substring-after(substring-after(substring-after(title,'/'),'/'),'/')!='']">
> <a href="javascript:jsFunctionForDownload('{$temp}')"
> id="parah"><xhtml:img src="/images/inbox/attach.gif"
> border="0"/><xforms:output
> value='substring-after(substring-after(substring-after(title,"/"),"/"),"/")'/></a>
> </xforms:group>
>
> <xforms:select ref="instance('main-instance')/checkbox" appearance="full"
> multiple="true" style="font-size: 10pt">
> <xforms:choices>
> <xforms:item>
> <xforms:label></xforms:label>
> <xforms:value ref="$temp1"/></a>
> </xforms:item>
> </xforms:choices>
> </xforms:select>
> </xforms:repeat>
>
>