0
我有一個InfoPath表單,其中部門作爲重複表格輸入,所有部門都在此輸入。Infopath組合框選擇項目,但在其他組合框中選擇的項目除外
然後我有第二個重複表,用戶輸入。該行由3列組成:用戶名字符串,UserDepartmentCombo1(可從查找部門的下拉列表中選擇)和CoveragePathCombo2下拉列表(再次從部門列表中查找)。
通過InfoPath中輸出XML如下:
<?xml version="1.0" encoding="UTF-8"?>
<?mso-infoPathSolution solutionVersion="1.0.0.6" productVersion="15.0.0" PIVersion="1.0.0.0" href="file:///C:\Users\user\Desktop\test.xsn" name="urn:schemas-microsoft-com:office:infopath:test:-myXSD-2012-10-21T13-16-52" ?>
<?mso-application progid="InfoPath.Document" versionProgid="InfoPath.Document.4"?>
<my:myFields xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2012-10-21T13:16:52" xmlns:xd="http://schemas.microsoft.com/office/infopath/2003" xml:lang="en-gb">
<my:group1>
<my:Departments>
<my:DeptName>Accounts</my:DeptName>
<my:field3>false</my:field3>
</my:Departments>
<my:Departments>
<my:DeptName>Sales</my:DeptName>
<my:field3>false</my:field3>
</my:Departments>
<my:Departments>
<my:DeptName>Support</my:DeptName>
<my:field3>false</my:field3>
</my:Departments>
<my:Departments>
<my:DeptName>Reception</my:DeptName>
<my:field3>false</my:field3>
</my:Departments>
</my:group1>
<my:group2>
<my:Users>
<my:UserDepartment>Sales</my:UserDepartment>
<my:Username>Chris</my:Username>
<my:CoveragePath>Reception</my:CoveragePath>
</my:Users>
<my:Users>
<my:UserDepartment>Sales</my:UserDepartment>
<my:Username>Jon</my:Username>
<my:CoveragePath>Accounts</my:CoveragePath>
</my:Users>
</my:group2>
</my:myFields>
我CoveragePath
組合框的XPath如下:/my:myFields/my:group1/my:Departments/my:DeptName
我想組合框CoveragePath
下拉到不包括在選擇部門行UserDepartment
組合框,我將如何去做這件事?
請提供必須應用XPath表達式的XML文檔 - 包括所選節點的表示。 –
@DimitreNovatchev XML文檔已在原始文章中進行了編輯。謝謝。 – g18c