condition label

18 views
Skip to first unread message

Ronnie

unread,
Apr 27, 2015, 5:55:09 AM4/27/15
to arib...@googlegroups.com
Hi everyone,

I want to dynamic set the input text lable. for instance, If the flag is true then the label text should 'client' otherwise the label text should 'customer'.

how can I implement this . thanks a lot.

Sarosh Mathew Koshy

unread,
Apr 29, 2015, 11:04:50 PM4/29/15
to arib...@googlegroups.com
The <a:If> tag should enable this. Here's a snippet of code to put in your awl. The java class must define the other variables referred in the code:


<a:If ifTrue="$flag">
   
<w:FormTable showErrorFlags="$true">
       
<w:FormRow label="Client" errorKey="loginUser" labelNowrap="$true">
           
<a:TextField value="$user" size="15" maxlength="15"/>                                
       
</w:FormRow>
   
</w:FormTable>
<a:Else/>
   
<w:FormTable showErrorFlags="$true">
       
<w:FormRow label="Customer" errorKey="loginUser" labelNowrap="$true">
            PAT
<a:TextField value="$user" size="15" maxLength = "15"/>                                
       
</w:FormRow>
   
</w:FormTable>
</a:If>

Explore the Aribaweb examples source. They are a great place to learn about syntax & some of the awesome widgets that the framework provides.
Reply all
Reply to author
Forward
0 new messages