Skip to Content
0
Former Member
Dec 08, 2010 at 02:26 PM

Dynamically creating properties

24 Views

Hi,

I'm migrating my application from NW 7.0 to NW 7.11 CE.

Previously I dynamically created properties from my application and they were automatically created as onlinemodifiable = true.

When I migrated my project the properties were no longer created as modifiable.

Can anybody point me to documentation or suggest a way to solve this issue?

Here's my code creating the dynamic property:

		Configuration cfg = null;
		try {
			cfg =
				_cfgHandler.openSubConfiguration(
					"application.global.properties",
					ConfigurationHandler.WRITE_ACCESS);
		} catch (NameNotFoundException e) {
			e.printStackTrace();
		} catch (ConfigurationLockedException e) {
			e.printStackTrace();
		} catch (ConfigurationException e) {
			e.printStackTrace();
		}
		// get the property sheet
		PropertySheet ps = cfg.getPropertySheetInterface();

		// Create the property
		ps.createSecurePropertyEntry(propertyName, "", "");
		// commit the changes
		_cfgHandler.commit();
		cfg.close();

Best Regards,

Ran