body.data[2].list[1].merchant On Fri, Oct 30, 2009 at 6:43 PM, Manoj Chavan <[email protected]>wrote:
> So how would i get the value ? > > body.data[2].list[1].merchant ? OR > body.data[2].all.list[1].merchant? > > A little confusing. Thank you for the pointers. > > Regards, > > Manoj > > > *From:* Jian Fang <[email protected]> > *To:* [email protected] > *Sent:* Fri, October 30, 2009 3:32:19 PM > *Subject:* Re: Nested List - Module def question? > > Up to now, List and Table only support index as in template. We do have > plan to support more general template definitions, but it takes some time to > achieve that because that requires fundamental changes to the List and the > Table object. > > For your case, you should use "all" as the template uid inside the List, > i.e., > > Container(uid:"body", clocator:[tag:"div", class:"bd"]){ > List(uid: "data", clocator: [tag: "div", > class:"scrolling"]){ > Container(uid: "all", clocator: [tag:"div", > class:"tabcont"]){ > List(uid: "list", clocator: [tag: "ul"], separator: > "li"){ > Container(uid:"all", clocator:[:]){ > UrlLink(uid: "merchant", clocator: [tag: "a" > , class:"merchant"]) > UrlLink(uid: "title", clocator: [tag: "a" , > class:"title"]) > UrlLink(uid: "exp", clocator: [tag: "a" , > class:"exp"]) > } > } > } > } > > Please let us know if this helps or not. > > Thanks, > > Jian > > On Fri, Oct 30, 2009 at 5:17 PM, Manoj Chavan <[email protected]>wrote: > >> >> Hi, >> >> I have the following HTML. and the related Module Def I scripted. Wanted >> to validate >> it. If I try "getValue("body.data.tabs[2].list.details[1].merchant" should >> return "Merchant21". >> Is my syntax correct? Is it possible to have this type of nested list >> structure. I need to >> use this cause the list is dynamic and can change anytime. >> >> Regards, >> >> Manoj >> >> >> <div class="bd"> >> <div class="scrolling" style="margin-left: 0px;"> >> <div class="tabcont selected"> >> <ul> >> <li> >> <p class="merchant">Merchant11</p> >> <p class="title">Title11</p> >> <p class="exp">12/30/09</p> >> </li> >> <li></li> >> <li></li> >> <li></li> >> </ul> >> </div> >> <div class="tabcont"> >> <ul> >> <li> >> <p class="merchant">Merchant21</p> >> <p class="title">Title121</p> >> <p class="exp">12/30/09</p> >> >> </li> >> <li></li> >> <li></li> >> <li></li> >> </ul> >> </div> >> <div class="tabcont"> >> </div> >> </div> >> </div> >> >> >> >> Container(uid:"body", clocator:[tag:"div", class:"bd"]){ >> List(uid: "data", clocator: [tag: "div", >> class:"scrolling"]){ >> Container(uid: "tabs", clocator: [tag:"div", >> class:"tabcont"]){ >> List(uid: "list", clocator: [tag: "ul"], separator: >> "li"){ >> Container(uid:"details", clocator:[:]){ >> UrlLink(uid: "merchant", clocator: [tag: >> "a" , class:"merchant"]) >> UrlLink(uid: "title", clocator: [tag: "a" , >> class:"title"]) >> UrlLink(uid: "exp", clocator: [tag: "a" , >> class:"exp"]) >> } >> } >> } >> } >> } >> >> >> >> > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "tellurium-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/tellurium-users?hl=en -~----------~----~----~----~------~----~------~--~---
