On 11/2/01 10:04 pm, Wilhelm Sanke at [EMAIL PROTECTED] wrote:

> All *visible* fields of a stack shall be searched via a modeless
> substack to create a list of links for the respective searchstring.
> 
> The problem is that in a stack of a client some visible fields are parts
> of  groups that are only shown under specific conditions and shall only
> be searched if the group - and so the field - is visible.
> 
> Testing the "vis" of a - not really visible - field of a hidden group
> yields "true", the same result appears with testing the "effective vis"
> of the invisible field.
> 
> Is there any way to determine the effective visibility of such a field?

How's about:

  if the vis of field x is true then
    
    if word 1 of the owner of field x is "card" then
      
      -- add this field to myFieldList
      
    else
      
      if the vis of the owner of field x is true then
        
        -- add this field to myFieldList
        
      end if
    end if
    
  end if

This script checks the owner of the field is not a card (cards don't have a
visible property and checking it would cause an error). Then it checks the
visible of the the owner of the field (which could either be a group or
stack).

This assumes all stacks you are searching are visible. Also, if you have
nested groups (your field inside a group which in turn is inside a group),
you would need to check further up the hierarchy for visibility.

Cheers,

Alan

Alan Beattie <[EMAIL PROTECTED]> <http://www.runrev.com/>
Runtime Revolution Limited (Formerly Cross Worlds Computing)
Tel: +44 (0)131 672 2909.  Fax: +44 (0)1639 830 707.


Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to