|
|
|
2 вопроса
|
|||
|---|---|---|---|
|
#18+
1) Можно ли поменять тип datawindow (c grid на tabular)? 2) Метод update объекта datawindow обновляет все данные вне зависимости были ли они изменены, или только измененные\добавленные в datawindow? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.09.2007, 10:43 |
|
||
|
2 вопроса
|
|||
|---|---|---|---|
|
#18+
pb_new1) Можно ли поменять тип datawindow (c grid на tabular)? Edit Source processing = 0 - tabular. pb_new2) Метод update объекта datawindow обновляет все данные вне зависимости были ли они изменены, или только измененные\добавленные в datawindow? второе. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.09.2007, 10:52 |
|
||
|
2 вопроса
|
|||
|---|---|---|---|
|
#18+
Edit Source processing = 0 - tabular. Судя по описанию свойство processing доступно только для чтения - программно данное свойство не меняется. Но этого и не требуется. Нужно в паинтере, на стадии разработки, изменить стиль представления. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.09.2007, 11:06 |
|
||
|
2 вопроса
|
|||
|---|---|---|---|
|
#18+
Edit Source processing = 0 - tabular. разобрался. Edit Source - пункт меню. Для человека редко работающего с пб довольно сложно соорентироваться. Спасибо. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.09.2007, 11:25 |
|
||
|
2 вопроса
|
|||
|---|---|---|---|
|
#18+
pb_newпрограммно данное свойство не меняется Вообще-то может меняться... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.09.2007, 12:06 |
|
||
|
2 вопроса
|
|||
|---|---|---|---|
|
#18+
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. 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. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.09.2007, 12:43 |
|
||
|
|

start [/forum/topic.php?fid=15&msg=34807109&tid=1336990]: |
0ms |
get settings: |
10ms |
get forum list: |
13ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
45ms |
get topic data: |
10ms |
get forum data: |
3ms |
get page messages: |
43ms |
get tp. blocked users: |
2ms |
| others: | 13ms |
| total: | 147ms |

| 0 / 0 |

Извините, этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
... ля, ля, ля ...