0
Error on line 4 or 5 some idea
let t := this;
let title := [" 🟢 Audit To History"," M A J O R - Non Conformities"," 🟠 M I N O R - Non Conformities"];
let message := [" This Audit was Completed and will be archived and removed from Events","This Audit was not compliant. Therefore, major non-conformities will be reviewed within 14 days.","This Audit was not compliant. Therefore, minor non-conformities will be reviewed within 7 days."];
let days := [7,14];
if dialog(item(title,t.status-1),item(message,t.status-1),["Confirmed", "No Confirmed"]) = "Confirmed" then
if t.Status = 1:
(create 'History Completed').(
'Events Audited' := t;
'Audit No' := t.'Audit Code';
'Project Audited' := t.'Projects_>'.'Project Name'
Appointment := t.Appointment;
text(Status := t.text(Status);
Auditor := t.'Auditor_>'.('First Name' + " " + 'Last Name');
Audited := t.'To Audit_>'.('First Name' + " " + 'Last Name')
);
alert(" Record Archived")
else
let newRec := duplicate(this);
newRec.(
'Audit Code' := null;
Status := null;
From := null;
Appointment := null;
'Plan within' := item(days,t,Status-2);
'Re Schedule Date' := today()+item(days,t.Status-2);
'Audit Code' := t.'Audit Code' + "_" + "x1"
);
openRecord(newRec);
end
end
This code give me a error on lineb4 or 5 some idea
7 Antworten
-
The error
Content aside
- vor 7 MonatenZuletzt aktiv
- 7Antworten
- 61Ansichten
-
1
Folge bereits