Sorry but.....i try in several ways and.....i've the same error all the times! :-(( Sigh! Massimiliano -----Messaggio originale----- Da: Meilicke, Scott [mailto:scott.meilicke@intp.com] Inviato: giovedì 17 gennaio 2002 1.15 A: 'TrashMan' Oggetto: RE: [Zope] Integer on portal_catalog.searchResults Try it without the quotes around _string.atoi... You shouldn't need them since REQUEST is already in quotes. -Scott -----Original Message----- From: TrashMan [mailto:trashman@httconsulting.com] Sent: Wednesday, January 16, 2002 4:10 PM To: 'Meilicke, Scott' Subject: R: [Zope] Integer on portal_catalog.searchResults Invalid attribute name, "_string.atoi(numberpumps)", for tag <dtml-call "REQUEST.set('number','"_string.atoi(numberpumps)"')"> , on line 45 of engine_view I've tried all the combination..... Massimiliano -----Messaggio originale----- Da: Meilicke, Scott [mailto:scott.meilicke@intp.com] Inviato: giovedì 17 gennaio 2002 0.55 A: 'TrashMan'; zope@zope.org Oggetto: RE: [Zope] Integer on portal_catalog.searchResults So you can pass numberpumps as an integer with something like: _string.atoi(numberpumps) Maybe: <dtml-in "portal_catalog.searchResults(Type='engine', number='"_string.atoi(numberpumps)"', review_state='published' )" > -Scott -----Original Message----- From: TrashMan [mailto:trashman@httconsulting.com] Sent: Wednesday, January 16, 2002 3:51 PM To: zope@zope.org Subject: [Zope] Integer on portal_catalog.searchResults Hi, I want to do a search on the portal_catalog where a key is an integer....but.....i don't find the solution! If i do <dtml-var numberpumps> I have 32500 If i do <dtml-in "portal_catalog.searchResults(Type='engine', number='numberpumps', review_state='published' )" > ... </dtml-in> I found all the engine-object. The problem is i pass to searchResults '32500' and not 32500 I've tried with <dtml-call REQUEST.set('Type', 'engine')> <dtml-call REQUEST.set('number', numberpumps)> <dtml-in "portal_catalog.searchResults()"> ... </dtml-in> But i've the same results! Pratically number in REQUEST is a string and not an integer!! Do you have some solutions?? Thanks Massimiliano