Share ideas, ask questions, and get feedback about developing for ProcessMaker
Forum rules: Please post new questions under "Developing processes & programming" for ProcessMaker 2 or 3.
By Ofoghi
#830981
Hi,
I'd appreciate if everyone can help me with the bellow matter:

I want to hide the rows in a grid which the value of a column of that grid (which in a dropdown) is 1.

Thanks
#831195
To hide rows in a grid where the value of a specific dropdown column is 1, you can use CSS selectors to target the rows and apply a CSS rule to hide http://koows.com/ them. Here's an example of how to do this:

CSS
.grid-row[data-dropdown-value="1"] {
display: none;
}

This CSS rule will hide any row in the grid that has a data-dropdown-value attribute with a value of "1". The data-dropdown-value attribute should https://chatspin.download be added to each row's HTML element based on the value of the dropdown column for that row.

Here's an example of how to add the data-dropdown-value attribute to the HTML elements:

HTML
<div class="grid-row" data-dropdown-value="{{ row.dropdownValue }}">
</div>
In this example, row.dropdownValue should refer to the https://e-chats.com/omegle value of the dropdown column for the current row.

Once you've added the data-dropdown-value https://chatrandom.download/omegle/ attribute to the HTML elements and applied the CSS rule, the rows with a value of "1" in the dropdown column will be hidden from view.
#831263
To hide rows in a grid based on the value of a dropdown column, you can utilize JavaScript to dynamically manipulate the grid's DOM elements. Here's a step-by-step approach:

Identify the Dropdown Column: Determine the ID or class of the dropdown column that will be used as the criteria for hiding rows.

Capture Dropdown Value Changes: Implement an event listener that detects changes in the dropdown selection. This event listener will trigger the function responsible for hiding or unhiding rows.

Loop through Grid Rows: Iterate through all rows of the grid using JavaScript's DOM manipulation methods.

Compare Dropdown Value: For each row, compare the value of the dropdown cell with the value that triggers row hiding.

Hide or Unhide Rows: Based on the comparison, hide or unhide the current row using JavaScript's DOM manipulation methods.

Here's an example JavaScript code snippet https://echat.date that demonstrates the concept:

JavaScript
// Identify the dropdown column ID
const dropdownId = 'dropdown-column-id';

// Capture dropdown value changes
document.getElementById(dropdownId).addEventListener('change', handleDropdownChange);

function handleDropdownChange() {
const selectedValue = document.getElementById(dropdownId).value;

// Loop through grid rows
const gridRows = document.querySelectorAll('.grid-row');
for (const row of gridRows) {
const dropdownCellValue = row.querySelector('.dropdown-cell-class').textContent;

// Hide or unhide rows based on comparison
if (dropdownCellValue === selectedValue) {
row.style.display = 'none';
} else {
row.style.display = 'block';
}
}
}
This code snippet assumes https://www.developerbook.net/ the grid has a CSS https://koows.com/omegle class grid-row for each row and the dropdown cell has a CSS class dropdown-cell-class. Adjust the selectors as needed for your specific grid structure.

We prioritize customer safety and satisfaction, wh[…]

Looking to order Percocet online? Xanaxgeneric.com[…]

For MBOX to Outlook conversion, try the Betavare […]

Hi, thank you for your response, we proceeded with[…]