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

 DependentListBox in Search Form causes field validation error

Print topic Send  topic

Author Message
cvboucher

Posts: 191
Posted: 03/03/2011, 12:13 PM

ASP.Net VB InMotion/SQL Server.

I have a dependent list box on a search form. If I change the parent list box the dependent list box refreshes properly. When I click on the Search button (without selecting a value from the dependent list box) I get the following error:

The value in field s_FromInstanceID is not valid.

If I select a value in the dependent list box then I don't get the error.

Since this is a search form I wanted to retain the "Select Value" option after the dependent list box was refreshed. To accomplish this I created a view where I union the parent and dependent table together and hardcode 'Select Value' for the Text Column in the parent table. See below for the view. Could this view be causing the problem?

ALTER VIEW [dbo].[InstanceDropListVw] AS  
SELECT 1 As Sequence, NULL As InstanceID, SystemID, 'Select Value' As InstanceName, NULL As PeopleSoftVersion, NULL As PeopleToolsVersion, 0 As Inactive  
FROM System  
UNION ALL  
SELECT 2 As Sequence, InstanceID, SystemID, InstanceName, PeopleSoftVersion, PeopleToolsVersion, Inactive  
FROM Instance

Thanks,
Craig
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.