Hidden row details "static/dynamic" links
Hidden row details "static/dynamic" links
Hi all!
In fact, I am a newcomer to the world of data tables. I have no special talent in anything, but through trial and error, again and again, trying different things going moving forward.
But I've reached a point where it is as if I had climbed the Everest and I had run out of oxygen. My brain at this point is not to solve many more puzzles ...
So I decided to request that a helping hand could help me as best they know to finish some fringes that remain unfinished. I dare to link two or more questions because I understand that input on the issues are similar in some way.
1.- Hidden row details definition:
[CODE]
"aoColumnDefs": [
{ "bSortable": false, "fnRender": function ( oObj ) {
return ''+ oObj.aData[2] +'';}, "aTargets": [ 2 ]},
],
[/CODE]
In summary, this creates a link in part "dynamically", extracting some info of a visible row and aplying this to the content (plain text) in the ranks of the second column of the table (also a visible one). I show only the row information of our interest.
When I try to trace the usual structure that I need to open links in a new window whose control is determined by another javascript code on page head.
Some text This is my usual link basis.
[CODE]return ''+ oObj.aData[2] +'';}, "aTargets": [ 2 ]},[/CODE]
Don't work at all and also destroy the datatables construction. What happens? What can I do to maintain the structure link that I need?
2.- Now, in the hidden row details itself,
[CODE]sOut += 'Some text:Some text linked via an unknown formula with use of '+aData[9]+'';[/CODE]
I would like to obtain a linked text that extract some info of hidden 9 row of table, that is: 0123456789, to obtain the complete url
[URL]http://www.domain.com/name/search.asp?searchx=0123456789&field=whatever[/URL]
Something like
Something similar to the above formula... But how is the real and complete formula and where to put in this most important case to me? I have no ideas.
Thanks in advance for your replies.
Luys
P.S.: Congratulations, Allan, for the new release of DataTables. A wonderful program, without any doubt!
In fact, I am a newcomer to the world of data tables. I have no special talent in anything, but through trial and error, again and again, trying different things going moving forward.
But I've reached a point where it is as if I had climbed the Everest and I had run out of oxygen. My brain at this point is not to solve many more puzzles ...
So I decided to request that a helping hand could help me as best they know to finish some fringes that remain unfinished. I dare to link two or more questions because I understand that input on the issues are similar in some way.
1.- Hidden row details definition:
[CODE]
"aoColumnDefs": [
{ "bSortable": false, "fnRender": function ( oObj ) {
return ''+ oObj.aData[2] +'';}, "aTargets": [ 2 ]},
],
[/CODE]
In summary, this creates a link in part "dynamically", extracting some info of a visible row and aplying this to the content (plain text) in the ranks of the second column of the table (also a visible one). I show only the row information of our interest.
When I try to trace the usual structure that I need to open links in a new window whose control is determined by another javascript code on page head.
Some text This is my usual link basis.
[CODE]return ''+ oObj.aData[2] +'';}, "aTargets": [ 2 ]},[/CODE]
Don't work at all and also destroy the datatables construction. What happens? What can I do to maintain the structure link that I need?
2.- Now, in the hidden row details itself,
[CODE]sOut += 'Some text:Some text linked via an unknown formula with use of '+aData[9]+'';[/CODE]
I would like to obtain a linked text that extract some info of hidden 9 row of table, that is: 0123456789, to obtain the complete url
[URL]http://www.domain.com/name/search.asp?searchx=0123456789&field=whatever[/URL]
Something like
Something similar to the above formula... But how is the real and complete formula and where to put in this most important case to me? I have no ideas.
Thanks in advance for your replies.
Luys
P.S.: Congratulations, Allan, for the new release of DataTables. A wonderful program, without any doubt!
This discussion has been closed.