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...Building ExtensionsBuilding ExtensionsModulesModulesCustomizing Vendors....Customizing Vendors....
Previous
 
Next
New Post
3/23/2010 4:40 PM
 

Hello all,

I want to customize the standard vendors module (I have already removed the banners, authorized, and that kind of stuff) to be able to have the end user sort the results based on what they are interested in.

I have a list of hotels, motels, resorts and bed and breakfasts. I have added those into the sql categories. I want people to be able to sort through them by clicking the on bed and breakfasts, or resorts, or hotels, or 'all'. My problem is changing the line:

grdVendors.DataSource = objVendors.GetVendors(Portal, True, CurrentPage - 1, PageSize, TotalRecords)

If i change this to reflect the filter, ie add in a parameter variable to narrow it down to the requested item, and modify the stored procedure in SQL, i get this error:

Error    31    Overload resolution failed because no accessible 'GetVendors' accepts this number of arguments. 

I know it has something to do with dll files and the references, but I can not figure out how to either add new one or modify 'GetVendors'

I have been banging my head against a wall for too long for this. If there is an easier way to do this, or there is a free module (I am a cheapskate) out there, I am open to suggestion. 

Some one please help!
 

Thanks,

bardman6

 

 
New Post
3/23/2010 4:52 PM
 

Honestly I would look at either the Repository module, the Property Agent module from http://www.Ventrian.com or some other module rather than hacking up the Vendors module ;)

If you really want to make Vendors work you'll need to find the code for GetVendors which is likely found in a file called VendorController (random guess) and also the data provider method for GetVendors as well, which may be in DataProvider and a file called SqlDataProvider. 

It'll require changing/adding that new signature in more than one place to do it properly.


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
3/24/2010 8:35 AM
 

Thank Chris, I have downloaded the repository one. Perhaps that will work. Any way I did find getvendors in the sql data providor and updated that as needed, however, it was still giving me the error. The file called VendorController is not editable as far as I can tell in MSVS 2008.

I will give the repository a try and see if that does what I need to do anyway.

Thanks again!

 
New Post
3/24/2010 12:24 PM
 
VendorController should be editable, what happens when you try to open it? Is it read only for some reason? Though from looking around it looks like that might be part of the DotNetNuke.Library project which would require you to open up a different project and recompile the DLL, that may likely be the issue.

Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
3/25/2010 10:49 AM
 
Does the repository not work with 5.1? After installation, "repository" does not show up in the list of modules, although repository dashboard does. When I add it, it gives me errors. Stored procedures are not added to the database. Anyway I know what I want to do with the vendors, it is just the access to that getvendors that i am having problems with. there is no actual file called 'VendorController' to open.The only place i can find it is in the class view references and when I click on that, the object browser opens up and it just tells me about the class but doesn't show the content, let alone let me edit it.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesCustomizing Vendors....Customizing Vendors....


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