Forum


HomeHomePremiumPremiumDevelopmentDevelopmentHttpResponseMessage Parameters Aren't PassingHttpResponseMessage Parameters Aren't Passing
Previous
 
Next
New Post
7/2/2015 8:00 AM
 

Hello,

I've got a working api call that I use on development database. It pulls data just fine with the parameter I hard coded in (SomeData is actually a PatientKey):

I'm trying to get my 'request' variable to query data but it ALWAYS returns null... Here's the dnnServiceClient that I'm working with from the example module:

It's pretty much the same as the AngularModule with some slight edits. And here's my function: 

In the browser I can see that my patientkey is loading and is passed to the service properly however my code behind won't pick it up... Again I know my repository and model works as my hard coded variable in the controller works just fine. Why can't my service pass data to the controller?

Thanks.

 
New Post
7/2/2015 9:56 AM
 

Well then...

So after hours and hours of research and being led on a wild goose chase I took a look again and tried using the post method instead of get. I did a quick search of what the difference between the two was and that was my problem.

Just changing the type of call I used caused everything to work beautifully. Now what I want to do is pass an object from my controller to the repository and create a query string based on the type of data the user provides. For instance they can choose from any of 10+ parameters in order to narrow down the search. I need to be able to query the server for just the parameters that were given and return any results. Thank goodness it's a holiday tomorrow. Any tips are appreciated.

Cheers.

 
Previous
 
Next
HomeHomePremiumPremiumDevelopmentDevelopmentHttpResponseMessage Parameters Aren't PassingHttpResponseMessage Parameters Aren't Passing



Try FREE
30 days money back guaranteed