• Resolved uafinsee

    (@uafinsee)


    Hello!

    What is the proper way to have desired behavior:

    let r = SERVER_SIDE(‘myFunction’, myParams);
    wait till r gets response
    only after that run other code

    I have one calculated field with many functions in it, and I call the server 2-4 times. The first 3 calls the behavior is: JS runs the next code without waiting for response from server, then gets response and reruns the code with this response.
    So I was able to have a check

    if (typeof serverResult !== ‘undefined’ && serverResult !== null && serverResult.length > 0) {
    code after receiving response
    }

    And everything worked. But yesterday I added a fourth call to the server and function finishes before receiving any response.

    I see in Console that request was sent correctly and response was received, but I can’t force JS to wait for it.

Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hi! We’d like to help but we can’t reply about that in this forum. We are not allowed to support any customers in these forums and the server side equations are distributed with the Developer and Platinum plugin versions.

    For pro or commercial product support please contact us directly on our site. This includes any pre-sales topics as well.

    Commercial products are not supported in these forums. We will happily answer this and any other questions you can have on our own site.

    Thank you.

Viewing 1 replies (of 1 total)
  • The topic ‘Server_side wait for result’ is closed to new replies.