|
Ok. Thanks Scott. I was hoping of it able to do something like below:list
/$Shipment
<Shipment>
/$ShipTo
<ShipTo>
. . .
</ShipTo>
/$EndOf-ShipTo
/$OptionalShipFrom
<ShipFrom>
. . .
</ShipFrom>
/$EndOf-OptionalShipFrom
<Note>
Shipment Note: /%ShipmentNote%/
</Note>
</Shipment>
/$EndOf-Shipment
If I do wrtSection('Shipment ShipTo'), it will generate
<Shipment>
<ShipTo>
. . .
</ShipTo>
<Note>
Shipment Note: /%ShipmentNote%/
</Note>
</Shipment>
Wishful thinking.....
"Scott Klement" <midrange-l@xxxxxxxxxxxxxxxx> wrote in message
news:<mailman.4738.1235072769.26163.midrange-l@xxxxxxxxxxxx>...
Hi Lim,have
I'm pretty sure that section names need to be left-justified. You
yours indented some, and I don't think that'll work -- CGIDEV2 willnot
consider it a section name in that case.you
However, if you left-justify yours, then it will indeed work the way
describe -- only <Shipment>a
Please be aware, however, that you can write more than one section at
time. For example:of
wrtsection('shipment shipto optionalshipfrom')
That writes 3 sections in one call to wrtsection.
Lim Hock-Chai wrote:
So... If my template looks like below:
/$Shipment
<Shipment>
/$ShipTo
<ShipTo>
. . .
</ShipTo>
/$OptionalShipFrom
<ShipFrom>
. . .
</ShipFrom>
<Note>
Shipment Note: /%ShipmentNote%/
</Note>
</Shipment>
And I do wrtSection('Shipment'), it will only generate below in the
buffer
<Shipment>
It will not generate
<Shipment>
<Note>
Shipment Note: /%ShipmentNote%/
</Note>
</Shipment>
Correct?
thanks
"Scott Klement" <midrange-l@xxxxxxxxxxxxxxxx> wrote in message
news:<mailman.4704.1235067968.26163.midrange-l@xxxxxxxxxxxx>...
Correct... each section ends when the next one begins (or the end
wrtSectionthe
file is reached)do
Lim Hock-Chai wrote:
I'm still waiting for my admin to install the CGIDEV2 before I can
any testing on it. Just wonder if anybody knows how the
--beginningdetermines where the end of a section at? Is it based on the
of another section?
thanks
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.