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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0UserRoles..EffectiveDate and timestampUserRoles..EffectiveDate and timestamp
Previous
 
Next
New Post
3/23/2007 5:54 PM
 

I've run across an odd item. Apparently when Catalook Store timestamps the effectivedate field in DNN’s core table, UserRoles, DNN doesn't like the time portion.

The result is that a user purchases a subscription via Catalook Store and gets a role assigned to them. It all looks good in DNN and in the tables, but the user cannot access the role-secured areas.

I can go to the field and delete the time, leaving only the date and the user will have access to the areas. If I leave as is, they don't. Adding a time to the date will not result in user losing access either. But they won't have it until i delete the time portion.

Adding a user manually via DNN with an effecitve date only adds calendar date, e.g., 3/23/07, I suppose because that is the variable from the form.

I was told that there are known issues with roles in DNN 4.4.1, but I've not found any reference.


Is there a way that I can do some table-level solution that reformats the data to exclude the time?
For example, can I add something in the formula field to the table properties or even add some trigger? It’s sql 2000.

Thx,
Tj

 
New Post
3/24/2007 9:10 AM
 
Update: Since I can manually delete the time via ent. mgr, effectively zeroing out the time, I had the idea that I could put a trigger on that table to do that. I'm not a sql guru by any stretch, but I got it working great last night.

However, when I tested it, the role (student in this case) still couldn't view the pages. I could update it via DNN and it would work. But not via the trigger.

I heard back from Susanne at Catalook who reported that it worked w/DNN 4.4.1 and Catalook 5.2, which isn't out just yet. She did attempt to email me the pa, but Exchange Defender destroyed the zips and she was gone for the weekend by the time I realized it.

So now I'm wondering what, if anything, does DNN do differently upon insert, or update, to that table. I looked at the sproc for adding user roles and it didn't reveal anything out of the ordinary. And in looking at the dependencies, it doesn't appear that I would need to perform an action on another table.

It's a real bummer as I need to have these roles assigned to customers who purchase a certain product.

Any ideas?


 
New Post
3/24/2007 9:47 AM
 
This seems like a Catalook issue. What do they say?


Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
3/24/2007 9:55 AM
 
Here's waht I ended up doing. I went back to a table trigger, but instead of:
CREATE TRIGGER [ZeroUserRolesTime] ON [dbo].[UserRoles]
FOR INSERT, UPDATE, DELETE
AS
Update UserRoles
Set UserRoles.EffectiveDate = Cast (Floor (Cast(effectivedate as float)) as datetime)
    from userroles where effectivedate is not null

I did a trigger with:
Update UserRoles
Set EffectiveDate = Null
where RoleID=3

and it works fine. Hopefully, either the next version of Catalook or DNN will resolve it.
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0UserRoles..EffectiveDate and timestampUserRoles..EffectiveDate and timestamp


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