Home > database >  Consult!!!!!!!!!! About different according to different field value to hang the drop-down window...
Consult!!!!!!!!!! About different according to different field value to hang the drop-down window...

Time:09-15

If just A, B2 A field, A field with the DDLB, B field with the DDDW, A total of L and T two values to choose, when users choose L want field B C table, when the user selects the T want field B D table,,,,,,,, how to achieve

CodePudding user response:

Play, leakage, A field in A total of L and T two values for the user to choose from

CodePudding user response:

String ls_resultname
Ls_resultname=dw_2. GetitemString (an_row, 'resultname)
Choose a case ls_resultname
Case 'ABO blood group'
Dw_2. Modify (" resultstring. DDLB. Case='any' ")
Dw_2. Object. Resultstring. Values="- type tA/type B ~ tB/O ~ the tO/AB ~ type tAB/written ~ t written"
Dw_2. Modify (" resultstring. DDLB. Allowedit='no' ")
Case 'Rh (D) blood type'
Dw_2. Modify (" resultstring. DDLB. Case='any' ")
Dw_2. Object. Resultstring. Values="positive negative/positive/negative ~ ~ t t written ~ t written"
Dw_2. Modify (" resultstring. DDLB. Allowedit='no' ")
Case of hepatitis b surface antigen (HBsAg), hepatitis c antibody (Anti - HCV), 'HIV antibody (Anti - HIV)', 'syphilis antibody (TPPA/TPHA)
Dw_2. Modify (" resultstring. DDLB. Case='any' ")
Dw_2. Object. Resultstring. Values="positive positive/negative ~ ~ t t negative"
Dw_2. Modify (" resultstring. DDLB. Allowedit='no' ")
In case the else
Dw_2. Modify (" resultstring. DDLB. Case='any' ")
Dw_2. Object. Resultstring. Values="~ t/t"
Dw_2. Modify (" resultstring. DDLB. Allowedit='yes' ")
The end choose

Return 0

CodePudding user response:

According to the value of the field dynamic switch B field DDDW and related attribute
Such as
Dw_1. Modify (" # 1. DDDW. Name='dddw_jg' ")
Dw_1. Modify (" # 1. DDDW. DisplayColumn='name_jg' ")
Dw_1. Modify (" # 1. DDDW. DataColumn='id_jg' ")
  • Related