How limit the number of characters maximum in a text field?
Hi,
By vertical you mean rotated of 90/270°, or with letters like
T
E
X
T
?
in first case, you can chose the orientation of text blocks using a button of the toolbar. In second case it is not possible.
To limit the Length of a field, you can do the following:
Instead of having for example [Actors] in the text block, enter a new name, e.g. [shortActorsList]
Then check the "Script" option and enter the following in the bottom area:
To keep 50 characters starting at the 1st one.
Of course it may cut in the middle of a name...
You can add "(...)" at the end:
The report preview window of AMC may throw an error about a not found field when you refresh a template containing a script after having modified it, but it should work if you go to another template in the list then go back to your template.
By vertical you mean rotated of 90/270°, or with letters like
T
E
X
T
?
in first case, you can chose the orientation of text blocks using a button of the toolbar. In second case it is not possible.
To limit the Length of a field, you can do the following:
Instead of having for example [Actors] in the text block, enter a new name, e.g. [shortActorsList]
Then check the "Script" option and enter the following in the bottom area:
Code: Select all
begin
shortActorsList := Copy([Actors], 1, 50);
end;
Of course it may cut in the middle of a name...
You can add "(...)" at the end:
Code: Select all
begin
shortActorsList := Copy([Actors], 1, 22) + '(...)';
end;
Hiantp wrote:Hi,
By vertical you mean rotated of 90/270°, or with letters like
T
E
X
T
?
in first case, you can chose the orientation of text blocks using a button of the toolbar. In second case it is not possible.
Finally i see the button I was thinking in the easy mode (rotate 90/270) but my eyes don´t see very well
To limit the Length of a field, you can do the following:
Instead of having for example [Actors] in the text block, enter a new name, e.g. [shortActorsList]
Then check the "Script" option and enter the following in the bottom area:To keep 50 characters starting at the 1st one.Code: Select all
begin shortActorsList := Copy([Actors], 1, 50); end;
Of course it may cut in the middle of a name...Really you are in thel ine, but I have tried the 2 options (2ª is really better), but it use same "actors" data for all the filmsantp wrote: You can add "(...)" at the end:Code: Select all
begin shortActorsList := Copy([Actors], 1, 22) + '(...)'; end;
(you will understand better in the image), and i have and error message when i try to print in a PDF "undefined symbol "actors"
Thanks for your help Antp
Hi antp
I have a partial solution.
I have created a new variable in the “variable editor” with the following expression
The variable it initially stored in the group of "movie fields"
This is the result
The print report work properly all time,. but the problem now is that when I open designer again, non encounter the new variable that I have created with object to edit it
Where is stored the new variables?
Bye
I have a partial solution.
I have created a new variable in the “variable editor” with the following expression
The variable it initially stored in the group of "movie fields"
This is the result
The print report work properly all time,. but the problem now is that when I open designer again, non encounter the new variable that I have created with object to edit it
Where is stored the new variables?
Bye
I hope that it can serve to you for something. New things are always discovered. I found it by chance, and knew that to put, thanks to the data that you gIve me.antp wrote:I didn't even know that it was possible to add variables like that
I have a new question.
in a simple field of text (non variable for the moment ...) for example “actors list” is possible to do that:
When "actors" is the variable originated in AMC?If “actors” lenght >0 then insert the text “actor list”
If “actors” lenght =0 then don't insert the text “actor lists”
Thanks again
ok
in the Script box of these text blocks, you can try to enter this:
in the Script box of these text blocks, you can try to enter this:
Code: Select all
begin
Visible := [Actors] <> '';
end;