Questions tagged [pass-data]

252 questions
1
vote
4 answers

How to pass data from parent view to child upon opening?

I want to load data (an array of strings) from the parent view into a set of UITextFields in the child view upon presenting the modalView. I know how to pass from child to parent, and I'm sure it's even easier to go the other way, but I don't know…
Collin Mason
  • 17
  • 1
  • 5
1
vote
1 answer

What is the best way to pass data in a hierarchical structure? Swift

So I am working on an app that has several tableviews that take you to a detailview and that detailview can either take you to a mapview or webview, here is an example of what I mean: Instead of making several detail groups (detail,web,map), I just…
Noah-1
  • 396
  • 1
  • 5
  • 20
1
vote
4 answers

After selecting a TableView Cell, pass the data back to the previous View Controller in Swift

There seems to be a lot of tutorials online for this, but I cant find one that passes the value back from a TableView Controller to the first View Controller. Here's my set up... The first ViewController has a textfield, when the user presses in…
Nick89
  • 2,948
  • 10
  • 31
  • 50
1
vote
0 answers

How To Set Addapted PassData Between Activities?

i am trying to create a dynamic list of buttons and every button create a passed data to another activity that show the relative buttons detile. the code i used is here: for (int i = 0; i < size; i++) { temp = new…
1
vote
0 answers

Swift. Using tabBarController.selectedIndex to switch to another viewcontroller and pass data

I am new to IOS development. I have a TabBarController with 2 tabs. The 1st TabItem is a map with an annotation of one famous place such as Summer Palace in Beijing. When User touches the annotation pin, the annotation view appears with a detailed…
NorthBig
  • 47
  • 1
  • 9
1
vote
1 answer

pass data from parent to popup

Apologies if this seems like a duplicate post... Thomas Warner kindly answeres an earlier post suggesting I use: Popup.aspx?Data1=Piece_of_data&Data2=Piece_of_data Just want to ask, if my code is…
DarkW1nter
  • 2,933
  • 11
  • 67
  • 120
1
vote
1 answer

passing the position from listview to new activity

how can i pass the value or the position of the selected item in listview to a new activity tha will use that value to retrieve data from database in listview (in the new activity) i have code that it works but always pass a null value for the…
1
vote
5 answers

How to pass data to PHP page through AJAX and then display that page in another's DIV?

I have 2 pages with which I am working with: test1.php and test2.php. test1.php contains 2
tags, one named "SubmitDiv" and the other named "DisplayDiv". In SubmitDiv, there is a check box and a submit button. When the check box is checked and…
imprisoned243
  • 39
  • 2
  • 3
  • 8
1
vote
2 answers

Set Bool in custom property from view controller

Allocating a custom class in a vc. Then I set a bool value (either set or . notation). The value never gets to the custom class - always reports NO. Googled and tried many different variations - none work. What else could be wrong with the code…
malaki1974
  • 1,605
  • 3
  • 16
  • 32
1
vote
1 answer

Communication between A ViewController and its View

I created two classes 1UIViewControllerClass and its 1UIViewClass (Which is the View of the ViewController). On my UIViewClass I have two methods, one of them is touchesBegan, which is getting the location of the touched point. The second Methode,…
1
vote
1 answer

how to pass data to view using $this_render->view("pagename",$renderData) in codeigniter?

Here is my code. public function usertype($renderData='') { $this->grocery_crud->set_table('usertype'); $output = $this->grocery_crud->render(); $this->_example_output($output,$renderData=''); } function…
Hriju
  • 728
  • 1
  • 16
  • 27
1
vote
3 answers

Pass the value from 1st activity to 2nd activity in android

As am getting article title on textview on first activity.how can i pass these textview to next activity... I have used below code: for ( j = 0; j
user2098063
  • 85
  • 1
  • 1
  • 7
1
vote
2 answers

passing data between view controllers in storyboards

there are two view controllers with an embedded navigation controller. the 1st one has a table view. the second one, named "AfterTableViewController" has a label in it. I wanna be able to set the label, in the prepareForSegue method which is in the…
Milad
  • 1,239
  • 3
  • 19
  • 37
0
votes
1 answer

Passing data in ASP.NET

I'm coding an application with JQuery Mobile and ASP.NET. I have a page with this code:
Novacane
  • 119
  • 3
  • 14
0
votes
1 answer

Android - Send int index from a ListView to multiple activities

Im still new to Android and got a huge problem... I have a ListViewActivity class with a String[] array of shops around me. When the user clicks on any of these, I want the ListViewActivity to send the int index to another activity (InfoActivity).…