Problem Loading the initial instance data

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

Problem Loading the initial instance data

Phani S
Hi all,
       I have a problem of loading initial data. Here my sample data looks like
<?xml version = '1.0'?>
<ROWSET>
<ROW num="1">
<eno>100</eno>
<ename>Siva</ename>
</ROW>
<ROW num="2">
<eno>200</eno>

 <ename>Raj</ename>
</ROW>
<ROW num="3">
<eno>300</eno>
<ename>Mike</ename>
</ROW>
</ROWSET>

this is available at the url http://localhost/sample/emp.xml

I declared the instance like this

<xforms:instance id="emp-instance">
<ROWSET  xmlns="">
    <ROW>
        <eno />
        <ename />
    </ROW>
</ROWSET>

XML submission is

            <xforms:submission id="list-submission" serialization="none"
                       method="get" action="http://localhost/sample/emp.xml"
                       replace="instance" instance="emp-instance"/>

in my control i declared like

                        <xforms:select1 ref="instance('submission-instance')/empname">
                            <xforms:label>Employee Name</xforms:label>
                            <xforms:item>
                                <xforms:label>Choose One...</xforms:label>
                                <xforms:value/>
                            </xforms:item>
                            <xforms:itemset nodeset="instance('emp-instance')/ROW">
                                <xforms:label ref="ename"/>
                                <xforms:value ref="ename"/>
                            </xforms:itemset>
                        </xforms:select1>

When I run my application the instance data is not getting replaced. what is the problem in it. Please help me...
--
Phani. S
M.Tech(Software Engineering)
Motilal Nehru National Institute of Technology
(+91) 9010093398


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Problem Loading the initial instance data

Alessandro Vernet
Administrator
Phani,

On Thu, Sep 17, 2009 at 2:56 AM, Phani Sajja <[hidden email]> wrote:
>             <xforms:submission id="list-submission" serialization="none"
>                        method="get" action="http://localhost/sample/emp.xml"
>                        replace="instance" instance="emp-instance"/>

How/when to you run this submission? Are you running list-submission
on xforms-model-construct-done? If you don't explicitly run it, it
doesn't just run by itself.

Alex
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
My Twitter: http://twitter.com/avernet


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Problem Loading the initial instance data

Phani S
Thanks Alex,

                 I forgot to add event. Now the problem is solved.

On Fri, Sep 18, 2009 at 12:34 AM, Alessandro Vernet <[hidden email]> wrote:
Phani,

On Thu, Sep 17, 2009 at 2:56 AM, Phani Sajja <[hidden email]> wrote:
>             <xforms:submission id="list-submission" serialization="none"
>                        method="get" action="http://localhost/sample/emp.xml"
>                        replace="instance" instance="emp-instance"/>

How/when to you run this submission? Are you running list-submission
on xforms-model-construct-done? If you don't explicitly run it, it
doesn't just run by itself.

Alex
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
My Twitter: http://twitter.com/avernet


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws




--
Phani. S
M.Tech(Software Engineering)
Motilal Nehru National Institute of Technology
(+91) 9010093398


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Problem Loading the initial instance data

Alessandro Vernet
Administrator
Phani,

On Thu, Sep 17, 2009 at 10:31 PM, Phani Sajja <[hidden email]> wrote:
> Thanks Alex,
>
>                  I forgot to add event. Now the problem is solved.

Excellent; thank you for the update!

Alex
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
My Twitter: http://twitter.com/avernet


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws