Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I written some count expression as mentioned below.
=Count({<EMPJOINDATE={"(>=$(vCalcDate)<=$(vToday))"},SECTION= {'*AB-*','*CD-*'}>} DISTINCT EMP_NUMBER)
Along with the above, i want to pass one more condition which is already filled in listbox. ListBox contains number of Sequence values (Days)
Example :
DAYS (ListBOX)
-----
1
2
3
4
5
6
7
8
9
...
...
100
When i select the listbox, then my count automatically should get change. I tried below expression. But, nothing will reflect.
what i want to do..?
Note : i created variable (vUserInput) ==> GetFieldSelections(DAYS)
=Count({<EMPJOINDATE={"(>=$(vCalcDate)<=$(vToday) + vUserInput)"},SECTION= {'*AB-*','*CD-*'}>} DISTINCT EMP_NUMBER)
will the syntax is correct...?
anything we want to format vUserInput as date.
will it calculate the count as days even if i use vUserInput....?
The problem is "vUserInput" not able to read the values at all.
when i select the days listbox, it will not be reflect anything in my count.
Note : i am filling values in list box using below script.
LOAD recno() as SeqDays
AUTOGENERATE 100; // maximum number allowed
can you post a sample to check?
Maybe EMPJOINDATE={">=$(vCalcDate)<=$(=$(vToday) + $(vUserInput))"}
There can be many possible issues when working with dates
1. GET_DAYS:
LOAD recno() as ValueSeqDays
AUTOGENERATE 100; // maximum number allowed
2. Create New variable named ==> "vUserInput"
So, vUserInput =GetFieldSelections(ValueSeqDays)
and also,
New Variable vIssueCalDate = =date((vToday-5),'DD-MM-YYYY')
New Variable vToday = =date(Today(),'DD-MM-YYYY')
3. Load and fill the values in ListBox columnname "ValueSeqDays"
4. My condition Expression for count to display in Text Object
=Count({<IssueDate={">=$(vIssueCalDate)<=$(=$(vToday) + vUserInput)"},EMP_SECTION= {'*B-*','*C-*'}>} DISTINCT EMP_NUMBER)
When i click my list box it should automatically change the count. but, it is not reflecting.???