Can I programmatically set the SimpleType format for date?
We are making localization of some product. There are Calendars on some IViews. By default each calendar shows date with format, which depends on current user language.
We need to change this format by setting the value from our application config to this Calendar element.
Calendar must show format, which was set in configuration. Format must not be depend on current user language.
We can change such format by setting simple type and his format.
But we need to set this format from configuration programmatically.
ISimpleTypeModifiable sim = wdContext.getNodeInfo().getAttribute(<aattributename>).getModifiableSimpleType();
sim.setFormat("yyyy-mm-dd");//you may set the format as per your logic.