Navigate to correct page form list item populated from database?
Hello,
I am creating an app that finds the correct sales representative for a company based on a zip code entered by the user. The user searches for the zip code, and the correct representative is located through performing a query on a database. All of this works fine. The issue is this:
I have a list that is populated with the rep name once it is found. This means there is only one item in the list but changes for different zip codes entered. Each rep has a unique page with rep information. I need to navigate to this page when the list item with the rep's name is selected by the user.
How can I do this? The navigate to page only works when the list item is selected, meaning that since there is only one list item, it just changes when the correct rep is found from the search, clicking on the list item, regardless of the name on it, would only be able to navigate to one page. How can I check which name is on the list item and navigate to its correct page?
Any help is much appreciated.