Hello,
I have been enthralled with pages. I love the idea of transporting one name, text box answer through my whole app on multiple pages.
Now im kinda stuck in between coding without pages and coding with pages.
Is their a way to have users choose the color like before pages with--- XUI VIEWS Example
I have tried to minic the code and take the
and use it in pages. I get an error clicking the button
Im not an expert or even more then a dabber in this. But i really like pages its actually a little easier for me to understand.
With that being said im not converting all my programs over but when i build new ones i want to try my best to use it.
I have been enthralled with pages. I love the idea of transporting one name, text box answer through my whole app on multiple pages.
Now im kinda stuck in between coding without pages and coding with pages.
Is their a way to have users choose the color like before pages with--- XUI VIEWS Example
I have tried to minic the code and take the
B4X:
Sub btnColor_Click
Wait For (Dialog.ShowTemplate(ColorTemplate, "OK", "", "CANCEL")) Complete (Result As Int)
If Result = xui.DialogResponse_Positive Then
Base.Color = ColorTemplate.SelectedColor
End If
End Sub
and use it in pages. I get an error clicking the button
B4X:
Error occurred on line: 95 (B4XDialog)
java.lang.RuntimeException: Object should first be initialized (B4XView).
at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:67)
at anywheresoftware.b4a.objects.B4XViewWrapper.getViewObject(B4XViewWrapper.java:101)
at anywheresoftware.b4a.objects.B4XViewWrapper.asPanelWrapper(B4XViewWrapper.java:104)
at anywheresoftware.b4a.objects.B4XViewWrapper.GetAllViewsRecursive(B4XViewWrapper.java:304)
at b4a.example.b4xdialog$ResumableSub_ShowCustom.resume(b4xdialog.java:1009)
at b4a.example.b4xdialog._showcustom(b4xdialog.java:944)
at b4a.example.b4xdialog$ResumableSub_ShowTemplate.resume(b4xdialog.java:168)
at b4a.example.b4xdialog._showtemplate(b4xdialog.java:125)
at b4a.example.b4xmainpage$ResumableSub_btnColor_Click.resume(b4xmainpage.java:153)
at b4a.example.b4xmainpage._btncolor_click(b4xmainpage.java:127)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at anywheresoftware.b4a.BA$2.run(BA.java:387)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)
Im not an expert or even more then a dabber in this. But i really like pages its actually a little easier for me to understand.
With that being said im not converting all my programs over but when i build new ones i want to try my best to use it.