The community will be in read-only from Monday 11:59pm (PT) to Wednesday 7:30am (PT)
The community will be in read-only from Monday 11:59pm (PT) to Wednesday 7:30am (PT)
Project and Portfolio Management Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

UI rule - call JAVA Class

Highlighted
Nagy Istvan
Occasional Contributor

UI rule - call JAVA Class

Hi,

 

I have to call a java class from a UI rule (from a javascript function).

I could not do that (I can add a javascript function to RequestRulesUserLibrary.js, but from this I am not able to call a java class, EG. PPM webservice)

 

Do you have any idea ?

 

The original issue is : Run a java code after a field changed. I can run anything only from UI rule ... via a javascript...use apply of field change.

 

 

Thanks a lot

    Istvan Nagy

3 REPLIES
Raka_1
Collector

Re: UI rule - call JAVA Class

Yes it can be done. What he have done is we call a webservice using the UI rule, this webservice basically populates a table component.

Mikia
Super Collector

Re: UI rule - call JAVA Class

Hello,

we have the same problem; can you help us? Can you send us an example how to call webservice from Javascript?

 

Thanks a lot,

Mara

Celil
Esteemed Contributor

Re: UI rule - call JAVA Class

Hi Mikia, Nagy,

 

You can add your custom code to following file:

<PPM_Home>/server/<PPM_ServerName>/deploy/itg.war/web/knta/crt/jsRequestRulesUserLibrary.js

 

PS: If the post resolves your issue, please click KUDOS star icon and mark it as Accepted Solution.

 

Celil

IT Governance Professional
& PPM Solution Architect
//Add this to "OnDomLoad" event