Question
4
Replies
280
Views
TATA Consultancy Services Ltd
Posted: June 7, 2018
Last activity: June 12, 2018
Closed
Solved
How can i restrict a value to be used based on some count?
Hi,
Actually i have property and am having a count associated with that.If the property name is ABC and the count is 10 then whenever a particular user using that name called ABC the count should be reduced by 1. Atlast if the 11th user using that name ABC, while he entering that name it should popup an error message called the "name is invalid".
How can i implement this??
Thanks!
Hi
Just a thought on this :
Create a data table which has a list of property and max count.
Whenever the property is used, update the count in data table.
Hopefully this should work, if there are no more restrictions in your application.
Regards
Bhavya