Lasso Soft Inc. > Home

[Required_Field]

[Required_Field] can be used to output the names of each of the required fields or columns which are defined in the current database and table

When called with a -Count parameter this tag returns the number of required fields.

When called with a numeric parameter this tag returns the name of one of the required fields.

  • Syntax
  • Parameters
[Required_Field: -Count]

[Required_Field: Field Number]
Optional Parameters
Encoding Keyword Specifies the encoding for the tag's return value. Tags are encoded using -EncodeHTML by default if their value is output on a format file. No encoding is applied to nested tags unless an explicity encoding keyword is specified. One of -EncodeBreak, -EncodeHTML, -EncodeNone, -EncodeRaw, -EncodeSmart, -EncodeStrictURL, -EncodeURL, -EncodeXML.
Examples

To display the current required fields:

Use the [Required_Field] tag within [Loop] ... [/Loop] tags. The following example shows two required fields First_Name and Last_Name.

[Inline: -Show
    -Database='Contacts',
    -Table='People']
  [Loop: (Required_Field: -Count)]
    <br>[Required_Field: Loop_Count]
  [/Loop]
[/Inline]
Result:
<br>First_Name
<br>Last_Name
Tag Link [Required_Field] Category Results
Type Substitution Data Source Any
Support Preferred Version 3.0
Output Type String or Integer Security None
Implementation Internal Sets Lasso 6.0, Lasso 5.0,LDML3x

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft