Discussions

Expand all | Collapse all

url and java script within one formula

  • 1.  url and java script within one formula

    Posted 08-06-2018 02:09
    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);"


  • 2.  RE: url and java script within one formula

    Posted 08-07-2018 01:36
    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().


  • 3.  RE: url and java script within one formula

    Posted 02-12-2019 18:43
    Can you give the example what the final code looks like.  I also want to do this, but don't understand your written solution.