SlideShare uma empresa Scribd logo
1 de 15
© nabisoft. All rights reserved. Proprietary and confidential.
Displaying Server Side OData Messages in UI5
Success, error, information, and warning messages can be so easy in UI5
www.nabisoft.com
Nabi Zamani, CEO & Software Engineer3/24/2017
www.nabisoft.com 2
Message Handling is described in the Fiori Design Guidelines
Source: https://experience.sap.com/fiori-design-web/messaging/
How can we implement this in UI5?
- UI messages
- Server-side messages (OData)
www.nabisoft.com 3
There is little information about messages in the Developer Guide
www.nabisoft.com 4
I‘ve prepared 3 examples in my local Explored App
www.nabisoft.com 5
Demo will be available online soon...
Live DemoLet’s have a look at the 3 examples now
www.nabisoft.com 6
Hint: There is a gap between MassageType and ValueState
There is currently no mapping for MessageType.Information
www.nabisoft.com 7
OData has a well defined format for error responses
Source: http://www.odata.org/documentation/odata-version-2-0/operations/
No information found here (anymore?)
OData 2.0
www.nabisoft.com 8
OData has a well defined format for error responses
Source: http://www.odata.org/documentation/odata-version-3-0/json-verbose-format/
OData 3.0
www.nabisoft.com 9
OData has a well defined format for error responses
Source: http://docs.oasis-open.org/odata/odata-json-format/v4.0/errata03/os/odata-json-format-v4.0-errata03-os-complete.html#_Toc453766668
OData 4.0
www.nabisoft.com 10
SAP Gateway supports error responses as well
- This is a simple example every ABAP developer knows
- By using Message Containers you can add more details
www.nabisoft.com 11
Previous ABAP code leads to the following OData error response
www.nabisoft.com 12
Unfortunately, this causes „double“ messages in MessagePopover
www.nabisoft.com 13
...because UI5 parses the messages like this
Relevant code snippet of sap.ui.model.odata.ODataMessageParser:
www.nabisoft.com 14
...and because SAP Gateway seems not to be correctly aligned with UI5
www.nabisoft.com 15
Thank You
 Code is on github:
 git clone https://github.com/nzamani/openui5.git
 cd openui5
 git checkout ui5con2017-odata-messages
 npm install
 grunt serve
 
http://localhost:8080/testsuite/explored.html#/entity/sap.ui.core.message.Message
Manager/samples

Mais conteúdo relacionado

Mais procurados

A step by-step guide on i doc-ale between two sap servers
A step by-step guide on i doc-ale between two sap serversA step by-step guide on i doc-ale between two sap servers
A step by-step guide on i doc-ale between two sap servers
krishna RK
 

Mais procurados (10)

Dialog programming ABAP
Dialog programming ABAPDialog programming ABAP
Dialog programming ABAP
 
How to build a streaming Lakehouse with Flink, Kafka, and Hudi
How to build a streaming Lakehouse with Flink, Kafka, and HudiHow to build a streaming Lakehouse with Flink, Kafka, and Hudi
How to build a streaming Lakehouse with Flink, Kafka, and Hudi
 
Apache Flink Stream Processing
Apache Flink Stream ProcessingApache Flink Stream Processing
Apache Flink Stream Processing
 
CRX2Oak - all the secrets of repository migration
CRX2Oak - all the secrets of repository migrationCRX2Oak - all the secrets of repository migration
CRX2Oak - all the secrets of repository migration
 
A step by-step guide on i doc-ale between two sap servers
A step by-step guide on i doc-ale between two sap serversA step by-step guide on i doc-ale between two sap servers
A step by-step guide on i doc-ale between two sap servers
 
2021.laravelconf.tw.slides5
2021.laravelconf.tw.slides52021.laravelconf.tw.slides5
2021.laravelconf.tw.slides5
 
Deploying PHP applications with Phing
Deploying PHP applications with PhingDeploying PHP applications with Phing
Deploying PHP applications with Phing
 
Nivelamento de capacidade de produção
Nivelamento de capacidade de produçãoNivelamento de capacidade de produção
Nivelamento de capacidade de produção
 
SAP workflow events
SAP workflow eventsSAP workflow events
SAP workflow events
 
Plenv and carton
Plenv and cartonPlenv and carton
Plenv and carton
 

Destaque

Destaque (10)

