Forum Discussion
ChrisFaye1
6 years agoQrew Cadet
Thank You so much, Mark!
I did look through Kirk's Magic Buttons app and stumbled a bit. Downloaded yours and the explanation got me moving! Also, thank you for throwing everything into the post as well!
2 questions if you have time
- Is there any way to code in larger pop-ups or a directory I could look to? I'm thinking about either making the pop-up bigger or centering it on the page.
- Is there a correct way of combining the refresh with the pop-up?
Here's what I've got that seems to be functioning except for trying to get the pop-up to display following the refresh. I tried a few ways with no luck and here's what I ended up with.
// edit the record
var text URLONE = URLRoot() & "db/" & Dbid()
& "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_19=" & URLEncode(UserToName(User()))
& "&apptoken=...";
// Add record in 'Duplicate Test' Table & copy fid 6 to [Name]
var text AddRecord =URLRoot() & "db/" & [_DBID_DUPLICATE_TEST]
& "?act=API_AddRecord"
& "&apptoken=..."
& "&_fid_6=" & [Name];
//Refresh, Display Current Original Record and Display Green pop-up for 15 seconds
var text DisplayRecord=
URLRoot() & "db/" & Dbid()
& "?a=dr&rid=" & [Record ID#]
& "&apptoken=..."
&
"javascript:" &
"$.get('" &
$URLONE &
"',function(){" &
"$.jGrowl('This File has been Approved For Invoicing', {life: 15000, theme: 'jGrowl-green'});" &
"});" &
"void(0);";
$URLONE
& "&rdr=" & URLEncode($AddRecord)
& URLEncode("&rdr=" & URLEncode($DisplayRecord))
Thanks Again!
------------------------------
Chris
------------------------------
I did look through Kirk's Magic Buttons app and stumbled a bit. Downloaded yours and the explanation got me moving! Also, thank you for throwing everything into the post as well!
2 questions if you have time
- Is there any way to code in larger pop-ups or a directory I could look to? I'm thinking about either making the pop-up bigger or centering it on the page.
- Is there a correct way of combining the refresh with the pop-up?
Here's what I've got that seems to be functioning except for trying to get the pop-up to display following the refresh. I tried a few ways with no luck and here's what I ended up with.
// edit the record
var text URLONE = URLRoot() & "db/" & Dbid()
& "?act=API_EditRecord&rid=" & [Record ID#]
& "&_fid_19=" & URLEncode(UserToName(User()))
& "&apptoken=...";
// Add record in 'Duplicate Test' Table & copy fid 6 to [Name]
var text AddRecord =URLRoot() & "db/" & [_DBID_DUPLICATE_TEST]
& "?act=API_AddRecord"
& "&apptoken=..."
& "&_fid_6=" & [Name];
//Refresh, Display Current Original Record and Display Green pop-up for 15 seconds
var text DisplayRecord=
URLRoot() & "db/" & Dbid()
& "?a=dr&rid=" & [Record ID#]
& "&apptoken=..."
&
"javascript:" &
"$.get('" &
$URLONE &
"',function(){" &
"$.jGrowl('This File has been Approved For Invoicing', {life: 15000, theme: 'jGrowl-green'});" &
"});" &
"void(0);";
$URLONE
& "&rdr=" & URLEncode($AddRecord)
& URLEncode("&rdr=" & URLEncode($DisplayRecord))
Thanks Again!
------------------------------
Chris
------------------------------
MarkShnier__You
Qrew Legend
6 years agore: 2 questions if you have time
- Is there any way to code in larger pop-ups or a directory I could look to? I'm thinking about either making the pop-up bigger or centering it on the page.
- Is there a correct way of combining the refresh with the pop-up?
For all those questions, there may be a way, but other's smarter than me would have to chime in.
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
markshnier2@gmail.com
------------------------------
- Is there any way to code in larger pop-ups or a directory I could look to? I'm thinking about either making the pop-up bigger or centering it on the page.
- Is there a correct way of combining the refresh with the pop-up?
For all those questions, there may be a way, but other's smarter than me would have to chime in.
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
markshnier2@gmail.com
------------------------------