One option would be to change from using a PromptSet object to building the Prompt via beginread,read,endread. Then set a value on post process to indicate its been restarted. On preprocess check for the value and if its not set to the "value that it was will be/was in postprocess" then use beginread, read with the values for your prompt, then endread.
Something like the below.
!PreProcess
:PSET &MYRESTART# = &MYRESTART#
:IF &MYRESTART# = ''
: PSET &MYRESTART# = 0
:ENDIF
:IF &MYRESTART# = 0
: BEGINREAD
: READ &HEADLINE#,"00","Please enter headline"
: ENDREAD
:ENDIF
!PostProcess
:IF &MYRESTART# = 0
: RSET &MYRESTART# = 1
: SET &HND# = RESTART_UC_OBJECT(&$NAME#,&$RESTART_RUNID#)
:ENDIF
Original Message:
Sent: Jul 16, 2025 03:28 AM
From: Daniel Dahlke
Subject: PromptSets behaviour on JOBS restart
Hello,
i am looking for a solution to avoid the PromptSet Dialog at JOBS restarts.
The aim is to avoid the additional need of clicking in the PromptSet dialog, because on restart the values of the promptSet should be kept as they have been filled during the initial run.
I also want to avoid the overlook of an unanswered PromptSet dialog when restarting an object.
Maybe someone has an idea how to solve this. Maybe it is not possible, yet.
Regards,
Daniel