Skip to main content
Question

url and java script within one formula

  • Aug 6, 2018 6:09 AM UTC
  • 2 replies
  • 44 views

I want to call a script page and in the same formula also call a url. See my code below. For some reason its only executing the java script part but not the code until there. Ant suggestions?

Thanks

URLRoot()&"DB/"&Dbid()&"?A=API_EditRecord&apptoken=[my_token_here]&RID="&[Record ID#]
&"&_fid_23="&URLEncode("today")
&"&_fid_19=Done" &

"javascript:" &
"var QBU_rid = '" & [Related Project] & "';" &
"$.getScript(gReqAppDBID + '?a=dbpage&pagename=ProposalRejected.js');" &
"void(0);"
This topic has been closed for replies.

2 replies

  • Author
  • Qrew Corporal
  • Aug 7, 2018 5:36 AM UTC
I figured it out.

You need to pass the url into the script page and in the script page pass the url in the .get().

Can you give the example what the final code looks like.  I also want to do this, but don't understand your written solution.