Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Ads  
 


  Sponsors  

Meet Our Sponsors

Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Controlling ModuleActions by business logic
Previous Previous
 
Next Next
New Post 1/17/2006 1:32 AM
User is offline Espen Albrektsen
14 posts
10th Ranked


Controlling ModuleActions by business logic 

I want to control the visibility of the AddContent action by custom business logic. The problem is that the "business" information is not available yet when the skin calls my ModuleActions() method.

How can I control the ModuleAction visibility in Module_Load event?

 
New Post 1/17/2006 8:35 AM
User is offline Robert Lyda
82 posts
10th Ranked


Re: Controlling ModuleActions by business logic 
Can you associate the ModuleActions with Roles?  That's how I think DNN is really setup to handle who gets what actions...
 
New Post 1/17/2006 12:35 PM
User is offline Charles Nurse
2899 posts
5th Ranked










Re: Controlling ModuleActions by business logic 
 espenalb wrote

How can I control the ModuleAction visibility in Module_Load event?



Any reason why you can't use Module_Init?

Charles Nurse
DotNetNuke Trustee,
Senior Architect, DotNetNuke Coporation
MVP (ASP.NET) and
ASPInsiders Member
View my profile on LinkedIn
See my Blog for Articles on .NET, DNN and Module Development

View my Blog
 
New Post 1/17/2006 2:34 PM
User is offline Espen Albrektsen
14 posts
10th Ranked


Re: Controlling ModuleActions by business logic 

The businnes logic information is not available at module_init.

This is the scenario:

We have two modules on the page - one selector let us call it M1 and one viewer, call it M2

The user selects something in M1, triggering a postback. M1_init and M2_Init are called - but the new selection is still not available.

Now M1 and M2 retrireves the Action collection, and finally M1_Load is called updating the Session, making the new values available to M2.

Question: Is the selected value property of a dropdownlist available at M1_Init? Because then we could update the session in Init...

 
New Post 1/18/2006 1:35 AM
User is offline Vicenç Masanas
1408 posts
www.disgrafic.com
6th Ranked








Re: Controlling ModuleActions by business logic 
Business logic information is available when you get it.
If you need it on the Module Actions property just make a call to whatever method you need and get the information. Then you can code visibility to your action items based on whatever information you got. I've used this a couple of times, no magic in it.

Disgrafic.com
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Controlling ModuleActions by business logic
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


ADefWebserver.com
DotNetNuke® Module Development Help Website
ADefWebserver.com
Get Smarter Mail, SmarterStats, SmarterTickets
Windows mail server, web log analytics, and customer service management software - Free Editions Available!
www.smartertools.com
DotNetNuke Modules, Skins, Training and Consulting
If you want DotNetNuke done right then look no further. Developed Solutions provides module development, skin design, user and developer training and consulting. Based in Adelaide, Australia, we offer our services worldwide.
www.developedsolutions.com.au

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP