Hi Hari,

For table, you have to use templates. The templates you are using are
not
correct. The uid "all" stands for the default template, i.e, Tellurium
always
starts from more specific template to more general template, i.e., in
the order,

1) template for one row or column

InputBox(uid: "row: 1, column: 3", clocator: [whatever])

2) template for a whole row or column

SubmitBox(uid: "row: *, column: 1", clocator: [whatever])

3) Default template, i.e., matching all template

TextBox(uid: "all", clocator: [whatever])

You should define only one default template. In you have multiple
templates with "all",
Tellurium will get confused.

Let's look at some examples of how the indices map to the UI objects
given the above template,
here we assume the table uid is "table"

table[1][1]  ----> SubmitBox
table[1][2]  ----> TextBox
table[1][3]  -----> InputBox
table[2][1]  -----> SubmitBox
table[2][2]  -----> TextBox
table[2][3]  -----> TextBox

Other error you have is you used multiple "ui.", you should not put
"ui." before every UI element.
You only need to put it on the first UI element, i.e.,

ui.Table(){
    InputBox()
    Selector()
}

Thanks,

Jian

On Mar 1, 9:54 am, Harihara Vinayakaram <[email protected]> wrote:
> Hi
>   I have the following template
>        ui.Table
> (uid:"foodentry",clocator:[id:"%%foodentry_em"],group:"true") {
>             ui.InputBox(uid:"all",clocator:[id:"%%name"])
>             ui.InputBox(uid:"all",clocator:[id:"%%quantity"])
>             ui.Selector(uid:"all",clocator:[id:"%%unit"])
>
>        }
>
> and I try
>    type "foodentry[1][1], "abcd"   or keyType "foodentry[1][1]", "abcd"
>
> but this throws an exception saying no method type / keyType
>
> How do I set the values of the input box in the template
>
> Thanks
> Regards
> Hari
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to