Quick Base Discussions

Expand all | Collapse all

Call a page without button click in formula url

  • 1.  Call a page without button click in formula url

    Posted 07-03-2016 19:03

    Hi All,

    I want to call a page automatically on check of condition.

    My requirement is if comparedates field  returns false call a html  page.

    My code  is as follows:

    If([comparedates]="false",URLRoot()&"db/" &Dbid() & "?a=dbpage&PageName=removeaccess.html")

    I know that this is possible onclick of button .But i want it to be executed automatically

    I too dont want to use image onload technique as well.

    Please give me suggestion on this.



  • 2.  RE: Call a page without button click in formula url

    Posted 07-03-2016 19:19
    I don't have an answer for you, but when they roll out the Webhooks feature into general release in a few months, then similar to firing off an email Notification, you will be able to fire off a webservice call.


  • 3.  RE: Call a page without button click in formula url

    Posted 07-03-2016 19:57
    Here is a place to register for early access. http://apps.quickbase.intuit.com/integrate


  • 4.  RE: Call a page without button click in formula url

    Top
    Contributor
    Posted 07-04-2016 10:33
    It isn't clear to me what you are trying to accomplish. What do you mean by "Call a page"? If you mean load a user defined HTML page you will unload the current page without saving the current record and load your user defined HTML page. If you mean execute a script saved as a user defined page you need to call $.getScript() which will not in itself unload the current page. In any event you will not be able to do any of this automatically without getting your JavaScript to execute when the current page loads and that is the whole purpose of the IOL technique.


  • 5.  RE: Call a page without button click in formula url

    Posted 07-04-2016 10:39
    Hi dandiebolt_QB_Pirate , As per my requirement I need to load a html page when a field called  comparedates is false .I have written like this

    If([comparedates]="false",URLRoot()&"db/" &Dbid() & "?a=dbpage&PageName=removeaccess.html")

    I am new to quickbase can you please help me with an example.


  • 6.  RE: Call a page without button click in formula url

    Top
    Contributor
    Posted 07-04-2016 10:53
    The workflow you are describing does not make any sense to me. What page (?a=dr, ?a=nwr, ?a=er etc) are you on when you want this functionality to be implemented? Whatever page you are on the only way to automatically load a html page is by assigning a value to document.location.href using JavaScript and this will happen in a blink of the eye if [comparedates] is false. In other words you will not even see the page you are on because it will immediately load the new page if [comparedates] is false.

    Let me ask you this: What function does removeaccess.html perform?


  • 7.  RE: Call a page without button click in formula url

    Posted 07-04-2016 11:05
    Can you help me in writing document.location.href in quickbase code.That will solve my requirement.


  • 8.  RE: Call a page without button click in formula url

    Top
    Contributor
    Posted 07-04-2016 11:15
    I do not understand what you are trying to accomplish. You need to elaborate what you are trying to accomplish and answer my two questions. This code will be trivial to write once the requirements are known.


  • 9.  RE: Call a page without button click in formula url

    Posted 07-04-2016 11:32
    Ok. My Requirement is if comparedates field is false it has to redirect to removeaccess.html page.

    In removeaccess.html page i have written an API to remove access of user.

    So please guide me how to achieve this


  • 10.  RE: Call a page without button click in formula url

    Top
    Contributor
    Posted 07-04-2016 11:35
    What page (?a=dr, ?a=nwr, ?a=er etc) are you on when you want this functionality to be implemented?


  • 11.  RE: Call a page without button click in formula url

    Posted 07-05-2016 10:01
    i want in edit record .so I want in ?a=er


  • 12.  RE: Call a page without button click in formula url

    Posted 08-23-2017 10:58
    so you were able to implement it at the end or not?
    as I want to do the exact thing but don't know how yet