Page 1 of 1
How do I add URLs from my database to a Button on my UI with the List Service
Posted: Wed Nov 06, 2013 7:46 pm
by Calvin Cox
How do I add URLs from my database to a button I created in my UI. I have multiple rows with multiple URLs in my collection. I'm currently listing all the information from my collection and want to add the URL to a button for each row of data using the list service.
How do I add URLs from my database to a Button on my UI with the List Service
Posted: Wed Nov 06, 2013 8:33 pm
by Kateryna Grynko
Hi Calvin,
Do you want to use the same service for several buttons and collections?
How do I add URLs from my database to a Button on my UI with the List Service
Posted: Wed Nov 06, 2013 8:48 pm
by Calvin Cox
Hi Katya,
I'm very new to building mobile apps. apperyio has made it easier for me so far. With that said im not sure what would be the best route to take to solve my problem.
If using a different services to solve my problem is easier, I'm willing to do it. Please advise on which route would be most effective in solving my problem... note that I'm only using one collection and the URL is one column in the collection.
How do I add URLs from my database to a Button on my UI with the List Service
Posted: Wed Nov 06, 2013 9:18 pm
by Calvin Cox
Katya, Here is a pic of the website button I'd like add the URLs to:
How do I add URLs from my database to a Button on my UI with the List Service
Posted: Thu Nov 07, 2013 9:16 am
by Maryna Brodina
Hello! It's easy to navigate to link (without Button using just Link). To do that you have to map to url Link property. If you still need button follow these steps:
1) As we can see from image the button is placed in some container, most likely in Grid cell. To the same cell add Label (make in invisible), give it urlLabel name for example.
2) On button click run the following code:
prevar $this = $(this);
window.open(Appery("urlLabel", $this.closest("td")).text());/pre3) In service mapping map URL in response to urlLabel-text
How do I add URLs from my database to a Button on my UI with the List Service
Posted: Thu Nov 07, 2013 7:45 pm
by Calvin Cox
Hi Maryna/ Katya,
That worked !!!
Thank you so much 