Saturday, June 19, 2010

Re: List Help

0 comments
Hi David,

What is the end of message character for each line? I'm guessing \x0D
or \x0A\x0D ? Make sure you set the system EOM to match.

Then you will create two regex items, one to clear the list using the
'BeginAlbums' message and one to add each item to the list.

REGEX 1 = (BeginAlbums)
onmatch, set list join to value 0x (use the join of your list
obviously)

REGEX 2 = (\d+)\."(.*)"
Set feedback to list join of your list (top right of properties
window)
onmatch, set list join to value c (this creates a 'content' list
item). You can also set to value of 't' to create a 'title' list item,
as per the list properties.
group, capture index = 1, name = itemnum, datatype = analog, target =
anything, join = anything, token mode = token.
group, capture index = 2, name = itemtext, datatype = analog, target =
anything, join = anything, token mode = token
onmatch, target = serial, join = serial join of a text field in your
list subpage, value = $itemnum$. $itemtext$

That should cover it.

Jarrod

On Jun 19, 7:42 am, David <da...@inteltech.co.nz> wrote:
> Hi All
>
> I am wondering if someone could provide me with some assistance for
> creating a list?
>
> If I submit the following command to my controller: music-albums
>
> It will respond with:
>
> BeginAlbums
> 0.""
> 1."#1's"
> 2."21st Century Breakdown"
> 3."50 Years of the Greatest Hit Singles"
> 4."808s & Heartbreak"
> 5."2001"
> 6."2008 Grammy Nominees"
> 7."Ace Of Base - Greatest Hits"
> 8."Adrenaline Rush 2007"
> ...
> EndAlbums
>
> So the question is, how do I transform that response into a list, that
> is usable within CommandFusion?
>
> Cheers
> David

--
You received this message because you are subscribed to the Google Groups "CommandFusion" group.
To post to this group, send email to commandfusion@googlegroups.com.
To unsubscribe from this group, send email to commandfusion+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/commandfusion?hl=en.

Comments

0 comments to "Re: List Help"

Post a Comment

 

Copyright 2008 All Rights Reserved Revolution Two Church theme by Brian Gardner Converted into Blogger Template by Bloganol dot com