Macro
Macros are similar to a bond of materials that use the math engine for make arithmetical operations and deposit the result in a destination code. It’s a feature very useful and popular from the Price-list Server customers.
Let’s make an example.
The destination code is an effective code on Price-list Server and it has all the proprieties like a standard code like language support, dimensional fields, eredity and so on.
Macro with code and prices with one column
The result code will be “COLONNA” and the calculated price will be on column “200”.
Macro with code and multicolumn prices
Now will expand the above example. We want to have a multi-column result because some codes has prices in many other columns. This is the classic example where the component door (aka ANTA) has multiple prices on various columns (different finishings or different models). The other components will have only one price in one single column.
Here comes on the show the jolly word “MACRO” on the list of the component. So what we want is that the macro summarize all the prices in different column taking care of the prices of the door that will change.
The door has his prices on column 200,201,202,210 and we want that the destination code “COLONNA2” has his prices calculated on it.
So, the macro will be declared as shown below. Please Note the jolly MACRO word position.
The ANTA code has these prices
The result prices on the destination code COLONNA2 on the easyCatalog panel will be
Now let’s see a real example.
Thanks to LT-FORM for the given example
This is a page of LT-FORM price-list (thanks to LT-FORM2 for giving us) that use the Macro feature. The page are divided in two main section. The first above section ai the “best seller” articles. The prices are build from macros. The second section below is the component list that can be use to build up the chair. Please note that we are in multi column case.
This is the macro screen-shoot of the first MACRO on the LT-FORM example page.
Finally the important topic of the Macro system are:
- Math operators plus and minus freely usable
- On the fly calculation to prevent discrepancy from component price and macro price if components price involved in macro will change.
- Jolly operator “MACRO” for the multi-column approach.
- The results will be placed in a freely creable code, also compatible with the coder.