Table of Contents

 

Border

A Border definition in TDL is a reusable formatting element that controls the appearance of borders around UI elements in TallyPrime. It defines the border position, thickness, and style used to visually separate or highlight fields, lines and parts.

Syntax

[Border : <Border Name>]

Top             : <Values separated by a comma>
Bottom      : <Values separated by a comma>
Left             : <Values separated by a comma>
Right           : <Values separated by a comma>

Example

[Border: TSPL Border]

Bottom : Thin, Flush, Full Length
Right : Thin, Double

This example displays how Border definition is used to determine the appearance of borders.
Bottom : Thin, Flush, Full Length → This specifies that the bottom border of the element should be a thin line, aligned flush with the element, and stretch across its full length.
Right : Thin, Double → This defines that the right border should be a thin, double line.

➥ Click here to download Border Sample

 

Attributes

The Left attribute draws a border to the left of the element. Whether it is to separate the sections of your report horizontally or to highlight any field by boxing up the left side of its boundary, this attribute makes your report look organised and visually appealing
The attribute accepts predefined keywords as comma separated values. Not all values are mandatory, use them as needed for your design.

Syntax

Left: <Values separated by a comma>

Permissible Values : [Thin/Thick/Bold/Normal], [Flush], [FullLength], [Double Lined]

Thin / Thick / Bold / Normal – Helps to set the border thickness. Commonly used to give a polished look to UI elements. When you don’t specify any keyword from this group, ‘Thin’ is taken as default.
Flush – Aligns the border tightly, ignoring extra spacing. Perfect for blocks like Signatures.
FullLength – Extends the border across the full width. Often used for Amount fields.
Double Lined – Draws a stylish double border. Often used to prominently separate a section from rest of report.

Example

[Border: TSPL Left Border]

Left : Thick, Double Lined

This border definition is named TSPL Left Border.
It draws a thick double lined border to the left of the element where it is used.

The Right attribute draws a border to the right of the element. Whether it is to neatly separate the sections of your report horizontally or to highlight any field by boxing up the right side of its boundary, use this attribute to makes your report look neat, clean and visually appealing
The attribute accepts predefined keywords as comma separated values. Not all values are mandatory, use them as needed for your design.

Syntax

Right: <Values separated by a comma>

Permissible Values : [Thin/Thick/Bold/Normal], [Flush], [FullLength], [Double Lined]

Thin / Thick / Bold / Normal – Helps to set the border thickness. Commonly used to give a polished look to UI elements. When you don’t specify any keyword from this group, ‘Thin’ is taken as default.
Flush – Aligns the border tightly, ignoring extra spacing. Perfect for blocks like Signatures.
FullLength – Extends the border across the full width. Often used for Amount fields.
Double Lined – Draws a stylish double border. Often used to prominently separate a section from rest of report.

Example

[Border: TSPL Right Border]

Right : Thin

This defines a border called TSPL Right Border.
It draws a Thin lined border to the right of the element where its used.

The Top attribute draws a border at the Top of the element. Whether it is to separate the sections of your report or to highlight the titles by sealing the top of its boundary, this attribute plays its part is making your reports look well formatted.
The attribute accepts predefined keywords as comma separated values. Not all values are mandatory, use them as needed for your design.

Syntax

Top: <Values separated by a comma>

Permissible Values : [Thin/Thick/Bold/Normal], [Flush], [FullLength], [Double Lined]

Thin / Thick / Bold / Normal – Helps to set the border thickness. Commonly used to give a polished look to UI elements. When you don’t specify any keyword from this group, ‘Thin’ is taken as default.
Flush – Aligns the border tightly, ignoring extra spacing. Perfect for blocks like Signatures.
FullLength – Extends the border across the full width. Often used for Amount fields.
Double Lined – Draws a stylish double border. Often used to prominently separate a section from rest of report like Narration field in display modes

Example

[Border: TSPL Top Border]

Top: Thick, Flush, Full Length

This border definition is named TSPL Top Border.
It draws a thick line at the top of the element where its used.
Flush means the line is aligned directly with the top edge (no spacing).
Full Length makes the line includes specified space left/right.

The Bottom attribute draws a border at the bottom of the element. Whether its to underline a text or separate sections in reports, it is a simple yet powerful tool to keep the reports clean, structured and visually appealing.
The attribute accepts predefined keywords as comma separated values. Not all values are mandatory, use them as needed for your design.

Syntax

Bottom: <Values separated by a comma>

Permissible Values : [Thin/Thick/Bold/Normal], [Flush], [FullLength], [Double Lined]

Thin / Thick / Bold / Normal – Helps to set the border thickness. Commonly used to give a polished look to UI elements. When you don’t specify any keyword from this group, ‘Thin’ is taken as default.
Flush – Aligns the border tightly, ignoring extra spacing. Perfect for blocks like Signatures.
FullLength – Extends the border across the full width. Often used for Amount fields.
Double Lined – Draws a stylish double border. Often used for Total fields.

Example

[Border: TSPL Bottom Border]

Bottom: Thick, Flush, Full Length

This defines a new border style called TSPL Bottom Border
It draws a thick line at the bottom of the element where it’s used.
Flush means the line is aligned tightly with the element’s bottom edge (no spacing).
Full Length means the line includes specified space left/right.

 

When you want to jazz up your report and make the screen look colorful, the Color attribute is what you need. Used within the Border definition, it specifies the color applied when the report is displayed, altered, or created.
Always specify at least one of the border sides — left, right, top, or bottom — when using the Color attribute. Remember, you cannot add color to a border that doesn’t exist!

Syntax

Color : <Color Definition Name>

Example

[Border: TSPL Red Border]

Top: Thick, Double Lined

Color: Red

This defines a new border called TSPL Red Border
This draws a thick double lined border at the top of the element where its used
The color attribute sets the border color to Red

The Color attribute adds vibrancy to your display. To extend this effect to printed output, use the PrintFG attribute. Whether it’s a neat red outline or a bold blue frame, this attribute ensures your printed output stands out with style.

Be sure to specify at least one of the border sides — left, right, top, or bottom — when using the color attribute in the border definition, so your border colors appear exactly as intended.

Syntax

PrintFG : <Color Definition Name>

Example

[Border: TSPL Border]

Top: Thick, Double Lined

Print FG : Yellow

This defines a new border called TSPL Border
This draws a border on the top with thick & double lines. The Print FG : “Yellow” means — when this border is printed, the border will appear in Yellow color.

Is this information useful?
YesNo
TallyHelpwhatsAppbanner
Is this information useful?
YesNo
TARA