v-makarovmail wrote:

Добрый день, Дмитрий.
В версии 1.44, выдаёт ошибку.
Скрин прилагаю.

К сожалению в данной версии скрипт работать не будет, т.к. не реализованы некоторые свойства компонентов.

4,902

(6 replies, posted in Script)

prahousefamily
Unforunately in version 2.040 beta not implemented function SQLQuery for works with MySQL.

4,903

(36 replies, posted in General)

sonixax wrote:

OK Found The problem but I dont know how can I solve it!

when remove this line :      {$MySQL disable_connectdialog}
everything work correctly!
but without it I should connect to database manually sad

Please attach your project for testing.

sait0219
Доработал, по поводу предметов, в SQL запросе необходимо вручную прописать все новые добавленные предметы, также фильтр по предметам сделать только лишь с помощью SQL запроса не получиться, для его реализации нужно задействовать и скрипты, но это уже чуть сложней.

Unfortunately it's impossible, you can do it via menu Options > Open report designer.

4,906

(7 replies, posted in Script)

Please describe, where you want show the sum, in TableGrid? or in a textbox?

4,907

(1 replies, posted in Russian)

К сожалению не посоветую, т.к. пользуюсь только SQLiteStudio, импорт-экспорт думаю лучше организовать скриптом.

4,908

(5 replies, posted in Reports)

Hello,


An example for you:

4,909

(6 replies, posted in General)

SWGAK wrote:

Hello Dmitry

I thought that you'd like to know that with the new BETA (2.6) I'm getting the following error (attached) when I try to run my compiled project.

MAK

Do you have some script to execute SQL queries in section?

begin

end.

if yes, just move this script to event OnShow of main form.

4,910

(36 replies, posted in General)

gamalier_ramirez wrote:

Hello Dimitri

Thanks for the info

I have the following questions:
1. Regarding your response to select MySQL as Database, I'm using version 1.45, for this reason not I select the button appears database that version avilitada have this option ?, and as it is a application for my use if I use a more updated version let me working at the end of 30 days?

2. I want when creating new records, pressing the button again, the format remains visible until I press cancel, and when I select EDIT, the form closes a see you accept.

3. I want to establish in certain TextBox that when type is present in uppercase.

Thank's

Hello,

1. After version 2.0 support MySQL, it's commercial version and not working after trial period.
2. Please attach your project with this bug for testing.
3. put this code to event OnShow of main form

Form1.Edit1.CharCase := ecUpperCase;

4,911

(36 replies, posted in General)

sonixax wrote:

Thanks a lot Dear Dimitri smile
I just wondering, is it possible to play Gif or some sort of animations for loading, etc... in forms ?

In the current version it's not possible.

4,912

(14 replies, posted in Russian)

Igor wrote:

Дмитрий, запустил ваш пример . Кодирует все замечательно, но вот с декодером какая-то проблемка , выводит надпись но не такую , подозреваю что проблема в кодировке Юникода на сервере MySQL, попытался выставить в таблице сравнение с нужным Юникодом (utf-8 general ci), но не срабатывает.
На английской раскладке кодировка и декодировка работает нормально, но только не с русской раскладкой .

Измените выч. поле calc_decrypt на

CONVERT(AES_DECRYPT(description,'passw') using utf8)

Приветствую,


В вашем SQL запросе отсутствует поле id, просто добавьте его, поробней
http://myvisualdatabase.com/help_ru/com … n_sql.html

Приветствую.


К сожалению проект не прикреплен к сообщению.

6katran6 wrote:

1. в базе данных nar таблица summa она к чему то привязана ее нужно удалить мне не нужно что бы тут вообще что то сумировалася
2. я на скрин щопе показывал где ошибки можете посмотреть там наглядна видно

скачайте снова проект:

4,916

(6 replies, posted in Script)

Hello


Unfortunately I can't to reproduce the error in your project, please check your attached project.

4,917

(2 replies, posted in Russian)

Проверил проект, данные на форме Form1 на вкладке "Сводная таблица" выводются.
Пожалуйста описывайте проблему подробней.

4,918

(23 replies, posted in Russian)

bullet13 wrote:

Здравствуйте. Помогите с запросом SQL
Есть некая  таблица с данными (Table1).   
с полями                                                   
text1    text2    text3    text4    text5    text6    text7    text8    text9    text10...textN
1          1          1          1          1          1          1          1          1          1
1          3          1          1          1          1          1          1          1          1
1          1          1          1          4          1          1          1          6          1
1          1          1          1          1          1          1          1          1          1
1          1          1          1          1          1          1          1          1          1
1          2          1          1          1          1          5          1          1          1
1          1          1          1          1          1          1          1          1          1
1          1          1          1          1          1          1          1          1          1

Результат запроса    SQL                                                                            
text2    text5    text7    text9...textN                                                            
3          1          1           1                                                            
1          4          1          6                                                            
2          1          5          1                 

Спасибо.

К сожалению вопрос не ясен.

4,919

(23 replies, posted in Russian)

RZ-007 wrote:

Всем привет!!!
У меня таблица "ААА" с полями "id_BBB" , "id_CCC" и "ааа"
прошу у скрипта показать :

Form2.Edit1.Text := SQLExecute ('SELECT ааа FROM ААА WHERE id = ' + 
IntToStr((Form2.ComboBox1.dbItemID) + (Form2.ComboBox2.dbItemID)) );

т.е. имея два известных поля в строчке отобразить третье...
скрипт показывает, но всё "шиворот на выворот",
где я что-то упустил???

Этот запрос безмысленен, к сожалению не ясно, что именно вы хотели бы получить.

4,920

(1 replies, posted in General)

Hello,


You should enable script for your project. (fourth button on toolbar)

4,921

(36 replies, posted in General)

sonixax wrote:

Hi,
Dear Dimitri,
Ijust need to know how can I automatically connect to MySql instead of that connecting to mysql form when run the app!
But I want to read MySql connect infors from external INI file like MYSQL.INI or Settings.ini!
also want to close software automatically after showing an error message if connecting to mysql is not possible or user click on cancel on that mysql connection form smile

Thanks a lot

Example, how to connect to MySQL using script and how to save and load data from ini file:

4,922

(12 replies, posted in Russian)

memult
Скачайте пожалуйста последнюю  бета версию:
https://www.dropbox.com/s/pebrvqwqcbluy … a.zip?dl=0



Для компонента ComboBox добавил свойство FirstEmptyItem, который позволяет убрать первый пустой пункт списка без использования скрипта.

4,923

(14 replies, posted in Russian)

Igor
Как оказалось есть ньюанс, при использовании функций шифрования. Текст необходимо хранить в полях с типом BLOB, что соотвествует типу ФАЙЛ в MVD, сделал для вас пример:

Приветствую,


пока такой возможности нет, но планируется.

4,925

(10 replies, posted in Russian)

memult wrote:

Ну да, логично. Просто на данный момент в базе, к примеру, есть поле актуальность, которое имеет значения да/нет. Ну и на графике будет так будет же, что не очень удобно. Поэтому проще изменить название легенды, чем менять уже существующие строки в базе.
Ещё раз спасибо.

Можете просто использовать условия, чтобы динамически менять эту переменную, например

if StatusValue = 'да' then StatusValue := 'Актуально';
if StatusValue = 'нет' then StatusValue := 'Неактуально';