I actually have a custom dispform with a XsltListViewWebPart. This list has a column called RootId. I need to filter data from this list based on the ID set in the page's URL. I can query the ID in my webpart by using this line :

<ParameterBinding Name="ListItemId" Location="QueryString(ID)" DefaultValue="0" />

And then filter :

                <FieldRef Name="RootId"/>
                <Value Type="Number">{ListItemId}</Value>

But the problem is that RootId's type is number and my parameter is a string. So how can I convert this parameter to an integer ? Obviously, I can't change

<Value Type="Number">{ListItemId}</Value>


<Value Type="Text">{ListItemId}</Value>

Thank you for your answers

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.