Questions tagged [pass-data]

252 questions
2
votes
0 answers

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 inputs from B, debounces them, and sends them to A.…
T_Poda
  • 51
  • 1
  • 3
2
votes
1 answer

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 RouteHitoryViewController. The RouteHistoryViewController has a…
user5412643
2
votes
4 answers

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 an integer, and then pass String.valueOf(integer)…
freddiev4
  • 2,501
  • 2
  • 26
  • 46
2
votes
3 answers

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 especially with Intent and startActivityForResult?…
user1319668
  • 329
  • 1
  • 4
  • 16
2
votes
1 answer

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 fragment, load the fragment (This I had made with this…
makgyverzx
  • 39
  • 6
2
votes
1 answer

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 in this function? Example: DoStuff.js: function…
user2700923
2
votes
2 answers

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 want to load the data that the user has keyed back…
Cheng
  • 279
  • 3
  • 13
2
votes
4 answers

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) { // TODO Auto-generated method stub …
1
vote
1 answer

How can I pass the values of a Swift struct instance between view controllers using a UIStoryboardSegue and prepare(for segue:)?

Swift question - I want to pass the values of an instance of a struct from one view controller to another. In the first view controller I created an instance of the struct, assigned values to the various properties, and now, on the click of a…
1
vote
1 answer

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 automatically depending on which city I choose. ` class Bus…
1
vote
2 answers

Check if activity is active, and if active pass data from service to activity?

I have a service called EventReceivingSevice which will get new data in onDataRefresh(JSONObject data) function. private void onNewData(JSONData data) { boolean isActive=isActivityActive(); //Check if activity is active if(isACtive) …
1
vote
1 answer

Flutter : How to pass asset path to a new Screen class

I need to pass the asset path which is a text file to a new Screen. I want to pass that asset path from a ListTile by using OnTap() and pass that path to a new screen class. Asset path: 'lib/asset/textfile/cs_one.txt' My ListTile: ListTile( …
Emranul_Rakib
  • 101
  • 2
  • 7
1
vote
0 answers

Pass data witn @input decorator using ag-Grid

I'm trying to pass data from my ag-Grid to a form in a new component by clicking on the row. I could get the data from the row by clicking on the cell via onCellClicked and now i don't know how to get it in my form component and display it. I…
Abaoub
  • 71
  • 10
1
vote
2 answers

I am trying to pass data (selectedItem) of collectionView to imageViewController. I am not getting the counter incremented to swipe up the next image

I am trying to pass data (selectedItem) of collectionView to imageViewController. I am not getting the counter incremented to swipe up the next image. When I click the cell, I get the first image(selected image) correctly. But when I swipe, the…
NelsonDharu
  • 63
  • 1
  • 7
1
vote
1 answer

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 Child Component model data changes, the Parent…
1 2
3
16 17