??能不能在程序运行的时候,用lotus script向组合框类型的域中添加项??

RickeyLv 2002-01-10 05:40:58
...全文
129 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
Jim_OU 2002-04-30
  • 打赏
  • 举报
回复
Set item = doc.GetFirstItem( "Categories" )
Call item.AppendToTextList( "Shocks" )
这个程序是可以把值加入到“复合框”,可以用程序读出加入后的值,但是显示不了啊,就是说下拉的时候看不到:(
joxin 2002-01-11
  • 打赏
  • 举报
回复
document.forms[0].xxx.length;
星期一,去公司再给你发一段程序。
zhymerry 2002-01-11
  • 打赏
  • 举报
回复
hellrock:他说的是通过程序实现,你这种是公式的实现方法
程序实现:
This script appends the text value "Shocks" to the Categories item on a document. For example, if the Categories item contains the values "Clocks" and "Blocks" before the script runs, it contains the values "Clocks," "Blocks," and "Shocks" after the script runs.
Dim doc As NotesDocument
Dim item As NotesItem
' ...set value of doc...
Set item = doc.GetFirstItem( "Categories" )
Call item.AppendToTextList( "Shocks" )
Call doc.Save( False, True )

详细查看notesitem.appendtotextlist
shgciom 2002-01-11
  • 打赏
  • 举报
回复
joxin():
我不知道怎么直接添加(使用javascript)?
取不到组合框类型的域的总的大小,既有多少个值?
joxin 2002-01-11
  • 打赏
  • 举报
回复
给一个对话框列表的例子吧。src是多值的文本域的值(input),tar是对话框列表域。
使用:getvalue(input.value,document.forms[0].xxx);
function getvalue(src,tar)
{
var allArgs = src;
allArgsA = allArgs.split(";");
maxA = allArgsA.length
for (i=0;i<maxA;i++)
{
Text = allArgsA[i].replace(" ","")
if (Text =="") return false;
tar.options[i] = new Option(Text);
}
你可以参照改一下用。
hellrock 2002-01-11
  • 打赏
  • 举报
回复
java真的这么强。。看来还是学学这个。。
joxin 2002-01-11
  • 打赏
  • 举报
回复
用javascript直接向该域中添值即可。
hellrock 2002-01-10
  • 打赏
  • 举报
回复
其中Column Number就是view中a的列
hellrock 2002-01-10
  • 打赏
  • 举报
回复
直接向组合框类型的域中添加项是不行的,但是你可以通过另外一个多值域a,
然后通过添加项到该域中,而组合框(为选项使用公式)的值就根据包含该域的试图的列值动态的变化!
组合框使用公式可以类似:
@DbColumn("":"NoCache";"server name":"database name";"view name";Column Number)
其实Column Number就是a的view列

535

社区成员

发帖
与我相关
我的任务
社区描述
企业开发 Exchange Server
社区管理员
  • 消息协作社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