Quantcast
Channel: CRM Development 論壇
Viewing all articles
Browse latest Browse all 10280

Custom Charts

$
0
0

Hi,

I create a custom chart by using xml format refer in SDK2011 and i use fetch query to retrieve the time and Revenue based Condition on current year and last year chart with combination of both.

i  didnt get any error but output chart shows only last year.

kindly help me to resolve this problem.Below paste the code

<visualization>
  <visualizationid></visualizationid>
  <name>RMS Items Sales Report based on Year </name>
  <primaryentitytypecode>new_items</primaryentitytypecode>
  <datadescription>
    <datadefinition>
      <fetchcollection>
<fetch distinct="true" mapping="logical" aggregate="true" count="25">
<entity name="new_items"> 
 <attribute name="new_time" dategrouping="fiscal-period" groupby="true" alias="Quarter"/>
 <attribute name="new_itemid" groupby="true" alias="ID"/>
<filter type="and">
<condition attribute="new_itemid" operator="not-null"/>
<filter type="or">
<condition attribute="new_time" operator="this-fiscal-period"/>
 <condition attribute="new_time" operator="last-fiscal-period"/>
</filter>
</filter>
<link-entity name="new_rmstransactionentry" alias="aa" to="new_itemsid" from="new_itemid">
<attribute name="new_tyransfullprice" aggregate="sum" alias="Revenue"/>
 <order descending="true"  alias="Revenue"/>
<filter type="and">
<condition attribute="new_tyransfullprice" operator="not-null"/>
<condition attribute="new_transquantity" operator="not-null"/>
 </filter>
 </link-entity>
 </entity>
 </fetch>
      </fetchcollection>
      <categorycollection>
        <category alias="ID">
          <measurecollection>
            <measure alias="Revenue" />
          </measurecollection>
        </category>
      </categorycollection>
    </datadefinition>
  </datadescription>
  <presentationdescription>
    <Chart Palette="None" PaletteCustomColors="55,118,193; 197,56,52; 149,189,66; 117,82,160; 49,171,204; 255,136,35; 97,142,206; 209,98,96;

168,203,104; 142,116,178; 93,186,215; 255,155,83">
      <Series>
        <Series ChartType="Column" IsValueShownAsLabel="True" Font="{0}, 9.5px" LabelForeColor="59, 59, 59" CustomProperties="PointWidth=0.75,

MaxPixelPointWidth=40"></Series>
      </Series>
      <ChartAreas>
        <ChartArea BorderColor="White" BorderDashStyle="Solid">
          <AxisY LabelAutoFitMinFontSize="8" TitleForeColor="59, 59, 59" TitleFont="{0}, 10.5px" LineColor="165, 172, 181"

IntervalAutoMode="VariableCount">
            <MajorGrid LineColor="239, 242, 246" />
            <MajorTickMark LineColor="165, 172, 181" />
            <LabelStyle Font="{0}, 10.5px" ForeColor="59, 59, 59" />
          </AxisY>
          <AxisX LabelAutoFitMinFontSize="8" TitleForeColor="59, 59, 59" TitleFont="{0}, 10.5px" LineColor="165, 172, 181"

IntervalAutoMode="VariableCount">
            <MajorTickMark LineColor="165, 172, 181" />
            <MajorGrid LineColor="Transparent" />
            <LabelStyle Font="{0}, 10.5px" ForeColor="59, 59, 59" />
          </AxisX>
        </ChartArea>
      </ChartAreas>
      <Titles>
        <Title Alignment="TopLeft" DockingOffset="-3" Font="{0}, 13px" ForeColor="59, 59, 59"></Title>
      </Titles>
    </Chart>
  </presentationdescription>
  <isdefault>false</isdefault>
</visualization>

for this above code i get the result like below ,here it returns value only for last quarter but current quarter list they didnt show but values are there for current year.

regards,

siva


Viewing all articles
Browse latest Browse all 10280

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>