Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

This content has been archived and is no longer being updated.

Links may not function; however, this content may be relevant to outdated versions of the product.

Issue: Class Embed-PropertyPromtValues name

Updated on May 3, 2020

Symptom

The prompt table values for a property rule is stored in the standard property Rule-Obj-Property.pyPromptTableList property.

This property contains the page class Embed-PropertyPromtValues. Note the incorrect spelling of the page class:

Embed-PropertyPromtValues

Prompt is missing the second P (Prompt).

You can use this property and page class to build a SmartPrompt HTML Property rule that retrieves its options from a prompt table:

{when $mode-show}
 {$this-value}
{else} {* input or prompt *}
<SPAN nowrap>
 {include Messages}
{WHEN $save(smartpromptclass) == ""}
  {SAVE smartpromptclass = {% thisRef().fromDefinition("pyTableClass") %} }
{/WHEN}
{WHEN $save(inputsize) == ""}
  {SAVE inputsize = {% thisRef().fromDefinition("pyExpectedSize") %} }
{/WHEN}
|<input name="{$this-Name}"
 type="text"
 value="{$this-Value}"
 size="{$save(inputsize)}"
 maxlength="{% thisRef().fromDefinition("pyMaxLength") %}"
 ISNS_FIELDTYPE="RULEKEY"
 ISNS_CLASS="Embed-PropertyPromtValues"
 ISNS_POPUPTYPE="DIV"
 ISNS_MYQUERY="&pyActivity=Embed-PropertyPromtValues.GetPromptList&className=FraudClaims-Data-GL-&propertyName=DAPGLAcctNo"
 ISNS_DATANODE="pyLocalizedValue"
 ONFOCUS="zUtil_SmartPromptFocusHandler()"
 CLASS="InputIntellisenseStyle"
 AUTOCOMPLETE="on">
</SPAN>
{end}  

Since a misspelling exists in the class Embed-PropertyPromtValues, you need to hard-code the class name in your activity when retrieving the values of the prompt property as a list.

Solution

The typo in the Embed-PropertyPromtValues class name will not be changed, due to backward compatibility issues.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us