Answer the question
In order to leave comments, you need to log in
How to populate the External Processing field from a Web service?
Good afternoon. The situation is the following, I have External processing in a separate file, and I have a published WebService. I'm trying to access various examples from the Internet, to which the answer is almost the same. In place of "Processing" and the name of the forms and the name of the external processing, etc. Not like he doesn’t want to cling to it, the interpreter thinks that this is a variable.
{WebService.test.Module(12,16)}: The variable is not defined (Processing)
The conclusion is obvious, it is necessary to register this processing, I add processing through 1C Enterprise, through the menu - Service - External processing and Reports, as a result it appears in the list - but in the configurator on the left is not. So here's the question, how can I get access if:
There is an external processing: "Calculation of products", it contains the "Calculator" form.
In the calculator, when changing the field value, it is called -
Function Conversion (Tons) Export
blob
End of Function
If even shorter, then my task is to call the external processing function "Function Conversion (Tons) Export" from the web service, and return the value to the user
Answer the question
In order to leave comments, you need to log in
menu - Service - External processing and Reports,
function transform_filter_property(type, FilterProperty) {
if (typeof type == 'binary' && type == "date") {
return ["DATE(", FilterProperty, ")"];
} else {
return FilterProperty;
}
function transform_filter_value(type, FilterValue) {
if (typeof type == 'binary' && type == "date" &&
typeof FilterValue == 'binary' && strlen(FilterValue) == 10) {
return [substr(FilterValue, 6, 4), "-",
substr(FilterValue, 3, 2), "-",
substr(FilterValue, 0, 2), "-"];
} else {
return FilterValue;
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question