kavin
I'm new here

CMSDialog Replacement in FS 5.1

Jump to solution

Hello All,

The de.espirit.firstspirit.common.gui.CMSDialog is deprecated in the FS5.1.

Please any one suggest the replacement for CMSDialog.

Thanks,

Kavin

0 Kudos
1 Solution

Accepted Solutions
andre
I'm new here

hi,

CMSDialog was never API.

you could/should use RequestOperation instead. starting with FS 4.2.427

see:

http://www.e-spirit.com/odfs51/dev/de/espirit/firstspirit/agency/SpecialistsBroker.html

http://www.e-spirit.com/odfs51/dev/de/espirit/firstspirit/agency/OperationAgent.html

http://www.e-spirit.com/odfs51/dev/de/espirit/firstspirit/ui/operations/RequestOperation.html

login credentials: https://community.e-spirit.com/docs/DOC-1041

final OperationAgent operationAgent = specialistsBroker.requireSpecialist(OperationAgent.TYPE);

final RequestOperation operation = operationAgent.getOperation(RequestOperation.TYPE);

final RequestOperation.Answer yes = operation.addYes();

final RequestOperation.Answer no = operation.addNo();

final RequestOperation.Answer ok = operation.addOk();

final RequestOperation.Answer answer = operation.perform("your question text showing in the request operation dialog.");

if (answer == yes) {

   ...

}

...

View solution in original post

0 Kudos
1 Reply
andre
I'm new here

hi,

CMSDialog was never API.

you could/should use RequestOperation instead. starting with FS 4.2.427

see:

http://www.e-spirit.com/odfs51/dev/de/espirit/firstspirit/agency/SpecialistsBroker.html

http://www.e-spirit.com/odfs51/dev/de/espirit/firstspirit/agency/OperationAgent.html

http://www.e-spirit.com/odfs51/dev/de/espirit/firstspirit/ui/operations/RequestOperation.html

login credentials: https://community.e-spirit.com/docs/DOC-1041

final OperationAgent operationAgent = specialistsBroker.requireSpecialist(OperationAgent.TYPE);

final RequestOperation operation = operationAgent.getOperation(RequestOperation.TYPE);

final RequestOperation.Answer yes = operation.addYes();

final RequestOperation.Answer no = operation.addNo();

final RequestOperation.Answer ok = operation.addOk();

final RequestOperation.Answer answer = operation.perform("your question text showing in the request operation dialog.");

if (answer == yes) {

   ...

}

...

0 Kudos