Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
SAP BusinessObjects Design Studio: Design Studio SDK: UI5 Table with Conditional Formats
and it allows you to select this content via "normal" css selector. Some selectors are already build in, but you
can freely add your own.
Example for CSS class
div[class~=scn-pack-ActivateSimpleConditions] td>div>label[data-condformat="green1"] {
background-color: #9fff9f!important;
}
you just need to replace "green1" with your own string passed as simpleFormat
Conditional Options
Then, we have following evaluation options:
contains
checks if the content contains given strings.
positive check
{"condition": "contains", "members": ["Berlin", "Munich"], "simpleFormat": "red1"}
negative check (exclude)
{"condition": "contains", "members": ["Berlin", "Munich"], "exclude": true, "simpleFormat":
"red1"}
pattern
check the content for existence of some characters. you can use '?' to accept any character. Character '*' stops
the check and returns the current state.
positive check
SAP BusinessObjects Design Studio: Design Studio SDK: UI5 Table with Conditional Formats
equals
Like contains, but checks on exact content. also possible with exclude flag.
positive check
{"condition": "equals", "members": ["Berlin", "Munich"], "simpleFormat": "red1"}
empty
Checks for empty cells, can also be used with exclude flag, then non empty cells will be marked.
positive check
{"condition": "empty", "simpleFormat": "red1"}
value
works only for numbers, compares the content with given number.
positive check
{"condition": "value", "sign": ">", "value":"4", "simpleFormat": "green2"},
APS Update
The rules can be maintained in additional proeprties, so now no JSON is requried.
The maintenance does not need to be made by JSON any more, an UI is available for it:
SAP BusinessObjects Design Studio: Design Studio SDK: UI5 Table with Conditional Formats
All is available in the preview / stable as of now. If someone is willing to test / double check - you are welcome.
Restricting the Conditions to Columns
With this property you can additionally restrict applying of the conditions to some columns only. you need to
place the key of the dimension/measure which is in this column.
In this case, the key of "Unit Sales" is "unit_sales" and then this condition will be applied only to "unit sales"
column.
I hope this helps.
SAP BusinessObjects Design Studio: Design Studio SDK: UI5 Table with Conditional Formats
Btw, in case you have 2 dimensions in columns, this works as well - you need to make the "Column Header Id"
as combination of those:
my drill down here:
SAP BusinessObjects Design Studio: Design Studio SDK: UI5 Table with Conditional Formats
More information on the SCN community package in blog SCN Design Studio SDK Development Community
Example as BIAPP:
org-scn-design-studio-community/applications GitHub
Any thoughts?
feel free to add as usual...
Enhancements Ideas?
if you have good ideas (to those who would like to contribute but cannot code...) - place an "issue" with tag
"enhancement" under Issues org-scn-design-studio-community/sdkpackage GitHub
218 Views Tags: zen, sapzen, business_objects_design_studio, design_studio,
sapbusinessobjectsdesignstudio, sapdesignstudio, sap_design_studio, sap_zen, sap_bo_design_studio
SAP BusinessObjects Design Studio: Design Studio SDK: UI5 Table with Conditional Formats