Invalid expression term '=='

Stimulsoft Reports.NET discussion
Post Reply
LukasT
Posts: 306
Joined: Mon May 03, 2010 2:50 am
Location: Czech Republic

Invalid expression term '=='

Post by LukasT »

Hello,
I have problem with compilation of my expressions...
I am using some of your functions and some of my functions added in StiFunctions. But compiller looks confused...

Expression:

Code: Select all

{Iif(Totals.Max(report_Table.u_dph_dokl_0_stat_dph  )  == Totals.Min(report_Table.u_dph_dokl_0_stat_dph  )    && Totals.Max(report_Table.u_dph_dokl_0_id_meny  )  == Totals.Min(report_Table.u_dph_dokl_0_id_meny  )     ,Iif(Totals.Max(report_Table.u_dph_dokl_0_plneni  )  == Totals.Min(report_Table.u_dph_dokl_0_plneni  )   ,Totals.Sum(group_1,report_Table.u_dph_dokl_0_zaklad )  ,Totals.Sum(group_1,Iif(report_Table.u_dph_dokl_0_plneni  == 2   ,report_Table.u_dph_dokl_0_zaklad  ,(-1  )   * report_Table.u_dph_dokl_0_zaklad   ) )  )  ,0  )  }		
Error:

Code: Select all

...\AppData\Local\Temp\wgyhfiry.0.cs(298,25) : error CS1525: Invalid expression term '=='
Code:

Code: Select all

 public void GetTotal1(object sender, Stimulsoft.Report.Events.StiValueEventArgs e)
        {
            e.Value =   == Totals.Min(report_Table.u_dph_dokl_0_stat_dph  )    && Totals.Max(report_Table.u_dph_dokl_0_id_meny  )  == Totals.Min(report_Table.u_dph_dokl_0_id_meny  )     ;
        }
		
		
 public void compute_group_1_h1_addcompn_1__GetValue(object sender, Stimulsoft.Report.Events.StiGetValueEventArgs e)
        {
            e.Value = System.String.Format("{0:###,###,###,##0.00}", ISK.Utils.FunctionEvaluator.Iif(Totals.Max(report_Table.u_dph_dokl_0_stat_dph  ) this, "GetTotal1",ISK.Utils.FunctionEvaluator.Iif(Totals.Max(report_Table.u_dph_dokl_0_plneni  ) this, "GetTotal2",Totals.Sum(group_1, this, "GetTotal3")  ,Totals.Sum(group_1, this, "GetTotal4")  )  ,0  )  );
        }	
J_S
Posts: 49
Joined: Mon Sep 22, 2008 3:10 am
Location: Netherlands

Invalid expression term '=='

Post by J_S »

Code: Select all

e.Value =   == Totals...
should be

Code: Select all

e.Value = Totals...
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Invalid expression term '=='

Post by Jan »

Hello Lukas,

Please specify datasource as first parameter in all Totals.... function. For example:

Code: Select all

Totals.Max(report_Table, report_Table.u_dph_dokl_0_stat_dph  )
Thank you.
Post Reply