As usual, i'm trying to do something unusual and have some questions:
1. is there any way to use more than one trigger condition for automatic printing? i mean, can we mix several storage items for start the automatic printing or just one?
2. trying to solve this, i'm using the internal view to filter using a query to later just use one storage item for auto print, but unfortunately the auto printing is not using the internal view, so, it retrieves people that is in the entire database without filtering that meets the printing condition (we need auto print just for people that meets two conditions, not just one, and that is why the auto print is trying to print more that the selected people).
3. Is there any way to use functions and expresion to define is a text filed must be print or not? how does it work expresion IIF? what we are trying to do is to print a field just if another field has a specific value (like a condition).
The automatic print feature can only use one table field as trigger.
The best way to solve this issue is to make a view on the database that does all the filter conditions you need. If you define that view as the data source of CardExchange you can use the automatic print feature for only the records that will be used there.
You can define a condition in the visibility property of that field, check the conditional layouts card sample on the data folder from this
Rutger, the complex expresion within triggers is working well.
Sergio, i found in your example that you have several front layouts, and you change them acording with database? how many front layouts can be use? do you have a step past step example on how to build a template layout desing that changes with database? including changing object properties? i'm a little lost with your example.
This also explains how you can control a page property by using scripts. Controlling object properties works very much in the same way, but instead of defining the script in the page-setup window, you define it in the Properties window, Expressions tab. Often, you need to define a function in the Functions tab in that converts the database value to a value that the object property understands. For example, the Visibility and Printability properties should have a script that returns either 'Visible', 'Collapsed' or 'Hidden', while color properties should receive a color name or hexadecimal representation ('#FF112233').
If you cannot get something working, please, post the script you have and we can correct the errors.
Senior Software Engineer
"A reasonable man adapts himself to the world. The unreasonable man persists in trying to adapt the world to himself. All progress, therefore, depends on the unreasonable man." (Bernard Shaw)