Discussions

 View Only
  • 1.  Any method to replace the Javascript reload?

    Posted 11-09-2021 17:50
    Hi!

    I'm wondering now that the Javascript is no longer allowed in Quickbase, is there any method that could replace certain easy previously used javascripts?
    My current example is a simple record edit toggle, then reload the record

    var text url =
    If([Show Change Log] = false,
    URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&apptoken=xxxxxxxxxxxxxxxxxxxxxxxx&rid=" & [Record ID#] & "&_fid_325=1",
    URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&apptoken=xxxxxxxxxxxxxxxxxxxxxxxx&rid=" & [Record ID#] & "&_fid_325=0");

    "javascript:" &
    "$.get('" &
    $url &
    "',function(){" &
    "location.reload();" &
    "});" &
    "void(0);"

    Any other creative ways of implementing the same without JS?

    Thanks!

    ------------------------------
    George Khairallah
    CTO
    gotomyerp, LLC
    ------------------------------


  • 2.  RE: Any method to replace the Javascript reload?

    Posted 11-10-2021 09:32
    np.

    var text URL =
    If([Show Change Log] = false,
    URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&apptoken=xxxxxxxxxxxxxxxxxxxxxxxx&rid=" & [Record ID#] & "&_fid_325=1",
    URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&apptoken=xxxxxxxxxxxxxxxxxxxxxxxx&rid=" & [Record ID#] & "&_fid_325=0");

    var text RefreshPage = URLRoot() & "db/" & Dbid() & "?a=doredirect&z=" & Rurl();

    $URL
    & "&rdr=" & URLEncode($RefreshPage)


    ------------------------------
    Mark Shnier (YQC)
    mark.shnier@gmail.com
    ------------------------------



  • 3.  RE: Any method to replace the Javascript reload?

    Posted 11-10-2021 12:52
    Works a treat! Thanks Mark! :)

    ------------------------------
    George Khairallah
    CTO
    gotomyerp, LLC
    ------------------------------