Hacking the Explored App by Adding Custom Code (UI5con 2016)
Hacking the Explored App by Adding Custom Code (UI5con 2016)Hacking the Explored App by Adding Custom Code (UI5con 2016)
Hacking the Explored App by Adding Custom Code (UI5con 2016)
 
Why Companies Need New Approaches for Faster Time-to-Insight
Why Companies Need New Approaches for Faster Time-to-Insight Why Companies Need New Approaches for Faster Time-to-Insight
Why Companies Need New Approaches for Faster Time-to-Insight
 
Unify Line of Business Data with SAP Digital Boardroom
Unify Line of Business Data with SAP Digital BoardroomUnify Line of Business Data with SAP Digital Boardroom
Unify Line of Business Data with SAP Digital Boardroom
 
Discover the Power of Contextual Marketing
Discover the Power of Contextual MarketingDiscover the Power of Contextual Marketing
Discover the Power of Contextual Marketing
 
Five Reasons To Skip SAP Suite on HANA and Go Directly to SAP S/4HANA
Five Reasons To Skip SAP Suite on HANA and Go Directly to SAP S/4HANAFive Reasons To Skip SAP Suite on HANA and Go Directly to SAP S/4HANA
Five Reasons To Skip SAP Suite on HANA and Go Directly to SAP S/4HANA
 
Italiaanse winkel Sophie Dutordoir heeft nieuwe uitbater
Italiaanse winkel Sophie Dutordoir heeft nieuwe uitbaterItaliaanse winkel Sophie Dutordoir heeft nieuwe uitbater
Italiaanse winkel Sophie Dutordoir heeft nieuwe uitbater
 
IoT Applications based on LoRaWan
IoT Applications based on LoRaWanIoT Applications based on LoRaWan
IoT Applications based on LoRaWan
 
#askSAP: Journey to the Cloud: SAP Strategy and Roadmap for Cloud and Hybrid ...
#askSAP: Journey to the Cloud: SAP Strategy and Roadmap for Cloud and Hybrid ...#askSAP: Journey to the Cloud: SAP Strategy and Roadmap for Cloud and Hybrid ...
#askSAP: Journey to the Cloud: SAP Strategy and Roadmap for Cloud and Hybrid ...
 
条件式評価器の実装による管理ツールの抽象化
条件式評価器の実装による管理ツールの抽象化条件式評価器の実装による管理ツールの抽象化
条件式評価器の実装による管理ツールの抽象化
 
Deliver the Perfect Omnichannel Commerce Experience
Deliver the Perfect Omnichannel Commerce ExperienceDeliver the Perfect Omnichannel Commerce Experience
Deliver the Perfect Omnichannel Commerce Experience
 

Semelhante a Displaying server-side OData messages in ui5 (Ui5con 2017)

Simple exercise on o data and sap ui5 application for the basic crud operatio...
Simple exercise on o data and sap ui5 application for the basic crud operatio...Simple exercise on o data and sap ui5 application for the basic crud operatio...
Simple exercise on o data and sap ui5 application for the basic crud operatio...
Nagendra Babu
 
Matrimonial web site Documentation
Matrimonial web site DocumentationMatrimonial web site Documentation
Matrimonial web site Documentation
home
 
Resume-Amar.compressed
Resume-Amar.compressedResume-Amar.compressed
Resume-Amar.compressed
Amarjeet Kumar
 
Pro Dev Briefing Irvine Wesyppt23
Pro Dev Briefing Irvine Wesyppt23Pro Dev Briefing Irvine Wesyppt23
Pro Dev Briefing Irvine Wesyppt23
Wes Yanaga
 
Sathyaseelan_Updated
Sathyaseelan_UpdatedSathyaseelan_Updated
Sathyaseelan_Updated
Sathya Seelan
 

Semelhante a Displaying server-side OData messages in ui5 (Ui5con 2017) (20)

SAP Fiori Interview Q& A - IQ Online Training
SAP Fiori Interview Q& A - IQ Online TrainingSAP Fiori Interview Q& A - IQ Online Training
SAP Fiori Interview Q& A - IQ Online Training
 
Simple exercise on o data and sap ui5 application for the basic crud operatio...
Simple exercise on o data and sap ui5 application for the basic crud operatio...Simple exercise on o data and sap ui5 application for the basic crud operatio...
Simple exercise on o data and sap ui5 application for the basic crud operatio...
 
