C# 如何在C中使用SAP B1 screen painter表单字段#
我已经使用screen painter创建了一个表单,并在项目文件中另存为xml。如何在C#中使用此表单字段,即按钮、编辑文本等 在screen painter中,为每个表单对象指定一个唯一的ID,例如下面编辑文本的用户名 在C#中,初始化控件,例如C# 如何在C中使用SAP B1 screen painter表单字段#,c#,sapb1,C#,Sapb1,我已经使用screen painter创建了一个表单,并在项目文件中另存为xml。如何在C#中使用此表单字段,即按钮、编辑文本等 在screen painter中,为每个表单对象指定一个唯一的ID,例如下面编辑文本的用户名 在C#中,初始化控件,例如 SAPbouiCOM.Item oItem = null; private SAPbouiCOM.EditText _userName; oItem = _form.Items.Item("UserName"); _userName = oIt
SAPbouiCOM.Item oItem = null;
private SAPbouiCOM.EditText _userName;
oItem = _form.Items.Item("UserName");
_userName = oItem.Specific;
_userName.Value = "";
SAP B1 SDK中有一些示例演示了如何在安装后执行此操作。例如我的路线
C:\Program Files(x86)\SAP\SAP Business One SDK\Samples\COM UI\CSharp
请看示例3您是否创建了C#WPF或Window Forms项目?是的,我已经在ITI中创建并加载了xml表单,虽然是一个有效的答案,@Gaterde想知道您使用的是哪种技术:
WinForms
或WPF
。我正在使用WinForms