benjamin_nagel
I'm new here

Unterschied FormData und RemoteFormData / Differences between FormData and RemoteFormData

FS-VErsion 5.0.318

English version below

Hallo liebe Community,

ich habe das Interface RemoteFormField und das Interface RemoteFormData in der API gefunden. Zum Beispiel bekommt man als Rückgabewert von de.espirit.firstspirit.ui.operations.OpenElementMetaFormOperation ein RemoteFormData-Objekt.

Leider verstehe ich das Konzept hinter diesen Remote-Elementen nicht.

Im Prinzip habe ich somit zwei Fragen:

1. Kann mir jemand erklären welches Konzept es hinter den Remote-Elementen gibt? Wenn ich mir die API ansehe gehe ich davon aus, dass es nur ein rein lesender Zugriff ist.

2. Wie kann ich das Ergebnis einer OpenElementMetaFormOperation.perform(...) Aufrufs speichern? Wenn ich rechte habe und es wirklich nur ein lesender Zugriff ist, muss ich die Daten manuell in das StoreElement speichern, oder?

Hier auch noch ein bisschen Code als Beispiel:

OperationAgent operationAgent = context.requestSpecialist(OperationAgent.TYPE);

OpenElementMetaFormOperation metaFormOperation = operationAgent.getOperation(OpenElementMetaFormOperation.TYPE);

metaFormOperation.setOpenEditable(true);
remoteFormData = metaFormOperation.perform(destinationPageRef);

Liebe Grüße

Benjamin

--------------------------------------

Hello dear community,

i found the interfaces RemoteFormField and RemoteFormData in the public API. For example, you get from de.espirit.firstspirit.ui.operations.OpenElementMetaFormOperation a RemoteFormData objekt.

Unfortunately, I do not understand the concept behind these remote elements.

Basically I have two questions:


1. Can someone explain to me what is the concept behind this remote objects?
When I look at the API, I'm assuming that it's just a pure read access.

2. How can I save the result of a OpenElementMetaFormOperation.perform (...) call? If I'm right and it's really only read access, I have to manually save the data in the Store item, right?


Here also a little code as an example:

OperationAgent operationAgent = context.requestSpecialist(OperationAgent.TYPE);

OpenElementMetaFormOperation metaFormOperation = operationAgent.getOperation(OpenElementMetaFormOperation.TYPE);

metaFormOperation.setOpenEditable(true);
remoteFormData = metaFormOperation.perform(destinationPageRef);

Kind regards

Benjamin

0 Kudos
11 Replies

Ah, I also just started to make a demo project to demostrated my problem. So I will send it to the helpdesk!

I thank you very much for your help!

Kind regards

Benjamin

0 Kudos

I created a ticket at the help desk with the number 8011.

0 Kudos