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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...The Basic Edit Module PLEASE ADVISE ASAPThe Basic Edit Module PLEASE ADVISE ASAP
Previous
 
Next
New Post
4/10/2007 8:02 AM
 

Perhaps this basic bit of functionality has been revealed and I just cant find the post yet. If so please do forward me in the right direction and forgive my humble inquiry, but I have hit the documentation and the forum search before asking ....

I have finally come upon a need to allow users ( specific security role ) to edit the content in a detail module of products in an e-commerce like application.   I need to identify the Key field they have selected to get to this "Item Detail" module, as they are now about to select the edit feature and change the product description.  I have recently mastered the Settings module as it does its TabModuleSettings saves. I am now in need of identifying the selected Item that brought the user to this item details page and make it available to the edit module such that I can now return the appropriate fields for their manipulation. I'll just run a query to return the editable fields based on this ItemId.  But I am not sure how to attack the problem of OBTAINING (Passing) [perhaps correctly storing and retrieving] the itemId from the View module to the Edit module. 

We know hoe the Settings module saves your settings and te view module reads them in from session,  so will that work fom View to edit module ??

Will I have the settings value available in the Edit module if I save it in the view module ... Yes I'm trying it now but perhaps theres a standard I can reference that I haven't seen yet.

Any assistance is greatly appreciated.

 

Respectfully,

With God's Will,

 C. Taylor Milwaukee

 
New Post
4/10/2007 1:33 PM
 

The usual practice is to pass the ItemId in the querystring when redirecting from the view control to the edit control. The ItemId key name and its corresponding value can be added as additional parameters in one of several forms of the methods EditUrl or NavigateUrl as appropriate.  This is particularly convenient when setting up the NavigateUrl properties in hyperlink fields or controls databound  to each row in a DataGrid, DataList, GridView, etc.  Another way is to store the ItemId in the DataKeys list of one of these databound controls then when a command button is clicked upon handle its event by building a URL with the EditUrl or NavigateUrl methods so that it adds the ItemId=value to the querystring as an additional parameter then using Response.Redirect to redirect to this URL.

Take a look at the code (both in the .ascx and .vb files) of nearly any core module for good examples of this process. and also take a look at the various forms of NavigateUrl and EditUrl methods. Michael Washington also has some good tutorials on this.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
4/10/2007 1:51 PM
 

Thanks We can consider this closed.

As I mentioned !!!   I was basing my theory on my use of the Settings module.

I have developed a working solution based upon ASP.NET session varaibles.

My Search led me to some posts that suggested personalization.  Alas my initial thoughts were confirmed. Even for a multi user situation the Session variable works fine.  Your info on passing stuff in the querystring is interesting and I will try it some time but I inherently dont like it.  Your referring to DNN's ItemId and we bypass the default DNN dataaccess stuff.  My ItemId is a real ID from an item in one of our many customers databases per the "item" the user selected.      Thanks again I'll need to peek at this when I want to anvigate to pages in the future based upon Page name not the tabId....

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...The Basic Edit Module PLEASE ADVISE ASAPThe Basic Edit Module PLEASE ADVISE ASAP


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