Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon6.gif   Applying cell style or some sort of subst in list view only, posted by Francois Cloutier on Thu Feb 4 14:21:19 2016 
    icon2.gif   Re: Applying cell style or some sort of subst in list view only, posted by Stefan Ritt on Thu Feb 4 14:47:50 2016 
    icon2.gif   Re: Applying cell style or some sort of subst in list view only, posted by Andreas Luedeke on Thu Feb 4 15:07:07 2016 
Message ID: 68251     Entry time: Thu Feb 4 15:07:07 2016     In reply to: 68249
Icon: Reply  Author: Andreas Luedeke  Author Email: andreas.luedeke@psi.ch 
Category: Question  OS: Windows  ELOG Version: V3.1.1-0767eb0 
Subject: Re: Applying cell style or some sort of subst in list view only 
> Good day,
> 
> I have an attribute that is 25 chars. it can be empty until someone edit it to fill the information.
> The default view for that logbook is List. 
> 
> Is it possible to display that attribute in list view but not the entire 25 chars ?
> What I mean is that if the field is empty, show it as empty but if it has some information, show something like "X" in List view.
> 
> I tried playing with Styles and Cell Styles but I couldn't figure it out...
> Cell Style seams to require specific values "" to apply the style properties. I can't figure how to apply cell style "if field is not empty" :)
> 
> Thanks for your help :)

If your server would run on Linux, then the configuration below would just do what you've asked for:

Attributes = X
List change X = $shell(if [ -z "$X" ] ;then echo "";else echo "X";fi)

But since shell scripting is operating system dependent, you'll need to figure out yourself how to do it in Windows.

Cheers
Andreas
ELOG V3.1.5-fe60aaf