Sam,
I am making some assumptions here, so please correct me if they are
wrong.
1. You are using the zen tablePane to display your information.
2. Your tablePane includes the columns ID, Name, Password and
AccessLevel
In javascript, you can get the tablePane object by using
zen("tablePaneID"). From there, you can access rows and from the rows,
you can get values of specific columns. However, this may not be what
you want. For example, if you want to only display items with the "A"
access level, you could write your own class query that will let you
pick an access level and then return only the rows with that access
level. This class query can then be wired up to the tablePane in the
query.
If you want to be able to click on an item and then run your checks,
you can set the valueColumn parameter of the tablePane to your "ID"
column. Then in your click handler, you can get the ID of the selected
row with this code zen("tablePaneID").getValue().
These could all be wrong because of my assumptions, but hopefully they
give you ideas. Also, your StartCheck() method can be simplified to:
if (zenPage.Checkmyagent("EE") ==1 )
alert(zenText('True'));
else
alert(zenText('False'));
or even more compact would be to change the return type of
Checkmyagent() to %Boolean and then you can do:
alert(zenPage.Checkmyagent("EE"));
or alternatively for branching based on the permission:
if (zenPage.Checkmyagent("EE")) {
}
else {
}
Jason
> --
> You received this message because you are subscribed to the Google
> Groups "InterSystems: MV Community" group.
> To post to this group, send email to
Cac...@googlegroups.com
> To unsubscribe from this group, send email to
>
CacheMV-u...@googlegroups.com
> For more options, visit this group at
>
http://groups.google.com/group/CacheMV?hl=en