I am building an application with genesys composer and at some point I need to update records in a MSSQL server database. Till now I was able to use SELECT commands in sql files defined in DB Data block but this has no luck when using INSERT/UPDATE sql statements.
I have the rights to make changes to the database and I have tested the statements I am using through a db management tool and work fine.
My query is something like:
UPDATE policies SET agentID = '1' WHERE tNo = {setTNo} AND tPersNo = {setTPersNo}
Thank you both for the quick response!
@ Kubig The error I get is the general error I have defined in the Start block’s exceptions.
@ GMG Is that the case? cause in the manual it doesn’t say so. I will try it though…
Thank you GMG, this is the way I am implementing it. I am storing this query inside a .sql file under the db folder in the file structure of my application. Still gives me an error.. (Do I have to include the double quotes or you just entered them to distinguish the statement from the rest of your response?)
Thanks for the suggestion cavagnaro. Could you please elaborate or provide simple example because I have never used a Backend Block before?
Thank you for your time!
It is just a JSP or ASP functions page. When you create one on Composer you have a small sample.
Basically you input and output parameters. Input could be an array with the data you want to insert then you create a function which on JSP or ASP will do the insert and return maybe a OK if it was inserted or KO if something wrong happened.
There is also some help on the CHM file of composer
I was going through this thread. How did you eventually solved the issue. I am also looking to update IXN DB properties from Composer. However, don’t find any specific block for this as we had in IRD? Thank You.