Expiry Date Help


#1

Hi Guys,

Wonder if you can help,

Im using a Loyalty Type Card System at the moment. Every Card is programmed into the system as an entity with an expiry date in a custom field.

Is there a way that when the card is swiped the system will check the Expiry Date and if its lapsed I can get it to display a pop up on the screen.

Ill manage the pop up etc just not sure how to make sambapos check the date. Im using RFID cards at the moment and when scanned they trigger a numberpad value rule which then looks up the Entity so I guess I can trigger this rule under the same way just need it to check the Expiry Date on the Entity against the system date.

Hope this makes sense

Cheers

Craig


#2

Can use ternary expression to check that custom data field and compare to today’s date. If it is ok then execute rest if not then do something else.


#3

Do a forum search for ternary expression there are hundreds of examples with it in use


#4

Thanks Kendash can you please show me how that expression would look please.

Craig


#5

Ternary looks something like;
[= A == B ? ‘true’ : ’ false’ ]
Not got example to hand so freehanding it.


#6

Thanks Guys Ive got it was so easy lol made me chuckle how easy it was.

Cheers


#7

Hi Craig - this is a useful little constraint, do you mind sharing and posting here?
Thanks Paul