B4J Question ABMaterial ABMServer v1.15 problems (ABMiniTemplate)

walterf25

Expert
Licensed User
Longtime User
Hi everyone, I am working on a project for work, I have a ABMContainer added to the page.cell(1,1) and inside this container I have added a ABMTable, I am using the ABMini Template project, and using the latest ABMaterial library version 5.15, the problem is that because the table is inside a container when clicking on any of the table's items, the tbl1_Clicked function does not get raised, this is due to the fact that the table's eventName in the ABMServer's Page_ParseEvent function gets changed from tbl1_clicked to maincontainer-tbl1_0_2__clicked, maincontainer is the name of the abmcontainer which holds the table component.

I know I can fix this problem by adding some extra code in the page_parseevent function and strip the "maincontainer" part out of the event name, but I was wondering if there's anything else I am missing, I don't recall ever having this issue before until I started using the ABMiniTemplate project, I know @alwaysbusy has compiled the AMBApplication, ABMErrorHandler, ABMCacheControl and a few other modules into a .b4xlib file, has anyone else encountered this type of issues, if so is there a more elegant and more general wide solution, i don't want to have to keep on adding any more code in the page_parseevent function to deal with very specific issues.

1717635866970.png


Please let me know if anyone else has had this type of issues and how you have worked around the problem?

Thanks,
Walter
 

MichalK73

Well-Known Member
Licensed User
Longtime User
I know I can fix this problem by adding some extra code in the page_parseevent function and strip the "maincontainer" part out of the event name
If it works, do it.
has anyone else encountered this type of issues, if so is there a more elegant and more general wide solution
I also have similar problems and if it works for me, I solve it this way and continue writing the code.
 
Upvote 0
Top