CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Need to replace "Select Value" from listbox in CCS

Print topic Send  topic

Author Message
Brent
Posted: 05/21/2002, 9:58 PM

How can I change or remove the text "Select Value" from a listbox. I would rather
replace it with a blank. I thought this string should be in the Format properties
for the list box, but it's not. I'm using PHP and the ListBox is using a List of Values.

TIA
Brent
Alex Alexapolsky
Posted: 05/22/2002, 12:29 AM

It should be replaced in "html" tab.
Brent
Posted: 05/22/2002, 7:55 AM

>>It should be replaced in "html" tab.
Ok, I found it, thanks.

Suggestion: Don't you think it would be better if the "Select Value" caption
was accessible from the Format Properties rather than having to edit the HTML code?
It would be easier to change like in CC (and would be better for multi-language
support?) and there would be less of a chance of the user changing the wrong listbox
caption if he has several listboxes on the form.

Brent
Janice Scott
Posted: 05/26/2002, 6:20 PM

;;1;listItem1;2;listItem2;3;listItem3

The two ;; in the front of the list creates a null value in the list box
CodeCharge
Posted: 05/26/2002, 10:17 PM

Hi Brent,

"Select Value" is not a property of a ListBox, but rather just a text that shows the value of the default selection. Your ListBox can be made of many options. You can right-click on the ListBox and select "<SELECT> Properties" to add or rename its values.

Regards,

Konrad
Brent
Posted: 05/26/2002, 10:48 PM

Konrad,
Thanks, that was what I was looking for. :)

Brent
Peter Roth
Posted: 05/27/2002, 12:04 AM

Does some of you know what default value I have to set to select the "select value" from the listbox?

Seach-Form with 1 listboxe:
>> items in it: 1;Yes;0;No

Everytime the form is displayed the "No" is selected instead of the default "Select a Value". How can I change it, because when the user submits the search query a wronr set of data would be displayed!

peter
Nicole
Posted: 05/27/2002, 1:41 AM

Peter,
I see you use custom list of value. Please go to HTML tab and check first <option> tag to contain 'SELECTED' option. This tag is usually used as default value.
Peter Roth
Posted: 05/28/2002, 12:28 AM

Nicole,

I checked the HTML-Tab and it looks like:

<select name="s_Druckvorlage">
<option value="" selected>Select Value</option>
{s_Druckvorlage_Options}
</select>


In the listboxe I have a List Data Source of:
1;Yes;0;No

--> to make sure the "Select Value" is selected I have to define the default value of the s_Status Listbox to -1 . Then it works

tanks

peter

   


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

MS Access to Web

Convert MS Access to Web.
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.