Good Day,
I am just workign with DDD.CollectViewsData.
In the project I activated the lib DesignerUtils.
I created a Layout with a single Label Named Label1.
In the Designer Script window I placed the code DDD.CollectViewsData
In the parent Class_Globals: Public dd As DDD
ERROR:
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create (first time) **
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (main) Resume **
Error occurred on line: 162 (DDD)
java.lang.RuntimeException: Class instance was not initialized (ddd)
at anywheresoftware.b4a.debug.Debug.shouldDelegate(Debug.java:242)
....
At present I understood that the dd was initialized by the designer if this is not correct how to initialize?.
Question: What is going wrong?
I am just workign with DDD.CollectViewsData.
In the project I activated the lib DesignerUtils.
I created a Layout with a single Label Named Label1.
In the Designer Script window I placed the code DDD.CollectViewsData
In the parent Class_Globals: Public dd As DDD
Code is part of a class:
sub Class_Globals
Private xui As XUI
Public dlgPNL As Panel
Public dd As DDD
End Sub
Public Sub Initialize(Callback As B4XView,Eventname As String)
mCallback = Callback
mEventname = Eventname
dlgPNL.initialize("")
End Sub
sub Test
dlgPNL.RemoveAllViews
dlgPNL.LoadLayout("Layout1")
dlgPNL.GetView(0).As(Label).Initialize("")
Log(dlgPNL.GetView(0).IsInitialized) ' -> [COLOR=rgb(65, 168, 95)]result is true[/COLOR]
Log(dd.GetViewByName(dlgPNL,"TextLabelP1").IsInitialized) '->[COLOR=rgb(184, 49, 47)]error?[/COLOR]
Log(dd.GetViewByName(dlgPNL,"TextLabelP1").Text) ' -> error?
end sub
ERROR:
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create (first time) **
Call B4XPages.GetManager.LogEvents = True to enable logging B4XPages events.
** Activity (main) Resume **
Error occurred on line: 162 (DDD)
java.lang.RuntimeException: Class instance was not initialized (ddd)
at anywheresoftware.b4a.debug.Debug.shouldDelegate(Debug.java:242)
....
At present I understood that the dd was initialized by the designer if this is not correct how to initialize?.
Question: What is going wrong?