Condition syntax
- Fabio Pagano
- Posts: 355
- Joined: Mon Apr 16, 2007 12:38 pm
- Location: Bari (Italy)
Condition syntax
Using 23 March 2009 version.
In a field condition i've put the following formula:
Totals.Sum(RaggruppamentoImpianto,System.Convert.ToInt32(IIF(Movimenti.[Origine: Stato fatturazione]=="Da fatt.",Movimenti.[Origine: Importo totale],0)))==0
but in designer preview i receive the following error:
"Sign ) required"
") is an invalid term in the expression"
"; required"
each one repeated twice.
Need help.
Thank you.
In a field condition i've put the following formula:
Totals.Sum(RaggruppamentoImpianto,System.Convert.ToInt32(IIF(Movimenti.[Origine: Stato fatturazione]=="Da fatt.",Movimenti.[Origine: Importo totale],0)))==0
but in designer preview i receive the following error:
"Sign ) required"
") is an invalid term in the expression"
"; required"
each one repeated twice.
Need help.
Thank you.
Condition syntax
Hi Fabio,
Please send this report template to support[at]stimulsoft.com for analysis.
Thank you.
Please send this report template to support[at]stimulsoft.com for analysis.
Thank you.
- Fabio Pagano
- Posts: 355
- Joined: Mon Apr 16, 2007 12:38 pm
- Location: Bari (Italy)
Condition syntax
Look at the attachment "IIf_In_Condition.mrt".
The field where i put the condition:
"Totals.Sum(RaggruppamentoImpianto,System.Convert.ToInt32(IIF(Movimenti.[Origine: Stato fatturazione]=="Da fatt.",Movimenti.[Origine: Importo totale],0)))==0"
is called "Testo45" and is the one in square red here:

Thank you.
The field where i put the condition:
"Totals.Sum(RaggruppamentoImpianto,System.Convert.ToInt32(IIF(Movimenti.[Origine: Stato fatturazione]=="Da fatt.",Movimenti.[Origine: Importo totale],0)))==0"
is called "Testo45" and is the one in square red here:

Thank you.
- Attachments
-
- 154.IIf_In_Condition.mrt
- (124.71 KiB) Downloaded 277 times
Condition syntax
Hi Fabio,
Thank you very much for the test report. We will inform you when the patch is available.
Thank you.
Thank you very much for the test report. We will inform you when the patch is available.
Thank you.
- Fabio Pagano
- Posts: 355
- Joined: Mon Apr 16, 2007 12:38 pm
- Location: Bari (Italy)
Condition syntax
Any new on this issue? In 25 May 2009 version the problem is still there.
Examining the autogenerated code, i see at line 438 (one of the offending lines):
It seems that the "IIF" has been truncated.
Thank you.
Examining the autogenerated code, i see at line 438 (one of the offending lines):
Code: Select all
public void GetTotal1(object sender, Stimulsoft.Report.Events.StiValueEventArgs e)
{
e.Value = System.Convert.ToInt32(IIF(Movimenti.Origine__Stato_fatturazione=="Da fatt.";
}
Thank you.
Condition syntax
Hello Fabio,
Patch for this problem will be available in build from 15 June.
Thank you.
Patch for this problem will be available in build from 15 June.
Thank you.