CRUD Possibilities

Pardon me if I am not asking this properly or inserting graphics when I should not be. I am very interested in XOJO as I would like to move from PCSoft WinDev / WebDev to XOJO.

I’m wondering if it is possible to create what we called a control template like this. You place it on every page you need this functionality.

image

As the window or page is initialized you assign the values to the CRUD template. Every page would use the template but have their own initialization code: Each placement of the control is an instance of the template. It is not simply copying controls to each window or page.

The use of a control template is what I call visual oop. Create it once, use everywhere. And the nice feature of this is you can override or extend each of the buttons.

Is this feasible in XOJO

DesktopContainer/WebContainer/MobileContainer allow you to visually create a view that can be embedded in other views (DesktopWindow/WebPage/MobileScreen). You can create and assign properties and develop any functionality you need within it.

Thanks for that quick reply. I should also have asked, does XOJO have indirection and dynamic compile or code execution. You create a string of xojo syntax and execute it as if it were compiled directly int he program

Glenn

That would be XojoScript. It’s quite limited in some regards, but you can make it do most things you’d likely need to. There are also third-party scripting engines for Lua, Python, etc, or you can run JavaScript against an HTMLViewer unless you’re building a console application.