Handle gray cells in a table

soWA

23-03-2020

Hello all,

 

My goal is to to color each cells independently in gray if it has been modified. (this is not a dynamic form, we only render it)

 

I would like to know the differents possibilities on how to treat that problem.

I already have something that work. However it fail to render on the 'real' server we're using and the display get all wrong. But, on the preview tab in my app, it work like a charm all the time.

 

This is how my XML look like:

Spoiler
<items>
  <rows>
    <col1>10</col1>
    <col2>
      <data>ABC</data>
      <modified>false</modified>
    </col2>
    <col3>
      <data>DEF</data>
      <modified>false</modified>
    </col3>
    ...
  </rows>
  <rows>...</rows>
  ...
<items>

I then made a table, each cells contains a subform, with the data to display and an hidden checkbox. I then use JS to detect if the checkbox is checked, and if true, fill it in gray, and repeat that for each cells.

 

I know my question is pretty hazy, but do you have an another, simplier, way of doing that? (especially without the subform, that ruin the render for multiple line data, haven't managed to get something clean for now).

 

Thanks for your time and your answer.

(English is not my best, please excuse any errors, and correct me if you want :))

 

Accepted Solutions (0)

Answers (0)