I am using datawindow that is instance from u_dw
and set the pfc service.
of_setRowSelect(TRUE)
of_setRowManager(TRUE)
of_SetSort(TRUE)
of_SetProperty(TRUE)
this.inv_rowselect.of_SetStyle(this.inv_rowselect.EXTENDED)
in the run-time, I can select the datawindw in extended row that is
hightlighted .....( not black color ) only deep blue color..
but while I use the
########################################################
For li_Index = 1 to ll_RowCount
IF dw_master.IsSelected(li_Index) Then
istr_rp.ls_Row[UPPERBOUND(ls_Row)+1] =
string(dw_master.Object.stockcode[li_Index])
lb_Selected = TRUE
END IF
Next
########################################################
But I only selected the last clicked row ..... but I very don't know why
...may be i make a misunderstand of
PFC service of select row..
what can I do to select all row (data) into a array like the above code !!!
For example: dw_master.Object.stockcode.Selected to get the values from the
stockcode column for all the selected rows.
or
dw_master.Object.stockcode.Current to get the values
from the stockcode column for all rows.
Peter Tam <pe...@cdma.com.hk> wrote in message
news:iDCsrcu...@forums.sybase.com...
long RetV = pfc_n_cst_dwsrv_rowselection.FUNCTION STATIC|DYNAMIC
TRIGGER|POST of_selectedcount(long al_selectedrows[])
"John Evenosky" <jevenosky 'at' colburn.com> wrote in message
news:UnFQDrv...@forums.sybase.com...
Philip Salgannik <NOSPAM_p...@phtcorp.com> wrote in message
news:VFezo8w...@forums.sybase.com...
"John Evenosky" <jevenosky 'at' colburn.com> wrote in message
news:26cp8Ix...@forums.sybase.com...
I don't know how to select the highlighted row in datawindow using PFC
thx
"Philip Salgannik" <NOSPAM_p...@phtcorp.com> wrote in message
news:X1fTl6x...@forums.sybase.com...
i don't know what can I pass into the of_selectedcount(XXX) <--- here !!
can you give me an example ?
my case is like that
there is a datawindow (grid format) called "dw_1"
allow user to select more than one row
after that , there is a button called "ok"
after trigger the event of clicked in button
It will assign the selected row into the string array called ls_Row[]
So I use a for-loop to scan the selected one...
but it fails, it only show the last selected one to me .... what is the
problem ?
where I make mistake ?
thx
"Peter Tam" <pe...@cdma.com.hk> wrote in message
news:a6N2fY2...@forums.sybase.com...
long ll_selectedCount
long ll_row[]
long i
string ls_code[]
// This function puts the row numbers of the selected rows in ll_row.
// The return value (in ll_selectedCount) is the number of selected rows.
ll_selectedCount = dw_1.inv_rowSelect.of_selectedCount(ll_row)
FOR i=1 TO ll_selectedCount
// Process the row. For example, if you wanted to read all the values of a
field
// into a string array:
ls_code[i] = dw_1.getItemString(ll_row[i], 'code')
NEXT
hth
Russell Harvey
ITG, Inc.