ZOOM Options in Fiori Client Android
Let know more about Zoom in Fiori Client Android..
Question: How to bring ZOOM choices?
Question: How to conjure outsider Application to see report?
Reply: Utilizing the Fiori Client worked in module for connections.
Also Read: Fiori App – An Introduction from an ABAPer
The following is the code piece to accomplish the usefulness.
First we utilize a straightforward brought together document transfer from Demokit with emulate type set to “png, jpg, pdf” and so on.
Note: For PDF, introduce outsider application like adobe peruser/office suite and you can involve same code for assortment part yet make sure to change source code to get document in view of record for assortment.
Here is test fileuploader code utilized in XML view for your reference Fiori Client Android
-
- Display the document
Place the below code on change event of the unified uploader.var oCore = sap.ui.getCore(); var oFile = oEvent.oSource.oFileUpload.files[0]; if (oFile) { var vPath = URL.createObjectURL(oFile); try { if (oFile.type == “application/pdf”) { // For mime type PDF this below code invokes adobe reader var reader = new FileReader(); reader.readAsDataURL(oFile); reader.onload = function() { window.open(reader.result); }; reader.onerror = function(error) { sap.m.MessageToast .show(“Unable to open file”); }; } else { // For mime type JPG PNG this below code invokes gallery window.open(vPath); } } catch (e) { // Error in case of any failures to be catched }
2. Download from Getstream and view documenttry { window .open(encodeURI(“/sap/opu/odata/Service/AttachSet(Property1='” + vValue1 + “‘,Property2='” + vValue2 + “‘)/$value”)); } catch (e) { // Error in case of any failures to be catched }
Note: Based on mime type gallery/in-app window or adobe reader is invoked automatically and since document in viewed in adobe reader or gallery/in-app window its easy to zoom the documents.
Also Read: SAP Fiori: End to End Implementation
Screen shots of how it functions.
Open Fiori Client App
Click on browse button
Pick a picture for which client needs to zoom in before any activity.
Zoom options will be accessible since change capability of fileuploader is summoned.
Now choose PDF file to invoke pdf app for zoom options.
Also Read:How to change non-English Default Language in Fiori LaunchPad?
Comparatively when you really want to conjure exhibition/in-application window or adobe peruser with Getstream. Utilize the download capability. It consequently summons related application in light of emulate sort of backend.
Instance of downloading pdf and opening it naturally in pdf application for zoom choice/print and so on..
You might be interested in:
Exploring Fiori OData Integration
Fiori Launchpad: Paving the Way to Seamless Digital Experiences
Trust, this article would give you the pointer you really want to empower and conjure the right capabilities for the Zoom include. On the off chance that you have further questions or need some more data, do go ahead and contact me or leave your inquiries in the remark area underneath.
Interested in this SAP Classes ? Fill Your Details Here
Find Your Preferred Courses