Questions tagged [pass-data]

The tag has no usage guidance.

pass-data
Filter by
Sorted by
Tagged with
353 votes
10 answers
248k views

Passing data to StatefulWidget and accessing it in its state in Flutter

I have 2 screens in my Flutter app: a list of records and a screen for creating and editing records. If I pass an object to the second screen that means I am going to edit this and if I pass null it ...
moonvader's user avatar
  • 20.5k
288 votes
8 answers
206k views

Passing Data to a Stateful Widget in Flutter

I'm wondering what the recommended way of passing data to a stateful widget, while creating it, is. The two styles I've seen are: class ServerInfo extends StatefulWidget { Server _server; ...
Mojachiee's user avatar
  • 2,999
212 votes
8 answers
160k views

How to pass data from 2nd activity to 1st activity when pressed back? - android

I've 2 activities, Activity1 and Activity2. In Activity1 I've a Button and TextView. When the button is clicked Activity2 is started. In Activity2 I've an EditText. I want to display the data ...
kumareloaded's user avatar
  • 3,922
57 votes
2 answers
80k views

In Flutter, how do I pass data into a Stateless Widget?

I'm trying to build my first Flutter app, and have run into difficulty with passing data into Stateless Widgets. I have the following classes: class MyApp extends StatelessWidget { @override ...
Sharon's user avatar
  • 3,633
45 votes
5 answers
25k views

Flutter - How to pass user data to all views

I'm new to the flutter world and mobile app development and struggling with how I should pass user data throughout my app. I've tried several things, but none seem great and I'm sure there are best ...
Aaron's user avatar
  • 4,256
32 votes
6 answers
49k views

Gitlab CI/CD Pass artifacts/variables between pipelines

tl;dr How do I pass data, e.g. the $BUILD_VERSION variable, between jobs in different pipelines in Gitlab CI? So (in my case) this: Pipeline 1 on push ect. Pipeline 2 after merge `...
miile7's user avatar
  • 2,667
19 votes
4 answers
21k views

Pass data through navigation back button

I am in this situation: I am passing 4 array from Progress Table to Detail Exercise using prepare for segue and it works fine! The problem begin when I try to pass the data back from the Detail ...
Luca Alberto's user avatar
  • 1,235
16 votes
2 answers
8k views

React Native Pass data between sibling views

I'm developing a simple todo-list app using React Native, my issue is the following: I have a NavigatorIOS at the root of my project, with a component containing a ListView as initial route, and a ...
sweepy_'s user avatar
  • 1,333
13 votes
2 answers
12k views

Pass data between two Apps by url scheme in swift?

There are two test Apps called Sender & Receiver They communicate with each other by Url Scheme. I would like to send a String from Sender to Receiver, is that possible? Detail about the String: ...
HungCLo's user avatar
  • 442
13 votes
4 answers
16k views

how to pass data from activity to running service

I want to send data to the server periodically, I'm using background Service for that, but I want to send when the data got updated, and updated data I'm getting in Activity and the Service is running ...
Tushar Kotecha's user avatar
11 votes
2 answers
21k views

Transfer file to webworker: DataCloneError: The object could not be cloned

I want to transfer a file from a form to a webworker. In chrome i simple can use this code to transfer a FileList-Object: worker.postMessage(files: array_files); But with Firefox i get this error: ...
Kristof Komlossy's user avatar
10 votes
5 answers
16k views

How to pass data between UIViewControllers with protocols/delegates

In the code below I have a ViewController("SenderViewController"), which passes a message to the main ViewController when a button is tapped. What I don't fully understand is how does messageData() ...
fs_tigre's user avatar
  • 11k
5 votes
1 answer
17k views

How to navigate between pages in ionic 4 & 5?

I had a project that I developed with ionic 3. But I took a break and when I started working again with ionic, I saw the navigation system change in the new versions. My project is a simple project. ...
ucnumara's user avatar
  • 155
4 votes
2 answers
7k views

Facebook iFrame application: How to pass data from URL Query String

I have a Facebook application that has a picture gallery. It's build in Flex 4. I want to allow users to link to a specific image. How can that be done? The only way I see this being done is adding ...
Francisc's user avatar
  • 78.9k
4 votes
3 answers
3k views

iOS SWRevealViewController - pass data between controllers

I am using SWRevealViewController to implement a slide menu (from the left side) in my application. Everything is working fine but now I am facing a little problem.I want to pass data from my "main" ...
user3466562's user avatar
4 votes
2 answers
8k views

How to pass data in reactjs using typescript

How to pass object to child component in reactjs using tsx. I'm geting this error when I tried this way. Where I can declare the type? Property 'value' does not exist on type 'IntrinsicAttributes &...
SKL's user avatar
  • 1,313
4 votes
3 answers
9k views

In Angular 8, how to pass dynamic data from an observable to a modal-dialog?

In Angular 8 I want to implement an Angular-Material Modal-Dialog. Upon clicking on a user image, the user data should be displayed in the modal. I am unable to pass the dynamic data of the observable ...
maraxai's user avatar
  • 145
3 votes
4 answers
32k views

Pass array from controller to view - Codeigniter

I tried to print the array in the controller, before passing it to a view and this is the output Array ( [annunci] => Array ( [0] => stdClass Object ( [EmailDatore] => [email protected] [Nome] =&...
Raffaele Izzia's user avatar
3 votes
2 answers
1k views

angularjs Pass data has list data

I want to pass data what has list of child like here { id : 1, title : 'test', childs : [ { id : 1, name: 'name1' }, { id : 2, name: 'name2' }, { id : 3, name: 'name3' }] } I want it ...
Hadi Jahangiri's user avatar
3 votes
2 answers
979 views

How can I pass data from parent to child view?

I have a container view, which uses a storyboard embed segue to load an embedded static table view. The segue ID is 'CONTAINER'. When I run the following code, the prepareForSegue never actually gets ...
Andy A's user avatar
  • 236
2 votes
4 answers
6k views

Pass Data from Fragment to Fragment Through Button Click

In my Android app, I have two fragments. One fragment has an onClickListener and essentially what I am trying to do is create a counter/log of sorts. Every time a button is clicked, I want to update ...
freddiev4's user avatar
  • 2,571
2 votes
3 answers
908 views

Android three activities, pass data from third activity to parent activity

I have 3 activities. Let's say A, B, C. Main activity is A. I'd like to start B from A then start C from B, then close B when C opens. Finally upon closing of C pass data to A. How's this possible ...
user1319668's user avatar
2 votes
2 answers
1k views

Unexpectedly found nil while unwrapping an Optional value when passing data backward

I have learned Swift and Xcode for about 3 weeks and I am doing an Todo App just for practice. But when I was trying to add new item to my todo list the error occurred saying that "Unexpectedly found ...
Bad Son's user avatar
  • 131
2 votes
2 answers
2k views

Angular 7 - Access dynamic property of child from parent component

So I've very recently started with Angular development, and there's something that I'm totally missing. I have a basic app set up with app.component.html as follows: <h1>{{ routeTitle }}</h1&...
maGz's user avatar
  • 797
2 votes
4 answers
1k views

pass the value from activity to next activity in android

I have developed one android application. This is my first activity: public class ViewCartActivity extends Activity { String mGrandTotal; @Override protected void onCreate(Bundle savedInstanceState)...
user1897014's user avatar
2 votes
2 answers
3k views

pass model data between razor pages

I try pass model data between two Razor pages, data is not string or bool or int data that i want pass to second page is a model, i do taht with this way, public class AskLibrarian { public int Id ...
sunny's user avatar
  • 2,699
2 votes
3 answers
4k views

How to pass main and partial views values to the controller when different models are involved?

Original Question: This might be a simple thing to do but I have been looking for it for more than 30 hrs by now and couldn't find any suitable answer that works for me (tried a tons of ways as well). ...
Elsa K.'s user avatar
  • 42
2 votes
3 answers
1k views

Getting data from json once and use it in 3 fragment

I am getting the data from JSON using volley, there is 3 Fragment in Activity which I have to populate these fragments with the data that I have received from JSON in MainActivity. I would like to get ...
Davoud's user avatar
  • 2,726
2 votes
1 answer
1k views

Pass data between two fragments in same activity and update WebView

Hello I'm trying to pass a String value from a fragment to another one. I have a single Activity. The thing that I'm trying to do is when a listview item is pressed send the value to the another ...
makgyverzx's user avatar
2 votes
1 answer
264 views

Can I only load a viewcontroller once?

I made a table view with a city list. When I select a city cell, it will pass the city name and show the city's weather forecast by using segue in storyboard. However, every time it seems it will ...
Penny Chen's user avatar
2 votes
1 answer
1k views

C# MVC No submit pass object between views

I am sorry for my typos.I am working on proof of concept C# ASP.NET MVC application where I need to pass data between two views when there is no post and get. One view launches a modal dialog and I ...
Ziggler's user avatar
  • 3,433
2 votes
1 answer
189 views

Pass Data to another view controller

I have a two view controllers (DatePickerViewController and RouteHistoryViewController). I also have the server response in DatePickerViewController. How can I pass that response to the ...
user avatar
2 votes
1 answer
4k views

Passing javascript variables from one function/file to another

I have a function with lots of variables and very big arrays being defined; this makes the function very large and hard to work with. How can I define the variables/arrays in another file and use them ...
user avatar
2 votes
2 answers
561 views

How to pass data from DetailView to TableView?

I am new to this. I have an application with a Tableview where when I pressed on a cell, it will navigate me to a DetailView. Now the problem is that I have a textField within the Detailview and I ...
Cheng's user avatar
  • 279
2 votes
0 answers
38 views

Pass data between two components in web component

How to pass data between two components in a web component? I can't pass the selectedIndex from the parent select to the child component (converter-input) And then show the desired array according to ...
fatemeh garshasbi's user avatar
2 votes
0 answers
86 views

Pass data in UIPageViewController Swipe

I am currently developping a fantasy football application. This is below a part of my storyboard ; . I am using a container view embedded in a boarding pager (UIPageViewController) wich is used to ...
Aymen BRomdhane's user avatar
2 votes
0 answers
907 views

VHDL: IDE stripping out "unused" ports/nets

I'm using Lattice Diamond 3.6 The issue I'm having is that I have my code set up to take a bunch of inputs from point A, debounce them, and then forward them to and output at B. Then, it also takes ...
T_Poda's user avatar
  • 51
1 vote
2 answers
2k views

Passing data from one TableView to another TableView

I have setup a prepare for segue method and I believe I have successfully sent my data to the second ViewController but I'm unsure how to use the passed data. For Example: When the user taps Protein ...
Nicholas Richardson's user avatar
1 vote
3 answers
519 views

How to pass data to another view

I'm working on a map which have some markers and I want to create an info view which will show an image and some text for each marker. So, when I press the info button, it goes to a info view. I ...
Tárraga's user avatar
  • 461
1 vote
2 answers
1k views

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 ...
malaki1974's user avatar
  • 1,615
1 vote
1 answer
244 views

Fatal error when trying to pass data to another view controller

In order to practice my networking, I built an app with a text field where you can input something. I use the wikipedia API to fetch the definition of that term / name/ expression. My goal is to then ...
LEKYSMA's user avatar
  • 141
1 vote
1 answer
205 views

How to pass the CloudKit records data from "TableView-Controller B" to "View-Controller C"?

I've got records data from my CloudKit and show on TableViewController-B successfully, but how can i pass the CloudKit's records(strings, images) to next ViewController-C?? ps. not ...
TS Denzon's user avatar
1 vote
1 answer
743 views

Error: Found nil while unwrapping an Optional value; While Pass Data to the New Controller [duplicate]

I'm learning swift 2. I'm trying to pass the data of the cell (UITableView) that is tapped to the new View Controller. But I constantly get the error of: "unexpectedly found nil while unwrapping an ...
Wang Nan's user avatar
1 vote
1 answer
4k views

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 ...
user2870902's user avatar
1 vote
5 answers
7k views

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 <DIV> tags, one named "SubmitDiv" and the other named "DisplayDiv". In SubmitDiv, there is a check box ...
imprisoned243's user avatar
1 vote
1 answer
965 views

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 ...
user2738907's user avatar
1 vote
3 answers
629 views

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 <Appscontent.Sub_arraylisttwo.size(); j++) ...
user2098063's user avatar
1 vote
1 answer
28 views

How can I change ID from JSON automatically in setState?

How can I change "1" in busData['data'][1]['directions'] to id passed from another class? I want to make this dynamic. I have 3 cities in previous view and I want to pass it's number ...
kropekHuncho's user avatar
1 vote
1 answer
2k views

Passing Object by Value (not by ref) over event emitter in Angular 8

I have an application, where I have to pass data from child component to parent component. The data is an object. The problem what I am facing is the data is being passed by ref, which means when my ...
k.chinni66's user avatar
1 vote
1 answer
303 views

NativeScript How to pass Data from service to component?

I have a service which make an HttpGet method and I want to pass the object that returns from the server to array in Task component I know it is a better approach to use Promise, but I'm not so ...
Johnny's user avatar
  • 105

1
2 3 4 5 6