Trust ID PBCEX logo 300x102

Automatic Printer Trigger

6 years 7 months ago
Mauricio Florez
Expert Boarder
Expert Boarder
Posts: 87
More
Topic Author
Automatic Printer Trigger #3922
Hi Rutger and Sergio:

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).

Kind Regards,

MFM
6 years 7 months ago
Sergio Agostinho
Administrator
Administrator
Posts: 508
More
Automatic Printer Trigger #3923
Hi Mauricio,
  1. The automatic print feature can only use one table field as trigger.
  2. 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.
  3. You can define a condition in the visibility property of that field, check the conditional layouts card sample on the data folder from this link .

With best regards
Sergio Agostinho
6 years 7 months ago
Rutger Koperdraad
Platinum Boarder
Platinum Boarder
Posts: 1566
More
Automatic Printer Trigger #3926
Hi Mauricio,

It is possible to use a more complex condition in the triggers by adding additional conditions to the Trigger condition box. For example,
IS NULL AND [Column1] = 'bla bla'
for the trigger condition checks whether the storage-item column is null and additionally whether Column1 has the value ´bla bla´.}

regards,
Rutger.

Rutger Koperdraad
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)
6 years 7 months ago
Mauricio Florez
Expert Boarder
Expert Boarder
Posts: 87
More
Topic Author
Automatic Printer Trigger #3927
Thanks you guys.

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.

Regards,

MFM
6 years 7 months ago
Rutger Koperdraad
Platinum Boarder
Platinum Boarder
Posts: 1566
More
Automatic Printer Trigger #3928
Hi Mauricio,

Please, refer to this page in the help file for finding more information about using multiple layouts in a single template:

help.cardexchangesolutions.com/en/Applic....htm?expressions.htm

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.

regards,
Rutger.

Rutger Koperdraad
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)
×

Notice

The forum is in read only mode.