Hello everyone,
I'm a newbie and currently trying to develop reward point application, but I get stuck and hope u guys can help me to find out :)
I want to set expiry date for redeem the gift, so when it goes expired the gift can't be redeem. How can I do that?
Hi,
It is possible to set/edit the expiry date. First create an attribute in your entity to store the expiry date. Then while redeeming the gift check the expiry date is less than the currdate.
Eg: SampleEntity.ExpiryDate < CurrDate()
Let me know if this works!!
Regards,
Shree
Nice example.
Hi, it's work! Thanks for helping me to solve this problem. I'm really appreciate that :)
RC
Please explain more that after how many days you want to expire it after creation.
Using Adddays function we can achieve this based on your requirement.
E.g Expires_On= AddDays( Created date, 15 )
So that after 15 days it will be expire.
Thanks,
Ajit Kurane.
for the expire date I can set/edit using date picker. is it possible to do that using Adddays function?
Can you please share your sample oml file ?
I have no idea about your expiry date criteria. But in addition you can do one thing if you want to manually update expiry date then you can create one pop up and on click of date pop up will prompt on screen and then you can update the expiry date to redeem the gift.
Hope it helps.
Thanks.
Hi, thanks for your help and your time. I'm really appreciate that :)