Skip to content

Commit 9ed9b50

Browse files
committed
fix : ACI0105627
1 parent e5202a0 commit 9ed9b50

File tree

2 files changed

+33
-3
lines changed

2 files changed

+33
-3
lines changed

Project/Sources/Methods/AI_CallBack.4dm

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,28 @@ If ($result.success)
1313
Else
1414
// Alert($result.errors.formula(Formula(JSON Stringify($1))).join("\n"))
1515

16-
AI_updateForm(""; "") // just change state
16+
//AI_updateForm(""; "") // just change state
17+
18+
19+
20+
//ACI0105627
21+
22+
If ($result.errors.length>0)
23+
$answer:=""
24+
25+
If (Value type:C1509($result.errors[0].code)=Is real:K8:4) // ACI0105627
26+
$answer+="**"+Localized string:C991("ErrorCodeColon")+"**"
27+
$answer+=$result.errors[0].code+"\r"
28+
End if
29+
30+
$answer+="**"+Localized string:C991("ErrorMessageColon")+"**"
31+
$answer+=$result.errors[0].message
32+
Else
33+
$answer:=Localized string:C991("GlobalError")
34+
End if
35+
36+
AI_updateForm($answer; "Error") // just change state
37+
1738

1839
End if
1940

Project/Sources/Methods/AI_updateForm.4dm

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,17 @@ var $newDoc : Object
1616

1717
Case of
1818

19-
: ($action="") // error to be managed
20-
Form:C1466._extra.state:=1 // rub
19+
//: ($action="") // error to be managed
20+
//Form._extra.state:=1 // rub
21+
22+
//ACI0105627
23+
24+
: ($action="Error") // error to be managed
25+
Form:C1466._extra.state:=0 // Run
26+
AI_updateForm($content; "Set Text"; True:C214)
27+
28+
29+
2130

2231
: ($action="Set Text")
2332

0 commit comments

Comments
 (0)