This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Star Rating</title> | |
<link rel="stylesheet" href="styles.css"> | |
</head> | |
<body> | |
<div class="container"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create a Code-Pega-List page | |
tools.createPage("Code-Pega-List", "Instances"); | |
// Connect to Pega DB and get deferred operations | |
PegaDatabase db = (PegaDatabase) tools.getDatabase(); | |
java.util.Iterator deferredOps = db.getDeferredOps().iterator(); | |
while (deferredOps.hasNext()) { | |
ClipboardPage instancePage = null; | |
DeferredOperation op = (DeferredOperation) deferredOps.next(); | |
// Getting instances only for SAVE operations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Functions in this js file and element references are done using Pega 8.6 | |
// Modify the references according to the Pega version. | |
function showStatus() { | |
const speechStatusDiv = document.querySelector('[data-tour-id="speechStatus"]'); | |
const speechStatus = speechStatusDiv.querySelector('.field-item'); | |
speechStatus.innerHTML = "Listening.."; | |
} | |
function hideStatus() { |