zoukankan      html  css  js  c++  java
  • InforPath的几个基础性的东西

    1.MainDataSource

     获取表单的数据源

     下面这段代码是检查filed1不为空,若为空,则提示(需添加引用,system.windows.forms)

    2. this.NameSpaceManager

    NameSpace: Microsoft.Office.InfoPath

     XPathNavigator text1 = MainDataSource.CreateNavigator().SelectSingleNode("/my:myFields/my:field1",this.NamespaceManager);
                if (string.IsNullOrEmpty(text1.Value))
                {
                    MessageBox.Show("This field Cannot be null !");
                }
    
                XPathNavigator tex2 = MainDataSource.CreateNavigator().SelectSingleNode("/my:myFields/my:field2", this.NamespaceManager);
                tex2.SetValue("I just get the value");
    
  • 相关阅读:
    菜根谭#317
    菜根谭#316
    菜根谭#315
    菜根谭#314
    菜根谭#313
    菜根谭#312
    菜根谭#311
    菜根谭#310
    菜根谭#309
    Matlab xpC启动盘
  • 原文地址:https://www.cnblogs.com/huangll/p/3713874.html
Copyright © 2011-2022 走看看