Jump to content

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

Recommended Posts

Posted

I am in need of a way to prioritize active jobs. A user will assign a priority to a list of active jobs like 1-20. When the record assigned priority 1 is complete and removed from the list I would like 2 to become 1 and 3 become 2 so on up the list. If a user get a new job that must be given priority 1 the rest of the jobs need to cascade down a number. Or if he assigns it a 5 the current 5 becomes 6 and on down.

Any ideas.

Thanks,

Wayne

Posted

There's probably lots of ways to do this, but a simple way that I have done in the past is to get a found set of active jobs, sort by the priority field and then renumber the priority field either with the replace command assigning serial numbers or a script with a loop.

To change the priority of a job, you can give it a number like zero or 2.5 to insert it in the proper position and then perform the renumber operation described above.

You can create buttons that move the current record up or down or to the top or bottom of the list by adjusting the priority value and then doing the renumber operation.

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