Buck Anderson - DNN Professor Member Login
February 08, 2012

ForumsDNN Professor Forums

DotNetNuke Forums | Xmod Forums | Internet Marketing Forums | DNN Professor Product Forums

Product Support and Product Forums Registration


Subject: Filter by State name or abreviation in User Search Box
Prev Next
You are not authorized to post a reply.

Author Messages
ECFUser is Offline

DNN Active Member
DNN Active Member
Posts:41
Send This Member a Private Message

09/12/2009 11:06 AM  

I would like to be able to search by either full state name or state abbreviation in the User Search box. Since both of those use the same field name (cboState), it only accepts the full state name. Is there some way to get it to accept the abbreviation? You are not given the option to choose name/value on User Search.

Thanks,
Ed

Buck AndersonUser is Offline

DNN Master
DNN Master
Posts:657

Send This Member a Private Message

09/14/2009 10:09 AM  

Ed,

In the current XMod,  in filtering options, you can assign either the name or value to the cboState filter option.

If you check the box next to the filter option, use value, it accepts the passed querystring parameter for the value of the field (State abbreviation).

Since the State values are directly returned from the DNN Lists table, the name is the State name and the value is the abbreviation.

In the builtin Xmod search, only the name is returned for the search results.

In the advanced search for BD, the select statement for the return of State would have to be modified to return the state value (abbreviation)

It is important if you customize these options that you end up with the correct matching pair.

If you are passing the State value and you have the Filtering options set to the State name, no data would be returned.

Buck


Buck Anderson - DNN Professor

DNNprofessor.com


http://twitter.com/DNNprofessor


DotNetNuke - XMod Training Coach and XMod MVP


ECFUser is Offline

DNN Active Member
DNN Active Member
Posts:41
Send This Member a Private Message

09/16/2009 11:38 AM  

If I use the BD Advanced Search there would be no need to change anything as values are picked from a drop-down list. That works fine, I was just looking for possible alternatives to using that form.

Thanks,
Ed

You are not authorized to post a reply.
Forums > Product Forums > Business Directory > Filter by State name or abreviation in User Search Box



ActiveForums 3.7

Copyright 2004 - 2012 by Jive Media Group LLC. All Rights Reserved.  | Terms of Use | Privacy Statement | Email White Listing | Site Map