Addo Well-Known Member Licensed User Longtime User Jun 27, 2020 #1 i have created a custom view as following and store it in map to use it later B4X: Dim csv As customview csv.Initialize(Me, "csviw", "view1",Rnd(0, 6000)) csv.DesignerCreateView(panel,Null,Null) csv.additemtolist(Rnd(0,100000)) map.Put("view1", csv) how to show this customview later on when i need it ? B4X: If map.ContainsKey("view1") Then Dim csv As customview csv = map.Get("view1") 'how to show that view ?
i have created a custom view as following and store it in map to use it later B4X: Dim csv As customview csv.Initialize(Me, "csviw", "view1",Rnd(0, 6000)) csv.DesignerCreateView(panel,Null,Null) csv.additemtolist(Rnd(0,100000)) map.Put("view1", csv) how to show this customview later on when i need it ? B4X: If map.ContainsKey("view1") Then Dim csv As customview csv = map.Get("view1") 'how to show that view ?
Erel B4X founder Staff member Licensed User Longtime User Jun 28, 2020 #2 Code that calls DesignerCreateView = broken code. Don't create a custom view if you want to create it like this. Create a regular class. If you want to add programmatically: [B4X] I need 100 <custom view here>s. How to add programmatically? Upvote 0
Code that calls DesignerCreateView = broken code. Don't create a custom view if you want to create it like this. Create a regular class. If you want to add programmatically: [B4X] I need 100 <custom view here>s. How to add programmatically?