Questions tagged [pass-data]
252 questions
0
votes
0 answers
How parent class get all children properties data using decorator in typescript?
My purpose: Children class can use function of Parent abstract class without pass any explicit data to the parent. And decorator can get the value of children properties class.
Code example:
abstract class Parent{
constructor(){}
calc(){
a =…

Chris H
- 271
- 1
- 6
- 19
0
votes
0 answers
Passing UIImage data to another View Controller using Delegate
[Update]
My way to passing UIImage was wrong. It is impossible because I would never know the instance of view controller which I have to pass an UIImage data.
Instead of Using protocol, I share UIImage array using AppDelegate.swift. It worked…
0
votes
0 answers
On drag and Drop, pass draggable object ID and drop target ID to a text field after drop event... Using .JS
Creating a drag and drop function for an interface where if the user drags an object to a square, the id of the draggable object and the id of the drop target will appear in a text field.
for example, if I drag and drop box A to box B, the text…

JayCee
- 11
- 4
0
votes
1 answer
Swift - Accessing implicitly unwrapped variable gives a nil error
I'm following a tutorial on CoreData and I've been following it exactly, yet when they run the app, everything works and saves correctly, yet I get a nil error. The tutorial is a few years old, so I'm not sure if something has been udpated in the…

BenG94
- 23
- 5
0
votes
2 answers
How to send back data using Closures in Swift iOS?
I'm following this tutorial to send data back using Closures.
https://betterprogramming.pub/5-ways-to-pass-data-between-view-controllers-18acb467f5ec
in this tutorial point no 4 that is "Closures". I have two VC's one for selecting pet (FormsVC) and…

SwiftNewbie
- 285
- 1
- 9
0
votes
1 answer
Passing Data Trough Widgets in Flutter
I want to transfer passcontroller data from password widget to passwordrep widget to compare them in the passwordrep Widget but it doesn't transfer the text that I input.I don't know if it's the problem because of the variables or the Widget type.…

Kale
- 11
- 3
0
votes
1 answer
How to pass data between 2 Screen and not use navigation in react native
I have 2 screens and I want to pass data from first screen to second screen without using navigation, because when using navigation it is required to go to next screen, I only want when I click a button from the first screen then the data will be…

Huy Ngô
- 39
- 4
0
votes
0 answers
Pass data to another page with shared preferences from json model in Flutter
I am trying to save a favourite list of articles in my news app in Flutter by using shared preferences, I'd need to pass data article from JSON model into the favourite article page once the article is bookmarked.
Once I save the article I got this…

Pimpi Rimpà
- 75
- 1
- 8
0
votes
1 answer
Moving Data from Parent View to ViewModel to Child View
I am having trouble moving data between my views and my viewModel. I am working on an app for cars and need to be able to toggle the same views between the 4 corners of the car.
I did this with an enum:
enum TestCorners: String {
case LF
…

bb4
- 15
- 3
0
votes
0 answers
how pass data from kernel space to user space - copy_to_user()
im trying to write module linux that monitor all system calls, and send system call log (data struct) to my program in user space. information such as who PID call syscall, what arguments passed and etc.
i trying to write this feature by IOCTL,…

LINux
- 11
- 1
0
votes
1 answer
How I can pass data to Worker Service in ( .Net core 6) from Web API .Net core 5
I am writing a worker service in Net core 6 and I want to call the worker service from API and pass sone data to worker service.
My Worker service code is as below:
``
IHost host = Host.CreateDefaultBuilder(args)
.UseWindowsService(options =>
…

Ajay
- 3
- 1
0
votes
2 answers
how to pass multiple data to another screen flutter
I already have a method to pass data. It can only pass one argument, but I want it to pass at least two arguments. How can I do that?
screen1
GestureDetector(
onTap: () => Navigator.of(context).push(PageTransition(settings: RouteSettings(
…

It'sPhil
- 61
- 1
- 2
- 11
0
votes
1 answer
VUE3 pass data between files
In Home.vue I get data from db.json and store it into jobs: [] array.
export default {
name: 'Home',
data() {
return {
jobs: [],
}
},
components: {
},
mounted() {
fetch("http://localhost:3000/jobs")
.then(res…

kevx
- 79
- 9
0
votes
0 answers
Pass dateTime to Stored Procedure in ASP.Net Core
'public void OnPost()
{
DateTime dt = DateTime.Parse("2022-10-22");
execProc(newDate.Name, newDate.Age, dt);
}
public void execProc(string name,int age,DateTime birthDate)
…
0
votes
1 answer
how to pass data to a Tailwind modal using Laravel
i have this code in tailwind
@foreach($studenti as $student)
{{$student->name}}
and this is the Main modal