Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...DNN 7 Member Directory Custom Sort FieldsDNN 7 Member Directory Custom Sort Fields
Previous
 
Next
New Post
5/21/2013 2:03 AM
 

Hi, Does any one know if it is possible to add a custom sort field to the modules settings?

 Currently you can only sort by User ID, Last Name, Display Name,  Created Date.

I have created a Profile Field called "Profile Order" and would like to sort by the alpha value in that field.


DotNetNuke 5.06.02


"Growing small businesses through green, affordable tailored Information Technology Solutions"
http://www.candco.ca
 
New Post
5/23/2013 5:39 AM
 
I think this may be something I can help on. I am using an older version of ddn so my way and your way might be a bit different. I cant answer your question but I can tell you a way to make a report that will give you want you are asking. You must be a super user to do it this way also. Also find the real name that yuo named profile order by clicking on users, then manage user profile properties and then copy the name of the field. For my example I am going to assume that it is ProfileOrder.
Fist go to Host.
Now go to Sql
Copy this into your sql box:
CREATE FUNCTION [dbo].[udf_UserProfileField]
(
@PropertyName NVARCHAR(50)
)
RETURNS @ProfileFieldTable TABLE
(
PortalId INT,
UserID INT,
PropertyName NVARCHAR(50),
PropertyValue NVARCHAR(3750)
)
AS BEGIN
INSERT INTO @ProfileFieldTable
SELECT PPD.PortalID,
UP.UserID,
PPD.PropertyName,
UP.PropertyValue
FROM dbo.Users AS U
INNER JOIN dbo.UserProfile AS UP ON U.UserID = UP.UserID
INNER JOIN dbo.ProfilePropertyDefinition AS PPD ON UP.PropertyDefinitionID = PPD.PropertyDefinitionID
WHERE ( PPD.PropertyName = @PropertyName )

RETURN
END

Select run as script and test/save.
next add the reports module to a page.
then click on settings from the drop down list. and click go.
scroll down to the data sorce settings and make sure it is on the dot net nuke data sorce
in the query box enter this:
SELECT
u.UserName,
u.FirstName,
u.LastName,
u.Email,
ProfileOrder.PropertyValue as ProfileOrder
FROM
dbo.udf_UserProfileField('ProfileOrder') AS ProfileOrder left OUTER JOIN dbo.vw_Users AS U on ProfileOrderl.PortalId = U.PortalId AND ProfileOrderl.UserID = U.UserId

Hit test data source and if it comes back good there ya go.
now scroll down to active visualizer and set as grid.
select the check box for allow sorting and press save.
Now you can sort by clicking on the name of the property.
 
New Post
5/23/2013 5:39 AM
 
I think this may be something I can help on. I am using an older version of ddn so my way and your way might be a bit different. I cant answer your question but I can tell you a way to make a report that will give you want you are asking. You must be a super user to do it this way also. Also find the real name that yuo named profile order by clicking on users, then manage user profile properties and then copy the name of the field. For my example I am going to assume that it is ProfileOrder.
Fist go to Host.
Now go to Sql
Copy this into your sql box:
CREATE FUNCTION [dbo].[udf_UserProfileField]
(
@PropertyName NVARCHAR(50)
)
RETURNS @ProfileFieldTable TABLE
(
PortalId INT,
UserID INT,
PropertyName NVARCHAR(50),
PropertyValue NVARCHAR(3750)
)
AS BEGIN
INSERT INTO @ProfileFieldTable
SELECT PPD.PortalID,
UP.UserID,
PPD.PropertyName,
UP.PropertyValue
FROM dbo.Users AS U
INNER JOIN dbo.UserProfile AS UP ON U.UserID = UP.UserID
INNER JOIN dbo.ProfilePropertyDefinition AS PPD ON UP.PropertyDefinitionID = PPD.PropertyDefinitionID
WHERE ( PPD.PropertyName = @PropertyName )

RETURN
END

Select run as script and test/save.
next add the reports module to a page.
then click on settings from the drop down list. and click go.
scroll down to the data sorce settings and make sure it is on the dot net nuke data sorce
in the query box enter this:
SELECT
u.UserName,
u.FirstName,
u.LastName,
u.Email,
ProfileOrder.PropertyValue as ProfileOrder
FROM
dbo.udf_UserProfileField('ProfileOrder') AS ProfileOrder left OUTER JOIN dbo.vw_Users AS U on ProfileOrderl.PortalId = U.PortalId AND ProfileOrderl.UserID = U.UserId

Hit test data source and if it comes back good there ya go.
now scroll down to active visualizer and set as grid.
select the check box for allow sorting and press save.
Now you can sort by clicking on the name of the property.
 
New Post
5/23/2013 5:40 AM
 
I think this may be something I can help on. I am using an older version of ddn so my way and your way might be a bit different. I cant answer your question but I can tell you a way to make a report that will give you want you are asking. You must be a super user to do it this way also. Also find the real name that yuo named profile order by clicking on users, then manage user profile properties and then copy the name of the field. For my example I am going to assume that it is ProfileOrder.
Fist go to Host.
Now go to Sql
Copy this into your sql box:
CREATE FUNCTION [dbo].[udf_UserProfileField]
(
@PropertyName NVARCHAR(50)
)
RETURNS @ProfileFieldTable TABLE
(
PortalId INT,
UserID INT,
PropertyName NVARCHAR(50),
PropertyValue NVARCHAR(3750)
)
AS BEGIN
INSERT INTO @ProfileFieldTable
SELECT PPD.PortalID,
UP.UserID,
PPD.PropertyName,
UP.PropertyValue
FROM dbo.Users AS U
INNER JOIN dbo.UserProfile AS UP ON U.UserID = UP.UserID
INNER JOIN dbo.ProfilePropertyDefinition AS PPD ON UP.PropertyDefinitionID = PPD.PropertyDefinitionID
WHERE ( PPD.PropertyName = @PropertyName )

RETURN
END

Select run as script and test/save.
next add the reports module to a page.
then click on settings from the drop down list. and click go.
scroll down to the data sorce settings and make sure it is on the dot net nuke data sorce
in the query box enter this:
SELECT
u.UserName,
u.FirstName,
u.LastName,
u.Email,
ProfileOrder.PropertyValue as ProfileOrder
FROM
dbo.udf_UserProfileField('ProfileOrder') AS ProfileOrder left OUTER JOIN dbo.vw_Users AS U on ProfileOrderl.PortalId = U.PortalId AND ProfileOrderl.UserID = U.UserId

Hit test data source and if it comes back good there ya go.
now scroll down to active visualizer and set as grid.
select the check box for allow sorting and press save.
Now you can sort by clicking on the name of the property.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...DNN 7 Member Directory Custom Sort FieldsDNN 7 Member Directory Custom Sort Fields


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out