当自定义控件有多个实例时,从自定义控件获取字段值 [英] Getting a field value from a custom control when there are multiple instances of the custom control

查看:33
本文介绍了当自定义控件有多个实例时,从自定义控件获取字段值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 xPage,其中包含同一个自定义控件的多个实例.如何从 xPage 上的按钮获取特定自定义控件上字段的值.

I have an xPage with multiple instances of the same custom control. How do I get to the value of a field on a specific custom control from a button on my xPage.

通常我会这样做:

ctlName = "radioGroupCMBUAction";var changeType = getComponent(ctlName).getValue();

ctlName = "radioGroupCMBUAction"; var changeType = getComponent(ctlName).getValue();

如果控件只有一个实例.我将如何使用控件的多个实例来执行此操作?

If there was only one instance of the control. How would I do this with multiple instances of the control?

推荐答案

不确定这是否可以帮助您..?不久前,我写了一个关于私有"作用域变量的提示:

Not sure if this can help you..? A while back, I wrote a tip regarding "private" scoped variables:

http://dontpanic82.blogspot.com/2010/03/xpages-tip-regarding-private-scoped.html

这篇关于当自定义控件有多个实例时,从自定义控件获取字段值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