Forum Discussion
JohnBarulich1
7 years agoQrew Cadet
Thanks Dan,
In your code snippet previously stated, it doesn't look like we are specifying any context for the selection. How would we specify context for this selection? How would this statement, which specifies position, be executed within the script if it will not fire until the button is pushed?
I can't seem to get a simple button onto the top with
$("table[qbdbid=" + dbidTable + "] tr:first").before("<tr><td><a href=# id=QBU_Button class='Vibrant Success'>Process Selected Records</a></td></tr>");
In your code snippet previously stated, it doesn't look like we are specifying any context for the selection. How would we specify context for this selection? How would this statement, which specifies position, be executed within the script if it will not fire until the button is pushed?
I can't seem to get a simple button onto the top with
[iol] & "myScript.js" & [/iol]
&
"<a class='QBU_Button Vibrant Success'>Button</a>"
JohnBarulich1
7 years agoQrew Cadet
Hey Dan,
I ran my code within the console and it does everything I needed. Displays a button above the table, fires off my script, and completes my task.
However, this script does not execute when put into a code page with the IOL set up correctly.
From my understanding, the script does not run until an individual record is open, so how can my script be executed, which puts the button above my dbid table, when we are not viewing a record?
Everything is working perfectly until this last step
I ran my code within the console and it does everything I needed. Displays a button above the table, fires off my script, and completes my task.
However, this script does not execute when put into a code page with the IOL set up correctly.
From my understanding, the script does not run until an individual record is open, so how can my script be executed, which puts the button above my dbid table, when we are not viewing a record?
Everything is working perfectly until this last step