How can I create a code with a macro list?
Here are a few examples of how macro lists can be used to create codes. Each macro list can be set up according to the targeted code model.
Use Case 1 : Create a code from the registration number
The user can use the “Create a code” macro list to create a new code, using the registration number of the Stop Area or Line.
The syntax “%{value}” is replaced by the value of the source attribute :
Use Case 2 : Prefix a Vehicle Journey code with a line registration number
The user can create a code on Vehicle Journeys by adding the number of the associated line. To do this, 2 syntaxes can be used:
%{line.code}: is replaced by the registration number of the line%{line.code:<code_space>}: is replaced by the line code on the target code space
These syntaxes can be used on all models linked to a line (vehicle journeys, timetables, routes).
Use Case 3 : Create a Timetable code using the line code and the UUID
A user can create a timetable code with a UUID and the associated line code. To do that, they can use the macro list “Create a code from the UUID”.