“Mentors View” Application
“Mentors View” Application“Mentors View” Application
“Mentors View” Application
 
How to make your SAP more usable - user centered user interfaces
How to make your SAP more usable - user centered user interfacesHow to make your SAP more usable - user centered user interfaces
How to make your SAP more usable - user centered user interfaces
 
Delhi MuleSoft Meetup - 19 march2022
Delhi MuleSoft Meetup - 19 march2022Delhi MuleSoft Meetup - 19 march2022
Delhi MuleSoft Meetup - 19 march2022
 
IRJET - Acet Sports Alert
IRJET - Acet Sports AlertIRJET - Acet Sports Alert
IRJET - Acet Sports Alert
 
Matrimonial web site Documentation
Matrimonial web site DocumentationMatrimonial web site Documentation
Matrimonial web site Documentation
 
ngStockholm #8 at NetEnt - Micro Frontend Architecture
ngStockholm #8 at NetEnt - Micro Frontend ArchitecturengStockholm #8 at NetEnt - Micro Frontend Architecture
ngStockholm #8 at NetEnt - Micro Frontend Architecture
 
Fisker Automotive 2015 UX1880 ASUG SAPPHIRE
Fisker Automotive 2015 UX1880 ASUG SAPPHIREFisker Automotive 2015 UX1880 ASUG SAPPHIRE
Fisker Automotive 2015 UX1880 ASUG SAPPHIRE
 
Resume-Amar.compressed
Resume-Amar.compressedResume-Amar.compressed
Resume-Amar.compressed
 
Become a Web-Dynpro for Functional Consultants - ConVista Asia
Become a Web-Dynpro for Functional Consultants - ConVista AsiaBecome a Web-Dynpro for Functional Consultants - ConVista Asia
Become a Web-Dynpro for Functional Consultants - ConVista Asia
 
MuleSoft Madrid Meetup #3 slides 2nd July 2020
MuleSoft Madrid Meetup #3 slides 2nd July 2020MuleSoft Madrid Meetup #3 slides 2nd July 2020
MuleSoft Madrid Meetup #3 slides 2nd July 2020
 
Srinivasan Venkatesan Resume
Srinivasan Venkatesan ResumeSrinivasan Venkatesan Resume
Srinivasan Venkatesan Resume
 
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalertsAhmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
 
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalertsAhmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
 
Toronto mule meetup #5
Toronto mule meetup #5Toronto mule meetup #5
Toronto mule meetup #5
 
Pro Dev Briefing Irvine Wesyppt23
Pro Dev Briefing Irvine Wesyppt23Pro Dev Briefing Irvine Wesyppt23
Pro Dev Briefing Irvine Wesyppt23
 
MuleSoft Composer | Patna MuleSoft Meetup #14
MuleSoft Composer | Patna MuleSoft Meetup #14MuleSoft Composer | Patna MuleSoft Meetup #14
MuleSoft Composer | Patna MuleSoft Meetup #14
 
Sathyaseelan_Updated
Sathyaseelan_UpdatedSathyaseelan_Updated
Sathyaseelan_Updated
 
From desktop to the cloud, cutting costs with Virtual kubelet and ACI
From desktop to the cloud, cutting costs with Virtual kubelet and ACIFrom desktop to the cloud, cutting costs with Virtual kubelet and ACI
From desktop to the cloud, cutting costs with Virtual kubelet and ACI
 

Último

Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Krashi Coaching
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 

Último (20)

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 

Displaying server-side OData messages in ui5 (Ui5con 2017)

