Page 1 of 2

Put the request parameter in the url of an xml file.

Posted: Sun Oct 20, 2013 12:24 pm
by Andlen Go

I have created an xml service binded on page load, I followed the tutorial on Building a clickable list app with HTML5 Local Storage.

But in My case I have created an xml file from my Drupal website.
I am able to test successfully the xml file, however I dont know what to put on in the request parameter to only display content that matches a specific id from my xml file.

When I click on the list component, it saves the id in the local storage. I want this id to be affixed to the xml url as parameter so I can only get the data of the specific node?

I am not an expert on this, could you help me solve this or find better solutions?
Thanks


Put the request parameter in the url of an xml file.

Posted: Sun Oct 20, 2013 12:45 pm
by Andlen Go

I already found the answer, just need a thorough search
http://docs.appery.io/documentation/r...
Parameters in the URL (dynamic URL)

Thanks anyway


Put the request parameter in the url of an xml file.

Posted: Sun Oct 20, 2013 12:48 pm
by Alena Prykhodko

Thanks for update.


Put the request parameter in the url of an xml file.

Posted: Sun Oct 20, 2013 1:19 pm
by Andlen Go

Hi Alena,

I got another issue, I have followed the tutorial correctly,
I haves tested the request parameter from the srvice page and when I type the node id it returns the correct data. I checked my request and response mapping and they are correct. Also Im sure that nid is stored in the local database. howeevr when I test the app, its not loading the data, it says, undefined., any suggestion where should I check further?


Put the request parameter in the url of an xml file.

Posted: Sun Oct 20, 2013 1:38 pm
by Alena Prykhodko

Please post a screen shot of 'undefined' error.


Put the request parameter in the url of an xml file.

Posted: Sun Oct 20, 2013 1:50 pm
by Andlen Go

Undefined error
Image
Tested the service successfully
Image
Mapped the data correctly
Image
Events setup correctly.
Image

Please help


Put the request parameter in the url of an xml file.

Posted: Sun Oct 20, 2013 2:01 pm
by Alena Prykhodko

Put the request parameter in the url of an xml file.

Posted: Sun Oct 20, 2013 2:31 pm
by Andlen Go

I did, and the rest service is working fine.
THe problem is the data are not tranferring to the assigned fields.
Can you please take a look in it to check.
I need the application to complete very soon.
Thanks


Put the request parameter in the url of an xml file.

Posted: Sun Oct 20, 2013 2:35 pm
by Igor

Could you share app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and tell us it name.


Put the request parameter in the url of an xml file.

Posted: Mon Oct 21, 2013 1:11 am
by Andlen Go

Hi Igor,

Thank you for the interest in taking a look at my app
Its name is:

Marketing App

I appreciate your assistance. Hope to hear from you soon
Thanks