How to create formula in stimulsoft
How to create formula in stimulsoft
I want to create a formula for displaying total work hours.
I have two DateTime fields,
ActualIn and ActualOut
If IsNull(ActulOut)
then
'0'
else
Total={DateDiff(AttendLog.ActualOut ,AttendLog.ActualIn)}
Please help me to achieve this.
In crystal report , i can do this,
But in stimulsoft,when i try to achieve this, the entire formula text is displaying.
Thanks in advance
I have two DateTime fields,
ActualIn and ActualOut
If IsNull(ActulOut)
then
'0'
else
Total={DateDiff(AttendLog.ActualOut ,AttendLog.ActualIn)}
Please help me to achieve this.
In crystal report , i can do this,
But in stimulsoft,when i try to achieve this, the entire formula text is displaying.
Thanks in advance
How to create formula in stimulsoft
Hello,
You can use the following expression in Text component:
Thank you.
You can use the following expression in Text component:
Code: Select all
{(AttendLog.ActulOut == null ? "0" : DateDiff(AttendLog.ActualOut ,AttendLog.ActualIn).ToString())}
How to create formula in stimulsoft
Thank you.............
Let me know one thing ,what about the syntax for if ..else in stimulsoft.net
As your post it is working,but iwant to include one more condition,
if(AttendLog.ActualIn==null) then '0'
i tried in this way
{(AttendLog.ActulOut == null ? "0" :AttendLog.ActulIn == null ? "0": DateDiff(AttendLog.ActualOut ,AttendLog.ActualIn).ToString())}
But it is not giving the expected result.
Thanks in advance....
Let me know one thing ,what about the syntax for if ..else in stimulsoft.net
As your post it is working,but iwant to include one more condition,
if(AttendLog.ActualIn==null) then '0'
i tried in this way
{(AttendLog.ActulOut == null ? "0" :AttendLog.ActulIn == null ? "0": DateDiff(AttendLog.ActualOut ,AttendLog.ActualIn).ToString())}
But it is not giving the expected result.
Thanks in advance....
How to create formula in stimulsoft
Hello,
Also you can use function IIF() in expression:
Thank you.
Also you can use function IIF() in expression:
Code: Select all
object IIF (bool condition, object truePart, object falsePart)
How to create formula in stimulsoft
Thank you...
Do stimulsoft have any syntax help like crystal report??
Do stimulsoft have any syntax help like crystal report??
How to create formula in stimulsoft
Hello,
For most functions you can find description in dictionary.
Thank you.
For most functions you can find description in dictionary.
Thank you.
- Attachments
-
- 1561.Capture.PNG (24.04 KiB) Viewed 4563 times