To all,
I have the following script in the open event of a window and when I select sort off
the menu, nothing happens. However, it did work before I added the line
"dw_1.DataObject = gstr_diag.datawindow" into the script. (that line puts different
dw's into the window based on which rank report the user selected off the menu) I've
been trying to put either the above line, or the sort lines into different script
sections and haven't gotten it to work yet. I though that maybe someone out there may
have had this problem before, or may have a suggestion?
Any help would be greatly appreciated,
Jill
////////////////////////////////////////////////
//
// Object: w_rank
// Event: open
// Desc: sets up services and retrives data
//
////////////////////////////////////////////////
Setpointer(Hourglass!)
// set datawindow according to what user selected in the menu
dw_1.DataObject = gstr_diag.datawindow
// enable report & print preview services
gi_return = dw_1.of_SetReport(TRUE)
gi_return = dw_1.of_SetPrintPreview(TRUE)
gi_return = dw_1.of_SetUpdateable(False)
// enable sort feature
gi_return = dw_1.of_SetSort(TRUE)
gi_return = dw_1.inv_sort.of_SetColumnNameSource(2)
gi_return = dw_1.inv_sort.of_SetColumnHeader(TRUE)
gi_return = dw_1.inv_sort.of_SetUseDisplay(TRUE)
gi_return = dw_1.inv_sort.of_SetStyle(0)
gi_return = m_sheet.m_view.m_sort.Enable()
// retrieve datawindow
gi_return = dw_1.of_SetTransObject(SQLCA)
gl_rows = dw_1.retrieve(gstr_diag.sdate)
> [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS, ADDRESS
> A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE: help pfcsig
> SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]