however with that it gives me a huge list of all customers, is there a way to filter in the report by customers who have birthdays only???
Want to be able to send them an email to those customers so having a report with the info available is quite handy
Is an available report tag expression.
Could give you birthdays of a specific date but not sure if you could use multiple with < and > to give a range.
Others with more experiance might have sugestion.
Should be doable with a script for range or anything
Yes you can use basic greater than less than, equals operators to evaluate the expression to in fact if you look at default v5 reports several of those use these optional expressions.
This is a sample from the default Work Period report
If you look at kendashes example (but I am not pro on report tags) you would use something allong the lines of EC.DOB = DATE.
The last : moves to the expressions/constraints section;
{REPORT TAG::}
(ET=SambaCard Customer Card) > (dt.Day()) by my understanding would be saying is ET=SambaCard Customer Card and guessing retunring True/False and then your saying True/False > Date()…
Pretty sure thats not going to work.
This is not exact but a jist/idea of how I believe it would be which is {REPORT ENTITY DETAILS:EC.Customer Name, EC.DOB:(ET=SambaCard Customer Card) AND (EC.DOB > dt.Day())}
I am not to sure on your dt.Day as if its anything just jscript ive used in some of my scripts that would return the number of the Day of the month.
I spent allot of time getting to grips with dates as date format is very important.
Also have you set the entity field to string or date as this will also make a big diference.
Dates can be very tricky and your system date format will likely impact this also.
If its stored as a stink you will also have to account for user input differences, might be better to change it to a date field or set a mask so format is consistent.
Search the forum for ‘reports in detail’ and look for a post from emre from v4, I always refer to this when working on report tags.
Second part formats birthday value to strip time part and reformat birthday. You’ll need TD function to make that conversion. That function will be available on next refresh (.58). Until next update you can use first format to test your report.