Thanks Priya, this shows how OFBiz is flexible and versatile.
Hi Mahi,
As you need to get to ProductionViewFtl view, you may use the
<<url-mode="plain>> to directly call a controller request-map like
ProductionViewFtl
There are few examples in source, notably in FormWidgetExampleScreens.xml and
BirtScreens.xml. Here is an example:
<link style="h3" text="${uiLabelMap.BirtNote5}" target="http://eclipse.org/birt/phoenix/intro/"
url-mode="plain" target-window="_blank_"/>
HTH
Jacques
Le 10/04/2023 à 07:39, Priya Sharma a écrit :
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 hithttps://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.