Beas Script

Production > Product Configurator > Beas Script

Top  Previous  Next
Expand/Collapse Toggles

This defines how a variable should receive its value, unless determining the value takes place through the default types of origin.

This can be

- a field from item or sales order table

- result of SQL statement

- a Beas or JBScript

 

With the Test-Button you can test the formula directly.

beas-script1

caft_herkunft_edit.psr

 

If the Type is BeasScript and the Origin Script is empty, you can choose "ItemCode","ORDR" "RDR1" or "BoMItemCode"

This allows you to create an SQL statement or insert the placeholder.

hmtoggle_plus1Details:

 

BeasScript

You can insert a complete BeasScript function. Return the result with

setvar=e_result="your result"

You have access to all Pre-defined Beas variables.

Example

if <e_quantity> n> 5 then
  setvar=e_result="ABC"
else
  setvar=e_result="DEF"
end if

 

JBScript

You can insert JBScript. Define result in the return command

return "your result";

Example

if (e_quantity > 5 )
  return "ABC";
else
  return "DEF";

 

hmtoggle_plus1Pre-defined Beas variables

Help URL: https://help.beascloud.com/beas202402/index.html?beas_script2.htm