Title
Modify Check out Script (Lending Library)
Post
I have modified the Lending Library starter solution to be able to Find multiple records using a bar code system and USB scanner. I would like to be able to modify the 'Check out process' script in the starter solution, as it is only possible to check out 1 item at a time.
Is there a way to group the found set, including it in the check out script? It seems as though (But I'm not positive) that the step that needs to be adjusted is the Set Field command in the below script:
If [ Assets :: Status = "Not Available" ]
Beep
Show Custom Dialog [ "Message"; "This asset is currently checked out." ]
Else
Set field [ Assets :: Global Asset ID; Assets :: Asset ID ]
Perform Script [ "Process check out" ]
End If
For batch check outs, this starter solution goes at things backwards. It confirms an item is available then asks you to select the record for the contact that is borrowing the item. You need to reverse this, select the contact who is borrowing 1 or more items, then start checking out the items. That way the system need not ask you to select the contact more than once for the batch of items checked in or out.
This will take a fair amount of redesign of the scripts used to make that happen. Will you be looking up contacts in the database by scanning a barcode on some kind of ID card or will you need to search for them by name?
(And you won't need to use the script that builds up a found set of scanned items either, you can identify the contact and then start scanning items, each scan of an item can immediately check it out rather than add it to the found set in order to be checked out as a group after all have been scanned.)