J
|
Jane 7/9/2009 |
Jeremy, <input type=button class=button value="Preview selected" onclick="$('input[@type=checkbox][@checked][@id^=check]').each(function(i){ if(!isNaN(parseInt(this.id.substr(5)))) $('a#DetailTableName_preview'+this.id.substr(5)).click();});"> |
![]() |
jtksmith author 7/9/2009 |
Jane, |
L
|
luic 7/14/2009 |
Can you give me an exact example with some explanations for this Preview function on selected records? I copied the sample code and replaced with the table name and it does not work. |
J
|
Jane 7/15/2009 |
Hi, |
![]() |
jtksmith author 7/22/2009 |
Chris,
|
L
|
luic 7/24/2009 |
Thanks Jeremy. It works great! Chris, It is amazingly simple. Using the code provided by Jane, here are the steps that worked for me.
|
![]() |
jtksmith author 10/7/2009 |
There are two important pieces to this puzzle required to make it work that I neglected to mention, the first is that the preview type must be "inline" and not "popup". This is determined when linking tables in the Datasource tables step. The second piece is that you must switch to source code between steps 2 and 3 when in Visual Editor. I assumed that was obvious but realized one should never assume something is obvious. Hopefully this helps anyone that might have had problems with the code. |
D
|
dunga 12/2/2009 |
Jeremy, this task some custom coding on the Visual Editor tab. Here is a sample 'Preview selected' button:
|