Hello,
Very difficult to understand the problem without your project, please attach project or send it to support@drive-software.com with link on this topic.
Thanks.
My Visual Database → Posts by DriveSoft
Hello,
Very difficult to understand the problem without your project, please attach project or send it to support@drive-software.com with link on this topic.
Thanks.
Hello,
Please attach your project.
Здравствуйте. Еще не появилась возможность получить длительность mp3 файла? Может есть какой-то способ?
Приветствую, к сожалению пока нет способа.
Как можно редактировать данные напрямую в tablegrid?
Пока такой возможности нет, но планируется.
If you call form using button with action "Show Record", you can get id of current record from Button with action "Save Record" on the same form:
Form2.ButtonSave.dbGeneralTableId ;
vaskar
Пожалуйста приложите проект.
Может вся проблема именно в генерации дат? Стоит руками таблицу дат делать для про верки, или не тратить время зазря?
К сожалению не понял вопроса. Что то не работает?
Yes, example:
procedure Form1_OnShow (Sender: string; Action: string);
begin
Form1.DBImage1.dbShowButtons := False;
end;
Сложно сказать, суть запроса в том, что он генерирует записи с датами от указанной даты до указанной даты, и для каждой такой записи вычисляется стоимость аренды в день, затем это все сумируется агрегатной функцией SUM
Я честно говоря уже не помню ньюансы этого запроса.
Приветствую,
1. В свойствах формы установите следующие значения
BorderStyle = bsNone
WindowState = wsMaximized
2.
procedure Form1_Button1_OnClick (Sender: string; var Cancel: boolean);
begin
if MessageDlg('Exit?', mtInformation, mbYes+mbNo, 0) = mrYes then Form1.Close;
end;
You should create this event
procedure Input_Button1_OnAfterClick (Sender: string);
begin
Form1.TableGrid2.dbUpdate;
end;
TableGrid2 will not update automatically, because you added record to table "Users", but in the TableGrid2 show records from table "Logs", My Visual Database can't to know that you have added some records to the table "Logs" using Triggers or script, you should update TableGrid2 using script.
Дмитрий, не могли бы вы в словах обьяснить, какие действия происходят в этой части запроса
SELECT SUM(rent.rent / (datediff(rent.`end`, rent.`begin`)+1))
Сумма столбца rent в пределах периода? Каким образом эти rent в столбце считаются? Идет подсчет pro-rata или нет?
стоимость аренды делится на количество дней, чтобы знать сколько стоит 1 день аренды, после чего вычисляемя сумма аренды за необходимый промежуток времени.
и еще можно узнать какой максимальный объем базы данных можно сделать в ваше программе
140 террабайт.
мне нужно создать записи по датам на год вперед (планирование)
Год. Месяц. Номер недели. День недели. Число. Номер тренировки в день. Продолжительность тренировки. Время начала. Время конца. и т.д.
Это можно сделать с помощью скрипта, необходимо организовать цикл (for to do) и в нем делать SQL запрос на создание записи.
Сделал для вас пример, выберите интервал даты и нажмите кнопку "Create Records"
Hello,
Check out this SQL query for the report
SELECT person.photo, person.firstname,
person.lastname,
groups.groupname,
phone.number,
(CASE WHEN person.junior=1 THEN 'Junior' WHEN person.senior=1 THEN 'Senior' END) as junior,
person.id FROM person
LEFT OUTER JOIN phone ON person.id=phone.id_person
LEFT OUTER JOIN groups ON person.id_groups=groups.id
It's not possible for MySQL.
Is there a way to choose which column should have a specific resizing against a global setting?
e.g: A want all column to autosize on header except the last one which should fit the content.
No, but you can specify width of columns except the last one, example you have three columns:
procedure Form1_TableGrid1_OnChange (Sender: string);
begin
Form1.TableGrid1.BestFitColumns(); // AutoFit to contents of the cells
Form1.TableGrid1.Columns[0].Width := 150;
Form1.TableGrid1.Columns[1].Width := 150;
end;
Hello,
I checked that, but can't repeat this bug.
Can you make an example project with this bug.
Thank you.
It's architecture limits of Windows components.
There is two types of components:
- Graphic (Label, Image)
- Window (Button, GroupBox, Panel, ComboBox and etc.)
A graphic component can't placed over window component but can placed inside window component, because windows components like Panel and GroupBox can be like container for all types of components.
Приветствую,
к сожалению не совсем понял, что вы пытаетесь сделать, пожалуйста расскажите подробней.
Thanks
It works fine except the Excel part
the whole idea is that when I filter the search for example when the Tablegrid only shows "First name" and "Last name" , a button exports only these rows to Excel.
but in your script no matter what checkboxes you click, Excel Button export all the Tablegrid rows to excel form
can this be fixed?
thank you
It's not possible in version 1.45, but I fixed it in the 2.4 beta version:
http://myvisualdatabase.com/forum/viewtopic.php?id=2179
You should create calculated field:
IFNULL(zakaz.cost, 0) - (SELECT IFNULL(db.dbCost, 0) FROM db WHERE db.id=zakaz.id_db)
I would also be interested in grid properties to set the size of the result columns at least for auto-sizing on header or content
You can do it only using script, auto fit columns width, depending on their content or header, example:
procedure Form1_TableGrid1_OnChange (Sender: string);
begin
Form1.TableGrid1.BestFitColumns(); // AutoFit to contents of the cells
Form1.TableGrid1.BestFitColumns(bfBoth); // AutoFit to contents of the cells and column names
Form1.TableGrid1.BestFitColumns(bfHeader); // AutoFit columns by name
end;
derek
It's planned, but right now I working on WebGrid
My Visual Database → Posts by DriveSoft
Powered by PunBB, supported by Informer Technologies, Inc.
Theme Hydrogen by Kushi