I have a variable htmlContent which is coming from my Process and i have assigned to a variable in UiPath apps, now i want to pass this value in the Custom Html how do I it.
Or is there any way in displaying htmlcontent in UiPath apps where the value is coming from the process
Please Help!
Refer this solution.
here you have it already …
the solution attached above has details as well
change innertext that was also you can
cheers
What i am doing wrong here
async function loadEmailData() {
let internalValue = await App.getVariable('jsonData');
console.log(internalValue);
let emailData = JSON.parse(internalValue);
// Get the reference to the table body element
const tableBody = document.querySelector('#emailTable tbody');
tableBody.innerHTML = ''; // Clear any existing rows
// Loop through the emailData and populate the table rows
emailData.forEach(item => {
const row = document.createElement('tr'); // Create a new row
row.innerHTML = `
<td>${item.name}</td>
<td>${item.email}</td>
<td>${item.status}</td>
<td><a href="${item.link}" target="_blank">Click Here</a></td> <!-- Added link with 'Click Here' -->
`;
tableBody.appendChild(row); // Append the row to the table body
});
}
// Call the function to load the email data into the table
loadEmailData()
;
//i am not able to get the value to internal value, in console it says undifined
well you are not using on variable change…so the function would not be triggered
cheers
1 Like