We have started to build an app to track vehicles in a logistics compound. One specific scenario causes some headache: Multiple vehicles are loaded onto a truck and depart all together at once
What we have built:
1.Check-In of truck – new instance of load is created with loadID and truck data – works fine
3.Check-Out of truck – truck departs and timestamp etc. is captured – works fine for the truck
--> update of exit date in load table
Here is my problem: I need a solution to automatically update the exit date of all VINs associated to this load. I have a report showing all the vehicles of the truck.
How do I now update all the individual VIN instances?
There should be a functionality to loop out all the vehicles assigned to the load and update the respective exit date in the VIN table for all affected VINs.
I have searched the forum for some JS solutions and tried to build up something – but nothing worked. I am relatively new to JS and need some help.
To prepare the loop, how do I get the data? Which VINs have as an attribute the same loadID? What kind of code would be required?
How do I create a loop which updates the timestamp data to the exitdate?
Would highly appreciate if someone could lead me to an appropriate solution
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
Marcel
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.