Mastering PowerBuilder
How Is DataStore Object Different From DataWindow Control ?
- In a DataWindow control, if you call Sort() function after the SetSort() function with a NULL value argument, PowerBuilder displays the sort criteria dialog box. PowerBuilder doesn't display dialog box for DataStore object.
- Same thing applies to the Filter() function also.
- Same thing applies to SaveAs() function also.
- Prompt for Criteria feature is not available for DataStore object.
- If you call Retrieve() function at a DataWindow control with no arguments when the DataWindow object is designed for taking arguments, PowerBuilder prompts you for arguments at run-time. If you do the same for DataStore object, PowerBuilder doesn't prompt you for the retrieval arguments.
- DataStore object has the same types of buffers that a DataWindow control has. However, the use of edit control is slightly different in the DataStore object. In case of DataWindow control, edit control buffer stores the user input and copies to the primary buffer only when the data passes the validation. In case of DataStore object, user is not going to supply any data interactively. All data manipulation is done in the script. The edit control buffer is used to validate data entered in the DataStore object using ImportFile(), ImportClipbord(), ImportString() functions.
The following events aren't available at a DataStore object:
- Clicked
- DoubleClicked
- rButtonDown
- DragDrop
- DragLeave
- DragWithin
- DragEnter
- GetFocus
- LooseFocus
- EditChanged
- ReSize
- ItemFocusChanged
- RowFocusChanged
- ScrollHorizontal
- ScrollVertical