Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   Using conditional attributes, posted by Adam Blandford on Sat Jul 18 10:38:00 2009 
    icon2.gif   Re: Using conditional attributes, posted by Stefan Ritt on Mon Jul 20 08:18:45 2009 
       icon2.gif   Re: Using conditional attributes, posted by Richard Stamper on Mon Jul 20 13:52:58 2009 
Message ID: 66444     Entry time: Sat Jul 18 10:38:00 2009     Reply to this: 66448
Icon: Question  Author: Adam Blandford  Author Email: ahb@etw.de 
Category: Question  OS: Windows  ELOG Version: 2.7.5 
Subject: Using conditional attributes 

Hi

I have a logbook including the attributes: Author, Topic Date, Phase, Reference, Subject, Start Time, End Time, Duration

The Phase attribute has a number of MOptions including: Design, Manufacture, Testing, Results, Transport

I only want the attributes Start Time, End Time, and Duration to be shown if the Transport Phase is selected. I have tried using the conditional attributes

MOptions Phase = Design{1}, Manufacture{1}, Testing{1}, Results{1}, Transport{2}

and

{1} Show Attributes Edit = Author, Topic Date, Phase, Subject, Start Time, End Time, Duration
{2} Show Attributes Edit = Author, Topic Date, Phase, Subject

This works to show the attributes when the relevant Phase is selected but the Edit page shows the Phase options including the {1}/{2}. Is there are way that these conditionals are not displayed?

Also, I would like the "Duration" Atrribute to be a calculated value showing the time difference between Start Time and End Time. Is this possible?

Thanks,

Adam

ELOG V3.1.5-3fb85fa6