Four Js Development Tools Forum

Discussions by product => Genero BDL => Topic started by: Benjamin Garcia Vallejo on August 20, 2024, 12:23:04 PM

Title: Change dynamically highlightCurrentRow?
Post by: Benjamin Garcia Vallejo on August 20, 2024, 12:23:04 PM
Hello,

I'm looking for an idea to dynamically modify the highlightCurrentRow style.
I have a screen with three tables with a highlightCurrentRow=yes style, but I'd like it to apply only to the "active" table dynamically ...
Any ideas?

Thanks
Title: Re: Change dynamically highlightCurrentRow?
Post by: Reuben Barclay on August 21, 2024, 03:13:52 AM
Did you look at pseudo selectors https://4js.com/online_documentation/fjs-fgl-manual-html/#fgl-topics/c_fgl_presentation_styles_006.html

Code (xml) Select
    <Style name="Table:inactive">
        <StyleAttribute name="highlightCurrentRow" value="no"/>
    </Style>





Reuben
Title: Re: Change dynamically highlightCurrentRow?
Post by: Benjamin Garcia Vallejo on August 21, 2024, 09:14:46 AM
Hi,

i've tried with Table:inactive and Table:focus but does'nt seems to work ...
if i use pseudo selector "Table:display:focus" for textColor it doesn't work but ":display:focus" for textColor works.
i've also tried ":display:focus" for highlightCurrentRow="yes" but doesn't work

for info tests with :
    fglrun 4.01.03 rev-3effeb69 and GBC Version 4.01.22 Build  202403061849-d202403071621

i haven't tested with 5.00 ...
Title: Re: Change dynamically highlightCurrentRow?
Post by: Benjamin Garcia Vallejo on August 21, 2024, 09:24:09 AM
Hi,

using syntax
  <Style name="Table:focus">
     <StyleAttribute name="highlightCurrentRow" value="yes" />
  </Style>

doesn't work
but specifying the style attribute of the the Table

  <Style name="Table.tlamrg_2:focus">
     <StyleAttribute name="highlightCurrentRow" value="yes" />
  </Style>
works

Thanks anyway for the tip

but