Notas do Editor

  1. { "error":{ "code":"/IWBEP/CM_MGW_RT/021", "message":{ "lang":"en", "value":"Method 'EMPLOYEES_GET_ENTITYSET' not implemented in data provider class." }, "innererror":{ "application":{ "component_id":"", "service_namespace":"/SAP/", "service_id":"ZNABI_EMPLOYEE_SRV", "service_version":"0001" }, "transactionid":"58BDC3218BC10D60E10080000AF0030E", "timestamp":"20170307090853.3367070", "Error_Resolution":{ "SAP_Transaction":"Run transaction /IWFND/ERROR_LOG on SAP Gateway hub system (System Alias LOCAL) and search for entries with the timestamp above for more details", "SAP_Note":"See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)" }, "errordetails":[ { "code":"/IWBEP/CX_MGW_NOT_IMPL_EXC", "message":"Method 'EMPLOYEES_GET_ENTITYSET' not implemented in data provider class", "propertyref":"", "severity":"error", "target":"" } ] } }};
  2. { "error":{ "code":"/IWBEP/CM_MGW_RT/021", "message":{ "lang":"en", "value":"Method 'EMPLOYEES_GET_ENTITYSET' not implemented in data provider class." }, "innererror":{ "application":{ "component_id":"", "service_namespace":"/SAP/", "service_id":"ZNABI_EMPLOYEE_SRV", "service_version":"0001" }, "transactionid":"58BDC3218BC10D60E10080000AF0030E", "timestamp":"20170307090853.3367070", "Error_Resolution":{ "SAP_Transaction":"Run transaction /IWFND/ERROR_LOG on SAP Gateway hub system (System Alias LOCAL) and search for entries with the timestamp above for more details", "SAP_Note":"See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)" }, "errordetails":[ { "code":"/IWBEP/CX_MGW_NOT_IMPL_EXC", "message":"Method 'EMPLOYEES_GET_ENTITYSET' not implemented in data provider class", "propertyref":"", "severity":"error", "target":"" } ] } }};
  3. { "error":{ "code":"/IWBEP/CM_MGW_RT/021", "message":{ "lang":"en", "value":"Method 'EMPLOYEES_GET_ENTITYSET' not implemented in data provider class." }, "innererror":{ "application":{ "component_id":"", "service_namespace":"/SAP/", "service_id":"ZNABI_EMPLOYEE_SRV", "service_version":"0001" }, "transactionid":"58BDC3218BC10D60E10080000AF0030E", "timestamp":"20170307090853.3367070", "Error_Resolution":{ "SAP_Transaction":"Run transaction /IWFND/ERROR_LOG on SAP Gateway hub system (System Alias LOCAL) and search for entries with the timestamp above for more details", "SAP_Note":"See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)" }, "errordetails":[ { "code":"/IWBEP/CX_MGW_NOT_IMPL_EXC", "message":"Method 'EMPLOYEES_GET_ENTITYSET' not implemented in data provider class", "propertyref":"", "severity":"error", "target":"" } ] } }};
  4. { "error":{ "code":"/IWBEP/CM_MGW_RT/021", "message":{ "lang":"en", "value":"Method 'EMPLOYEES_GET_ENTITYSET' not implemented in data provider class." }, "innererror":{ "application":{ "component_id":"", "service_namespace":"/SAP/", "service_id":"ZNABI_EMPLOYEE_SRV", "service_version":"0001" }, "transactionid":"58BDC3218BC10D60E10080000AF0030E", "timestamp":"20170307090853.3367070", "Error_Resolution":{ "SAP_Transaction":"Run transaction /IWFND/ERROR_LOG on SAP Gateway hub system (System Alias LOCAL) and search for entries with the timestamp above for more details", "SAP_Note":"See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)" }, "errordetails":[ { "code":"/IWBEP/CX_MGW_NOT_IMPL_EXC", "message":"Method 'EMPLOYEES_GET_ENTITYSET' not implemented in data provider class", "propertyref":"", "severity":"error", "target":"" } ] } }};
  5. { "error":{ "code":"/IWBEP/CM_MGW_RT/021", "message":{ "lang":"en", "value":"Method 'EMPLOYEES_GET_ENTITYSET' not implemented in data provider class." }, "innererror":{ "application":{ "component_id":"", "service_namespace":"/SAP/", "service_id":"ZNABI_EMPLOYEE_SRV", "service_version":"0001" }, "transactionid":"58BDC3218BC10D60E10080000AF0030E", "timestamp":"20170307090853.3367070", "Error_Resolution":{ "SAP_Transaction":"Run transaction /IWFND/ERROR_LOG on SAP Gateway hub system (System Alias LOCAL) and search for entries with the timestamp above for more details", "SAP_Note":"See SAP Note 1797736 for error analysis (https://service.sap.com/sap/support/notes/1797736)" }, "errordetails":[ { "code":"/IWBEP/CX_MGW_NOT_IMPL_EXC", "message":"Method 'EMPLOYEES_GET_ENTITYSET' not implemented in data provider class", "propertyref":"", "severity":"error", "target":"" } ] } }}