:: Visual Foxpro, Foxpro for DOS
To Aleksey Tsingauz-Report buider
Перминов Игорь
Автор

Сообщений: 1591
Откуда: Красная Орловка
Дата регистрации: 16.09.2001
Добрый день Алексей!
Столкнулся с такой "фишкой".
1. Создаем новый отчет (или открываем стары, как хотите)
2. Если нет DataEnvironment - создаем, добавляем табличку.
3. Кидаем объект Field, открывается окно Field Properties
4. Нажимаем кнопочку рядом с полем (кстати никак не обозначенную, хотябы Types)
5. Смотрим на поле Fields - а там ничего нет?!:puke:
Спасибо.




------------------
Без коментариев..
Ratings: 0 negative/0 positive
Re: To Aleksey Tsingauz-Report buider
Aleksey Tsingauz [MSFT]
Здравствуйте, Игорь!

Цитата:
5. Смотрим на поле Fields - а там ничего нет?!

Я так понимаю речь идет о ListBox-е 'Fields' в диалоге 'Expression Builder'.
Спасибо, передам по адресу.

Aleksey Tsingauz
Visual FoxPro Dev Team
Ratings: 0 negative/0 positive
Re: To Aleksey Tsingauz-Report buider
Aleksey Tsingauz [MSFT]
Здравствуйте, Игорь!

Получается, что это BY DESIGN. Вот, что говорит VFP9RELNOTES\Reporting\default.htm:
----------------
Expression-building and validation in Report design. REPORTBUILDER.APP handlers invoke _GETEXPR, the standard Expression Builder dialog, rather than the Report Designer's internal dialogs. Consequently, you will see different handling of field and table lists when you use the Builder to design report expressions. If a table is in the DataEnvironment but not currently open, its contents are not available in the Expression Builder. You can resolve this by opening the table yourself (invoking a Browse of the table from the Data Environment context menu will do).

This behavior represents a change from the "native" behavior, but is by design:

Using the native _GETEXPR dialog allows us to have more flexible behavior than the one specific to reports. REPORTBUILDER.APP provides a hook so you can substitute your own expression dialog, as is done in other parts of VFP.
Using the current data session for expression dialog contents also allows you to limit the available tables the user will see while designing a report. The data environment may contain a number of cursors you needed to use to prepare the data for the report, and not all these cursors might be appropriate for users to include in report expressions. Requiring the tables to be explicitly opened thus allows a form of Protection, on a DataEnvironment member level, for the data used in report design session
----------------

Я сам попробовал, если таблица открыта, то её поля доступны через List Box 'Fields'.

Aleksey Tsingauz
Visual FoxPro Dev Team
Ratings: 0 negative/0 positive


Извините, только зарегистрированные пользователи могут оставлять сообщения в этом форуме.

On-line: 36 anelsasha  (Гостей: 35)

© 2000-2024 Fox Club 
Яндекс.Метрика