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


Author
Message
Marcia G Akins
Marcia G Akins
StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)
Group: StrataFrame Users
Posts: 322, Visits: 529
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!

Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
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.

Edhy Rijo

Marcia G Akins
Marcia G Akins
StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)
Group: StrataFrame Users
Posts: 322, Visits: 529
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

Marcia G Akins
Marcia G Akins
StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)
Group: StrataFrame Users
Posts: 322, Visits: 529
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.

Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
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.

Edhy Rijo

Marcia G Akins
Marcia G Akins
StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)StrataFrame User (496 reputation)
Group: StrataFrame Users
Posts: 322, Visits: 529
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

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search