This is a perfect example of something that would work VERY cleanly as
a java bean. Since we found that java beans in witango have a huge
drawback sending in and out text, sending in and out small amounts of
data like this should work well.
--
Robert Garcia
President - BigHead Technology
VP Application Development - eventpix.com
13653 West Park Dr
Magalia, Ca 95954
ph: 530.645.4040 x222 fax: 530.645.4040
rgar...@bighead.net - rgar...@eventpix.com
http://bighead.net/ - http://eventpix.com/
On Jul 3, 2009, at 11:53 AM, John Hotaling wrote:
Hello:
Is anybody using Witango for something like the following?
http://www.johnsample.com/articles/BitwiseEnums.aspx
In general, I want to test for the following in Witango using the
above referenced bitwise operator logic:
<@ASSIGN NAME="PermissionForTaskA" value="1">
<@ASSIGN NAME="ThisClientsPermissions" value="33">
Does this client have permission to do Task A? In this case, Yes is
the answer.
<@ASSIGN NAME="PermissionForTaskB" value="2">
<@ASSIGN NAME="ThisClientsPermissions" value="33">
Does this client have permission to do Task B? In this case, No is
the answer.
For example, if you had an integer column called
ThisClientsPermissions with a value of 33, you could use the
following statement to return the row if it has PermissionForTaskA
(1)
select row from table where (PermissionForTaskA & 1 > 0)
Can the calc metatag assist with this type of logic?
Thank you in advance for any assistance/insight.
John Hotaling
AuctionAnything.com, Inc.
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf