0
Stopped working for me
if s2 then
let reply := dialog(" M A J O R - Non Conformities", "This Audit was not compliant. Therefore, major non-conformities will be reviewed within 14 days. Include new Audit Time.", ["Confirmed", "No Confirmed"]);
if reply = "Confirmed" then
let today := 'Date Planning' + 14;
let newRec := duplicate(this);
openRecord(newRec);
newRec.('Audit Code' := null);
newRec.(Status := null);
newRec.(From := null);
newRec.(Appointment := null);
newRec.('Plan Within' := 14);
newRec.('RE-Schedule Date' := today);
let me := this;
newRec.('Audit Code' := me.'Audit Code' + "_" + "x1");
sleep(1000);
openRecord(newRec)
end
else
The openRecord(newRec) it stopped working for me.
Some idea ?
3 replies
-
Hi There a few things here
Why do you open the record, and then assign new values to it? I would do it the other way round
Why do you open the record twice?
Why do you have sleep(1000)?
Is me meant to store the record newRec is duplicated from?
Try
if s2 then let reply := dialog(" M A J O R - Non Conformities", "This Audit was not compliant. Therefore, major non-conformities will be reviewed within 14 days. Include new Audit Time.", ["Confirmed", "No Confirmed"]); if reply = "Confirmed" then let oldRec := this; let newRec := duplicate(oldRec); newRec.('Audit Code' := null); newRec.(Status := null); newRec.(From := null); newRec.(Appointment := null); newRec.('Plan Within' := 14); newRec.('RE-Schedule Date' := oldRec.'Date Planning' + 14); newRec.('Audit Code' := oldRec.'Audit Code' + "_" + "x1"); openRecord(newRec) end else
Regards John
Content aside
- Status Answered
- 4 mths agoLast active
- 3Replies
- 45Views
-
2
Following