My dw has a column with the dddw edit format. The dddw requires a retrieval argument to isolate records from another table that only apply to the master record. The retrieval argument is different from the data column specified from the master window.
How do I pre-specify the retrieval argument so the dddw doesn't pop-up and ask for the argument?
TIA, Tracy
All DropDownDataWindows (DDDW) having no rows in the primary buffer are "auto-retrieved" when the "container" DataWindow is retrieved.
Therefore, they usually only retrieve as part of the first retrieve for the container DW.
That auto-retrieve is always similar to calling Retrieve without parameters so you need some way to circumvent this auto-retrieve when a DDDW uses retrieval arguments.
"DDDW with no rows" is the "secret weapon"!
You may design the DataWindow object for the DDDW column with one empty row (use the Data pane in the DataWindow painter)
You may from the Constructor event of the container DW insert a row explicitly into each DDDW object, where you want to disable the automatic retrieval
You may set AutoRetrieve = off for DDDW column
-- OR -- you may perform the DDDW retrieve with arguments prior to the automatic retrievals kicking in
When I learned PowerBuilder, there was no "AutoRetrieve" property so we had to learn to use option 1 or option 2 (somehow insert an empty row)
HTH /Michael