public interface DataFillableWidget
Modifier and Type | Method and Description |
---|---|
void |
clearDataSet()
Clears the widget's underlying dataset
|
void |
exportData(BBjNumber p_parentX,
BBjNumber p_parentY,
BBjNumber p_parentWidth,
BBjNumber p_parentHeight)
Displays an export dialog that allows the user to export the widget's data to a CSV file with several output options
|
void |
fill(BBjRecordSet p_rs!,
BBjVector p_columns!)
Fills the widget underlying dataset with data from a BBjRecordSet
|
void |
fill(BBjString p_connectString$,
BBjString p_sql$)
Fills the widget's underlying dataset with data from an SQL query
|
BBjVector |
getColumns()
Returns the Columns
|
BBjString |
getConnectString()
Returns the JDBC connect String
|
BBjRecordSet |
getRecordSet()
Returns the RecordSet
|
BBjString |
getSQL()
Returns the SQL query
|
void |
viewData()
Exports the widget's data to a CSV file and displays it in the application associated with CSV files on the client's machine
|
void fill(BBjString p_connectString$, BBjString p_sql$)
p_connectString$
- The connection string to the desired database. Example: "jdbc:basis:localhost?database = ChileCompany&user = admin&password = admin123"p_sql$
- The sql query used to populate the widget.void fill(BBjRecordSet p_rs!, BBjVector p_columns!)
p_rs!
- The BBjRecordSet containing the data used to populate the widgetp_columns!
- A BBjVector that contains an ordered list of the columns to be used for the widgets's data. The entries may be a string corresponding to a field name, or a 0-based index of the column number. If null() is passed in for the p_columns! vector then the first X number of columns of the BBjRecordSet will be used.void clearDataSet()
void viewData()
void exportData(BBjNumber p_parentX, BBjNumber p_parentY, BBjNumber p_parentWidth, BBjNumber p_parentHeight)
p_parentX
- X location of the parent windowp_parentY
- Y location of the parent windowp_parentWidth
- Width of the parent windowp_parentHeight
- Height of the parent windowBBjString getConnectString()
BBjString getSQL()
BBjRecordSet getRecordSet()
BBjVector getColumns()