The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
Client accessing record alert. Is this possible? - Printable Version

+- Form Tools (https://forums.formtools.org)
+-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1)
+--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5)
+--- Thread: Client accessing record alert. Is this possible? (/showthread.php?tid=2390)



Client accessing record alert. Is this possible? - EdgarAllenPoe - Feb 27th, 2013

Hello all,

I have set up Form Tools using internal forms to aid in a phone questionaire campaign that I am running.

There is a "bank" of callers who select from the list on the "Submissions" page a person to call.
This sends them to the "Edit Submission" page where they enter the answers to the questions listed there and then "Update" the submission.

OK. Here is my question. Is there a way that I can allow only one person at a time to access a record? The danger in the way I have it set up is that two or more people could conceivably view and update the same record.

There are two results that would achieve this:
  • Remove records being accessed by someone from the list on the "Submission" page while the record is being accessed.
  • Show a Warning message on the "Edit Submission" page alerting the user that this record is already being accessed.

Are either of these possible? If so how? I am familiar with PHP and HTML, I just am rather weak on mysql queries and the use of FormTools' Hooks Module. Any help would be appreciated.


RE: Client accessing record alert. Is this possible? - Joe - Feb 27th, 2013

Hello,

Sorry, Form Tools does not have a feature to lock a record while another user is editing it.

Show a Warning message on the "Edit Submission" page alerting the user that this record is already being accessed would be the easier of the two solutions to implement. You would basically need a way to track when a record is being access.

Just a note, that what you need to achieve is possible it will require quite a bit of work to customize Form Tools to do this.