Page 1 of 1

Auto number a list from metadata

Posted: Wed Aug 08, 2018 2:31 pm
by vernonvd
this is what i get form my metadata log.

Switch varibale '[Metadata.TextIndexed:Path="//info",Dataset="Mail",Model="XML",Separator="<br>"]'

this gives me a list which is very cool ;)

46278 Folder with pocket WR129238E
46279 Business Cards - 25 sets of 250 each WR129237E
46280 Letterheads WR129237E
47121 Business cards. 100 each of 9 different + 50 of another WR129170E

will it be possible to auto number the list?

1. 46278 Folder with pocket WR129238E
2. 46279 Business Cards - 25 sets of 250 each WR129237E
3. 46280 Letterheads WR129237E
4. 47121 Business cards. 100 each of 9 different + 50 of another WR129170E


PS. the number of items in the list will vary each time

Re: Auto number a list from metadata

Posted: Wed Aug 08, 2018 5:00 pm
by dkelly
Can you give us a little more information?

It appears that the incoming job has an XML attached as metadata. You locating the individual items by splitting on "<BR>" element.

What element are you using the variable? In a script or Condition with variables?

Re: Auto number a list from metadata

Posted: Thu Aug 09, 2018 9:54 am
by vernonvd
dkelly wrote: Wed Aug 08, 2018 5:00 pm Can you give us a little more information?

It appears that the incoming job has an XML attached as metadata. You locating the individual items by splitting on "<BR>" element.

What element are you using the variable? In a script or Condition with variables?
Hi dkelly

Ok, so my plan is to mail a active job list to our customers. a simple text file picks up the xml as a dataset from our MIS, then i use that metatdata in a mailsend element.

this variable gets incorporated in the mail as a list.
[Metadata.TextIndexed:Path="//info",Dataset="Mail",Model="XML",Separator="<br>"]

Re: Auto number a list from metadata :Solution

Posted: Mon Aug 13, 2018 1:41 pm
by vernonvd
The use of <ol></ol> html tag does the trick ;)

what the Switch variable in the HTML mail looks like:

<ol><li>[Metadata.TextIndexed:Path="//info",Dataset="Mail",Model="XML",Separator="</li><li>"]</li></ol>


the result:

Image