2020-09-03 14:28发布
点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)嗨, 如何在表单中选中我的复... 显示全部
加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)
嗨,
如何在表单中选中我的复选框?
谢谢
Rune
这不起作用:
(((SAPbouiCOM.CheckBox)(oForm_M.Items.Item(" cbxMarketi")。Specific))。ValOn =" Y";
在Form1.b1f.cs中找到了它:
初始化于:
private void OnCustomInitialize() {....
this.UIAPIRawForm.DataSources.UserDataSources.Add(" chk1DS",SAPbouiCOM.BoDataType.dt_SHORT_TEXT,1); this.UIAPIRawForm.DataSources.UserDataSources.Add(" chk2DS",SAPbouiCOM.BoDataType.dt_SHORT_TEXT, ); this.UIAPIRawForm.DataSources.UserDataSources.Add(" chk3DS",SAPbouiCOM.BoDataType.dt_SHORT_TEXT,1);
....
chkContReg.DataBind.SetBound(true,""," chk1DS"); chkContReg.Caption =" YourCaption"; chkContReg.ValOn =" Y"; chkContReg.ValOff =" N "; this.UIAPIRawForm.DataSources.UserDataSources.Item(" chk1DS")。Value =" N"; this.UIAPIRawForm.DataSources.UserDataSources.Item(" chk2DS")。Value =" N"; this.UIAPIRawForm.DataSources.UserDataSources.Item(" chk3DS")。Value =" N";
....}
最多设置5个标签!
在Form1.b1f.cs中找到了它:
初始化于:
private void OnCustomInitialize()
{....
this.UIAPIRawForm.DataSources.UserDataSources.Add(" chk1DS",SAPbouiCOM.BoDataType.dt_SHORT_TEXT,1);
this.UIAPIRawForm.DataSources.UserDataSources.Add(" chk2DS",SAPbouiCOM.BoDataType.dt_SHORT_TEXT, );
this.UIAPIRawForm.DataSources.UserDataSources.Add(" chk3DS",SAPbouiCOM.BoDataType.dt_SHORT_TEXT,1);
....
chkContReg.DataBind.SetBound(true,""," chk1DS");
chkContReg.Caption =" YourCaption";
chkContReg.ValOn =" Y";
chkContReg.ValOff =" N ";
this.UIAPIRawForm.DataSources.UserDataSources.Item(" chk1DS")。Value =" N";
this.UIAPIRawForm.DataSources.UserDataSources.Item(" chk2DS")。Value =" N";
this.UIAPIRawForm.DataSources.UserDataSources.Item(" chk3DS")。Value =" N";
....
....}
一周热门 更多>