powered by simpleCommunicator - 2.0.59     © 2025 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / PowerBuilder [игнор отключен] [закрыт для гостей] / 2 вопроса
6 сообщений из 6, страница 1 из 1
2 вопроса
    #34807109
pb_new
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
1) Можно ли поменять тип datawindow (c grid на tabular)?
2) Метод update объекта datawindow обновляет все данные вне зависимости были ли они изменены, или только измененные\добавленные в datawindow?
...
Рейтинг: 0 / 0
2 вопроса
    #34807158
Локшин Марк
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
pb_new1) Можно ли поменять тип datawindow (c grid на tabular)?
Edit Source processing = 0 - tabular.
pb_new2) Метод update объекта datawindow обновляет все данные вне зависимости были ли они изменены, или только измененные\добавленные в datawindow?
второе.
...
Рейтинг: 0 / 0
2 вопроса
    #34807214
pb_new
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Edit Source processing = 0 - tabular.

Судя по описанию свойство processing доступно только для чтения - программно данное свойство не меняется. Но этого и не требуется. Нужно в паинтере, на стадии разработки, изменить стиль представления.
...
Рейтинг: 0 / 0
2 вопроса
    #34807308
pb_new
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Edit Source processing = 0 - tabular.
разобрался. Edit Source - пункт меню.
Для человека редко работающего с пб довольно сложно соорентироваться.
Спасибо.
...
Рейтинг: 0 / 0
2 вопроса
    #34807511
Локшин Марк
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
pb_newпрограммно данное свойство не меняется
Вообще-то может меняться...
...
Рейтинг: 0 / 0
2 вопроса
    #34807668
alexis glinski
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
pb_new2) Метод update объекта datawindow обновляет все данные вне зависимости были ли они изменены, или только измененные\добавленные в datawindow?

Вот из хэлпа:

When data is retrieved
When data is retrieved into a DataWindow, all rows and columns initially have a status of NotModified!.
After data has changed in a column in a particular row, either because the user changed the data or the data was changed programmatically, such as through the SetItem function, the column status for that column changes to DataModified!. Once the status for any column in a retrieved row changes to DataModified!, the row status also changes to DataModified!.

When rows are inserted
When a row is inserted into a DataWindow, it initially has a row status of New!, and all columns in that row initially have a column status of NotModified!. After data has changed in a column in the row, either because the user changed the data or the data was changed programmatically, such as through the SetItem function, the column status changes to DataModified!. Once the status for any column in the inserted row changes to DataModified!, the row status changes to NewModified!.

When a DataWindow column has a default value, the column's status does not change to DataModified! until the user makes at least one actual change to a column in that row.

When Update is called
A row's status flag determines what SQL command the Update function uses to update the database. INSERT or UPDATE is called depending upon the following row statuses:

Код: plaintext
1.
2.
Row status	SQL statement generated
NewModified!	INSERT
DataModified!	UPDATE

A column is included in an UPDATE statement only if the following two conditions are met:

The column is on the updatable column list maintained by the DataWindow object

For more information about setting the update characteristics of the DataWindow object, see the PowerBuilder User's Guide.


The column has a column status of DataModified!

The DataWindow control includes all columns in INSERT statements it generates. If a column has no value, the DataWindow attempts to insert a NULL. This causes a database error if the database does not allow NULLs in that column.
...
Рейтинг: 0 / 0
6 сообщений из 6, страница 1 из 1
Форумы / PowerBuilder [игнор отключен] [закрыт для гостей] / 2 вопроса
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


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