File tree Expand file tree Collapse file tree 2 files changed +33
-3
lines changed
Expand file tree Collapse file tree 2 files changed +33
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,28 @@ If ($result.success)
1313Else
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
1839End if
1940
Original file line number Diff line number Diff line change @@ -16,8 +16,17 @@ var $newDoc : Object
1616
1717Case 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
You can’t perform that action at this time.
0 commit comments