The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Javascript call to update an AppObject
JEdward
RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 578 Unicorn
Hello,
What would be the javascript call I'd need to use to update an app object?
For example to create a form with a submit button which then updates an app object with the text result.
Tagged:
0
Answers
Hi John,
I don't think this is possible in a direct way.
However we developed a module that allows you to generate forms from a form specification table. This form will be published as raw html that you show as HTML component in the Web App.
You can parametrize the process creating this component and tell him which variable you want to use to store the results. This is done either on any change in the form data or when you press a button.
You then use a second process that will unwrap the data that has been stored inside the plain text variable and return it to you as a one line example set. Unfortunately due to a misdesigned method call in the Javascript API of RapidMiner it is not possible (at least not due to my knowledge and I tried really hard) to execute a process automatically that get's the variables current values. You can execute a process, but it will be oblivious of the current context of the Web App and hence is pretty much use less.
So you end up to:
- Make a form auto commiting
- Build a Button that executes the process
Here's an example of how it can look like. Had to mask the captions due to confidentiality, but I think you get the idea.
Large, tabular form
If you are interested in re-using our WebApp components for RapidMiner please contact me.
Greetings,
Sebastian