Jump to content

Problem with "Go To Next Record" script


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

Recommended Posts

Hi all,

This would sound like it is fairly simple, but I have spent many hours trying to figure it out.

I have a DB and created a view for a tablet.

I have one field on the view the user has to input a price in. I have set a script trigger that says "OnObjectExit" run a script.

The script is simple...it says Go to the next record.

When I trigger the script it goes to the very last record in the SORT and stops, it does not go to the next record. HOWEVER, I can put a button on the view and attach the Go To The Next Record command on it and it works perfect. I can attach the above script to the button and it works fine.

Any ideas????

Thanks...MG

Link to comment
Share on other sites

Are you happening to select another row when trying to exit out of the current record? Also do you happen to have focus on the field when it goes to the next record? Try troubleshooting it with Advanced.

  • Like 1
Link to comment
Share on other sites

Are you happening to select another row when trying to exit out of the current record? Also do you happen to have focus on the field when it goes to the next record? Try troubleshooting it with Advanced.

Hey John,

There is only one field on the view that is selectable. I enter an amount and then have the OnExit function run a script that says goes to the next record. The button works fine. When I attach the script to a button, it works fine. When I attach it to the OnExit function, it' jumps to the last record.

MG

Link to comment
Share on other sites

Well lets think about what you have going on here. You exit the field and the trigger goes to the next record. Well if your focus is still in that field, when it leaves that field for the next record, it will go to the 3rd record, and on... and on...

What is the purpose of going to the next record from that particular field? Perhaps it would make more sense to use a onObjectModify, onObjectValidate, or onObjectSave depending on what you are trying to achieve which I still dont know.

Link to comment
Share on other sites

This topic is 4408 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.