× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



set up like this.

/$Shipment
<Shipment>
<ShipTo>
. . .
</ShipTo>
<Note>
Shipment Note: /%ShipmentNote%/
</Note>

/$OptionalShipFrom
<ShipFrom>
. . .
</ShipFrom>



/$Close-Shipment
</Shipment>



Michael Schutte
Admin Professional



We've wrapped up a whole new breakfast adventure in Bob Evans BOBurrito.
Premiering at 5.99. For more information and to enter the FREE Breakfast
Every Week for a Year Sweepstakes ($500 value), visit www.BOBurrito.com


midrange-l-bounces@xxxxxxxxxxxx wrote on 02/19/2009 03:03:01 PM:

Ok. Thanks Scott. I was hoping of it able to do something like below:

/$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,

I'm pretty sure that section names need to be left-justified. You
have
yours indented some, and I don't think that'll work -- CGIDEV2 will
not
consider it a section name in that case.

However, if you left-justify yours, then it will indeed work the way
you
describe -- only <Shipment>

Please be aware, however, that you can write more than one section at
a
time. For example:
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
of
the
file is reached)

Lim Hock-Chai wrote:
I'm still waiting for my admin to install the CGIDEV2 before I can
do
any testing on it. Just wonder if anybody knows how the
wrtSection
determines where the end of a section at? Is it based on the
beginning
of another section?


thanks

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
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 thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.