Four Js Development Tools Forum

Discussions by product => Genero BDL => Topic started by: Benjamin G. on August 20, 2024, 12:23:04 pm



Title: Change dynamically highlightCurrentRow?
Post by: Benjamin G. 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 B. 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
  1.    <Style name="Table:inactive">
  2.        <StyleAttribute name="highlightCurrentRow" value="no"/>
  3.    </Style>




Reuben


Title: Re: Change dynamically highlightCurrentRow?
Post by: Benjamin G. 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 G. 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