Field-Shapes

From Plex-XML
Jump to: navigation, search

Beneath field types you can use field shapes to customize the look and feel of fields in your format.

See below a list of available shapes. Notice that you can't use every shape for every field type.

Contents

AJAX-Combo

DEPRECATED use Combo instead.

Character

Valid for field types: Character

Check

DEPRECATED use YesNo instead.

Combo

Valid for field types: Character, Numeric

Customized

Content could be total customized. Could be done e.g. in a xslt withe a postFieldExeption.

Date

Date in short format.

For input fields you could use +/- do increase/decrease the date for on day. And guess what happens if you press "T"oday on a date field?

Valid for field types: DateISO, Date Numeric 5, Date Numeric 7, Date Numeric 8

Date-Long

Date in long format as it is defined in the settings for the locale of the current user.

Shape DateLong.png

Shap DateLong2.png

For more information about Java date pattern see http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html


Valid for field types: DateISO, Date Numeric 5, Date Numeric 7, Date Numeric 8

Email-Link

A mailto: link is generated for the content of the field. In grids as an underlined link and in detail masks with an letter icon behind the field.

Shape EMail.png


Valid for field types: Character

HTMLCustomized

HTMLCustomized uses in XSLT disable-output-escaping="yes". Useful if you like to format a cell or a row in a grid complete free like in the example below.

Example:

 <xsl:template name="postFieldException">
  <xsl:choose>
   <xsl:when test="@implname='STHash'">
    <xsl:variable name="vVom" select="../returnvalue[@implname='TimeIn']/@value"/>
     ...
    <xsl:variable name="vTagTableForeignKey"><xsl:value-of select="../returnvalue[@name='TagTableForeignKey']/@unformatted" /></xsl:variable>
    <table style="width:100%;">
     <tr>
      <td valign="top" width="20px">
       <xsl:value-of select="$vImage"/>
      </td>
      <td colspan="2">
       <span style="font-size: 13px;font-weight: bold;"><xsl:value-of select="$vName"/></span>
       <br/>
       ...
    </table>
   </xsl:when>
  </xsl:choose>
 </xsl:template>

HTMLCustomized.png


Valid for field types: Character

HTMLText

HTMLText preserves line feeds and HTML elements in the output. Useful if you like to show the content of a text area or of a RichTextEditor in a grid.

XSLT-Processing is done by:

<xsl:value-of select='str:replaceAll(str:new(string(node())), "\n","<br/>")'  disable-output-escaping="yes"/>

Shape HTMLText.png


Valid for field types: Character

Hyperlink

Valid for field types: Character

Listbox

DEPRECATED

Numeric

Valid for field types: Numeric

Numeric Empty

Like the numeric shape but 0 is suppressed in grids.


Valid for field types: Numeric

Password

Like the Character shape but input is shown as ****


Valid for field types: Character

Textarea

Valid for field types: Character

Time

Time as it is defined in the settings for the locale of the current user.


Valid for field types: TimeISO, Time Numeric 6

Timestamp

Timestamp as it is defined in the settings for the locale of the current user.


Valid for field types: TimestampISO

Upper

Valid for field types: Character

YesNo

Checkbox with '0' or '1' as result. Empty values a handeled as '0'.


Valid for field types: Character

Personal tools