Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
private void FormDropDownList_DataBinding(object sender, System.EventArgs e) {
DropDownList ddl = sender as DropDownList;
EPiServer.DataAccess.FormDefinitionDB fdDB = new EPiServer.DataAccess.FormDefinitionDB();
dd.DataSource = fdDB.GetALLForms();
}
But how do I get all the stored records/postings for the selected form?
By other words how do I write the DataBinding method for the DataGrid?
The "DataSet EPiServer.DataAccess.FormStatisticsDB.GetStatistics(pageID, pageDefiniftionID, formDefenitionID)" is not what I look for since I only got formID and formGUID from the dropdown above.
Thanks for any help.
Regards
object[] folders = (object[])XFormFolder.GetForms(); lbOutput.Items.Clear(); foreach(object o in folders) { if(o.GetType() == typeof(XForm)) { XForm xf=o as XForm; object[] al=(object[])xf.GetPostedData(); lbOutput.Items.Add(xf.FormName + " (" + al.Length.ToString() + ")"); foreach(object data in al) { if(data.GetType() == typeof(XFormData)) { XFormData xfData=(XFormData)data; lbOutput.Items.Add("[" + xfData.DatePosted.ToShortDateString() + "]"); } } lbOutput.Items.Add("------------------------------"); } }
thanks for any answers.