cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform dynamic cell coloring

former_member209703
Active Contributor
0 Kudos

Hello guys

I'd like to ask you a question regarding this issue (I'm not really an expert in Smartform development)

The question is the following: Is there any way to dynamically set a table cell's color?

Rigth now I have an ALV populated with data, and depending on some fields' values, I'm setting the cell's color dynamically at runtime (This is really easy using 00 ALV), but now I've been told to do the same in a smartform.

I've been doing some digging , but so far i couldn't figure out how to do it; actually, I don't even know if it is possible.

Thanks in advance.

Regards boborolos.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

smartforms is used for printable forms and not for graphics. You can design your table and assign colors to columns/lines but this is done manually and static; if you need to do it dynamically, then smartforms is not the tool to use (and I think Adobe Forms has the same problem).

You should try something else, like Crystal Reports or some other tool.

former_member209703
Active Contributor
0 Kudos

Hi.

Thanks for the answer, I didn't know that.

I've never worked with Crystal Reports so I guess I'll have to start doing some research.

Thanks again.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

If you intened to colour , you will have to define the colour in the line type.

If you have limited number of columns, you can define a multiple line types and specify different colours.Call the same based on conditions.

But if you have several combinations, i doubt if that would be possible.

former_member209703
Active Contributor
0 Kudos

Unfortunately that's my case.

The table is actually a calendar with 31 columns (days) and I can have all possible combinations.

Thanks

Former Member
0 Kudos

Hi,

then its a difficult task in smartforms.I wont say its impossible , but the effort would be a wastage.

As he mentioned try the other options.