AHilberink Active Member Licensed User Longtime User Jul 6, 2014 #1 Hi, I have two panels, loading the same layout. This layout contains an EditText. Is there a way to get the value of this EditText of the other panel as the current active one? I am not very familiar with panels and loaded layouts and their content. For your information: I use this with AHViewPager. Best regards, André
Hi, I have two panels, loading the same layout. This layout contains an EditText. Is there a way to get the value of this EditText of the other panel as the current active one? I am not very familiar with panels and loaded layouts and their content. For your information: I use this with AHViewPager. Best regards, André
Erel B4X founder Staff member Licensed User Longtime User Jul 6, 2014 #2 The global variable with the view name will hold a reference to the view from the last loaded layout. However you can also get the views by using Panel1.GetView(<index of view>). Upvote 0
The global variable with the view name will hold a reference to the view from the last loaded layout. However you can also get the views by using Panel1.GetView(<index of view>).
AHilberink Active Member Licensed User Longtime User Jul 6, 2014 #3 Hi Erel, Thanks for your reply. I am not familiar to get a value with View either. Sorry, still as a newbee I learn by studying examples. I don't know how to get the <index of view>. This function will return a View. How can I get the value of a specified field? Best regards, André Upvote 0
Hi Erel, Thanks for your reply. I am not familiar to get a value with View either. Sorry, still as a newbee I learn by studying examples. I don't know how to get the <index of view>. This function will return a View. How can I get the value of a specified field? Best regards, André
klaus Expert Licensed User Longtime User Jul 6, 2014 #4 In he Designer when you look at the list in the left side the order is the index order beginning with 0. If your EditText is on the 4th place the index is 3. B4X: Dim edt As EditText edt = Panel1.GetView(3) Upvote 0
In he Designer when you look at the list in the left side the order is the index order beginning with 0. If your EditText is on the 4th place the index is 3. B4X: Dim edt As EditText edt = Panel1.GetView(3)
AHilberink Active Member Licensed User Longtime User Jul 6, 2014 #5 Hi Klaus, Thanks for your answer. This works fine. I now know how to get the index and the value. Best regards, André Upvote 0
Hi Klaus, Thanks for your answer. This works fine. I now know how to get the index and the value. Best regards, André