Announcement

Collapse
No announcement yet.

ajax events

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • ajax events

    hi
    i have this problem

    in a field of a grid I added a ajax onclick evnet that contine the following functions:
    sc_commit_trans ("connessione");
    sc_exec_sql ("UPDATE doc_container SET published = 2 WHERE id = {id}");

    sc_redir (http://www.xxx.dyndns.xxx/xxxxx/documenti.php?f1 dmfilename = {id});

    the sql is never executed is that a bug?

    thnks
    Last edited by marcov; 03-17-2014, 05:42 AM.

  • #2
    Put some trace messages to look. I.e. it might be WHERE id='{id}'. Or perhaps you need a commit trans after the update. If you do a sc_redir the automatic commit of SC is *not* executed.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      insert in the sql is correct I tried.
      is a grid with ajax on click is possibile to use sc_exec_sql and sc_redir
      Last edited by marcov; 03-17-2014, 07:11 AM.

      Comment

      Working...
      X