StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



BrowseDialog - true/false comboExpand / Collapse
Author
Message
Posted 07/10/2008 10:23:14 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Yesterday @ 9:55:09 AM
Posts: 170, Visits: 410
I have a true/false bit field in SQL and I would like to display this to a user in a browse dialog as a combobox containing true/false selections. I have played around with the Combo - Enum option in the SearchFields dialog but I can't seem to get it to work for System.Boolean.

Assuming that this is possible, can anyone point me in the right direction please?

Thanks in advance,

Aaron

P.S. I was trying to use the Combo - Enum option as I don't think I can use a CheckBox?

Post #17759
Posted 07/10/2008 11:15:18 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 3:20:54 PM
Posts: 4,769, Visits: 4,731
Actually you are going down the right road and getting close.  You will want to use the Enum options and create an enum with values like this:

Public Enum MyBooleanEnum as Integer
    No = 0
    Yes = 1
End Enum

or

Public Enum MyBooleanEnum as Integer
    False = 0
    True = 1
End Enum

Once you have the enum, then you will assign this when setting up the SearchField.  Then you will want to assign a value of -1 as the "Not Used" value for the TopMost Item (Combo - General page) which is should be by default anyway.  This should work just fine as I did it the other day. 

Post #17766
Posted 07/10/2008 2:45:28 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Yesterday @ 9:55:09 AM
Posts: 170, Visits: 410
Works great - thanks!

By the way, the BrowseDialog is a very powerful control - I particularly like the subtle Time Action on the date. That tells me someone has been there and done that before me!

Post #17773
Posted 07/10/2008 3:03:19 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 3:20:54 PM
Posts: 4,769, Visits: 4,731
particularly like the subtle Time Action on the date. That tells me someone has been there and done that before me

Thanks....yeah, we hit that wall a while back.    So we knocked it down

Post #17775
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 6:31am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.094. 11 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.