开发者

Infopath get max() value from SharePoint column

开发者 https://www.devze.com 2023-03-23 21:16 出处:网络
How can I get the max value (the row with the开发者_如何学运维 greatest value for a particular column) from a SharePoint document library using Infopath and the Document Information Panel.

How can I get the max value (the row with the开发者_如何学运维 greatest value for a particular column) from a SharePoint document library using Infopath and the Document Information Panel.

Tried max(.) it does not work.

Thanks.


I tried this as well in Infopath but was unable to do so. In the end I was forced to write VSTA code for the infopath form, query the form, then executed a CAML query to get the max entry:

<View>
    <Query>
        <OrderBy>
            <FieldRef Name="yourColumn" Ascending="FALSE" />
        </OrderBy>
    </Query>
    <RowLimit>1</RowLimit>
</View>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号