Hello Mahi,
You can do a service call from a screen by including the following in
the actions tag on the screen.
<service service-name="<<your service name>>" result-map="<<output map name>>">
<field-map field-name="<<input field name>>" value="<<value>>"/>
</service>
Hope that helps!
On Sat, 8 Apr 2023 at 18:47, Mahi maheshwari <[email protected]> wrote:
>
> Hello Community,
>
> Is there a way to call a java service written at
> pluginname/src/main/java/apache/services/ Submitform.java in
> pluginname/widget/screens.xml
>
> I actually have my Java service written in Submitform.java which is
> getting called through the <request-map> in the controller.xml
> <request-map uri="ProductionViewFtl">
> <security https="true" auth="true"/>
> <event type="java" path="com.apache.xerus.services.Submitform"
> invoke="productionNeedsPage"/>
> <response name="success" type="view" value="ProductionViewFtl"/>
> </request-map>
> <view-map name="ProductionViewFtl" type="screen"
> page="component://xerus/widget/XerusScreens.xml#ProductionViewFtl"/>
>
> so when I hit https://localhost:8443/xerus/control/ProductionViewFtl
> , productionNeedsPage
> service will be invoked
>
> I want to achieve the same through Screens.xml which is in
> pluginname/widget/screens.xml.
>
> calling the java event productionNeedsPage and the view will be
> ProductionViewFtl
>
> how can I achieve this? can anyone please let me know how can I do it so?
>
> Thanks,
> Maheshwari.
--
Best Regards,
Priya