Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 1772 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi guys,

 

I am trying to create a very basic script that would allow for continues scanning, but don’t seem to be able to figure out how to get the script to work.

i set a script trigger to execute on exit with the following script.

new record

go to filed [item_code]
 

the idea is so when I scan an item the scanner will add a return at the end exiting the field, and so triggering to run the script over.

all I get is an endless loop.

 

thanks

 

 

Posted

Typically, the barcode scan is nothing more than a Find by barcode. I typically have a button that opens a card window with a global field and place the user in that field. They are now ready to scan. The scanner is configured to add a return at the end of the scan. That exits my field and an OnObjectSave runs a script that performs a find for the item.

What you do next is up to your "Inventory taking" workflow. Set a Date Inventoried to Get ( CurrentDate)? Create a new record in a InventoryLog table? 

  • 1 month later...
Posted

Thanks,

I don't really need any controls, all i need is the ability to scan a barcode and once the field exits a new record is created and wait for the next scan. The issue i am having is once i execute the script either using trigger on exit or enter it goes into an endless loop cretating indefinite records.  

 

Thanks

Posted

can you post your actually script? What field are you using to capture the scan input? What script trigger are you using?

Posted

Thanks,

The only steps I have on my script are;

new Record/Request

Commit Records/Requests [with dialog:off]

Go to Field [inventory Collection::ItemCode]

 

For trigger I have tried;

OnObjectSave

and

OnObjectExit

All i get is a loop creating a record. 

 

Thanks

for you help

Posted

Going back to your first post...your goal is to scan a barcode and create a new record setting the barcode you scanned into the item code field?

Do you have a global field for receiving the scanned data?

  • 1 month later...

This topic is 1772 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.