Having problem with accessing zclass property sheets
Hi, I have a zclass with 2 property sheets named public and private, for which I am creating instances through DTML method using the following lines: <dtml-with "manage_addProduct[ 'xxxxx' ]"> <dtml-call "Newcommit.createInObjectManager(REQUEST[ 'id' ], REQUEST )"> I am able to create an instance with the above lines. I would like to view property sheet of that particular instance immediatly so that the users can enter the properties while creating the instance. So I tried the change properties using the following line under the <dtml-with> tag: <dtml-call "propertysheets.public.manage_editProperties(REQUEST)"> But it gives me an error saying Error Type: Attribute error Error Value: Public Here public is the name of the property sheet. For the Zclass I did install a view with name edit and method as propertysheets.public.manage Where am I making a mistake? Thanks for the help, Sridevi Vanka __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/
Sridevi Vanka wrote at 2003-2-23 20:08 -0800:
... <dtml-with "manage_addProduct[ 'xxxxx' ]"> <dtml-call "Newcommit.createInObjectManager(REQUEST[ 'id' ], REQUEST )"> ... So I tried the change properties using the following line under the <dtml-with> tag:
<dtml-call "propertysheets.public.manage_editProperties(REQUEST)">
But it gives me an error saying
Error Type: Attribute error Error Value: Public
Your "dtml-with" refers to the product and it does not know about propertysheets. You need an additional "dtml-with" for the newly created instance <dtml-with "manage_addProduct[ 'xxxxx' ]"> <dtml-with "Newcommit.createInObjectManager(REQUEST[ 'id' ], REQUEST)"> <dtml-call "propertysheets...."> Dieter
Thanks for the help. I got rid of the error but it never showed me the property sheet to enter the values. It created the instance but its just gives me a blank page instead of property view of the zclass instance. Am I calling it right? <dtml-call "propertysheets.public.managechangeProperties(REQUEST)"> here public is a propertysheet. If I go back and click the instance it shows me the public propertysheet. thanks, Sridevi --- Dieter Maurer <dieter@handshake.de> wrote:
Sridevi Vanka wrote at 2003-2-23 20:08 -0800:
... <dtml-with "manage_addProduct[ 'xxxxx' ]"> <dtml-call "Newcommit.createInObjectManager(REQUEST[ 'id' ], REQUEST )"> ... So I tried the change properties using the following line under the <dtml-with> tag:
<dtml-call "propertysheets.public.manage_editProperties(REQUEST)">
But it gives me an error saying
Error Type: Attribute error Error Value: Public
Your "dtml-with" refers to the product and it does not know about propertysheets.
You need an additional "dtml-with" for the newly created instance
<dtml-with "manage_addProduct[ 'xxxxx' ]"> <dtml-with "Newcommit.createInObjectManager(REQUEST[ 'id' ], REQUEST)"> <dtml-call "propertysheets....">
Dieter
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
__________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/
Sridevi Vanka wrote at 2003-2-24 15:56 -0800:
I got rid of the error but it never showed me the property sheet to enter the values. It created the instance but its just gives me a blank page instead of property view of the zclass instance.
Am I calling it right? <dtml-call "propertysheets.public.managechangeProperties(REQUEST)">
Its name is "manage_changeProperties" (see the embedded Zope help: "Zope Help --> API Reference --> PropertySheet/PropertyManager"). Its primary purpose is to change the values not to show the form to enter them. When you use "dtml-call" you throw away the return value. You may try "dtml-var" instead. Many management methods return the corresponding form. Dieter
Hi, I am using Z catlog and Z Search Interface to show all the commitments. The commitment has properties such as Performer, Requester and DueDate. I would like to know if there is way that will let me print the commitments in the ascending order of their duedate property? And also, I would like to print all the new commitments at the starting of the catlog and then rest all in the ascending order of their duedate property. A commitment is said new if it is newly entered into the system by some user, or the particular user is looking at the commitment for the first time. Thanks for the help, Sridevi --------------------------------- Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo.
Not sure if this is what your looking for, but it works for me. <dtml-in Catalog sort=duedate size=25 start=query_start> Will bring up the oldest records first. <dtml-in Catalog sort=duedate reverse size=25 start=query_start> Will bring up the newest records first Michael On Tue, 2003-04-22 at 21:21, Sridevi Vanka wrote:
Hi,
I am using Z catlog and Z Search Interface to show all the commitments. The commitment has properties such as Performer, Requester and DueDate.
I would like to know if there is way that will let me print the commitments in the ascending order of their duedate property?
And also, I would like to print all the new commitments at the starting of the catlog and then rest all in the ascending order of their duedate property.
A commitment is said new if it is newly entered into the system by some user, or the particular user is looking at the commitment for the first time.
Thanks for the help, Sridevi
______________________________________________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. -- Michael Lewis <michael@nichestaffing.com> NicheStaffing.com
Could you please avoid posting in HTML? -aj --On Dienstag, 22. April 2003 20:21 Uhr -0700 Sridevi Vanka <mymail_sridevi@yahoo.com> wrote:
Hi,
I am using Z catlog and Z Search Interface to show all the commitments. The commitment has properties such as Performer, Requester and DueDate.
I would like to know if there is way that will let me print the commitments in the ascending order of their duedate property?
And also, I would like to print all the new commitments at the starting of the catlog and then rest all in the ascending order of their duedate property.
A commitment is said new if it is newly entered into the system by some user, or the particular user is looking at the commitment for the first time.
Thanks for the help, Sridevi
__________________________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo.
participants (4)
-
Andreas Jung -
Dieter Maurer -
Michael Lewis -
Sridevi Vanka