cancel
Showing results for 
Search instead for 
Did you mean: 

populating table in VC

0 Kudos

I created an EJB and hard coded some values as a 2D string array because I had to display data in a VC table.But once I dragged the service onto the design workspace of the VC, I got the following message: "Port 'Response' was omitted because it contains nested tables, which are not presently supported by Visual Composer". The service appeared without the 'Response' port. I had written the following in the bean:

public String[][] trainingInfo() {

// TODO : Implement

String[][] trainingInformation = {{"SAP EP" , "16.04.07" , "21.04.07" , "ABC"},

{"Java" , "18.04.07" , "23.04.07" , "PQR"},

{"Workflow" , "18.04.07" , "26.04.07" , "XYZ"}};

Somebody pleas tell me how do I code the bean or where I went wrong.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

you have to create your own class, with two attributes in your example:

two strings, one for the event and one for the date then add settter and getter methods to this class. Then use an array of this class as return value of your webservice.

This works fine.

Best Regards,

Marcel

Answers (1)

Answers (1)

Former Member
0 Kudos

hi

Even i faced this problem, so i have to make different functions in EJB to return each table column to be displayed in VC.

Thanks & Regards

Harsimran