I added the following code to a b4xpage:
to insure these fields get cleared when entered. The fileds are added in designer. and the layout is loaded immediately in B4XPage_Created:
This results in the following error the FIRST Time the page is open:
Full Log:
I tried using
But it made no difference.
B4X:
Sub B4XPage_Appear
NameET.Text = "": NameET.enabled = False
CreateGroupBtn.Enabled = False
End Sub
B4X:
'This event will be called once, before the page becomes visible.
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
'load the layout to Root
Root.LoadLayout("CreateGroup")
toast.Initialize(Root)
End Sub
'
This results in the following error the FIRST Time the page is open:
B4X:
Unexpected event (missing RaiseSynchronousEvents): nameet_textchanged
Check the unfiltered logs for the full stack trace.
Create Group
** Activity (main) Pause event (activity is not paused). **
** Service (starter) Destroy (ignored)**
Full Log:
B4X:
@ 244431.713: [Significant Motion] Stop accel
event received NL80211_CMD_VENDOR, vendor_id = 0x1374, subcmd = 0xd
SSL shutdown failed: ssl=0x7b0b6b0d88: I/O error during system call, Connection reset by peer
Failed to read from logcat: Success
Haven't get first sync notification for 300 seconds.
Unexpected event (missing RaiseSynchronousEvents): nameet_textchanged
Check the unfiltered logs for the full stack trace.
java.lang.Exception: Stack trace
at java.lang.Thread.dumpStack(Thread.java:1513)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:314)
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.objects.EditTextWrapper$1.afterTextChanged(EditTextWrapper.java:83)
at android.widget.TextView.sendAfterTextChanged(TextView.java:10566)
at android.widget.TextView.setText(TextView.java:6283)
at android.widget.TextView.setText(TextView.java:6102)
at android.widget.EditText.setText(EditText.java:122)
at android.widget.TextView.setText(TextView.java:6054)
at anywheresoftware.b4a.objects.TextViewWrapper.setText(TextViewWrapper.java:39)
at anywheresoftware.b4a.objects.B4XViewWrapper.setText(B4XViewWrapper.java:226)
at b4a.example.pagecreatenewgroup._b4xpage_appear(pagecreatenewgroup.java:70)
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:348)
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:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
Failed to read from logcat: Success
record : No data points in metrics event
event received NL80211_CMD_VENDOR, vendor_id = 0x1374, subcmd = 0xd
I tried using
AddPageAndCreate
B4X:
CreateNewGroup.Initialize
B4XPages.AddPageAndCreate("CreateNewGroup", CreateNewGroup)
Sleep(1)
B4XPages.MainPage.AddOrEdit.AddOrEditMode = "Create Group"
B4XPages.ShowPage("CreateNewGroup")