关于 salesforce 中的单选按钮
我正在寻找有关 salesforce apex 编程中单选按钮的解决方案。
场景是我有一个对象,其中一个字段在选择单选按钮时更新值,其中有三个选项,例如设置 1 = 0、设置 2 = 1、设置 3 = 2。之后,如果我选择设置 1,那么当我来时通过设置页面的命令链接到同一页面。先前选择的[settings1]
未处于选定状态单选按钮。我已编写查询来获取该字段值,但它没有显示先前选择的单选按钮。
I am searching for the solution regarding the radio button in salesforce apex programming.
The scenario is I have one object in that one field is updated with value when the radio button is selected in which there are three options like settings1 =0, settings2 =1, settings3 = 2. After that if I select setting1 then when I come to same page through command link of settings page. Previously selected [settings1]
is not in a selected state radio button. I have written query to get that field value but it is not showing the selected radio button previously selected.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否使用 Visualforce selectRadio 标签?如果是,那么您是否将 value 属性设置为对象字段?
确保不要混淆标签和值,对象字段必须存储值(如果选择设置 1,则为 0),而不是单选字段的标签 (设置 1)。
Are you using the visualforce selectRadio tag? If yes, then have you set the value attribute to your object field?
Make sure to not mix up the Labels and Values, the object field has to store the value (0 if you selected settings1) and not the label (settings1) of the radio field.