Calvin Cox
Posts: 0
Joined: Wed Nov 06, 2013 7:46 pm

How do I add URLs from my database to a Button on my UI with the List Service

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

How do I add URLs from my database to a Button on my UI with the List Service

Hi Calvin,

Do you want to use the same service for several buttons and collections?

Calvin Cox
Posts: 0
Joined: Wed Nov 06, 2013 7:46 pm

How do I add URLs from my database to a Button on my UI with the List Service

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.

Calvin Cox
Posts: 0
Joined: Wed Nov 06, 2013 7:46 pm

How do I add URLs from my database to a Button on my UI with the List Service

Katya, Here is a pic of the website button I'd like add the URLs to:

Image

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

How do I add URLs from my database to a Button on my UI with the List Service

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

Calvin Cox
Posts: 0
Joined: Wed Nov 06, 2013 7:46 pm

How do I add URLs from my database to a Button on my UI with the List Service

Hi Maryna/ Katya,

That worked !!!

Thank you so much :)

Return to “Issues”