derek
Hello.
1. I will do it before final version.
2. In the current alpha version it's not possible but I will try to do it.
My Visual Database → Posts by DriveSoft
derek
Hello.
1. I will do it before final version.
2. In the current alpha version it's not possible but I will try to do it.
Приветствую.
Скачайте пожалуйста последнюю бета версию.
http://myvisualdatabase.com/forum/viewtopic.php?id=2887
Пример, как получить html из TWebBrowser
Так задумано, можете изменить это поведение простым скриптом, создайте событие OnClick для кнопки, пример
procedure Form1_buttonSave_OnClick (Sender: string; Action: string);
begin
Form1.buttonSave.dbDontResetID := True;
end;
К сожалению чтобы определить проблему, проекта мало, необходим сам скрипт, который был сгенерирован для WebGrid и доступ к серверу.
Игоревич
Пожалуйста прикладывайте проект целиком, я не смогу запустить скрипт в голове, чтобы протестировать его )
https://cloud.mail.ru/public/7W7G/w9XPiYYuW попробуйте с майла.
В настройках кнопки Excel вы просто не указали, по какому полю сортировать, я указа по фирме.
Также доработал ваш шаблон отчета для печати с двумя колонками.
ZBear
К сожалению по данному куску скрипта не смогу определить ошибку.
Игоревич
По данном отрывку кода я не могу определить ошибку, видимо в скрипте используются глобальные переменные, которые не описаны в этом событии (такие как sDeletedObekt, sDeletedSistema) и формируются где то в других частях скрипта.
Игоревич
Увы я не могу помочь с поиском пиратских програм.
@Dmitry - That was exactly what I was looking for - thank you! I have one question though, is TdbStringGridEx referenced anywhere in the documentation or the functions reference in the code editor? I couldn't find it. Anyway, I've added an example project file to show how I'm using it. Hope it can help some other forum members.
For grid Iam using component TNextGrid 5 from bergsoft.net.
Please download attached help file for the component, look section "GridView"
Hello.
The function RemoveDir will be in the next version.
Thanks.
Приветствую.
К сожалению яндекс почему то не дает скачать проект.
Hello.
It's not support.
AD1408
I just can't run your project, to many mistakes. I think you have errors in the calculated fields.
Also you have wrong database structure, too many relationships between tables.
kkalgidim
You should use SQL query for report in WHERE section
Date(teslimtarihi) = Date('Now','localtime','+1 day')
Please download fixed project:
Ошибок больше нет, но скрипт определения пользователя так и отрабатывает не верно, ещё раз отмечу - в 2.8 всё работает.
Опишите пожалуйста подробней, что это за скрипт? У меня нет доступа к вашей базе поэтому нет тестовых данных с пользователями.
При запуске из версии 3.0 неверно определяется пользователь и выходят ошибки. В 2.8 всё работает.
Исправил, скачайте пожалуйста снова последнюю версию 3.01а
Роман
Запретить тестировать я вам не могу, тестируйте )
Позже можно будет запрещать редактировать колонки.
i have version 2.8 with minor update license. do i need to buy new license to use version 3?
If you have purchased a license in August 2016 or later, you will get all updates 3.xx for free.
But version 3.0 alpha can use all registered users (2.xx).
Hello.
Please attach your project.
pt.82
К сожалению я не могу понять ваш вопрос полностью, лучше приложите проект и опишите проблему в целом, что вы пытаетесь сделать.
motorolla
Можно скриптом
procedure Form1_TableGrid1_OnChange (Sender: string);
begin
// запрещает изменять размер колонок мышкой
Form1.TableGrid1.Columns[0].Options := Form1.TableGrid1.Columns[0].Options + coFixedSize;
Form1.TableGrid1.Columns[1].Options := Form1.TableGrid1.Columns[1].Options + coFixedSize;
// указываем размеры колонок
Form1.TableGrid1.Columns[0].Width := 50;
Form1.TableGrid1.Columns[1].Width := 50;
end;
clyde
Example:
procedure Form1_TableGrid1_OnChange (Sender: string);
begin
TableGrid_OnChange(Form1.TableGrid1);
end;
procedure Form1_GridEmployees_OnChange (Sender: string);
begin
TableGrid_OnChange(Form1.GridEmployees);
end;
procedure TableGrid_OnChange (Sender: TdbStringGridEx);
var
i,k: integer;
begin
for i := 0 to Sender.RowCount - 1 do
begin
for k := 0 to Sender.Columns.Count - 1 do
begin
Sender.Cell[k,i].Color := $00F0F0F0;
end;
end;
end;
@Dmitry - Many thanks for the link to 2.8 and the example code. Unfortunately, the XML is the response from an HTTP GET request - not a file I can load using LoadFromFile(<filename>). I could use the PosEx though. Which leads me to a question. When does 2.8 come out of Beta. I'm wondering about using the beta just to obtain the PosEx function .
Example using HTTPGet('http://site.com/file.xml');
procedure Form1_Button1_OnClick (Sender: string; var Cancel: boolean);
var
sXML: string;
s, sRow, sDuration, sDistance: string;
iPos1, iPos2, iOffset: integer;
begin
sXML := HTTPGet('http://site.com/file.xml');
iOffset := 1;
iPos1 := 1;
while true do
begin
iPos1 := PosEx('<row>', sXML, iOffset);
if iPos1=0 then break;
iPos2 := PosEx('</row>', sXML, iOffset);
iOffset := iPos2+1;
sRow := Copy(sXML, iPos1, iPos2-iPos1);
sDuration := Copy(sRow, Pos('<duration>', sRow), Pos('</duration>', sRow)-Pos('<duration>', sRow) );
sDistance := Copy(sRow, Pos('<distance>', sRow), Pos('</distance>', sRow)-Pos('<distance>', sRow) );
s := Copy(sDuration, Pos('<text>', sDuration)+Length('<text>') , Pos('</text>', sDuration)-Pos('<text>', sDuration)-Length('<text>'));
Form1.Memo1.Lines.Add(s);
s := Copy(sDistance, Pos('<text>', sDistance)+Length('<text>') , Pos('</text>', sDistance)-Pos('<text>', sDistance)-Length('<text>'));
Form1.Memo1.Lines.Add(s);
end;
end;
Now you can download final version of 2.8
My Visual Database → Posts by DriveSoft
Powered by PunBB, supported by Informer Technologies, Inc.
Theme Hydrogen by Kushi