Hi,
I'm trying to populate a Dropdown control in an Infopath Browser Form through a Sharepoint List View. I use a udc file with a query to populate the Display Fields and Values in the Dropdown.
The query is similar to the following:
http://bfdev32bit:60000/_vti_bin/owssvr.dll?Cmd=Display&List={0f189d16%2Ddd54%2D453d%2D9d85%2Db03d9ead48d9}&XMLDATA=TRUE&FilterField1=IsSecretary&FilterValue1=0
which results in:
- <xml xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema">
- <s:Schema id="RowsetSchema">
- <s:ElementType name="row" content="eltOnly" rs:CommandTimeout="30">
- <s:AttributeType name="ows_LinkTitleNoMenu" rs:name="Title" rs:number="1">
<s:datatype dt:type="string" dt:maxLength="512" />
</s:AttributeType>
- <s:AttributeType name="ows_Person" rs:name="Person" rs:number="2">
<s:datatype dt:type="string" dt:lookup="true" dt:maxLength="512" />
</s:AttributeType>
- <s:AttributeType name="ows_IsSecretary" rs:name="IsSecretary" rs:number="3">
<s:datatype dt:type="boolean" dt:maxLength="1" />
</s:AttributeType>
</s:ElementType>
</s:Schema>
- <rs:data>
<z:row ows_Person="20;#Vertriebsleiter1AT" ows_IsSecretary="0" />
</rs:data>
</xml>
For display purposes I wan to get rid of the preceding ID in front of the returned value - so 20;#Vertriebsleiter1AT should become Vertriebsleiter1AT.
Is there a way to do this in the query or in the Infopath Form (I guess I cannot use any string operations like substring as the data is directly pulled from the query so I can only specify the fields in the data source that I want to use.
Thanks,
DD