<% tools.putSaveValue("pzResult", ""); //Bug-11491 : reset the save variable String tooltip = StringUtils.crossScriptingFilter(tools.getLocalizedTextForString("pyToolTip",tools.getParamValue("ToolTip"))); %> <pega:when test="$save(prepareForDataGrid)=='true' && $mode-input"> <script> function Default_getValue(){ <pega:choose> <pega:when test='$this:TYPE_TRUEFALSE'> var ID="<pega:reference name='$this-Definition(pyPropertyName)' mode="NORMAL" /><%= StringUtils.crossScriptingFilter(tools.getParamValue("pega_RLindex")) %>true"; var field = document.getElementById(ID); if (field.checked){ return true; } else{ return false; } </pega:when> <pega:otherwise> var ID="<pega:reference name='$this-Definition(pyPropertyName)' mode="NORMAL" /><%= StringUtils.crossScriptingFilter(tools.getParamValue("pega_RLindex")) %>"; var field = document.getElementById(ID); if (field){ return field.value; } else{ return ""; } </pega:otherwise> </pega:choose> } function Default_setValue(val){ <pega:choose> <pega:when test='$this:TYPE_TRUEFALSE'> var ID="<pega:reference name='$this-Definition(pyPropertyName)' mode="NORMAL" /><%= StringUtils.crossScriptingFilter(tools.getParamValue("pega_RLindex")) %>"+ val; var field = document.getElementById(ID); if (field){ field.checked = true; } </pega:when> <pega:otherwise> var ID="<pega:reference name='$this-Definition(pyPropertyName)' mode="NORMAL" /><%= StringUtils.crossScriptingFilter(tools.getParamValue("pega_RLindex")) %>"; var field = document.getElementById(ID); if (field){ field.value = val; } </pega:otherwise> </pega:choose> } function Default_setFocus(){ <pega:choose> <pega:when test='$this:TYPE_TRUEFALSE'> var ID="<pega:reference name='$this-Definition(pyPropertyName)' mode="NORMAL" /><%= StringUtils.crossScriptingFilter(tools.getParamValue("pega_RLindex")) %>true"; </pega:when> <pega:otherwise> var ID="<pega:reference name='$this-Definition(pyPropertyName)' mode="NORMAL" /><%= StringUtils.crossScriptingFilter(tools.getParamValue("pega_RLindex")) %>"; </pega:otherwise> </pega:choose> var field = document.getElementById(ID); if (field && (field.tagName == "INPUT") || (field.tagName == "input")){ field.focus(); } } </script> </pega:when> <%-- Start SmartField --%> <pega:when java='<%= !tools.getParamValue("ReadOnlySmartInfo").equals("") || !tools.getParamValue("ReadWriteSmartInfo").equals("") %>'> <pega:include name="StartSmartField"/> </pega:when> <%-- Handle the property based on input mode and type. --%> <pega:choose> <pega:when test='$this:isScalar'> <pega:choose> <pega:when test='!$mode-input'> <pega:choose> <pega:when test='$this:TYPE_PASSWORD'> <% int idx = tools.getActiveValue().length(); while (idx-- > 0) tools.appendString("*"); %> </pega:when> <pega:when test='$this:TYPE_DATE'> <% java.util.Date theDate = null; if( tools.getActiveValue().length() > 0 && tools.getActive().hasValidValue()) { try { theDate = tools.getActive().toDate(); } catch (com.pega.pegarules.pub.clipboard.InvalidValueException ive ) { theDate = null; throw ive; } finally { if (theDate !=null) { tools.appendString(PRDateFormat.format(null,"GMT", PRDateFormat.DEFAULT_DATE_DEFAULT, theDate)); } else { tools.appendString(StringUtils.crossScriptingFilter(tools.getActiveValue())); } } } %> </pega:when> <pega:when test='$this:TYPE_TIMEOFDAY'> <% if( tools.getActiveValue().length() > 0 && tools.getActive().hasValidValue() ) { java.util.Date theDate = null; try { theDate = tools.getActive().toDate(); } catch( com.pega.pegarules.pub.clipboard.InvalidValueException ive ) { theDate = null; throw ive; } finally { if (theDate !=null) { tools.appendString(PRDateFormat.format(null,"GMT", PRDateFormat.DEFAULT_TIME_DEFAULT, theDate)); } else { tools.appendString(StringUtils.crossScriptingFilter(tools.getActiveValue())); } } } %> </pega:when> <pega:when test='$this:TYPE_DATETIME'> <% if( tools.getActiveValue().length() > 0 && tools.getActive().hasValidValue() ) { java.util.Date theDate = null; try { theDate = tools.getActive().toDate(); } catch( com.pega.pegarules.pub.clipboard.InvalidValueException ive ) { theDate = null; } finally { if (theDate !=null) { tools.appendString(PRDateFormat.format(null,null, PRDateFormat.DEFAULT_DATETIME_DEFAULT, theDate)); } else { tools.appendString(StringUtils.crossScriptingFilter(tools.getActiveValue())); } } } %> </pega:when> <pega:when test='$this:TYPE_DECIMAL'> <% if( tools.getActiveValue().length() > 0 && tools.getActive().hasValidValue() ) { ClipboardProperty myProp = tools.getActive(); com.pega.ibm.icu.math.BigDecimal value = myProp.toBigDecimal(); int decimalPrecision = myProp.getDecimalPrecision(); tools.appendString(PRNumberFormat.format(null, PRNumberFormat.DEFAULT_DECIMAL, false, null, decimalPrecision,value)); } else { tools.appendString(StringUtils.crossScriptingFilter(tools.getActiveValue())); } %> </pega:when> <pega:when test='$this:TYPE_DOUBLE'> <% if( tools.getActiveValue().length() > 0 && tools.getActive().hasValidValue() ) { ClipboardProperty myProp = tools.getActive(); double value = myProp.toDouble(); int decimalPrecision = myProp.getDecimalPrecision(); tools.appendString(PRNumberFormat.format(null, PRNumberFormat.DEFAULT_DECIMAL, false, null, decimalPrecision,value)); } else { tools.appendString(StringUtils.crossScriptingFilter(tools.getActiveValue())); } %> </pega:when> <pega:when test='$this:TYPE_NUMBER'> <% if( tools.getActiveValue().length() > 0 && tools.getActive().hasValidValue() ) { double value = tools.getActive().toInteger(); tools.appendString(PRNumberFormat.format(null, PRNumberFormat.DEFAULT_INTEGER, false, null, value)); } else { tools.appendString(StringUtils.crossScriptingFilter(tools.getActiveValue())); } %> </pega:when> <pega:when test='$this:TYPE_AMOUNT'> <% ClipboardProperty baseProp = tools.getActive(); String curr = null; if(tools.getDictionary().hasQualifier(baseProp,"pyCurrency") ) { ClipboardProperty prop = tools.getDictionary().getPropertyViaQualifier(baseProp, "pyCurrency"); if(prop != null) curr = prop.getStringValue(); } if( tools.getActiveValue().length() > 0 && baseProp.hasValidValue() ) { ClipboardProperty myProp = tools.getActive(); com.pega.ibm.icu.math.BigDecimal value = myProp.toBigDecimal(); int decimalPrecision = myProp.getDecimalPrecision(); tools.appendString(PRNumberFormat.format(null, PRNumberFormat.DEFAULT_CURRENCY, false, null, decimalPrecision,value)); } else { tools.appendString(StringUtils.crossScriptingFilter(tools.getActiveValue())); } %> </pega:when> <pega:otherwise> <pega:reference name="$this-value" /> </pega:otherwise> </pega:choose> </pega:when> <pega:otherwise> <SPAN nowrap> <pega:include name="Messages"/> <pega:choose> <pega:when test='$this:TYPE_TEXT'> <input <pega:include name="Attributes" /> <pega:include name="ClientValidation"/> id="<pega:reference name='$this-Definition(pyPropertyName)' mode="NORMAL" /><%= StringUtils.crossScriptingFilter(tools.getParamValue("pega_RLindex")) %>" class="leftJustifyStyle" type=text <pega:when test="$this-value != ''">value="<pega:reference name='$this-value' mode="NORMAL" />"</pega:when> <pega:when test="$this-Definition(pyMaxLength) != ''">maxlength="<pega:reference name='$this-Definition(pyMaxLength)' mode="NORMAL" />"</pega:when> name="<pega:reference name="$this-name" />" title ="<%= tooltip%>" alt ="<%= tooltip%>"> </pega:when> <pega:when test='$this:TYPE_DECIMAL'> <% if( tools.getActiveValue().length() > 0 && tools.getActive().hasValidValue() ) { ClipboardProperty myProp = tools.getActive(); com.pega.ibm.icu.math.BigDecimal value = myProp.toBigDecimal(); int decimalPrecision = myProp.getDecimalPrecision(); tools.putSaveValue("pzResult", PRNumberFormat.format(null, PRNumberFormat.DEFAULT_DECIMAL, false, null, decimalPrecision,value)); } else tools.putSaveValue("pzResult", tools.getActiveValue()); %> <input <pega:include name="Attributes" /> <pega:include name="ClientValidation"/> id="<pega:reference name='$this-Definition(pyPropertyName)' mode="NORMAL" /><%= StringUtils.crossScriptingFilter(tools.getParamValue("pega_RLindex")) %>" class="rightJustifyStyle" type=text <pega:when test="$save(pzResult) != ''">value="<pega:reference name='$save(pzResult)' mode="NORMAL" />"</pega:when> <pega:when test="$this-Definition(pyMaxLength) != ''">maxlength="<pega:reference name='$this-Definition(pyMaxLength)' mode="NORMAL" />"</pega:when> name="<pega:reference name="$this-name" />" title ="<%= tooltip%>" alt ="<%= tooltip%>"> </pega:when> <pega:when test='$this:TYPE_DOUBLE'> <% if( tools.getActiveValue().length() > 0 && tools.getActive().hasValidValue() ) { ClipboardProperty myProp = tools.getActive(); double value = myProp.toDouble(); int decimalPrecision = myProp.getDecimalPrecision(); tools.putSaveValue("pzResult", PRNumberFormat.format(null, PRNumberFormat.DEFAULT_DECIMAL, false, null, decimalPrecision,value)); } else tools.putSaveValue("pzResult", tools.getActiveValue()); %> <input <pega:include name="Attributes" /> <pega:include name="ClientValidation"/> id="<pega:reference name='$this-Definition(pyPropertyName)' mode="NORMAL" /><%= StringUtils.crossScriptingFilter(tools.getParamValue("pega_RLindex")) %>" class="rightJustifyStyle" type=text <pega:when test="$save(pzResult) != ''">value="<pega:reference name='$save(pzResult)' mode="NORMAL" />"</pega:when> <pega:when test="$this-Definition(pyMaxLength) != ''">maxlength="<pega:reference name='$this-Definition(pyMaxLength)' mode="NORMAL" />"</pega:when> name="<pega:reference name="$this-name" />" title ="<%= tooltip%>" alt ="<%= tooltip%>"> </pega:when> <pega:when test='$this:TYPE_TRUEFALSE'> <input <%= tools.getActive().toBoolean() ? "checked" : "" %> <pega:include name="ClientValidation"/> id="<pega:reference name='$this-Definition(pyPropertyName)' mode="NORMAL" /><%= StringUtils.crossScriptingFilter(tools.getParamValue("pega_RLindex")) %>true" type=radio value="true" class="Radio" name="<pega:reference name="$this-name" />" title ="<%= tooltip%>" alt ="<%= tooltip%>"> <label for="<pega:reference name='$this-Definition(pyPropertyName)' mode="NORMAL" /><%= StringUtils.crossScriptingFilter(tools.getParamValue("pega_RLindex")) %>true">True</label> <input <%= tools.getActive().toBoolean() ? "" : "checked" %> <pega:include name="ClientValidation"/> id="<pega:reference name='$this-Definition(pyPropertyName)' mode="NORMAL" /><%= StringUtils.crossScriptingFilter(tools.getParamValue("pega_RLindex")) %>false" type=radio value="false" class="Radio" name="<pega:reference name="$this-name" />" title ="<%= tooltip%>" alt ="<%= tooltip%>"> <label for="<pega:reference name='$this-Definition(pyPropertyName)' mode="NORMAL" /><%= StringUtils.crossScriptingFilter(tools.getParamValue("pega_RLindex")) %>false">False</label> </pega:when> <pega:when test='$this:TYPE_PASSWORD'> <input <pega:include name="Attributes" /> <pega:include name="ClientValidation"/> id="<pega:reference name='$this-Definition(pyPropertyName)' mode="NORMAL" /><%= StringUtils.crossScriptingFilter(tools.getParamValue("pega_RLindex")) %>" type=password value="<pega:reference name='$this-value' mode="NORMAL" />" class="leftJustifyStyle" name="<pega:reference name="$this-name" />" title ="<%= tooltip%>" alt ="<%= tooltip%>"> </pega:when> <pega:when test='$this:TYPE_DATE'> <% java.util.Date theDate = null; if( tools.getActiveValue().length() > 0 && tools.getActive().hasValidValue()) { try { theDate = tools.getActive().toDate(); } catch( com.pega.pegarules.pub.clipboard.InvalidValueException ive ) { theDate = null; throw ive; } finally { if (theDate !=null) tools.putSaveValue("pzResult", PRDateFormat.format(null,"GMT", PRDateFormat.DEFAULT_DATE_DEFAULT, theDate)); else tools.putSaveValue("pzResult", tools.getActiveValue()); } } %> <input <pega:include name="Attributes" /> <pega:include name="ClientValidation"/> id="<pega:reference name='$this-Definition(pyPropertyName)' mode="NORMAL" /><%= StringUtils.crossScriptingFilter(tools.getParamValue("pega_RLindex")) %>" class="leftJustifyStyle" type=text <pega:when test="$save(pzResult) != ''">value="<pega:reference name='$save(pzResult)' mode="NORMAL" />"</pega:when> name="<pega:reference name="$this-name" />" title ="<%= tooltip%>" alt ="<%= tooltip%>"> </pega:when> <pega:when test='$this:TYPE_TIMEOFDAY'> <% if( tools.getActiveValue().length() > 0 && tools.getActive().hasValidValue()) { java.util.Date theDate = null; try { theDate = tools.getActive().toDate(); } catch( com.pega.pegarules.pub.clipboard.InvalidValueException ive ) { theDate = null; throw ive; } finally { if (theDate !=null) tools.putSaveValue("pzResult", PRDateFormat.format(null,"GMT", PRDateFormat.DEFAULT_TIME_DEFAULT, theDate)); else tools.putSaveValue("pzResult", tools.getActiveValue()); } } %> <input <pega:include name="Attributes" /> <pega:include name="ClientValidation"/> id="<pega:reference name='$this-Definition(pyPropertyName)' mode="NORMAL" /><%= StringUtils.crossScriptingFilter(tools.getParamValue("pega_RLindex")) %>" class="leftJustifyStyle" type=text <pega:when test="$save(pzResult) != ''">value="<pega:reference name='$save(pzResult)' mode="NORMAL" />"</pega:when> name="<pega:reference name="$this-name" />" title ="<%= tooltip%>" alt ="<%= tooltip%>"> </pega:when> <pega:when test='$this:TYPE_DATETIME'> <% if( tools.getActiveValue().length() > 0 && tools.getActive().hasValidValue()) { java.util.Date theDate = null; try { theDate = tools.getActive().toDate(); } catch( com.pega.pegarules.pub.clipboard.InvalidValueException ive ) { theDate = null; } finally { if (theDate !=null) tools.putSaveValue("pzResult", PRDateFormat.format(null,null, PRDateFormat.DEFAULT_DATETIME_DEFAULT, theDate)); else tools.putSaveValue("pzResult", tools.getActiveValue()); } } %> <input <pega:include name="Attributes" /> <pega:include name="ClientValidation"/> id="<pega:reference name='$this-Definition(pyPropertyName)' mode="NORMAL" /><%= StringUtils.crossScriptingFilter(tools.getParamValue("pega_RLindex")) %>" class="leftJustifyStyle" type=text <pega:when test="$save(pzResult) != ''">value="<pega:reference name='$save(pzResult)' mode="NORMAL" />"</pega:when> name="<pega:reference name="$this-name" />" title ="<%= tooltip%>" alt ="<%= tooltip%>"> </pega:when> <pega:when test='$this:TYPE_NUMBER'> <% if( tools.getActiveValue().length() > 0 && tools.getActive().hasValidValue() ) { double value = tools.getActive().toInteger(); tools.putSaveValue("pzResult", PRNumberFormat.format(null, PRNumberFormat.DEFAULT_INTEGER, false, null, value)); } else tools.putSaveValue("pzResult", tools.getActiveValue()); %> <input <pega:include name="Attributes" /> <pega:include name="ClientValidation"/> id="<pega:reference name='$this-Definition(pyPropertyName)' mode="NORMAL" /><%= StringUtils.crossScriptingFilter(tools.getParamValue("pega_RLindex")) %>" class="rightJustifyStyle" type=text <pega:when test="$save(pzResult) != ''"> value="<pega:reference name='$save(pzResult)' mode="NORMAL" />" </pega:when> name="<pega:reference name="$this-name" />" title ="<%= tooltip%>" alt ="<%= tooltip%>"> </pega:when> <pega:when test='$this:TYPE_AMOUNT'> <% ClipboardProperty baseProp = tools.getActive(); String curr = null; if(tools.getDictionary().hasQualifier(baseProp,"pyCurrency") ) { ClipboardProperty prop = tools.getDictionary().getPropertyViaQualifier(baseProp, "pyCurrency"); if(prop != null) curr = prop.getStringValue(); } if( tools.getActiveValue().length() > 0 && tools.getActive().hasValidValue() ) { ClipboardProperty myProp = tools.getActive(); com.pega.ibm.icu.math.BigDecimal value = myProp.toBigDecimal(); int decimalPrecision = myProp.getDecimalPrecision(); tools.putSaveValue("pzResult", PRNumberFormat.format(null, PRNumberFormat.DEFAULT_CURRENCY, false, null, decimalPrecision,value)); } else tools.putSaveValue("pzResult", tools.getActiveValue()); %> <input <pega:include name="Attributes" /> <pega:include name="ClientValidation"/> id="<pega:reference name='$this-Definition(pyPropertyName)' mode="NORMAL" /><%= StringUtils.crossScriptingFilter(tools.getParamValue("pega_RLindex")) %>" class="rightJustifyStyle" type=text <pega:when test="$save(pzResult) != ''">value="<pega:reference name='$save(pzResult)' mode="NORMAL" />"</pega:when> name="<pega:reference name="$this-name" />"> </pega:when> <pega:otherwise> <input <pega:include name="Attributes" /> <pega:include name="ClientValidation"/> id="<pega:reference name='$this-Definition(pyPropertyName)' mode="NORMAL" /><%= StringUtils.crossScriptingFilter(tools.getParamValue("pega_RLindex")) %>" class="leftJustifyStyle" type=text <pega:when test="$this-value != ''">value="<pega:reference name='$this-value' mode="NORMAL" />"</pega:when> name="<pega:reference name="$this-name" />" title ="<%= tooltip%>" alt ="<%= tooltip%>"> </pega:otherwise> </pega:choose> </SPAN> </pega:otherwise> </pega:choose> </pega:when> <pega:otherwise> <%-- non scalar properties not yet supported --%> </pega:otherwise> </pega:choose> <%-- Finish SmartField --%> <pega:when java='<%= !tools.getParamValue("ReadOnlySmartInfo").equals("") || !tools.getParamValue("ReadWriteSmartInfo").equals("") %>'> <pega:include name="EndSmartField"/> </pega:when>
Write, Run & Share HTML code online using OneCompiler's HTML online Code editor for free. It's one of the robust, feature-rich online Code editor for HTML language, running on the latest version HTML5. Getting started with the OneCompiler's HTML compiler is simple and pretty fast. The editor shows sample boilerplate code when you choose language as HTML
. You can also specify the stylesheet information in styles.css
tab and scripts information in scripts.js
tab and start coding.
HTML(Hyper Text Markup language) is the standard markup language for Web pages, was created by Berners-Lee in the year 1991. Almost every web page over internet might be using HTML.
<!DOCTYPE html>
<html>
and ends with </html>
<h1>
to <h6>
where <h1>
is the highest important heading and <h6>
is the least important sub-heading.<p>..</p>
tag.<a>
tag.
<a href="https://onecompiler.com/html">HTML online compiler</a>
<img>
tag, where src
attribute consists of image name.<button>..</button>
tag<ul>
for unordered/bullet list and <ol>
for ordered/number list, and the list items are defined in <li>
.<a href="https://onecompiler.com/html">HTML online compiler</a>
CSS(cascading style sheets) describes how HTML elements will look on the web page like color, font-style, font-size, background color etc.
Below is a sample style sheet which displays heading in green and in Candara font with padding space of 25px.
body{
padding: 25px;
}
.title {
color: #228B22;
font-family: Candara;
}
<table>
tag.<tr>
tag<th>
tag<td>
tag<caption>
tag<script>
is the tag used to write scripts in HTML<script src="script.js"></script>