tableselect

Read and change the sql statement behind a data window

 

// Read sql command
let ls_sql=dw_4.tableselect
// replace sql command
dw_4.tableselect=ls_sql

 

Note:

The count and type of returned field must be the same, otherwise this produce an error