华拓科技网
您的当前位置:首页Dynamic Drop Down(Translate Values)

Dynamic Drop Down(Translate Values)

来源:华拓科技网
This code i have got Ittool box.com.
It is very usefull. we usually have requirement when we want to hide some translate values from translate field on page for some business reason.
In this case we can use AddDropDownItem(),ClearDropDownItem().
The fact is that we need to use ClearDropDownItem() function first. so whatver values it had will bec leared out and then we will have to manually add values using AddDropDownItem().

Here is an example on the page activate PeopleCode.

Local Field &fField;

&fField = Record.EX_APR_WRK.APPROVAL_STATUS;
&fField.ClearDropDownList();
&fField.AddDropDownItem(" ", "All");
&fField.AddDropDownItem("A", "Approved");
&fField.AddDropDownItem("D", "Denied");
&fField.AddDropDownItem("H", "Hold");

转载于:https://www.cnblogs.com/GoDevil/archive/2008/08/07/1262745.html

因篇幅问题不能全部显示,请点此查看更多更全内容