- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Content Creator aktualisieren aus ExecutableInlineEditItem
Hallo zusammen,
ich baue gerade ein ExecutableInlineEditItem um ein Workflow zu starten. Kann ich den ContentCreator aktualisieren.
Gibt's eine änhliche Funktion wie getScript (ClientScriptProvidingInlineEditItem) auch für ExecutableInlineEditItem ?
z.B.:
@Override
public void execute(@NotNull final InlineEditContext context) {
Logging.logInfo("execute function", LOGGER);
final Workflow workflow = getWorkflow();
if (workflow == null) {
throw new IllegalStateException("Workflow '" + _workflowUid
+ "' not found.");
}
final Dataset dataset = (Dataset) context.getElement();
if (dataset == null) {
throw new IllegalArgumentException("No element defined.");
}
if (dataset.hasTask()) {
}
........
// ContentCreator reload
}
Viele Grüße,
Fidel
- Labels:
-
Developers
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hallo Fidel,
wir hatten für eines unserer Module eine ähnliche Anforderung.
Der folgende Code funktioniert für FS 5.1 (nicht FS 5.0!):
if (context.is(BaseContext.Env.WEBEDIT)) {
//Case ContentCreator
final OperationAgent operationAgent = context.requireSpecialist(OperationAgent.TYPE);
final ClientScriptOperation operation = operationAgent.getOperation(ClientScriptOperation.TYPE);
String javaScript = "\ttop.WE_API.Preview.reload();\n";
if (operation != null) {
operation.perform(javaScript, false);
}
}
Viele Grüße
Michaela
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hallo Fidel,
wir hatten für eines unserer Module eine ähnliche Anforderung.
Der folgende Code funktioniert für FS 5.1 (nicht FS 5.0!):
if (context.is(BaseContext.Env.WEBEDIT)) {
//Case ContentCreator
final OperationAgent operationAgent = context.requireSpecialist(OperationAgent.TYPE);
final ClientScriptOperation operation = operationAgent.getOperation(ClientScriptOperation.TYPE);
String javaScript = "\ttop.WE_API.Preview.reload();\n";
if (operation != null) {
operation.perform(javaScript, false);
}
}
Viele Grüße
Michaela
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hallo Michaela,
Vielen Dank. Es hat funktioniert!!

