João Rosado wrote:
Hi Evert,
What was wrong with my Container solution? no javascript/hidden stuff required
Hello João,
I don't know for shure, but isn't it so that when you put a container around a element in the cell you need to click on the element instead of the row (so if you have a cell with width 200px but the text that is inside the container is only 100px long, the onclick wouldn't work on the last 100px) or is the container filling the whole cell?
Even so, if you have 10 cells in your table you also need to fill in 10 container, all maintaining their OnClick event, so if something need to change (another action or something), you need to change it 10 times.
Antonio Xeira wrote:
And how do you control the ID to call the Javascript?
I have a container called
CalculatorButtonC with an onclick call to a javascript HideCalculator() that goes like:
function HideCalculator()
{
document.getElementById("Calculator").style.display="none";
document.getElementById("CalculatorButton").style.display="block";
document.getElementById("Calculator").style.display="none";
}
When I open the page in the browser the container has now the ID="
wt152_wtMainContent_wt37_wtCalculatorButtonC"
How do I control the ID to call the Javascript?
Hello Antonio,
When you give the container a name, it ends up in the widget list (expression editor) and there you can select the id by the <name>.<id>. Then it will use the id that is created on runtime.
Kind regards,
Evert