In my code I want to update values in database. What I need to do is, I am having two buttons event in two forms
a. In formA event is to create a new record and saved the information such as id, start time, so on.
b. In formB I need to add rest of information such as stop time, time difference between start and stop time.
In form B I am using plugins.rawSQL() to update existing data, but it throws error: TypeError: rawSQL is not a function, it is org.mozilla.javascript.NativeJavaObject.
Do I really need to use plugins.rawSQL() to update the record. Is there any other way where I can add form b data in existing record. Please suggest.