SPForm with DashBoard

by Евгений.Минчев » Wed Dec 16, 2015 7:04 pm

Hi!
I have a DateTime control on my SPForm form.
I Add to this form the DashBoard, which has been built on SharePoint list. So i got a CAML like this
<Query>
<Where>
<Geq><FieldRef Name='esMainDate'></FieldRef><Value IncludeTimeValue='TRUE' Type='DateTime'>2015-12-05T00:00:00.000Z</Value></Geq>
</Where>
<View>
<ViewFields>
<FieldRef Name="Title" />
<FieldRef Name="Author" />
<FieldRef Name="ID" />
</ViewFields>

<GroupBy GroupLimit="30" Collapse="TRUE">
<FieldRef Name="Author" />
</GroupBy>
<OrderBy>
<FieldRef Name="ID" />
</OrderBy>
<Aggregations Value="Off" />
<RowLimit Paged="TRUE">3000</RowLimit>
</View>

How could i add the CAML to dashboard, using the Javascript, for rebuilding the dash dynamically?
Could you show some examples with javascript functions for rebuliding the dash?

Tnx
User avatar
Евгений.Минчев
 
Posts: 1
Joined: Wed Sep 02, 2015 10:40 am

by Dmitry Kozlov » Thu Dec 17, 2015 11:42 am

Hi,
Sure, here is an example where the CAML-query changes dynamically from JS-code:
http://www.spchart.com/demo/helpdesk-dashboard
http://www.spchart.com/demo/helpdesk-dashboard/config
User avatar
Dmitry Kozlov
 
Posts: 129
Joined: Wed Nov 12, 2014 3:24 pm


Return to Dashboard Designer for SharePoint 2013