giggetto71 Active Member Licensed User Longtime User Nov 11, 2022 #1 Hi, I am trying to use the beutiful @klaus xChart view (https://www.b4x.com/android/forum/threads/b4x-xui-xchart-class-and-b4xlib.91830/ ) within a CustomListView. so far so good. Now I would like to "point" to a specific CLV item xchart to update it with coming values. The method I use in general to identify the objects within a CLV is to use the below code B4X: Dim TempLbl As Label, v As B4XView v=CLV1.GetPanel(CLV1ItemIndex).GetView(0).GetView(panel1index).GetView(PanelDashTextIndex).GetView(DashScrollText1Index) TempLbl = v TempLbl.Text = "23 °C" I have tried to use the same approach (something like) B4X: Dim TempxChart As xChart, v As B4XView v=CLV1.GetPanel(index).GetView(0).GetView(panel1index).GetView(PanelDashTextIndex).GetView(GraphIndex) TempxChart = v TempxChart.Title = "TestTitle" but it does not work and it crashes complaining java.lang.RuntimeException: Field: ba not found in: anywheresoftware.b4a.BALayout any idea? does anyone has tried to use xGraph within a CLV?
Hi, I am trying to use the beutiful @klaus xChart view (https://www.b4x.com/android/forum/threads/b4x-xui-xchart-class-and-b4xlib.91830/ ) within a CustomListView. so far so good. Now I would like to "point" to a specific CLV item xchart to update it with coming values. The method I use in general to identify the objects within a CLV is to use the below code B4X: Dim TempLbl As Label, v As B4XView v=CLV1.GetPanel(CLV1ItemIndex).GetView(0).GetView(panel1index).GetView(PanelDashTextIndex).GetView(DashScrollText1Index) TempLbl = v TempLbl.Text = "23 °C" I have tried to use the same approach (something like) B4X: Dim TempxChart As xChart, v As B4XView v=CLV1.GetPanel(index).GetView(0).GetView(panel1index).GetView(PanelDashTextIndex).GetView(GraphIndex) TempxChart = v TempxChart.Title = "TestTitle" but it does not work and it crashes complaining java.lang.RuntimeException: Field: ba not found in: anywheresoftware.b4a.BALayout any idea? does anyone has tried to use xGraph within a CLV?
Alexander Stolte Expert Licensed User Longtime User Nov 11, 2022 #2 giggetto71 said: v=CLV1.GetPanel(index).GetView(0).GetView(panel1index).GetView(PanelDashTextIndex).GetView(GraphIndex) Click to expand... Try this. B4X: TempxChart=CLV1.GetPanel(index).GetView(0).GetView(panel1index).GetView(PanelDashTextIndex).GetView(GraphIndex).Tag Upvote 0
giggetto71 said: v=CLV1.GetPanel(index).GetView(0).GetView(panel1index).GetView(PanelDashTextIndex).GetView(GraphIndex) Click to expand... Try this. B4X: TempxChart=CLV1.GetPanel(index).GetView(0).GetView(panel1index).GetView(PanelDashTextIndex).GetView(GraphIndex).Tag
giggetto71 Active Member Licensed User Longtime User Nov 11, 2022 #3 yes! just found it in another post...sorry..... Upvote 0
Alexander Stolte Expert Licensed User Longtime User Nov 11, 2022 #4 Instead of making the title with "Solved" mark the post as solution Upvote 0
giggetto71 Active Member Licensed User Longtime User Nov 11, 2022 #5 @Alexander Stolte . done..thanks a lot and thanks to @klaus for this great lib! Upvote 0