Layout item

This rule defines a new column/field (layout item) that any ROB-EX Scheduler user may add to any standard table. Layout items may also be referenced from HTML reports and Shop Floor.

A Layout item FlexRule consist of a single expression that takes a basemodel object (e.g. Operation or Production Order) as input and returns the text or value to show to the user. If the expression expects a production order as input, but the user places the column in a table backed by an Operation, the correct object (Production order in this case) will be automatically resolved.

Layout item FlexRule example

In this example shown below, a column is added, which will show the text Large for orders sized greater than 100. For other order sizes, the text Small is shown. Notice how the input is specified to be Order, i.e. a Production Order. The output is specified to be a String , i.e. the expression must return text.

The expression used is shown below. The fv(‘order_quantity’) part will lookup and return the order quantity.

fv('order_quantity') > 100 ? 'Large' : 'Small'

Notice the result shown after clicking the Test button, while order 1000 (with a quantity of 100) is selected in the Gantt chart.

With the FlexRule created, a user may use the column as shown in this next picture. The column name Small/Large column is the name of the FlexRule created above. Notice how the text corresponds to the order quantity

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment