Re: How to call a java service in widget/Screens.xml

2023-04-10 Thread Jacques Le Roux

Thanks Priya, this shows how OFBiz is flexible and versatile.

Hi Mahi,

As you need to get to ProductionViewFtl view, you may use the 
<> 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:

   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.


 


Hope that helps!

On Sat, 8 Apr 2023 at 18:47, Mahi maheshwari  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  in the controller.xml

  
  
  
  
  

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.




Re: How to call a java service in widget/Screens.xml

2023-04-09 Thread Priya Sharma
Hello Mahi,

You can do a service call from a screen by including the following in
the actions tag on the screen.





Hope that helps!

On Sat, 8 Apr 2023 at 18:47, Mahi maheshwari  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  in the controller.xml
> 
>  
> invoke="productionNeedsPage"/>
>  
>  
>   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


How to call a java service in widget/Screens.xml

2023-04-08 Thread Mahi maheshwari
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  in the controller.xml

 
 
 
 
 

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.