Links may not function; however, this content may be relevant to outdated versions of the product.
Comparing text by using API
Compare two properties or texts in a coherent and convenient to interpret way by using the pega.ui.compare.showDiff API.
API | pega.ui.compare.showDiff |
---|---|
Description | Used to display differences between any property or text in an easy to interpret way in a dialog box consisting of two panes. The left pane that contains the current value is editable, and the right pane contains the reference value that the current value is being compared to. Changes are shown live as you edit the contents of the left pane. |
Type | JavaScript API |
Class | N/A |
Parameters | Required: event: javascript:event language: format of the compared strings. Available values: fetch: If you are passing the original string value in the currentString and compareString, set this parameter value to currentString: Property value/inskey of the current rule compareString: Property value/inskey of the compared rule propertyName: If the value of the fetch parameter is currentLabel: Header label of the left pane in the compare dialog box compareWithLabel: Header label of the right pane in the compare dialog box doneCallback: Callback function to be called after clicking in the dialog box. An updated string will be passed to this callback cancelCallback: Callback function to be called after clicking in the dialog box. An updated string will be passed to this callback ruleClass: pxObjClass value of any rule, for example Rule-Obj-Activity Optional: You can add additional parameters and use them with doneCallback and cancelCallback parameter. These extra parameters will be passed back as parameters of callbacks. |
Notes |
|