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
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)