Jump to content

Is it possible to define the inputs that control loading an On-Demand Data Table through IronPython scripting


Manoj Chaurasia

Recommended Posts

Hello everyone,

 

Is it possible to define the inputs that control loading an On-Demand Data Table through IronPython scripting Essentially I want to do:

 

1. Allow the user to make a column selection from a drop-down list and assign this to a document property.

2. Store the user input in an input field box and also assign this to a document property.

3. Use an action button/script to set which information link parameter to load on demand from (i.e. load based on my input for Column B now instead of Column A).

 

I don't know how to do item 3. I'm thinking there must be some DataTable (or perhaps Document) property that stores the load On-Demand settings for an information link.

 

Any help is appreciated. Thanks!

 

Trevor

Link to comment
Share on other sites

  • 8 months later...
What you can do is set up 2 document properties. Bind the Empty one to the On-Demand table. Bind the other to the drop down. When they select an item out of the drop down you can make a script fire to check what they selected and populate the appropriate value into the Document Property that is bound to the On-Demand table.
Link to comment
Share on other sites

If need more info on it. You will create a document property named "dpDropDown", and another called "dpOnDemand". You would bind a script to the "dpDropDown" that would then populate the "dpOnDemand" with something like:

if Document.Property["dpDropDown"]=="Wassup";

Document.Property["dbOnDemand"] = "Waaassssup"

You can also call a table.Refresh() in there also to make it where it doesn't load automatically.

Link to comment
Share on other sites

  • 3 years 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...