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?

Is that the answer Prahousefamily?

628

(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

(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.

Still no possibility to get computer name or computer domain name?

631

(6 replies, posted in General)

Preview pictures are unavailable.

The welcome message is a bit too much for me smile
When searching for a country, there are too many results in my opinion.

632

(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 smile

633

(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 smile

634

(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 smile

635

(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 smile

// 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

(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

(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

(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...


http://myvisualdatabase.com/forum/misc.php?action=pun_attachment&item=1275

639

(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;

For the sake of other users lokking for similar feature, Dmitry sent to me version 1.53 beta and it works. smile

Thanks Dmitry!

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 smile

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

(2 replies, posted in Script)

Never mind, I closed the project and reopened it and now the feature is working again...

644

(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 smile

645

(3 replies, posted in Script)

When doing the calculation by hand, it is not equal... smile

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 smile

5/((1+sqrt(5))/2) = 5/(3,24/2) = 5/1,62 = 3,09


Results are rounded.

646

(4 replies, posted in General)

Great, thanks Dmitry!

Hi Dmitry

how could we create a form with only the "close" button (red button with cross) or without this button?

http://myvisualdatabase.com/forum/misc.php?action=pun_attachment&item=1192

648

(9 replies, posted in General)

the same to me, the comment are not understandable in the script smile

649

(9 replies, posted in General)

To me, it looks like a tree view smile


http://myvisualdatabase.com/forum/misc.php?action=pun_attachment&item=1191

Hi,

yes, it works but it makes a step more in designing the tablegrid smile (we all are lazy guys)