Dynamic Background color/Icon change depending upon value!!
HOW TO CHANGE ICONS FOR A FIELD DYNAMICALLY.
—————————————————————————————-
Requirement : We had a field called status , Depending on the field we need to change the Icon in another column:
SDK Development:
1). Make an element type text:Consider Point number 1 in screen attached.
2).Open the EC of your development and do the following :Consider Point number 2 in screen attached.
3). Let the Property for default icon be blank.(Or if you need something for your reference when you don’t assign any value make it “Default”)
4).Make the ABSL code changes and pass dynamically the values in
5). Outcome.
DALJEET SINGH KOHLI
SAP CLOUD FOR CUSTOMER
HCL AXON CONSULTING
Dear DALJEET ,
I tired the same but unable to see the image at last
Added my steps in the attachment.
Regards
Rudhra
Hi ,
Can you show me the Binding done on UI?
Br'
Daljeet
Hi Daljeet,
Thanks for the good icon How-To.
Just a little addition from my side:
If the use case is simple, one does not need Absl-Coding. It is also possible to use Icon Mapping solely in the UI Designer as an alternative.
To do so, do as follows:
This eliminates the need to add a separate icon field and code performing the mapping in the AfterModify or AfterLoading event.
However your approach is more flexible if the computation which icon to use should be more complex.
Using AfterLoading, your approach is able to solve scenarios where you like to visualise priorities based on time passed (e.g. tickets approaching or exceeding certain time thresholds).
Thus both approaches are valid and feasible.
Best regards,
Ludger
Ludger Buenger
Can we use this for standard BOs? namely SRM_MultiStepApprovalReuse_EC.EC.uicomponent? I am trying to change the approval icons here.
Thanks.