INDEX :
1. Links
2. Alternative color in SSRS 2012
3. Color Expression for SSRS reports in ax 2012.
4. Display Message when Report is Empty.
5. Change Format of Number Text box, using Code
6. To get New line in SSRS text box
7. visible only in first page of report
8. Change the format of text box Get comma separator for real value instead of '.'
9. Get address in one line :
Replace(First(Fields!CompanyAddress.Value, "SalesConfirmHeaderDS"), Chr(10), ", ")
5. Change Format of Number Text box, using Code
6. To get New line in SSRS text box
7. visible only in first page of report
8. Change the format of text box Get comma separator for real value instead of '.'
9. Get address in one line :
Replace(First(Fields!CompanyAddress.Value, "SalesConfirmHeaderDS"), Chr(10), ", ")
===========================================================
http://www.youtube.com/watch?v=nBYn1DU3VMQ - > Important link to set no.of rows per report.
=======================================================================
In reporting I add DateDialog this is on current date then the year must reflect to the filter field label of a dialog,qbr.Label(strfmt('FieldLabel',year(dateVal));
Alternative color in SSRS 2012
=iif(RowNumber(Nothing) Mod 2, "White", "WhiteSmoke")
or use
=IIF(RunningValue(Fields!BuildingId.Value,COUNTDISTINCT,NOTHING) MOD 2 = 0,"WhiteSmoke","White")
//Here BuildingId is the group by value to have alternative color for every group.
========================================================================
Custom Format for Date Expression :
Get date format as per company format.. ( ex : get Date format as per Company Trans date)
= Microsoft.Dynamics.Framework.Reports.BuiltInMethods.GetExtendedDataTypeFormat("Transdate", Parameters!AX_RenderingCulture.Value)
Colour expression for ssrs reports in ax 2012
For changing colour
Go to design –select fild-rc-properties-colour-expression
–write expr
iif(field.value>0,”black”,”red”)
iif(field.value=”fail”,”black”,”red”)
iif(field.value>0, ”black” , ”#0f0f” )
for field back ground colour changing
Go to design –select fild-rc-properties-back ground
colour-expression –write expr
iif(field.value>0, ”black” , ”#0f0f” )
====================================================================
Display message when empty report "No data found in SSRS"
Instead of Below code...
In the property window os Visual studio (SSRS) check 'NoRowsMessage' property for tablix. You can set this property to show a custom message when no row is returned.
NORowsMessage = "No data available for current filter selection" //user defined msg that is to be displayed
You can also specify the specific font style like size, color, format etc.
Add a text box with expression =IIF(Count(<SomeId Field>,"DataSet1")=0,"No Data Returned", nothing)
Or
set the visibility of this textbox as =IIF(Count(<SomeId Field>,"DataSet1")=0,False,True)
In the table header (header fields), use expression for each of the column headers to Set the visibility to false so that the end user won’t be able to see the table header when there is no data.
=====================================================================
https://community.dynamics.com/ax/f/33/t/114872.aspx
AX 2012 formating currency in SSRS
7.Visibility only in first page and hidden in remain pages
Hidden =IIf(Globals!PageNumber = Globals!TotalPages, False, True)
==================================================
==================================================
===============================================
Hidden =IIf(Globals!PageNumber = Globals!TotalPages, False, True)
==================================================
Example Description | Example |
---|---|
Yesterday | =DateSerial(Year(Parameters!TodaysDate.Value),Month(Parameters!TodaysDate.Value),Day(Parameters!TodaysDate.Value)-1) |
Two Days Ago | =DateSerial(Year(Parameters!TodaysDate.Value),Month(Parameters!TodaysDate.Value),Day(Parameters!TodaysDate.Value)-2) |
One Month Ago | =DateSerial(Year(Parameters!TodaysDate.Value),Month(Parameters!TodaysDate.Value)-1,Day(Parameters!TodaysDate.Value)) |
Two Months Ago | =DateSerial(Year(Parameters!TodaysDate.Value),Month(Parameters!TodaysDate.Value)-2,Day(Parameters!TodaysDate.Value)) |
One Year Ago | =DateSerial(Year(Parameters!TodaysDate.Value)-1,Month(Parameters!TodaysDate.Value),Day(Parameters!TodaysDate.Value)) |
Two Years Ago | =DateSerial(Year(Parameters!TodaysDate.Value)-2,Month(Parameters!TodaysDate.Value),Day(Parameters!TodaysDate.Value)) |
8. Change format for real value . get Comma separator instead of '.':
=Replace(Format(Sum(Fields!NetAmount.Value,
"AgentFeeBonusHeaderFooterTmp"), "#.00"),".",",")
===============================================
No comments:
Post a Comment