Generating Controls dynamically........

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

Generating Controls dynamically........

Sathish K Mittapelli
Hi all i am trying to generate controls dynamically........by using a tag anstype in my instance.I have written my code like this...
<td>
<xforms:group ref="instance('questionsInstance')/question[anstype='text']">
            <xforms:input ref="anstype"/>
        </xforms:group>
       
        <xforms:group ref="instance('questionsInstance')/question[anstype='check']">
            <xforms:select ref="anstype" appearance="full">
                    <xforms:item>
                        <xforms:label>1</xforms:label>
                        <xforms:value>1</xforms:value>
                    </xforms:item>
                </xforms:select>
        </xforms:group>
</td>
But insted of showing controls accordingly it is showing both controls in same column.

How to achieve my requirement.

Thanks in advance.

THANKS & REGARDS
SATHISH K MITTAPELLI  


Bollywood, fun, friendship, sports and more. You name it, we have it.

--
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: Generating Controls dynamically........

Erik Bruchez
Administrator
Sathish,

Your code looks ok. I am not sure why you are having an issue. The  
best way to go forward would be for you to produce a simple example  
that runs in the sandbox and send it to the list.

-Erik

On May 26, 2008, at 2:50 PM, sathish kumar wrote:

> Hi all i am trying to generate controls dynamically........by using  
> a tag anstype in my instance.I have written my code like this...
> <td>
> <xforms:group ref="instance('questionsInstance')/
> question[anstype='text']">
>             <xforms:input ref="anstype"/>
>         </xforms:group>
>
>         <xforms:group ref="instance('questionsInstance')/
> question[anstype='check']">
>             <xforms:select ref="anstype" appearance="full">
>                     <xforms:item>
>                         <xforms:label>1</xforms:label>
>                         <xforms:value>1</xforms:value>
>                     </xforms:item>
>                 </xforms:select>
>         </xforms:group>
> </td>
> But insted of showing controls accordingly it is showing both  
> controls in same column.
>
> How to achieve my requirement.
>
> Thanks in advance.
>
> THANKS & REGARDS
> SATHISH K MITTAPELLI
>
> Bollywood, fun, friendship, sports and more. You name it, we have it.
> --
> 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
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
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
OW2 mailing lists service home page: http://www.ow2.org/wws