Home > database >  How in the datawindow dynamic increase the drop-down list of values?
How in the datawindow dynamic increase the drop-down list of values?

Time:10-16

Big is dw_1, little is dw_2
I want dw_1 PID choose show dw_2 Pid Id value, dw_1 the PID choose format is the gulag, consult everybody a great god how to write this?

CodePudding user response:

Through access to DW, insert row,
Datawindowchild DWC

Dw_1. Getchild (" column ", DWC)

DWC. Insertrow ()

CodePudding user response:

Set pid choose edit type as the DDDW, specify the data window, cancel autoretrieve

Datawindowchild LDWC
Dw_1. Getchile (" pid choice, "LDWC)

LDWC. Reset ()
Dw_2. Rowscopy (1, dw_2 rowcount (), primary! , LDWC, 1, priamry!)

CodePudding user response:

Datawindowchild DWC

Dw_1. Getchild (" column ", DWC)
Then you can literally make the DWC
If you don't need to remove the autoretrieve automatically retrieve

CodePudding user response:

Structure in dw_1. Clicked event value of PID choose

String ls_pidid
Long ll_loop

For ll_loop=1 to dw_2. Rowcount ()
If ll_loop=1 then
Ls_pidid=string (dw_2 getitemnumber (ll_loop, 'pidid))
The else
Ls_pidid=ls_pidid + '~ t + string (dw_2. Getitemnumber (ll_loop,' pidid))
End the if
Next

Dw_1. Modify (" pid selected. Values='" + ls_pidid + "' ")
  • Related