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

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Pass parameters from view to edit user controlPass parameters from view to edit user control
Previous
 
Next
New Post
2/8/2009 11:21 PM
 

I have a view control in my module that pulls an ID from the query string to determine which table row to display.  This works fine.  But I want the ability to edit that record with an edit control.  I've implemented IActionable to display the edit control.  But in the edit control, the query string ID is null.  How do I pass data (in this case, the row ID) from the view control to the edit control?

Thanks for your help!  I can't wait for that module development book for a newbie like me!

AldenG

 
New Post
2/9/2009 2:05 AM
 

It kinda sounds like you are going about it in an odd way. I'll explain the answer to your question, then I'll explain a different way to do it.

In the IActionable, where you specify the NavigateURL, there is a version of the NavigateURL function that allows you to specify additional parameters in a string array. This simply puts those additional parameters back into the query string, so it would become available to the edit control.

I think a better, and more standard DNN way to do this would be to create a "edit" hyperlink, like most of the modules (check out link for a good example) use. This "pencil" icon is visible to those that have edit rights (IsEditable) and contains the ID of the item. Basically using the above method, but for a 'link' on the same row as your item.

The default behavior of the "Edit" in the Action Menu is to add a new item. I'm not saying that what you are trying to do is wrong, it just deviates from what I feel is a standard interaction. In your case, a single record, it might be perfectly suited to the situation to use the Action Menu, but if that same control ever displays multiple records, the Action menu link will be non-functional.

Check out the Links module for an excellent example of the "pencil" edit icon. I've been using that example as the basis of a couple modules for 3 years now. :)

 
New Post
2/9/2009 3:01 PM
 

I've decided to rework my controls to take the approach you suggest.  It's definitely a lot cleaner in my application.  And I reviewed the links module as you suggested.  Great example and this was really helpful.  Thanks a lot!

 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Pass parameters from view to edit user controlPass parameters from view to edit user control


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