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 -> General/Other

 CheckboxList - I'm pissed off

Print topic Send  topic

Author Message
Vasiliy

Posts: 378
Posted: 08/17/2006, 9:10 AM

VB.NET

After spending a whole #$%# day on a CheckboxList, I came to a conclusion that I either have no clue how it works, or Yes just did not finish the job.

In CheckboxList and multi-select ListBox even if I selected multiple options, CCS3 will store/restore just one first selected item.
How @#$@# bright was the idea to force every developer deal with this half-finished job and pool the selected items stored somewhere in CCS generated code?
In CCS for .Net I could not even find an interface to read the selected items so that I can store it manually!!!

Besides that I'd like to mention complete .Net project recompilation every time I change _any_ page. This takes forewer every time I want to see my changes live.
It's a nightmare.

A pissed off, angry user.
_________________
Vasiliy
View profile  Send private message
E43509

Posts: 283
Posted: 08/17/2006, 11:02 AM

I haven't worked with multiple list box yet but I've found it much easier to 'publish' the one page I touched and then go into your web directory and run makeall.bat to recompile. ( I just put a shortcut on my desktop)
Recompiling is not a CCS issue but how .NET works.
View profile  Send private message
wkempees


Posts: 1679
Posted: 08/17/2006, 11:19 AM

V,
I thought I give it a try and I generated Examples in ASP NETVB
To see how array handling should be done, but I am sorry, what a bunch of code for a non ASP .NET guy like me.
Feel4U
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message
DonB
Posted: 08/17/2006, 5:07 PM

It's actually easy to do.

I'd call CCGetFromPost() in the Before Execute update/insert events, to
obtain the checkbox array from the POST data which contains all of the
'checked' checkboxes (although NOT the unchecked ones). HTML forms do not
post the unchecked items, that's just the way HTML works.

I would save the array in a variable and put in a Custom Insert/Update.

I'd specify the columns of the database that relate to the checkboxes.

Lastly, I'd put a function in the 'Expression' source of each column. The
function would fetch the corresponding array element and include it into the
Custom Insert/Update that's about to be executed.

CCS follows the classical 80/20 'rule'. It covers the main 80% of
requirements well, and leaves the remaining 20% to our skills as software
developers. I find it's quite handy not having to deal with that 80% every
time I sit down at the keyboard.
--
DonB

http://www.gotodon.com/ccbth
peterr


Posts: 5971
Posted: 08/18/2006, 1:27 AM

CCS doesn't support this directly, but there are several examples on working with multiple selections in CCS Example Pack.

You don't need to recompile whole .Net projects when using .NET 2.0. Only .NET 1.x doesn't support this. You should be happy that MS listened and fixed it.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Vasiliy

Posts: 378
Posted: 08/18/2006, 3:30 PM

Guys, thanks for suggestions.
Probably all I needed is more time and patience to figure out ... which I din't have with my development time frame.

Of course I tried examples first. In my case custom insert/update/delete will not work because the table is too complex to move from CCS automated updates to custom one just because of multi-select/check.

Thanks again.

Peter, as for .Net, you are right ... partially.
.Net 2.0 does not recompile the entire project, but CCS puts so much code in "App_Code" folder, and every page update also updates the "App_Code" folder as well.
That's why it is so painful - every CCS page update forces .Net to recompile the "App_Code" folder, and this folder is heavy.
_________________
Vasiliy
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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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