Forum Discussion

michelle's avatar
michelle
Creator II
7 years ago

Running Method Commit

Hi guys

How to running method don't transaction. I want apply can commit don't wait else code do finish.

Item addItem=this.newItem("Test","add");
addItem.setProperty("_notes","Y");
addItem=addItem.apply();

//do else code.....

1 Reply

  • Former Member's avatar
    Former Member
    Not applicable

    It is not safe to run Method without transaction due to you may not be able to handle exceptions completely.

    If there are some special demands, you can try this in Server Side code:

    CCO.Variables.InnDatabase.CommitTransaction()

    This will commit active transaction manually and cannot rollback, please use it carefully.

    If there are other actions and in order to ensure all operations are correct, strongly suggest you begin a new transaction manually:

    CCO.Variables.InnDatabase.BeginTransaction()