on 12-03-2010 10:20 AM
Hi folks,
I'm working on MI 7.10, developing laptop apps and I'm facing a customer requirement which imply to modify WD JAVA apps behaviour depending on device. For example, one of these applications, need to connect to an Oracle DB via JDBC drivers and connection URL depends by device location.
The idea I got to solve this issue is to use device's single attributes, so when the admin configure every device, he/she set an attribute with the JDBC connection URL, but the problem is how to get this value into my WD JAVA app?
Do you have any hint? Of course, if you have some suggestions on how to reach this goal in a better way, i.e. don't using device attributes, please address me.
Many thanks
cheers
Roberto
Hi Roberto
Check out for "Agents".. You can create agent and assign some value to it from NWMA. Assign the agent to device. Upon sync agent and its value goes to the client. You should have the logic on client to identify this agent.
Regards
Rohith
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Roberto
one can read the Config Agent values by using the following api available in the NW mobile client's Configuration
getProperty( <property name>)
You can check the following link to read more about agents
<http://help.sap.com/saphelp_nwmobile71/helpdata/en/45/18ee41c2d64a8be10000000a1553f7/frameset.htm>
To read more about the 'Configuration' class
<http://help.sap.com/javadocs/nwmobile/SP3/laptops/index.html>
So once you create a config type of agent and assign it to a device, the property-value pair gets stored in the configuration tables of client framework services. Now, these values can be accessed via the above mentioned api of 'Configuration'
Hope this helps
Best Regards
vaidehi
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.