Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

Checkbox as a Type in Custom Attributes
Last Post 12/16/2008 4:59 PM by GA. 6 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
GA
New Member
New Member
Posts:40


--
12/12/2008 8:20 PM

Hi,

Is there any way in which I can have a checkbox (or boolean) type in the dropdown for types in Custom Attributes. I have many custom attributes which are all checkboxes and it would be really easy if I could just select Boolean as a type from the dropdown and have a Checkbox appear, instead of creating a custom User control for each Checkbox I need. There are types for all other common types (like date, select) and I dont understand why boolean was not included.

So is there any way, in which I can have a boolean type in the dropdown for Types and have a checkbox appear. Can you give me some direction on how to do this.

Thanks

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
12/12/2008 10:12 PM
Hi AG,

You're right. In fact it should be there. Internally it's there in any case. This is a bug in the UI. I'll make a note of it. If you set the type to Boolean internally (i.e. in the DMX_Attributes table) it should show up as a textbox. Can you confirm?

Peter
GA
New Member
New Member
Posts:40


--
12/15/2008 3:07 PM
Thanks!!
It appears as a checkbox though, not a textbox when I add it internally as Boolean. And that is how I needed it.
Is there code internally that would work if I were to add something like this to dropdown ddTypes in Attributes.ascx



If there is, could you let me know the exact html for this ListItem. It would be great if I could make it appear in the UI.,
GA
New Member
New Member
Posts:40


--
12/15/2008 3:08 PM
Sorry, the HTML did not appear, so posting again.

asp:ListItem Value="Select" Text="Selection" resourcekey="optSelect"
GA
New Member
New Member
Posts:40


--
12/15/2008 3:09 PM
Sorry again, I meant

asp:ListItem Value="Boolean" Text="Boolean" resourcekey="optBool"
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
12/16/2008 11:30 AM
Hi,
OK, I thought you wanted to add a boolean type of attribute. But from your post I gather you want to have the option of boolean in the dropdown. In that case: yes, that is pretty simple. Go to the following file:

DesktopModules/Bring2mind/DMX/Admin/Attributes.ascx

Open with a text editor and find the dropdown ddTypes and add what you proposed:

asp:ListItem Value="Boolean" Text="Boolean" resourcekey="optBool"

Now the option should be visible in the dropdown and DMX will pick it up when selected.

Peter
GA
New Member
New Member
Posts:40


--
12/16/2008 4:59 PM
Thanks...It works great
You are not authorized to post a reply.