NetTalk Central

Author Topic: NWB Record Limit  (Read 1201 times)

rupertvz

  • Sr. Member
  • ****
  • Posts: 314
    • View Profile
    • Email
NWB Record Limit
« on: October 31, 2022, 03:21:52 AM »
Hi Guys,

I would like to limit a user to only input a certain number of records in a NWB.
Example:  10 records.

I can limit the records per page, but is there a way to limit the overall / total records to be inserted for the NWB in that session?
 

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11176
    • View Profile
Re: NWB Record Limit
« Reply #1 on: October 31, 2022, 10:25:41 PM »
I would create a session value.
Increment it each time they add a record.
Add a condition to the Insert button.

something along those lines anyway.

rupertvz

  • Sr. Member
  • ****
  • Posts: 314
    • View Profile
    • Email
Re: NWB Record Limit
« Reply #2 on: November 02, 2022, 03:17:31 AM »
Thank you Bruce,

The record counter (if enabled for the NWB) is not perhaps stored in a session value somewhere?
Or can be accessed somewhere?

I am thinking in terms of the user returning to the browse at a later stage ...

Alberto

  • Hero Member
  • *****
  • Posts: 1846
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: NWB Record Limit
« Reply #3 on: November 02, 2022, 04:45:33 AM »
If you use a session value, that value will remain until the session is logged out, That means that no matter the web page the user goes to, when returned to the browse the counter will remain the same value.
Obviously, you can also reset it to cero where you want.
-----------
Regards
Alberto