[Logo] Forums for GrailsFlow, Weceem, XSLfast
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Using JSON data to make selects  XML
Forum Index » GrailsFlow Forum
Author Message
Anonymous



Hi, i've got a problem using GrailsFlow. I want to use some JSON data that is sent from another application to make the options of a select tag for a variable, that is used in a process. I know my english is bad, so I'll give an example: we have a process called "processOne" with a variable "house" that should be selected from a list of values using a select tag. The list of options if formed using some JSON data, that we get from another application. The question is where I have to put my code, which gets and parses the JSON data and how I can send it to the corresponding view?

P.S. thanks for your work on developing such a great engine
Stephan Albers



Joined: 04/06/2009 08:45:58
Messages: 34
Offline

Anonymous wrote:I want to use some JSON data that is sent from another application to make the options of a select tag for a variable, that is used in a process. I know my english is bad, so I'll give an example: we have a process called "processOne" with a variable "house" that should be selected from a list of values using a select tag. The list of options if formed using some JSON data, that we get from another application. The question is where I have to put my code, which gets and parses the JSON data and how I can send it to the corresponding view?

You can define your own "search function" for variable values in your form. You can do this in two ways:
- either you define your own form for the "wait" node and use all Grails features or
- you define a search function for the field; we are using popup windows to show the form; you can do whatever you want in that form, eg. load a list of options via JSON

Please give me a bit of time. I will write this up with more details and code examples.

Anonymous wrote:P.S. thanks for your work on developing such a great engine

Thanks for your kind words. We will go on to enhance and improve GrailsFlow and especially the documentation.

Best Regards,
Stephan Albers
[WWW]
 
Forum Index » GrailsFlow Forum
Go to:   
Powered by JForum 2.1.8 © JForum Team