Hey,<br />
<br />
I'm trying to build a report with a tree-like structure (<a class='bbc_url' href='
http://i55.tinypic.com/2n0n24z.png'>http://i55.tinypic.com/2n0n24z.png</a>). I got two problems so far.<br />
<br />
1) I'm passing the overwrite-Parameter with false, but the report starts a full reload when clicking on the "+"-Button<br />
<br />
2) My second param (showBudgetDetail) is always filled with the lastid<br />
<br />
<br />
button-script:<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
<form name="input" onSubmit="return reloadPage();">
<script type="text/javascript">
var id = <VALUE-OF>row["Id"]</VALUE-OF>;
function reloadPage() {
var temp = new String(window.location.href);
var targetURL = new String();
if(temp.indexOf("&__overwrite=") != -1 ) {
targetURL = temp.substring(0, temp.indexOf("&__overwrite"));
} else {
targetURL = temp;
}
targetURL += "&__overwrite=false";
targetURL += "&showBudgetDetail=" + id
location.replace(targetURL);
return false;
}
// Show button only for "master"-rows
if (String(id).indexOf("_") == -1) {
document.write('<input type="submit" value="+" style="height: 18px; width: 25px" />');
}
</script>
<a href=http://www.****.de/view.php?id=<VALUE-OF>row["Id"]</VALUE-OF>><VALUE-OF>row["Id"]</VALUE-OF></a>
</form>
</pre>
<br />
<br />
visibilty-code for row<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
row["Id"].indexOf("_") > -1 && row["budgetId"] != params["showBudgetDetail"].value
</pre>
<br />
<br />
Any ideas?