This project has moved and is read-only. For the latest updates, please go here.

Is SPDisplayRelatedInfo able display to display the last approved version?

Sep 2, 2013 at 11:40 PM
I was wondering whether the SPDisplayRelatedInfo function is able to select the related info for the last approved version of a list item?

On first impressions, it appears not, but was keen to know whether anyone has attempted and succeeded with this?

I have tried using a CAML query along the lines of
<Where><Eq><FieldRef Name='_ModerationStatus' /><Value Type='ModStat'>Approved</Value></Eq></Where>
without any luck.

I'm not going to die in a ditch over this one, but it would be nice to do.


Sep 3, 2013 at 8:41 PM
I would take a look at the GetVersions operation under Versions and then look at the MSDN documentation link from there. Maybe you can use your CAML on that SPServices op.
Sep 3, 2013 at 8:49 PM
SPDisplayRelatedInfo won't do it, but as glaushine mentions, you may be able to accomplish what you need using multiple Web Service operations.