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");
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");
相关文章推荐
- [转]excel set drop-down values based on vlookup
- dynamic-drop-down-box.jsp
- Dynamic View and Drop Down Menu
- Dynamic Prompt Table Depending on a Drop Down Value
- Water-drop 节选翻译 ----Dynamic rain and its effects
- 多选下拉框 multiple select drop down list
- Some points about postback and multi-language drop down list
- Android Spinner (Drop Down List) Example
- 组合框(下拉列表)(Combo box(drop-down list))
- Drop down list 和 Comb box 的区别
- 2.Dynamic Programming on Stolen Values【dp】
- javascript 操作 drop down list
- Warning: Cannot read drop down range Unrecognized token 43
- Drop down Box on Selection Screen
- Nintex Forms Drop-Down "z-index"
- How to Activate the Drop Down Menu in MOSS 2010 Sites
- [XAF] How to represent an enumeration property via a drop-down box with check boxes
- How to Change the Default Select Drop-Down List with CSS
- Fixing SharePoint 2010 Lookup Drop Down 20 Items Limit
- create list and drop down list in Excel 2003