on 2006 Aug 04 12:29 PM
Hello guys,
I'm just working on an add-on where there is the need to create several user defined tables and user defined fields at the beginning.
During the creation, the B1-user gets the form "Database has been modified, close all windows" (no quote)
And if he presses "Yes" to close all windows this could cause errors in the add-on.
So my question is:
Is there any possibility to get this form only ones (right after I finished creating the tables)
Thanks in advance and
Best regards,
Mario
Hi Mario,
Take a look at the progressbar object. While a progressbar is active, a user can't interact with the GUI. I use this method also with my initialisations, works like a charm!
<b>Code (C#):</b>
/* Create a progressbar (10 steps, cancel button disabled) */
ProgressBar pbProgress = m_SBOApplication.StatusBar.CreateProgressBar("Creating user tables", 10, false);
pbProgress.Value = 1;
/* Create a user table and set the progressbar value */
pbProgress.Value = 4;
/* Create another user table and set the progressbar value */
pbProgress.Value = 8;
/* Stopping the progressbar */
pbProgress.Stop();
pbProgress = null; /* <-- IMPORTANT! */
Hope it helps,
Rowdy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mario,
You can also use this. Before you start creating the UDF and UDT, you set:
oSBOApplication.MetadataAutoRefresh = False
This is made just to avoid that window.
After you've finished the creation of metadata:
oSBOApplication.MetadataAutoRefresh = True
Hope this helps,
Ian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
111 | |
9 | |
8 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.