Abaksoft Posted August 29, 2017 Posted August 29, 2017 Hello friends, I want to share with you a technich i am using. This is for design optimisation. You have 3 forms : • a mainform with a unitreeview • a form with an UniDBGRID • a form with many UniDBEdit assigned to that UniDBgrid Datasource. The unitreeview has 2 nodes : • New customer • History of Customers If an user click on history of customers, he can edit and modify all fields in the third form. Ok. But if an other user (who haven't access to history of customers, only creat new customer) click on new customer, then he will see all that fields not enabled. This is a normal behavior as theese fields are assigned to a dataset wich is not open. Ok, Some of you will open that dataset, before opening the form (to edit). But this will take times and ressources. Others will creat two forms (one with uniEdit and an other with uniDBEdit). Solution : Just put a virtualTable on the edit form and assign all that fields to this virtualTable Datasource, then do : virtualTable.open This will give you all uniDbEdit fields enabled and empty. Use them as an uniEdit. Have fun. ______________ Related topic : http://forums.unigui.com/index.php?/topic/5067-emptytext-property-for-dbedit/&do=findComment&comment=25876 Quote
MVakili Posted November 11, 2024 Posted November 11, 2024 @Abaksoft Thank you for your good explanation How is our work? Similar to your method, in order to increase the speed, we always store data in a virtual table and then open information elements such as Grid or operational forms. Therefore, about the Insert action 1- We do not keep any tables open 2- We will have the power to enter information from many sources (dozens of simultaneous users + types of IOT) 3- Automatic and simultaneous processes in the database in EDIT action We use the same method And we have only had problems with the Clear button in DBEdit 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.