on 10-20-2014 9:22 AM
Hi
I would like to know how to set color of individual cell of a column through 'absl script'.
What data type can be used to store color in the Business Object.
I tried it though ruby scrip using calculation rule. I was able to do so. But ruby scrip does not work on HTML 5.So couldn't continue with the same.
Regards,
Vandita
Hi,
How do you manage to set the colour for an individual cell?
At the moment I can only change a whole columns colour, I'm selecting the list's column and creating a calculation rule for the background colour using similar code to above but it will colour in the whole column, not just the cell.
Many Thanks,
Will
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All ,
Can we have any solution for this in 1511 ?
Please reply.
Thanks
Ashish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Vijaya,
Have you tried to set up a element in the Business Object that represents the code value of the cell color you want to set? Then, within ABSL you can update that element through ABSL, and set up and bind a calculation rule to trigger on the update to the element, and set the color based on the same data value as your element.
Not sure if this would actually work, but it seems like it could be worth a try (driving the calculation rule to actually update a back-end value that drives the front-end changes)
If you really had to hack it, you could use LANGUAGE_INDEPENDENT_SHORT_Text to store the appropriate value and hardcode it through ABSL.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We have added below ruby script for coloring each cell of column based on certain conditions. if ($currentrow.CarParkDescription == "") result = "GOODVALUE_MEDIUM"; else result = "CRITICALVALUE_MEDIUM"; end;
Vijaya,
If it simply won't work, a possible workaround might be to try using Select Variant: type of "Binding" instead of Calculation Rule and create a field with the value (an actual BODL field called something like "ValidationColor" which would have the value of "GOODVALUE_MEDIUM" or whatever value you needed.
I work with ByDesign primarily, so i have limited exposure to the HTML5 development - but it may be worth a try.
Hello,
I think as for now there is no way to change the cell color via ABSL. Maybe it is better to wait that it will be supported via html5 using some other kind of scripting for UIs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.