| Home | Previous Lesson: Linkage Service Next Lesson: DropDown Calendar Service |
As explained in the Advanced DataWindows session, you can set a column as a "value required" column. That means that when a column gets focus, the user can�t tab out of the column unless he enters a value in it. However, if the user didn�t go into that column at all, then, PowerBuilder is not going to force the user for the value. One good thing is that, you can call the FindRequired() function to check columns that need value, but have no value, before you save the changes to the database. If you would like to use the PFC service instead of calling the FindRequired(), as usual you need to turn on the service first:
dw_product.of_SetReqColumn(TRUE)
To do the actual check, call the following function.
dw_product.of_CheckRequired(Primary!, ll_Row, ll_Col, &
ls_ColumnName, TRUE)
|
Parameter No |
Description |
|
First |
The buffer to check. Valid values are Primary! and Filter! |
|
Second |
The row number from which the search should start. PowerBuilder stores the first error row number in this parameter. |
|
Third |
The first column number from which the search should start. PowerBuilder stores the first error column number in this parameter. |
|
Fourth |
After search, PowerBuilder stores the error column name. |
|
Fifth |
True/False. True means, search only those columns that have been changed or added. Otherwise, PowerBuilder checks all the rows and columns. |
| Home | Previous Lesson: Linkage Service Next Lesson: DropDown Calendar Service |