InterviewSolution
| 1. |
Define Datawindow Buffers? |
|
Answer» PRIMARY BUFFER: When data is retrieved from the databse by using retrieve() function, it is retrieved into the Primary Buffer and it is the content of this buffer that are displayed in the datawindow. Powerbuilder always displays the data in datawindow control from the Primary Buffer. Data from other buffers are not visible to the user. ORIGINAL BUFFER When user modifies a row in the DataWindow the row in the Primary Buffer is modified and the original value is copied into the Original Buffer from the Primary Buffer. Copies data only when the user modify the row for the first time. DELTED BUFFER When the user deletes a row with the DeleteRow() function, rows are transferred from Primary Buffer to DELETED Buffer. FILTERED BUFFER When rows are filtered using the SetFilter() function, the filtered rows are display in the DataWindow and don’t MATCH the filterd CONDITIONS are moved to the Filtered Buffer. EDIT CONTROL OR DATA BUFFER Edit DataWindow Control has one edit control. It contains the current column’s data. When the user modify the data in a column modify data is copied in Edit Control Buffer. The modify data on the screen and the content of the Edit Control are same. But the value in the Primary Buffer has the old data. PRIMARY BUFFER: When data is retrieved from the databse by using retrieve() function, it is retrieved into the Primary Buffer and it is the content of this buffer that are displayed in the datawindow. Powerbuilder always displays the data in datawindow control from the Primary Buffer. Data from other buffers are not visible to the user. ORIGINAL BUFFER When user modifies a row in the DataWindow the row in the Primary Buffer is modified and the original value is copied into the Original Buffer from the Primary Buffer. Copies data only when the user modify the row for the first time. DELTED BUFFER When the user deletes a row with the DeleteRow() function, rows are transferred from Primary Buffer to Deleted Buffer. FILTERED BUFFER When rows are filtered using the SetFilter() function, the filtered rows are display in the DataWindow and don’t match the filterd conditions are moved to the Filtered Buffer. EDIT CONTROL OR DATA BUFFER Edit DataWindow Control has one edit control. It contains the current column’s data. When the user modify the data in a column modify data is copied in Edit Control Buffer. The modify data on the screen and the content of the Edit Control are same. But the value in the Primary Buffer has the old data. |
|