Hi Jacques,
thanks for the hint.
Showing a in-progress indicator is actually very ease. I have two forms. One
for the creation of a object in an external system an one for the deletion.
In the "creation"-form I add only the following line after the field with the
name "submitButton":
<on-event-update-area event-type="submit" area-id="page"
area-target="externalObject"/>
In the "deletion"-form I substitue the existing hyperlink:
<hyperlink target="deleteExternalObject"
description="${uiLabelMap.CommonDelete}" also-hidden="false"
confirmation-message="${uiLabelMap.CommonConfirmDelete}"
image-location="${iconsLocation}/delete.png">
<parameter param-name="externalObjectId"/>
</hyperlink>
with the following hyperlink.
<hyperlink target="javascript:ajaxUpdateArea('page', 'deleteExternalObject',
externalObjectId=${ externalObjectId }');"
target-type="plain" request-confirmation="true"
description="${uiLabelMap.CommonDelete}" also-hidden="false"
confirmation-message="${uiLabelMap.CommonConfirmDelete}"
image-location="${iconsLocation}/delete.png">
</hyperlink>
To update the correct area afte the operation has finished, I define a new
container with the id="page" surrounding the main-decorator in
CommonScreens.xml of my component.
I hope this explantion helps people having the same question.
-----Ursprüngliche Nachricht-----
Von: Jacques Le Roux [mailto:[email protected]]
Gesendet: Mittwoch, 28. Januar 2015 11:10
An: [email protected]
Betreff: Re: Modal dialog / progress indicator for long running service call
You will find one at catalog/control/ProductStoreFacilities?productStoreId=9000
when adding facility
Jacques
Le 28/01/2015 09:37, [email protected] a écrit :
> Hi All,
>
> I am calling a self-made java service (inside a customer component in folder
> hot-deploy). Inside this java service I start an external operation that
> takes 1-2 minutes. The service call and the external operation works fine.
> During the external operation I want to show a dialog with an info text and a
> progress indicator to the user. Can anyone help me with an example or
> assistance how to implement this feature in ofbiz.
>
> Thanks & regards,
>
> Markus
>
>
>