How to get the dynamic options for selection field inPloneFormGen

4 messages Options
Embed this post
Permalink
surendhar () How to get the dynamic options for selection field inPloneFormGen
Reply Threaded More More options
Print post
Permalink
Hi All

I have installed PloneFormGen product
I have added "Form Folder"
Now I am trying to add selection field to that form folder I want to get the options for the form field dynamically, to get the values I need to write python script, where do I need to write the script and how to call the script

Please any one can help me to solve this problem
Steve McMahon-2 () Re: How to get the dynamic options for selection field inPloneFormGen
Reply Threaded More More options
Print post
Permalink
This tutorial should show you what you need to know:

http://plone.org/products/ploneformgen/documentation/tutorial/sql-crud

On Wed, Oct 28, 2009 at 2:11 PM, surendhar <[hidden email]> wrote:

Hi All

I have installed PloneFormGen product
I have added "Form Folder"
Now I am trying to add selection field to that form folder I want to get the
options for the form field dynamically, to get the values I need to write
python script, where do I need to write the script and how to call the
script

Please any one can help me to solve this problem

--
View this message in context: http://n2.nabble.com/How-to-get-the-dynamic-options-for-selection-field-inPloneFormGen-tp3905371p3905371.html
Sent from the General Questions mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Plone-Users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
Jim Biggs () Re: How to get the dynamic options for selection field inPloneFormGen
Reply Threaded More More options
Print post
Permalink
In reply to this post by surendhar
You can place your python script anywhere you wish in the ZMI -- e.g. via the Plone interface, add a folder named "Scripts", and via the ZMI add a Python Script to that folder.  Then in your PloneFormGen form, go to the Edit view and click on "Overrides".  Enter either redirect or traverse to the path where your Python script resides.  Use "traverse" if you wish to pass form values to your Python script.

Regards... Jim


surendhar wrote:
Hi All

I have installed PloneFormGen product
I have added "Form Folder"
Now I am trying to add selection field to that form folder I want to get the options for the form field dynamically, to get the values I need to write python script, where do I need to write the script and how to call the script

Please any one can help me to solve this problem
Jim Biggs () Re: How to get the dynamic options for selection field inPloneFormGen
Reply Threaded More More options
Print post
Permalink
In reply to this post by surendhar
For clarification, when you go to the Edit view of your form and click on the Overrides tab,you will add your "redirect" or "traverse" TAL statement in the Custom Success Options field.

Regards... Jim

surendhar wrote:
Hi All

I have installed PloneFormGen product
I have added "Form Folder"
Now I am trying to add selection field to that form folder I want to get the options for the form field dynamically, to get the values I need to write python script, where do I need to write the script and how to call the script

Please any one can help me to solve this problem