Hi guys,
I have a B4XPage with a CustomListView working well. In designer script page from CLV items, I added:
and in the main code, it contains:
So I started a new B4XPage, with a new CustomListView (LV2). I also added in the designer script page of the new CLV items (different from the first one):
and in main code of the new B4XPage:
But at this line:
it returns the error:
I have tried to replace dd by dd2, without success.
How can I deal with it?
I have a B4XPage with a CustomListView working well. In designer script page from CLV items, I added:
B4X:
DDD.CollectViewsData
B4X:
Sub Class_Globals
Private LV1 As CustomListView
Private dd As DDD
End Sub
Private Sub B4XPage_Created (Root1 As B4XView)
'...'
dd.Initialize
xui.RegisterDesignerClass(dd)
End Sub
So I started a new B4XPage, with a new CustomListView (LV2). I also added in the designer script page of the new CLV items (different from the first one):
B4X:
DDD.CollectViewsData
B4X:
Sub Class_Globals
Private LV2 As CustomListView
Private dd As DDD
End Sub
Private Sub B4XPage_Created (Root1 As B4XView)
'...'
dd.Initialize
xui.RegisterDesignerClass(dd)
End Sub
B4X:
xui.RegisterDesignerClass(dd)
B4X:
Error occurred on line: 256 (DDD)
java.lang.RuntimeException: Object should first be initialized (B4XView).
I have tried to replace dd by dd2, without success.
How can I deal with it?