on 05-21-2015 2:43 PM
Hello everyone,
I've been looking into (shared) parameters for extensions/add-ons lately.
I've seen it's possible to define (shared) parameters in the ExtensionPackage tool that comes with SAP 9.1.
i've tested deploying the package and the parameters and they show up fine and are adjustable in SAPs new extensionManager.
How do I declare (shared) parameters in the add-on itself and how do I retrieve and use those values in my add-on/extension?
I would like also to know how to use it?
Company.GetExtensionProperty(ConnectionString, SAPbouiCOM.BoExtensionLCMStageType.lcm_deployment, "SQL_PWD")
What is ConnectionString?
By the way what is the best practice to store some add-on settings across all clients (user specific, company specific)? I can image to store settings.ini in b1_shr folder, but it is not elegant.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Connection string is the string you use to connect to your SAP B1 instance. It's required for many methods to get information about the B1 client itself.
As far as settings goes, I think it's a good idea to only have connection settings within the application/ini files. Once you're connected to the company object, you can then store the rest of the settings within the database itself by using your own tables. You can do so on both the company level and the user level if you wish from there.
Thank You for both answers.
I'll try with connection string and let You know if it works.
Those native method (GetExtensionProperty, SetExtensionProperty) seems to be more convenience.
If I use my own tables each time addon is loaded I have to check if table exist, create, etc.
By the way, how do you think it is better to be user defined tables or just simple create table outside SAP logic?
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.