Good job. Thanks
1 2019-05-09 14:04:29
Re: Training courses for developers. Articles about application developmen (93 replies, posted in General)
3 2019-02-11 22:11:06
Re: Calculated fields (4 replies, posted in General)
Thank you. But I have a problem.
I need to create a calculated field that contains calculated fields from the same table and another table. I write this script but it does not work.
(1-(SELECT Muro.constante FROM Muro,Sala WHERE Muro.id = Sala.id_Muro)* Sala.TotalMaterialMuro)
4 2019-02-11 15:00:19
Topic: Calculated fields (4 replies, posted in General)
Hi, every body
Please can someone provide me with examples of databases with simple and complex calculated fields.
Thanks
6 2018-09-20 14:13:34
Topic: Report SQL and GRID (2 replies, posted in Reports)
Hi, everyone.
I'm doing a report from a button with "SQL Report" in a search form and a grid. I need that when I do the "search", the report shows the results of the search that are in the grid. I have configured in the "SQL Report" button, in "Select the Grid table (if necessary)" = Table grid1, but when I run the search, it asks me to "select a record in the grid". That is, only one record (the selected one) is shown in the report and not all the data resulting from the search that is in the grid. I need the report to work as the button does (EXPORT TO EXCEL), which shows all the records of the search that appear in the grid.
7 2018-07-12 16:31:28
Re: Project new with existing MySql Database (4 replies, posted in General)
Ok Thanks
8 2018-07-12 14:26:05
Re: Project new with existing MySql Database (4 replies, posted in General)
Hi
The database is already created, but it was created with phpMyAdmin not with MVD
9 2018-07-11 16:45:14
Topic: Project new with existing MySql Database (4 replies, posted in General)
Hello
I have a MySql database already created and I need to create a new project in MDV. I use the connection to MySql by the Connect to MySql button but in MDV I can not see the tables and I can not create the forms.
Thanks
10 2018-04-17 16:01:23
Re: UPDATE in a field type FILE (10 replies, posted in General)
I am very grateful for your help
11 2018-04-16 23:40:33
Re: UPDATE in a field type FILE (10 replies, posted in General)
What a pity. It worked for me. One last question for now: I need to use the REPLACE function with variables like this:
procedure Form1_Button4_OnClick (Sender: TObject; var Cancel: boolean);
var
cadenainicial : string;
cambiarpor : string;
begin
cadenainicial := form1.Edit1.Text;
cambiarpor := form1.Edit2.Text;
SQLExecute('UPDATE Documentos SET viaDocumento_filename = REPLACE( viaDocumento_filename, cadenainicial, cambiarpor)');
Form1.TableGrid1.dbUpdate;
end;
But it shows an error message: "No such column: cadenainicial"
Thanks for everything
12 2018-04-16 14:47:05
Re: UPDATE in a field type FILE (10 replies, posted in General)
Check it out
procedure Form1_Button4_OnClick (Sender: TObject; var Cancel: boolean); begin SQLExecute('UPDATE Documentos SET viaDocumento_filename = REPLACE(viaDocumento_filename, ''F:\MVD Proyectos\Pruebas\lj\Documents\'', ''F:\NewPath\'')'); Form1.TableGrid1.dbUpdate; end;
Sorry but the code you propose does not work because the field "viaDocumento_filename" is a calculated field that is updated when I modify or update the field "viaDocumento" through the visual component DBFile on Form2. If I manually UPDATE the calculated field "viaDocument_filename", when I want to see the document by clicking on the DBFile visual component, it will not open.
What I need is to UPDATE the field "viaDocumento", with the new path, but with the UPDATE command, so as not to do it one by one through the visual DBFile component in form2.
Thank you very much.
13 2018-04-13 23:37:13
Re: UPDATE in a field type FILE (10 replies, posted in General)
I attached the project
14 2018-04-13 21:14:56
Re: UPDATE in a field type FILE (10 replies, posted in General)
Thanks for your suggestion but I already tried it but it does not work, because it's a calculated field. The field, type FILE, is called "viaDocument" and when creating the calculated field it is named as viaDocument_filename, but this field is updated when the path and file are selected through the DBFile object.
15 2018-04-13 14:58:13
Topic: UPDATE in a field type FILE (10 replies, posted in General)
Hi,
I have a field of type FILE and a DBFile object configured as Type Linkfile. In the database I already have approximately 2,000 records with a path to the files. Example:\\192.168.5.6\ Documents\ File000001.pdf, ... \\192.168.5.6\ File001945.pdf
The network manager changed the network address by \\172.25.3.5\ Documents. Something I did not expect. Now I have to change the address
\\192.168.5.6 in all registers to \\172.25.3.5. I can do it one by one, but it would take me a long time. How can I do it with a script?
Thanks
16 2018-02-07 16:32:19
Re: Differences in the report with equal dates in Julian format (4 replies, posted in Reports)
Perhaps you have wrong time zone setting in your OS, please check it.
Also you can change calculate field:CAST(julianday(dateofbirth, 'localtime') - 2415018 as INTEGER)
CAST(julianday(dateofbirth, 'localtime') - 2415018 as INTEGER)
Agree. It worked. Thank you very much Dmitry
17 2018-02-07 13:06:16
Re: Differences in the report with equal dates in Julian format (4 replies, posted in Reports)
Please attach your project, I will test it.
18 2018-02-06 21:54:02
Topic: Differences in the report with equal dates in Julian format (4 replies, posted in Reports)
I have the following query in a button Report(SQL):
select
employees.lastname,
employees.firstname,
julianday(dateofbirth, 'localtime') - 2415018.5833333335,
julianday('now', 'localtime') - 2415018.5833333335
from
employees
The value of the DATEOFBIRTH field in the table is the same as that of the variable 'now' but in the report they are different. What is this about?
Thanks
19 2018-01-31 16:21:28
Re: Not Display date format (4 replies, posted in Reports)
I am sorry. I have already solved the problem
20 2018-01-31 15:40:15
Re: Not Display date format (4 replies, posted in Reports)
What a shame Dmitry. When I testing it with Report (SQL) shows error message: no such column: employees.calc_TDatetime.
21 2018-01-31 15:12:12
Re: Not Display date format (4 replies, posted in Reports)
Thank you very much Dmitry.
22 2018-01-29 21:53:29
Topic: Not Display date format (4 replies, posted in Reports)
I need to create a report from an sql query with date fields. The problem is that in fast report I can not give the date field, long date format. In the SQL query the date field I do it as DATE (TABLE.CAMPOFECHA).
This is the query
SELECT
EVENTOS.NOMBRE as nombre_evento,
date(EVENTOS.FECHAINICIO)AS inicia_evento
23 2018-01-05 16:41:23
Re: Disable edit with dobleclick or enter (2 replies, posted in General)
How good. Thank you very much Derek
24 2018-01-05 15:07:48
Topic: Disable edit with dobleclick or enter (2 replies, posted in General)
Hi
I need disable "Double click" and "Enter" functions of the table grid. I don´t want run the edit form with those functions. Only with a buttons.
Thanks
25 2018-01-05 15:03:46
Re: Font Change for Grid and Memo (16 replies, posted in General)
Hi
I need disable "Double click" and "Enter" functions of the table grid. I don´t want run the edit form with those functions. Only with a buttons.
Thanks