Jump to content

How do I write back to database using infolink from html form with a submit button in spotfire


a bc

Recommended Posts

I've created an html form in tibco spotfire text area. I've created property controls with 3 parameters, (2 strings and 1 integer). I've created a submit button. The problem I have at the moment is that I need a spotfire ironpython script to collect the data from the html forms(the property controls), and submit the data back into the information link(it's a stored procedure pulled from db) I've created, to write back to the data table, once the submit form button is clicked. How do I do this Does anyone have a similar ironpython script that does this sort of thing. I think my main issue is passing the parameters from the form to the database
Link to comment
Share on other sites

You can refer to the script in the following wiki article,

https://community.spotfire.com/wiki/how-write-back-database-tibco-spotfirer-using-ironpython-scripting

 

To retrieve the values from document properties to your script below would be the code

value1=Document.Properties["property1"]

value2=Document.Properties["property2"]

value3=Document.Properties["property3"]

Link to comment
Share on other sites

  • 4 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...