I have written a pl sql procedure which updates a column in the ATP Database table. The procedure is as follows -
CREATE OR REPLACE PROCEDURE updateFlag(
p_unique_id in table.UNIQUE_ID%TYPE)
IS
BEGIN
UPDATE table SET enabled_flag = 'Y' WHERE unique_id = p_unique_id;
COMMIT;
END;
/
I want to call this procedure inside a Javascript function because this procedure should be called only if another function returns success. Is there any way to call a PL-SQL procedure inside a JS function? (the database being used is ATP Database and the application is built using Visual Builder Cloud Services)