- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ12-09-2010
06:28 AM
Aus einem Beanshell-Script heraus eine Variable der Projekteinstellungen abfragen
Hallo,
kann man aus einem Beanshell-Script heraus eine Variable aus den Projekteinstellungen auslesen?
Wenn ja, wie?
Danke schonmal im Voraus!
Gruร
Peter
Labels
- Labels:
-
Developers
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ12-09-2010
06:43 AM
Ja das geht.
globalStore = context.userService.getStore(Store.GLOBAL_STORE, false);
projectProps = globalStore.getProjectProperties();
// ProjectProperties ist ein DataProvider
data = projectProps.getData();
// Beispielhafte Abfrage der Variable "st_text" (CMS_INPUT_TEXT) fรผr die Mastersprache aus dem Projekteinstellungstemplate
myStringValueOfVariableStText = data.get("st_text").getEditor().get(context.project.masterLanguage);

