I found interesting the example to get details from grid A to grid B with no script, but I am still searching why using double click in a grid to pass values to a combobox since the combobox would list the same values as in the grid. Do you have a more speaking example of the use of such a feature?
626 2015-08-31 13:46:44
Re: How Even DoubleClick Cell TableGrid To Send Value To Combobox And Text (4 replies, posted in Script)
627 2015-08-28 11:45:19
Re: How Even DoubleClick Cell TableGrid To Send Value To Combobox And Text (4 replies, posted in Script)
Is that the answer Prahousefamily?
628 2015-08-28 11:39:43
Re: How To Properly Use 'CopyTo" (14 replies, posted in General)
I do not totally agree with jean.brezhonek about storing files in database.
If the files are by far too big, it is obviously a bad idea to store files in DB, however storing small files makes it easier to distribute an application and to make backups as everything is at the same place.
As an extreme example I would take the situation where a curious people delete any or all file(s)stored in a folder but linked in your db by mistake and your application is up side down.
I have seen so many corporate applications of this kind and it is always a nightmare when it comes to backups and permissions and broken links...
It is on you to decide about the best solution for your application.
629 2015-08-26 14:36:05
Re: How to distribute the end product? (4 replies, posted in General)
@DriveSoft
If I remember well, there was some files which could be removed before distribution like the .vdb file and one of the script file, I do not remember which one is used by the compiled application.
630 2015-08-24 13:36:46
Re: How To Show Information my computer in Function Script (3 replies, posted in Script)
Still no possibility to get computer name or computer domain name?
631 2015-08-24 13:32:48
Re: World Database From MySQL Basic (6 replies, posted in General)
Preview pictures are unavailable.
The welcome message is a bit too much for me
When searching for a country, there are too many results in my opinion.
632 2015-08-23 15:45:49
Re: What to implement first? (187 replies, posted in General)
I would like to see more properties on the objects to avoid scripting, this would help customers to be able to build better projects without knowing too much programming and free up some memory
633 2015-08-21 19:38:20
Re: What to implement first? (187 replies, posted in General)
I still like the standalone version but there is place for improvement in the graphical user interface for final user
634 2015-08-21 16:29:36
Re: What to implement first? (187 replies, posted in General)
Is it somehow planned in the near future to get skins or themes to change the look and feel of the application we create? The current GUI looks terribly old school
635 2015-08-21 11:13:24
Re: Get a value from table in textbox (2 replies, posted in General)
I could manage to do it using an example from another user who sent a project (License) using this feature, thanks to him.
just declaring the proper variable, assigning a sql query to this variable and then using caption did the trick:
procedure Form1_OnShow (Sender: string; Action: string);
begin
var
q: string;
// Manage Parameters
q := SQLExecute('SELECT Quarantine FROM Parameters WHERE id=1');
Form1.Quarantine.Text:= q;
end;
To update the value, an update query on a button is sufficient
// Save parameters
procedure Form1_save_quarant_OnClick (Sender: string; var Cancel: boolean);
begin
SQLExecute ('REPLACE into Parameters (id,quarantine) VALUES (1, '+ Form1.Quarantine.sqlValue+')');
end;
636 2015-08-21 09:05:35
Re: open existing database (6 replies, posted in General)
The key in the above comments is that the database name used by any project in myvisualdatabase is always : sqlite.db
If you use any another name, it simply does not work.
637 2015-08-21 09:02:06
Re: Import existing database (1 replies, posted in General)
Since Myvisualdatabase requires an id column for each table, the way I proceed for bulk import is as follow:
1 - I prepare all tables in myvisualdatabase, save the project and close it.
2 - I open the SQLite.db with SQLite studio
3 - I create a copy of the table I want to import data into without the id column
4 - I import data into this copy using csv file
5 - I run a query to insert the data into target table like this :
INSERT INTO target_table_name [(column1, column2, ... columnN)]
SELECT *
FROM temporary_table_name
[WHERE condition];
6 - I delete the temporary table
In the FAQ, you could find a script to import data into your project using a scripted button http://myvisualdatabase.com/forum/viewtopic.php?id=1448. The csv must be well prepared though, the column order must match the table, no header and separator is semi-colon ";"
638 2015-08-20 14:49:54
Topic: Get a value from table in textbox (2 replies, posted in General)
Hi All,
I am trying to setup a parameter table so that the final user could change some values but I do not know how to display a value in a textbox coming from a table. I do not want to use a grid, just textboxes.
In current situation, I cannot update a unique value easily, it adds a row each time and I cannot display the value. I guess I would have to write a script...
639 2015-08-19 12:57:11
Re: How to manage the form window's buttons (4 replies, posted in General)
And how to manage ShowMessage border icons like the example below where I want to remove the close icon?
procedure MenuClick6 (Sender: string);
begin
ShowMessage('Version 1.0.0 Date 2015/07/08');
end;
640 2015-08-08 08:47:26
Re: SQL Query in ComboBox referring to another Combobox Result (4 replies, posted in Script)
For the sake of other users lokking for similar feature, Dmitry sent to me version 1.53 beta and it works.
Thanks Dmitry!
641 2015-07-29 14:31:49
Re: SQL Query in ComboBox referring to another Combobox Result (4 replies, posted in Script)
Kind of,
when using this example, I have the ports listed but it does not filter the results in the grid for searching. I already sent you my project some days ago
642 2015-07-29 14:02:44
Topic: SQL Query in ComboBox referring to another Combobox Result (4 replies, posted in Script)
Hi everybody,
I am in trouble trying to assign an SQL Query to a Combobox using the choice of another Combobox.
I have 2 tables
Ports Switches
id | id_Switches | Ports | id_VLANS | id_Status id | Hostname | etc....
1 | 1 | Gi1/0/1 | 1 | 1 1 | Hostname1 |
2 | 1 | Gi1/0/2 | 6 | 1 2 | Hostname2 |
3 | 1 | Gi1/0/3 | 4 | 2 3 | Hostname3 |
In Combobox 1, I choose the switch Hostname and in Combobox, I would like to be able to choose only 1 port for filtering
How could I do this without entering thousands of entries in a new column in Ports?
The proper SQL Query should be :
select p.ports,p.id
from switches s
left join ports p on s.id=p.id_Switches
where s.id=+Choice of Combobox 1+
643 2015-07-23 14:53:55
Re: Autofill script (2 replies, posted in Script)
Never mind, I closed the project and reopened it and now the feature is working again...
644 2015-07-23 14:35:59
Topic: Autofill script (2 replies, posted in Script)
Hi,
I am confused with a new behavior of MVDB 1.52. When double-clicking on the event field of an object, the event was created automatically in the script tab which does not happen anymore!
This does not help in using scripts
645 2015-07-21 08:19:45
Re: Enigma? (3 replies, posted in Script)
When doing the calculation by hand, it is not equal...
2*5/(1+sqrt(5)) = 10/(1+2,24) = 10/3,24 = 3,09
5/((1+sqrt(5)/2)) = 5/(1+2,24/2) = 5/2,12 = 2,36
It is a matter of parenthesis
5/((1+sqrt(5))/2) = 5/(3,24/2) = 5/1,62 = 3,09
Results are rounded.
646 2015-07-14 10:51:13
Re: How to manage the form window's buttons (4 replies, posted in General)
Great, thanks Dmitry!
647 2015-07-14 08:31:01
Topic: How to manage the form window's buttons (4 replies, posted in General)
Hi Dmitry
how could we create a form with only the "close" button (red button with cross) or without this button?
648 2015-07-14 08:20:10
Re: TreeView (9 replies, posted in General)
the same to me, the comment are not understandable in the script
649 2015-07-14 08:01:43
Re: TreeView (9 replies, posted in General)
To me, it looks like a tree view
650 2015-07-09 13:38:23
Re: Missing filter feature in default "Search" function (3 replies, posted in General)
Hi,
yes, it works but it makes a step more in designing the tablegrid (we all are lazy guys)