StrataFrame Forum

I forgot to ask about this in my question about the BrowseDialog

http://forum.strataframe.net/Topic19058.aspx

By Marcia G Akins - 9/4/2008

Hi All.

One of my search fields is and Active Flag and it is a bit field. Is there any way that I can display this seach field as a checkbox?

Thanks again!

By Edhy Rijo - 9/4/2008

Marcia G Akins (09/04/2008)
One of my search fields is and Active Flag and it is a bit field. Is there any way that I can display this seach field as a checkbox?

I am not sure this is supported by the Browser Dialog by default, but this is what I did for the same situation, and instead of a checkbox, I am using a combobox with an Enum.

Create your Enum in any of your class like this:

Public Enum InactiveStatus As Integer

     <EnumDisplayValue("No")> _

     No = 0

     <EnumDisplayValue("Yes")> _

     Yes = 1

End Enum

Then in your Browser Dialog (BD) add the field in the SearchFields property and use the Combo-Enum like this:

Run your application and it should look like this:

So if this is not yet supported, that should keep you going without another martini Hehe, and this could be a nice enhancement, that SF add a checkbox option for Bit fields.

By Marcia G Akins - 9/4/2008

Edhy Rijo (09/04/2008)

I am not sure this is supported by the Browser Dialog by default, but this is what I did for the same situation, and instead of a checkbox, I am using a combobox with an Enum.

Thanks so much for getting back to me. So can I just create this enum in my form class? I thought about doing that but when I tried, all I could get was syntax errors. I looked for some C# examples, and just couldn't find any basic enough for my basic ignorance Hehe

By Marcia G Akins - 9/4/2008

Hi Edhy.

OK - thanks a million - I got it working. The thing that was throwing me was that when I clicked on the ellipses and asked it to find my enum, it couldn't. When I typed the fully qualified name into the textbox it just worked.

By Edhy Rijo - 9/4/2008

You are welcome.

Take a look at the StrataFlix sample application in the Sample and Solutions forum, it is in VB and it is not finished, but it will give you a very different perspective on how the SF Team to use the framework for their custom applications.

For enums I have a class file to create all my enums and made them all public, this way the type editor can find them so you can just pick and choose insted of typing it completely.

By Marcia G Akins - 9/4/2008

Edhy Rijo (09/04/2008)

Take a look at the StrataFlix sample application in the Sample and Solutions forum, it is in VB and it is not finished, but it will give you a very different perspective on how the SF Team to use the framework for their custom applications.

I will definitely do that when I get some breathing room. I have 3 clients that are pushing me right now and I don't even have time to go to the golf course Angry

And thank for the idea of having all the enums in one class. I thought about it and it definitely makes a lot of sense. I will re-factor after I have enough built to show my client. It's getting there. I already have my main form and 4 data entry forms cranked out Smile