Software Defined Networking
1753796 Members
7052 Online
108799 Solutions
New Discussion

Re: SDN App pass data variable to and from app web page

 
Dave-B
Frequent Advisor

SDN App pass data variable to and from app web page

When a new SDN app is created using maven and deployed into the VAN controller, there is a default app web page for the new app.

 

There are some default graphs for the app, but I cannot work out how data is passed to and from the app web page.

 

Can anyone provide a simple example of how to add a web page field that passes a variable to the business logic?

 

Thanks in advance.

 

Dave.

2 REPLIES 2
Dast
Occasional Advisor

Re: SDN App pass data variable to and from app web page

Hi Dave,

 

the communication is based on RESTful Web-Services. Therefore you need to configure and implement a GUI-specifig REST API. Please see p. 176ff of the Programming Guide. Within the REST methods you can communicate with the UI as well as the Business Logic. 

 

Hope this helps.

 

Best regards!

sdnindia
Trusted Contributor

Re: SDN App pass data variable to and from app web page

Hello Dave,

 

The SDN UI Extension framework allows third-party application to inject UI content seamlessly into the main SDN UI.     

As per SDN Programming guide [page 58-62 ] UI Extension ,you can follow the listing mentioned there.

Also have a look at page 164 Creating GUI.

 

Please follow the code/listing example mentioned in SDN Programming guide and let us know if you still face any problem.

 

Thanks,

HP SDN Team