Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / PowerBuilder [игнор отключен] [закрыт для гостей] / VScrollbar in the computed field, PB9 / 3 сообщений из 3, страница 1 из 1
28.04.2008, 19:03
    #35284329
Polar Cat
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
VScrollbar in the computed field, PB9
Hi Guys,

Have you ever bumped with the problem of big-size computed fields in DataWindow PB9?
I've got a global PB function returns a formatted string and used as an expression in the computed field. So far so good, it works properly and shows exactly what I want, BUT... The size of returning string is a way bigger then the visible portion of DW field.
Generally, where are 2 approaches: 1) make my the field "AutoSize Height" - it works, unfortunately not acceptable in my particular situation; 2) add "Vert scroll bar" - this is exactly what I need. The problem is that I cannot find such property in computed field!!!
Any suggestion, any idea about how to scroll long text in the computed field would be highly appreciated.

Thanks in advance.
...
Рейтинг: 0 / 0
28.04.2008, 20:57
    #35284441
PL99
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
VScrollbar in the computed field, PB9
Polar Cat2) add "Vert scroll bar" - this is exactly what I need. The problem is that I cannot find such property in computed field!!!Скроллирование допускается только для полей, включенных в исходный SQL запрос. Добавьте поле типа varchar2 (или как оно у вас называется), установите свойства Display Only и Vert Scroll Bar. В клиентском коде (например в событии retrieveend) устанавливайте значение поля равным результату Вашей функции примерно так:
Код: plaintext
myDW.SetItem(row, "myField", f_GetGiantString())
Если же есть возможность вернуть искомую строку с сервера обязательно используйте ее :-)
...
Рейтинг: 0 / 0
28.04.2008, 23:10
    #35284577
Polar Cat
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
VScrollbar in the computed field, PB9
PL99 - Thanks a lot for a prompt answer.

I'm hog-tied with prohibition to make any changes to existing PB script. The only way I allowed to resolve an issue is to change somehow the DW syntax. Otherwise we would have to re-deploy application completely which is unacceptable.
So it looks like mission impossible just because of system architect's short-sightedness and PB restrictions.

Once again thank you for your help.
...
Рейтинг: 0 / 0
Форумы / PowerBuilder [игнор отключен] [закрыт для гостей] / VScrollbar in the computed field, PB9 / 3 сообщений из 3, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]