Cascading Methodcalls
Hi! I've got a question on which I allready spent a lot of time but got no results. I'm trying to call a DTML Method in a Folder for producing some data. If I call the method from the Parent-Folder - and this again from a Parent-Folder - I only get stupid stuff (Errors, Nothing, Information about the current folder but not about the subfolder) Is it possible to make Cascading Methodcalls in subfolder to get data out of them? Helmut
Helmut Toplitzer wrote:
I'm trying to call a DTML Method in a Folder for producing some data. If I call the method from the Parent-Folder - and this again from a Parent-Folder - I only get stupid stuff (Errors, Nothing, Information about the current folder but not about the subfolder)
Maybe you want to do: <dtml-with subFolder> <dtml-with subSubFolder> <dtml-var methodInSubSubFolder> </dtml-with> </dtml-with> -- Itamar S.T. itamars@ibm.net
Hi, Helmut In a word, yes. Let's say you have parentfolder --subfolder In a DTML method in parentfolder, if you need information from subfolder, you need to go "with" the subfolder. e.g., (example method in parentfolder) <dtml-with subfolder> <dtml-var title> </dtml-with> hth. Helmut Toplitzer wrote:
Hi!
I've got a question on which I allready spent a lot of time but got no results.
I'm trying to call a DTML Method in a Folder for producing some data. If I call the method from the Parent-Folder - and this again from a Parent-Folder - I only get stupid stuff (Errors, Nothing, Information about the current folder but not about the subfolder)
Is it possible to make Cascading Methodcalls in subfolder to get data out of them?
-- Jim Washington Center for Assessment, Evaluation and Educational Programming Department of Teaching and Learning, Virginia Tech
Hi again! Thank you for your fast response! After I've read again my old message, I've noticed that I didn't tell you exactly what I want. I want to realize something simmilar like "information hiding" in OO-programming context. example: Folder structure: Main |-a |-c |-b In folder c and b is a Method which return some content. In folder a and Main a Method collects with <dtml-in "PARENTS[0].objectValues(['Folder'])"> <dtml-with "_[_['sequence-item'].id]"> <dtml-var Method_in_c_b> </dtml-with> </dtml-in> the information from the subfolder. (That works well.) If I add a Method in Main which tries to collect the Information from its Folders in the same way as the Mathed in folder a some Errors arrive instead of the result I want. Has someone a hint? -Helmut
participants (3)
-
Helmut Toplitzer -
Itamar Shtull-Trauring -
Jim Washington