Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Using value-of
gzambran
I am attempting to get the ID of a row but the value returned is null. If I use the commented line the script works. Anyone have any ideas?
<code>
function checkStructuredProduct()
{
var text = document.getElementById('prod<VALUE-OF>row.__rownum</VALUE-OF>').innerHTML;
// var text = document.getElementById('prod3').innerHTML;
if(text == "RMBS")
{
var newText = "<a href='www.google.com'>"+text+"<a/>";
document.getElementById('prod3').innerHTML = newText;
}
}
checkStructuredProduct();
</code>
Find more posts tagged with
Comments
mwilliams
Hi gzambran,
The first thing I notice is the <VALUOF> in the below line instead of <VALUE-OF>. This may not be the problem, but it's just the first thing I see.
var text = document.getElementById('prod<VALUOF>row.__rownum</VALUE-OF>').innerHTML;
If that doesn't solve it or was just a typo in your post, let me know.
gzambran
Yeah that was just a typo in my post.
mwilliams
gzambran,
One thing you could try would be to put ('prod' + <VALUE-OF>row.__rownum</VALUE-OF>) rather than ('prod<VALUE-OF>row.__rownum</VALUE-OF>').
Where are you doing this script at?
gzambran
<blockquote class='ipsBlockquote' data-author="mwilliams"><p>gzambran,<br />
<br />
One thing you could try would be to put ('prod' + <VALUE-OF>row.__rownum</VALUE-OF>) rather than ('prod<VALUE-OF>row.__rownum</VALUE-OF>').<br />
<br />
Where are you doing this script at?</p></blockquote>
<br />
Still no luck. <br />
<br />
I just have a script inside a text field underneath the table that is holding the data I am trying to manipulate.
mwilliams
gzambran,
What is the goal behind manipulating the data? Could it possibly be something that you can do inside the table script?
gzambran
<blockquote class='ipsBlockquote' data-author="mwilliams"><p>gzambran,<br />
<br />
What is the goal behind manipulating the data? Could it possibly be something that you can do inside the table script?</p></blockquote>
<br />
Probably. Depending on the data inside of the table I want a link to be displayed to a separate report. <br />
<br />
To give a quick example, this table is displaying a variety of financial products if the financial product is a structured product I wanted the text to be displayed as a link to a new report.
gzambran
Michael,
I did as you suggested and put the script inside the table and all is working well. I really appreciate all of your help.
Regards,
Giancarlos
mwilliams
Excellent!