Need help for ezoptions(dropdownlist)

Author Message

Mingxing Chen

Sunday 13 May 2007 9:36:34 pm

Hi guys,

We created a class for products which includes an ezoption atrribute for
animal breeds. However we need to know when the user has not made a
selection, rather than it defaulting to the first item on the list, so
we want to display "select" (value="") at the top of the dropdownlist
for breeds.If the customer doesn't select any breed, they would then be
warned. How can I do this?

Shinetech is the leader in next generation global application outsourcing. Shinetech combines world class technical skills, recognized expertise in advanced development methodologies and industry experience to deliver results for global enterprises. Shinetech utilizes distributed Agile methods for rapid and precise systems development.
------------------------------------------------------------------------------------------
Blog: http://www.mingxing.me
Email: chenmx@shinetechchina.com

H-Works Agency

Wednesday 16 May 2007 9:10:21 am

I have exactly the same problem.

Product class with ezoption datatype.

Everytime you hit "addtobasket" the first option in the list is added too. Even if no option was selected.

It looks like an html problem but i am not shure.

Its very annoying. If any one knows the tricks.

EZP is Great

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 21:13:47
Script start
Timing: Jan 18 2025 21:13:47
Module start 'layout'
Timing: Jan 18 2025 21:13:47
Module start 'content'
Timing: Jan 18 2025 21:13:48
Module end 'content'
Timing: Jan 18 2025 21:13:48
Script end

Main resources:

Total runtime0.8105 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 587.9375152.6250
Module start 'layout' 0.00610.0030 740.562539.4453
Module start 'content' 0.00910.8000 780.0078527.9922
Module end 'content' 0.80910.0014 1,308.00008.1563
Script end 0.8105  1,316.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3914160.0002
Check MTime0.00130.1555160.0001
Mysql Total
Database connection0.00080.100110.0008
Mysqli_queries0.759893.7397540.0141
Looping result0.00050.0590520.0000
Template Total0.782496.520.3912
Template load0.00200.244020.0010
Template processing0.780496.287120.3902
Template load and register function0.00010.016810.0001
states
state_id_array0.00070.089810.0007
state_identifier_array0.00100.128020.0005
Override
Cache load0.00160.1972180.0001
Sytem overhead
Fetch class attribute can translate value0.00140.170820.0007
Fetch class attribute name0.00150.180040.0004
XML
Image XML parsing0.00350.431120.0017
class_abstraction
Instantiating content class attribute0.00000.000940.0000
General
dbfile0.00350.4279230.0002
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs