B4J Question [ABMaterial] Needs...() Issue

Harris

Expert
Licensed User
Longtime User
Version 1.11 patch.

I have a simple page with a ABMcheckbox object (2 of them actually).
The clicked event was not being raised.

I fought this with most of this am until it finally dawned on me what might be the issue.
During my adventure, the checkbox event started working - then later, not!

Here is the page with checkbox in the copymewithjar.needs.

defectsPage:NeedsPagination;NeedsTable;NeedsSortingTable;NeedsCombo
(No checkbox.... in the needs)

Here is my ConnectPage() code fragment:

B4X:
    Dim btnalldef As ABMCheckbox
    btnalldef.Initialize( page ,  "btnalldef", "DEFECTS ONLY", True,"")
    btnalldef.IsFilled = True
    page.Cell(1,3).AddComponent(btnalldef)
   
    Dim btnallveh As ABMCheckbox
    btnallveh.Initialize( page ,  "btnallveh", "SHOW ALL RECORDS", False,"")
    btnallveh.IsFilled = True
    page.Cell(1,4).AddComponent(btnallveh)

So I added:
page.NeedsCheckbox = True
in the BuildPage and it works properly and consistently.

Without this line, the CB (most often than not - during builds) won't raise the event...

Entire copymewithjar.needs...

B4X:
ABMApplication:NeedsInput;NeedsTextArea;NeedsMask
defectsPage:NeedsPagination;NeedsTable;NeedsSortingTable;NeedsCombo
drvPhoto:NeedsPagination;NeedsTable;NeedsSortingTable
DVIRPage:NeedsPagination;NeedsTable;NeedsSortingTable;NeedsPDFViewer;NeedsCombo
Employee:NeedsPagination;NeedsTable;NeedsSortingTable;NeedsCombo;NeedsInput;NeedsTextArea;NeedsMask;NeedsCheckbox
Employees:NeedsPagination;NeedsTable;NeedsSortingTable;NeedsCombo;NeedsInput;NeedsTextArea;NeedsMask;NeedsCheckbox
Employeessss:NeedsPagination;NeedsTable;NeedsSortingTable;NeedsCombo;NeedsInput;NeedsTextArea;NeedsMask;NeedsCheckbox
general:NeedsPagination;NeedsTable;NeedsSortingTable;NeedsCombo;NeedsInput;NeedsTextArea;NeedsMask;NeedsCheckbox
Inspection:NeedsPagination;NeedsTable;NeedsSortingTable;NeedsInput;NeedsTextArea;NeedsMask;NeedsCombo
UsersPage:NeedsInput;NeedsTextArea;NeedsMask;NeedsPagination;NeedsTable;NeedsSortingTable;NeedsActionButton;NeedsCombo

Needs to be added to Feedback - or is it just (most likely) me...

Thanks
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…