The two features (remembering the last job ID, submitting dependent jobs) were not originally designed to operate together.
I have here on my ToDo list the implementation of “chain dependency submitting” that would let you perform one submission, set an option to use its ID, and every following job can either become dependent on it, or update the ID and become the dependent job of the next one… So you can do multiple jobs dependent on one, or each dependent on the previous without having to select anything anywhere or wait for minutes to collect data. Once you are done, you just disable the option and the following jobs become independent again…
If you can wait a few weeks (next week I will be in Japan), the necessary properties and function will be available in the SMTD Functions file for your use…
No rush, my hack works well enough for our script. But your idea of having a ‘depends on last submission’ button sounds great, as it does take quite a while to get the list of jobs manually.
Yes, it is in SMTD in the latest 5.2 SP1 and in the 6.0 Beta.
It supports both chaining dependencies (each submission dependent on the previous), and daisy-chaining (each submission dependent on the same previous job(s)).
The IDs generated during the current session are collected in an array and can be accessed directly without querying the Repository (which was the point, since a query can take minutes on large farms).