CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 listbox->Visible = false

Print topic Send  topic

Author Message
matt
Posted: 09/07/2005, 12:29 PM

When I set the Visible parameter of a listbox to false, the listbox still displays but it now has a null list of values. I was expecting the listbox to disappear from the form. Bug?
matt
Posted: 09/07/2005, 12:43 PM

Same deal for textboxes. The content is blanked out, but the textbox itself still appears on the screen.
peterr


Posts: 5971
Posted: 09/07/2005, 1:07 PM

Please right click on the control, select "Edit ControlName...", then select the "[x] Extended HTML" option.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
matt
Posted: 09/07/2005, 3:14 PM

That solves one problem but creates another. The listboxes/textboxes are on an editable grid. It appears that when I set Visible to false that the values in the control are being nulled out which nulls sends null to the DB when I hit submit.

For example, I have two rows in the grid. Row 1 has a couple of fields set to Visible = false. On Row 2, I change a value and hit submit. Row 1 now submits nulls to the database rather than the original values that came from the DB in the first place.
peterr


Posts: 5971
Posted: 09/07/2005, 3:29 PM

This looks right, as an invisible control doesn't exist. The Web browser simply will not submit something that is not shown on a page, so there are no values that are submitted and could be changed. It is not true that "Row 1 now submits...", it is rather the Web browser that submits nothing.
Use hidden controls instead of, or in addition to listboxes.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Michael Mikkelsen
Posted: 09/08/2005, 3:17 PM

If you don't like how the database is being updated then use a custom update.
dragoon


Posts: 173
Posted: 10/25/2005, 7:01 AM

Quote Michael Mikkelsen:
If you don't like how the database is being updated then use a custom update.

this isn't about using a custom update/inser/delete

I would like to set the listbox to disabled and hidden, but since there isn't a run-time property to disable it ....
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.