Posts

Showing posts from March, 2022

Eclipse plugin development and Apple Silicon M1

So... I have upgraded recently laptop to Macbook Pro M1. I am happy with hardware as it is blazing fast, cold, just perfect. But... I have issues with development. I am not going to mention, that my VMWare Fusion is not available on Apple Silicon and I am not able to test my eclipse plugin anymore on Windows 10, which is like... 80% of all users. Just maddness. When I decided to go with Apple Silicon I assumed, that VMWare will deliver Fusion pretty fast. I know there is beta released, but still I am not able to use it. Recently I have encountered an issue with architecture, when I tried to run my plugin in debug mode from Eclipse IDE. Let's check what problem I have: Eclipse RCP configuration looked like this: VM linked is embedded JRE: /Users/User/Develop/bin/EclipseRCP.app/Contents/Eclipse/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.aarch64_17.0.2.v20220201-1208/jre/lib/libjli.dylib Solution for mixing architecture on Eclipse Debug Mode The reason of...

FlexibleSearch Pagination

SAP Commerce platform provides functionality for pagination DB results. You are able to find paginated DAO: There is also Flexible Service which also allows pagination: That implementation depends on other DTOs i.e: PaginatedFlexibleSearchParameter and SearchPageData : Usage of that code is not popular in platform. Can be found in few places (I will update that part later on) but what is most important here, it is not easiest solution at all! Solution for pagination So how to make it better, with no hassle with extra helper objects? Just use what FlexibleSearchQuery class gives to you. FlexibleSearchQuery gives you 2 methods setStart and setCount thanks to that you are able to set up pagination functionality in code. SAP API Documentation FlexibleSearchQuery

SAP Commerce Cloud Backoffice Development

Image
Backoffice development is based on ZK framework has their own advantages, i.e. quite easy customisation if we introduce new or extending types, tree navigation and search. That is mostly based on XML configuration. SAP Help have scattered information how to add backoffice feature to your extension, but still it is possible base on that chaotic articles find most of the answers: how to make extension backoffice-one ( Backoffice FAQ ) backoffice xml configuration overview ( UI Configuration Overview ) extending existing Item configuration by merging with new one ( UI Configuration Merging Mechanism ) Recently I have added functionality to keep task logs in external storage, as these logs can consume for some customers like tens of GBs of DB storage, which are mostly "store & forget" items. So.. I have extended Item type for that: Then I have created my <ext>-backoffice-config.xml where I have added where I would like to add my attribute to be placed...