Izmirov.Yaminovich Member Licensed User Longtime User Jun 27, 2016 #1 Hi, I have a problem with my app development. How do I transfer the data that I have collected in the main layout to the Menu layout. Like I'll collect the data from the first page on the number of fronds and branch and the longitude latitude number. I need the numbers to be at the menu layout when I click Next button. Attachments E-cutter.zip E-cutter.zip 51.9 KB · Views: 396
Hi, I have a problem with my app development. How do I transfer the data that I have collected in the main layout to the Menu layout. Like I'll collect the data from the first page on the number of fronds and branch and the longitude latitude number. I need the numbers to be at the menu layout when I click Next button.
Erel B4X founder Staff member Licensed User Longtime User Jun 27, 2016 #2 Don't confuse layouts with activities. You mean activity here. Use CallSubDelayed instead of StartActivity to show the second activity and pass any data you like. https://www.b4x.com/android/forum/t...etween-activities-and-services.18691/#content Upvote 0
Don't confuse layouts with activities. You mean activity here. Use CallSubDelayed instead of StartActivity to show the second activity and pass any data you like. https://www.b4x.com/android/forum/t...etween-activities-and-services.18691/#content
Izmirov.Yaminovich Member Licensed User Longtime User Jun 27, 2016 #3 Can you provide me any other examples for this? Sorry, I'm really new with these. If the Menu module that I have is just an editing page so that I can save it into a database and the second module is to show the list of files that I have saved. How should I do that? I can make the second module using the ones show in the tutorial however how is the menu module gonna work if I do not have another layout for it? How do I make it if I have two layouts that requires an activity to link together? Last edited: Jun 27, 2016 Upvote 0
Can you provide me any other examples for this? Sorry, I'm really new with these. If the Menu module that I have is just an editing page so that I can save it into a database and the second module is to show the list of files that I have saved. How should I do that? I can make the second module using the ones show in the tutorial however how is the menu module gonna work if I do not have another layout for it? How do I make it if I have two layouts that requires an activity to link together?
Erel B4X founder Staff member Licensed User Longtime User Jun 27, 2016 #4 Start with this tutorial: https://www.b4x.com/android/forum/threads/8416/#content Upvote 0
Izmirov.Yaminovich Member Licensed User Longtime User Jun 27, 2016 #5 I have read that before. But how do I link the labels from a page to another? I think there's a reference code or inheritance code kinda thing? For example, I have a number in label 1 page 1. I want it to be in label 1 page 3. How do I do that? Upvote 0
I have read that before. But how do I link the labels from a page to another? I think there's a reference code or inheritance code kinda thing? For example, I have a number in label 1 page 1. I want it to be in label 1 page 3. How do I do that?
Erel B4X founder Staff member Licensed User Longtime User Jun 27, 2016 #6 You cannot access UI elements of a different activity. You have two options: 1. Store the important values as public process global variables. 2. (better) Use CallSubDelayed to start the second activity and pass any data you like. Upvote 0
You cannot access UI elements of a different activity. You have two options: 1. Store the important values as public process global variables. 2. (better) Use CallSubDelayed to start the second activity and pass any data you like.
Izmirov.Yaminovich Member Licensed User Longtime User Jun 27, 2016 #7 Code: Sub Button5_Click CallSubDelayed2(Menu, "Edit", "Data") End Sub That's what I put in my button key. The other layout did came out. But how do I pass my data from my first page to the other? I've tried Main.Label1.text = Menu.Label2.Text. Doesn't seems like it's working as there's an error for it. Upvote 0
Code: Sub Button5_Click CallSubDelayed2(Menu, "Edit", "Data") End Sub That's what I put in my button key. The other layout did came out. But how do I pass my data from my first page to the other? I've tried Main.Label1.text = Menu.Label2.Text. Doesn't seems like it's working as there's an error for it.
Izmirov.Yaminovich Member Licensed User Longtime User Jun 27, 2016 #8 The main problem is what number I have in the label 1 page 1 are not showing in the edittext label in page 3 Upvote 0
The main problem is what number I have in the label 1 page 1 are not showing in the edittext label in page 3
Izmirov.Yaminovich Member Licensed User Longtime User Jun 27, 2016 #9 Oops....figured out how to do it. Thanks.... Upvote 0