Problen wtih dtml-in inside Zsql method
---------------------------------------------------------------------------- ------------------------------------- I have a problem using a 'dtml-in' tag inside of a Zsql method and I'm wondering if anybody can help me I´m using a sequence in ORACLE (called 'seq') and I need to obtain the following value of that sequence before execute other Zsql methods. For that, I define a Zsql method (called sql_select_nextval) that returns the following value of the sequence and other Zsql method (called sql_2 ) that executes another actions. The problem is that when I execute the Zsql method 'sql_2' it seems to execute the sql_select_next_val method two times because at the next time that I execute 'sql_2' the value returned from sql_select_next_val is incremented in 2 in comparison with last value returned. I need it to be incremented in 1. the code of sql_select_nextval method is the following: SELECT seq.NEXTVAL val FROM DUAL the code of sql_2 method is the following: <dtml-in "sql_select_nextval"> insert into anytable (oid_anytable, name) values (<dtml-var val>, 'john') <dtml-var sql_delimiter> select * from anytable where oid_anytable = <dtml-var val> </dtml-in> The code used to create the sequence is the following: CREATE SEQUENCE seq START WITH 1 NOCYCLE NOCACHE; ---------------------------------------------------------------------------- -------------------------------------------- Note: if I put the dtml-in outside of the Zsql method it seems to work correctly... Alejandro Pancani alejandrop1@topgroup.com.ar
Howdy Folks, I'm trying to make use of the <dtml-tree> gizmo and it only works in the root directory. I'm trying to create a dynamic navigation display so users can click their way through the sub-directories of files. Kind of a "Zope Explorer". Any ideas? I've been playing with the security bits on various directories without success. Thanks in advance. John /====================================================================\ | John Voth Mobiltex Data Ltd.Calgary, Alberta,Canada, T1Y-4T7 | | jvoth@mobiltex.com 403-291-2770, 403-259-6795 (fax) | \====================================================================/
jvoth@mobiltex.com wrote:
Howdy Folks,
I'm trying to make use of the <dtml-tree> gizmo and it only works in the root directory.
I'm trying to create a dynamic navigation display so users can click their way through the sub-directories of files. Kind of a "Zope Explorer".
Maybe this will help: http://classic.zope.org:8080/Documentation/HowTo/DTML/treetag Michael Bernstein.
YES! Thank You!!! Michael Bernstein wrote:
jvoth@mobiltex.com wrote:
Howdy Folks,
I'm trying to make use of the <dtml-tree> gizmo and it only works in the root directory.
I'm trying to create a dynamic navigation display so users can click their way through the sub-directories of files. Kind of a "Zope Explorer".
Maybe this will help:
http://classic.zope.org:8080/Documentation/HowTo/DTML/treetag
Michael Bernstein.
-- /====================================================================\ | John Voth Mobiltex Data Ltd.Calgary, Alberta,Canada, T1Y-4T7 | | jvoth@mobiltex.com 403-291-2770, 403-259-6795 (fax) | \====================================================================/
participants (3)
-
Alejandro Pancani -
jvoth@mobiltex.com -
Michael Bernstein