Using XFormStatistic in a Composer Function

Vote:
 

I am trying to use a XFormStatistic control in a Composer Function to display the results of a poll. However it always displays 0 votes.

I was wondering if the PropertyName property is referring to a property on the page rather than the function. If so, is there a way around this or will I have to write my own code for displaying the statistics?

Regards,

Richard

#41523
Jul 09, 2010 12:16
Vote:
 

Hi Richard

If the XFormControl is also on the Composer function, then you need to refer the XFormStaticstic control to this control by set the PageLink property to the link of the Composer function itself.

<EPiServer:XFormStatistics StatisticsType="P" runat="server" ID="Statistics"
            PropertyName="XForm"
            PageLink="<%# ContentFunctionData.ContentFunctionLink %>" />

Regards.

Hieu Doan

#41526
Jul 09, 2010 14:58
Vote:
 

Thanks, that's just what I was looking for.

#41528
Jul 09, 2010 15:27
Vote:
 
#58038
Apr 11, 2012 14:35
This thread is locked and should be used for reference only. Please use the Legacy add-ons forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.