Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

dropDownDataWindow --> get data from the display-value

1,589 views
Skip to first unread message

M.Erlinger

unread,
Dec 27, 2005, 4:50:04 AM12/27/05
to
Hello

i have a problem - [it's usually powerbuilder-basics ;-) ] with
dropdown-datawindow: i need the data, from the displayed row of the
datawindow/dropdown-datawindow-column.
i have defined a DataWindowChild-var. and referenced to the column; but
if i perform a "GetRow" from the datawindowChild - it always returns
the row 1 and i get with the datawindowChild.GetItemString(xxxx) the
value of the first row...............

how could i simply find/get the value of the current row??

have anyone a clue or example for my problem
many thank's in advance
Michael

Chris Werner

unread,
Dec 27, 2005, 6:14:26 AM12/27/05
to
Hi Michael,

you can't get the actual display value from a dddw using
dddw.getItemXXX(dddw.getRow(), ...). Rather use one
of the following solutions:

1) Get the actual data value from the dataWindow, form
a search expression to find the row containig this data
value in the ddde and getItemXXX() the display value
from this row.

OR

2) Call dw.describe(ls_expr) where ls_expr is of the form:

"evaluate('lookupDisplay(<colName>)', <rowNumber>)"

and <colName> and <rowNumber> are replaced with
appropriate values.


HTH

Chris Werner


"M.Erlinger" <michael....@erlinger-software.at> schrieb im Newsbeitrag
news:43b10e4c@forums-1-dub...

M.Erlinger

unread,
Dec 27, 2005, 7:37:10 AM12/27/05
to
Hi Chris
Thank's for your help - i have a question to 2)
>colName< --> the columnName from the display-Column in the
dropdow-datawindow ??
>rowNumber< --> the row of the datawindow or the row of the
dropdown-datawindow??

thank's for your help
Michael

Chris Werner

unread,
Dec 27, 2005, 8:59:54 AM12/27/05
to
Hi Michael,

<colName>:
The name of the column having DDDW as edit style (in the main dw).

<rowNumber>:
The number of the row in the main dw.

Chris Werner


"M.Erlinger" <michael....@erlinger-software.at> schrieb im Newsbeitrag

news:43b13576$1@forums-1-dub...

M.Erlinger

unread,
Dec 27, 2005, 9:10:51 AM12/27/05
to
Thank's Chris for your help !!!!!!
M.
0 new messages