- 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!!

