B4J Question B4J server jetty - How to handle dynamically created controls

hatzisn

Expert
Licensed User
Longtime User
Hi all,

Just now I am reaching almost 1 and a half hout searching my laptop and the B4X forum on a way to handle dynamically created controls. I know there is a page where there is a handfull of B4J jetty server examples and I know I have downloaded them but I cannot seem to locate it neither in my laptop neither in the forum. Any help will be highly appreciated. Thanks.
 

hatzisn

Expert
Licensed User
Longtime User
What do you mean by "controls"? Views? Server projects (jServer) cannot have graphical interfaces.

You are right. I used the dotnet webforms naming. I meant jqueryelement(s).
 
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
I have located it in my laptop. I write it here for my own future reference and for helping more people that will face the same problem.

"We add a div (f.e. maindiv As JqueryElement) and add all the controls in there with different IDs. Then when we click on a control inside the div we handle the MainDiv_Click(params as map) event and we get the params.get("target"). "
 
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…