cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

InfoTable cascade - null

Highlighted
Visitor

InfoTable cascade - null

Hi,

mashupService.PNG

I'm facing a problem with an InfoTable parameter in my Java Extension.

My service has an InfoTable parameter, which it self contains an InfoTable, in the picture on the right:

configuration (InfoTable) --> QueryTypes (InfoTable), ServerLocation(String),...

I wired a result InfoTable to configuration.QueryTypes. When I try to access the given parameter in my service the InfoTable is null. The code looks like this:

ValueCollection row = configuration.getFirstRow();

InfoTable it = (InfoTable) row.getValue("QueryTypes");

'it' is null!

I also added an extra parameter 'queryTypes' (InfoTable) and wired the same result InfoTable to it like before. In this case with no cascading InfoTables 'queryTypes' is not null, like I expected.

Has anybody an idea to explain this behaviour?

Thanks,

Keijo

Tags (3)
10 REPLIES 10

Re: InfoTable cascade - null

Have you tried testing this service successfully without wiring this up in a mashup?

Re: InfoTable cascade - null

Yes, executing this service manually works fine.

Re: InfoTable cascade - null

Cool, where are these parameter values coming from?

Re: InfoTable cascade - null

I have a service which returns an InfoTable, having the same DataShape like the parameter 'queryTypes' and 'configuration.QueryTypes'. Then I wired this output to these parameters.

Re: InfoTable cascade - null

I see, have you checked the execution order?

Re: InfoTable cascade - null

Yes, I also checked that.

What I find confusing is that for the 'queryTypes' parameter the value is the correct InfoTable whereas for the 'configuration.QueryTypes' parameter the value is null. Since both parameters belong to the same service, they are filled at the same time for my understanding.

Re: InfoTable cascade - null

I try adding a Datashape to your 'configuration.QueryTypes'. Unless 'queryType' was your test with a Datashape?

Re: InfoTable cascade - null

In the DataShape of 'configuration' is one InfoTable field with the same DataShape as for 'queryTypes' assigned to it. For the service input you only can define the DataShape for the outer InfoTable 'configuration'. I thought TW would recognize that the field 'QueryTypes' in 'configuration' also has a DataSghape.

Re: InfoTable cascade - null

I see so there is a Datashape for 'configuration', and you have also attached a Datashape to 'configuration.QueryTypes'.

So there is a problem with you viewing this Datashape drop down in a mashup.

If this is the case I would try setting the Datashape 'QueryTypes' table to the default value of the Datashape you need.