-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passing a value to a view #3
Comments
I would do the same thing we do just below that for the transect:
|
I can get the value over to modal.js with: var args = arguments[0]; but is there any way to call args.siteID from modal.xml? I'm just using siteID as example, would probably want to display parkName. |
I don't think so because parkName is only visible in the loop inside the index.js. This would work in modal.js: //retrieve siteID //Open Database //Query - Retrieve existing sites from database var parkName = row.fieldByName('park_name'); |
Or... |
Figured it out. var args = arguments[0]; var label = Ti.UI.createLabel({ text: args.parkName}); $.modalWin.add(label); |
I know this is closed but, I think I may have misinterpreted the question. |
That's perfect, thanks Blair. |
The parkName label in modal.xml should be based on the row clicked, but I'm having trouble passing that information over.
The text was updated successfully, but these errors were encountered: