Discussions

  • 1.  Any method to replace the Javascript reload?

    Posted 27 days ago
    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 26 days ago
    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 26 days ago
    Works a treat! Thanks Mark! :)

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