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 ExtensionsOther Extension...Other Extension...Get tabs accessible to user from APIGet tabs accessible to user from API
Previous
 
Next
New Post
6/29/2015 12:04 PM
 

I'm creating an API to access content from DNN externally based on the DnnApiController. One of the endpoints is supposed to return all the pages that the user has access to. The list of pages is populated with DotNetNuke.Entities.Tabs.TabController.GetPortalTabs(PortalSettings.PortalId, -1, true, string.Empty, true, false, true, true, false)

This works fine when the request originates from a browser or Postman client, but when the callers is a standalone application (in this case a a test WPF application) the results are wrong.

When called from a browser/postman, 10 tabs are returned but only 5 when called from WPF.

Any ideas whats going on?

 
New Post
6/30/2015 3:14 PM
 

I would put a breakpoint in your WPF application right at the point of the API call.  Step through it with the debugger from there and make sure the returned data is indeed not matching the browser.  It might be something that is occurring in the WPF code unrelated to the service data...  Possibly a data binding issue?

If that doesn't reveal anything I would be running the api call through Fiddler to see what it returns.  Maybe it will give you some more to go on.

That's all I got..  Good luck.

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsOther Extension...Other Extension...Get tabs accessible to user from APIGet tabs accessible to user from API


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