您的位置:首页 > 产品设计 > UI/UE

Dynamic Drop Down(Translate Values)

2008-08-07 12:25 267 查看
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");
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: