CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Tips & Solutions

 How to autofill on an editable grid with listboxes

Print topic Send  topic

Author Message
andy


Posts: 183
Posted: 03/30/2010, 3:26 PM

This is a follow-on to rew-NZ's post here:

http://forums.codecharge.com/posts.php?post_id=97313

As that thread is closed, I'm posting here. If your editable grid includes listboxes and more likely the field that triggers your autofill is a listbox, then you will need to make an additional change to get rew-NZ's method to work.

The problem:
listbox ID isn't appended with the "_rownumber"

Here's an extract of two fields from an editable grid one is a text box [input] and one is a listbox [select]

            <td width="400"><input id="EditablegridnameFieldname1_{Editablegridname:rowNumber}"   
value="{Description}" maxlength="250" size="50" name="{Description_Name}"> <br>  
              <select id="EditablegridnameFieldname2" name="{Fieldname2_Name}">  
                <option selected value="">Select Value</option>  
                {Fieldname2_Options}  
              </select>  
 </td> 

The answer:
Append _{Editablegridname:rowNumber} to the select id

            <td width="400"><input id="EditablegridnameFieldname1_{Editablegridname:rowNumber}"   
value="{Description}" maxlength="250" size="50" name="{Description_Name}"> <br>  
              <select id="EditablegridnameFieldname2_{Editablegridname:rowNumber}" name="{Fieldname2_Name}">  
                <option selected value="">Select Value</option>  
                {Fieldname2_Options}  
              </select>  
 </td> 


Refer to Rez_NZ's sample code in the above post for the rest.
_________________
Andy

RAD tools for rich UI controls:
http://www.koolphptools.com
View profile  Send private message
andy


Posts: 183
Posted: 04/13/2010, 6:24 AM

Update on this post:
in more recent versions the row number is appended to listboxes.

In my case I had started my project in an earlier version but just in case you're in the same boat, the above fix sorts it.

Autofill support for editable grids is on its way as support have emailed me a patch. May be out in next update?
_________________
Andy

RAD tools for rich UI controls:
http://www.koolphptools.com
View profile  Send private message
Oper


Posts: 1195
Posted: 04/13/2010, 7:19 PM

also this will happend if you add a new Field to an already GRID
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)

http://www.PremiumWebTemplate.com
Affiliation Web Site Templates

Please do backup first
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.