doubt regarding session in xforms help me plz

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

doubt regarding session in xforms help me plz

Laxmi Narayana-3

plz help me.i am new for xforms.
in list-record-view.xhtml:


        <xforms:trigger>
        <xforms:label>home-submission</xforms:label>
        <xforms:action ev:event="DOMActivate">
---<xforms:setvalue ref="instance('main-instance')/desno" value="20"/> ---
<xforms:send submission="home-submission"/>
</xforms:action>
 </xforms:trigger>
when ever we clicking every time value willget into list-record-action.xpl.
in list-record-action.xpl
  <p:param type="input" name="instance"/>
    <p:param type="output" name="data" />

<p:processor name="oxf:scope-generator">
                   <p:input name="config">
                    <config>
                        <key>desno</key>
                        <scope>session</scope>
                        <session-scope>portlet</session-scope>
                    </config>
                </p:input>
                <p:output name="data" id="fromsession"/>
            </p:processor>
<p:processor name="oxf:xslt-2.0">
        <p:input name="data" href="aggregate('result',#instance,#fromsession)"/>
        <p:input name="config">
            <value xsl:version="2.0">
                <username><xsl:value-of select="//username"/></username>
                <password><xsl:value-of select="//password"/></password>
                <seqno><xsl:value-of select="//seqno"/></seqno>
                <desno><xsl:value-of select="//desno"/></desno>
            </value>
        </p:input>
        <p:output name="data" id="query"/>
    </p:processor>
   

  for everyy button submission 20 value concatenated with existing value.i want to oveerride that value .how i can over ride help me plz.

for every button submission out put coming like this:
desno:20 20 20 20
i want for every button submission like this:20
plz help me.



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: doubt regarding session in xforms help me plz

Laxmi Narayana-3


On 9/7/07, [hidden email] <[hidden email]> wrote:

plz help me.i am new for xforms.
in list-record-view.xhtml:


       <xforms:trigger>
       <xforms:label>home-submission</xforms:label>
       <xforms:action ev:event="DOMActivate">
---<xforms:setvalue ref="instance('main-instance')/desno" value="20"/> ---
<xforms:send submission="home-submission"/>
</xforms:action>
</xforms:trigger>
when ever we clicking every time value willget into list-record-action.xpl.
in list-record-action.xpl
<p:param type="input" name="instance"/>
   <p:param type="output" name="data" />

<p:processor name="oxf:scope-generator">
                  <p:input name="config">
                   <config>
                       <key>desno</key>
                       <scope>session</scope>
                       <session-scope>portlet</session-scope>
                   </config>
               </p:input>
               <p:output name="data" id="fromsession"/>
           </p:processor>
<p:processor name="oxf: xslt-2.0">
       <p:input name="data" href="aggregate('result',#instance,#fromsession)"/>
       <p:input name="config">
           <value xsl:version=" 2.0">
               <username><xsl:value-of select="//username"/></username>
               <password><xsl:value-of select="//password"/></password>
               <seqno><xsl:value-of select="//seqno"/></seqno>
               <desno><xsl:value-of select="//desno"/></desno>
           </value>
       </p:input>
       <p:output name="data" id="query"/>
   </p:processor>


for everyy button submission 20 value concatenated with existing value.i want to oveerride that value .how i can over ride help me plz.

for every button submission out put coming like this:
desno:20 20 20 20
i want for every button submission like this:20
plz help me.



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: doubt regarding session in xforms help me plz

Hank Ratzesberger

Do I understand you correctly:

When a user clicks a button/trigger, you want to 
update a session variable (xml data in the session scope).
And, you want to append a value to existing data, e.g.
append "20" to be "20 20" or "20 20 20" etc, depending 
on how many times the trigger was pressed.

Regards,
Hank Ratzesberger
UCSB

On Sep 13, 2007, at 11:34 PM, Laxmi Narayana wrote:



On 9/7/07, [hidden email] <[hidden email]> wrote:

plz help me.i am new for xforms.
in list-record-view.xhtml:


       <xforms:trigger>
       <xforms:label>home-submission</xforms:label>
       <xforms:action ev:event="DOMActivate">
---<xforms:setvalue ref="instance('main-instance')/desno" value="20"/> ---
<xforms:send submission="home-submission"/>
</xforms:action>
</xforms:trigger>
when ever we clicking every time value willget into list-record-action.xpl.
in list-record-action.xpl
<p:param type="input" name="instance"/>
   <p:param type="output" name="data" />

<p:processor name="oxf:scope-generator">
                  <p:input name="config">
                   <config>
                       <key>desno</key>
                       <scope>session</scope>
                       <session-scope>portlet</session-scope>
                   </config>
               </p:input>
               <p:output name="data" id="fromsession"/>
           </p:processor>
<p:processor name="oxf: xslt-2.0">
       <p:input name="data" href="aggregate('result',#instance,#fromsession)"/>
       <p:input name="config">
           <value xsl:version=" 2.0">
               <username><xsl:value-of select="//username"/></username>
               <password><xsl:value-of select="//password"/></password>
               <seqno><xsl:value-of select="//seqno"/></seqno>
               <desno><xsl:value-of select="//desno"/></desno>
           </value>
       </p:input>
       <p:output name="data" id="query"/>
   </p:processor>


for everyy button submission 20 value concatenated with existing value.i want to oveerride that value .how i can over ride help me plz.

for every button submission out put coming like this:
desno:20 20 20 20
i want for every button submission like this:20
plz help me.



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: doubt regarding session in xforms help me plz

Alessandro Vernet
Administrator
Laxmi,

On 9/14/07, Hank Ratzesberger <[hidden email]> wrote:
> Do I understand you correctly:
>
> When a user clicks a button/trigger, you want to
> update a session variable (xml data in the session scope).
> And, you want to append a value to existing data, e.g.
> append "20" to be "20 20" or "20 20 20" etc, depending
> on how many times the trigger was pressed.

Is this what you wanted to do? Have you solved this issue since then?

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws