Posts

Showing posts from December, 2016

Browse Control for ISO SDK App–Part 1

Image
BackgroundIn a conventional M3 Program, data in some fields can be searched by pressing the F4 key or Browse function. Using MAK (M3 Adaptation Kit – the framework to develop M3 programs), it is just mater of overriding  PxPMT() to enable this Browse feature. However, in SDK development, we don’t have that option. Neither a function to override nor control to re-use.  Instead, using WPF & C# we have to create it from the scratch. I did this for my current SDK project and going to share with SDK development community. There is an article in Potato IT blog (https://potatoit.kiwi/2013/09/19/smart-office-sdk-first-project-part-6-the-browse-control/).  This was a good starting point for me. However, since I have MAK background, I wanted to implement similar way, that PxPMT() method does (below is an excerpt of  M3 Browse )if(IN62){if(DSP.hasFocus("W1TOOL")){this.PXFILE.moveLeft("CSYTAB00");this.PXMBR.clear();this.PXOPT='1';this.PXKVA1.moveLeft(LDAZD.CONO,3);…

Read Profile Settings from ISO SDK App

Image
BackgroundAccessing  Web Services, external data sources from a SDK app is common like other technologies do. To store these access points, parameters etc. can be done in various ways. In a .net application common scenario is store then in the .config file or setting file. Why we want to do like this is, avoid hassles of deployment. When ISO SDK application is considered, we can achieve same thing by using .manifest file.ProblemI need to get database connection string from the M3 profile.Solution Using Profile Editor, add a setting to store database connection string. For this example, I’m going to use setting name as “DbConnection”.
Use the following code to extract above information.
txtDBConStr.Text= ApplicationServices.SystemProfile.GetProperty("M3", "SDKApp", "DbConnection");