Skip to main content
1-Visitor
December 1, 2017
Question

Getting error while adding custom app in ptc navigate

  • December 1, 2017
  • 2 replies
  • 2192 views

I am getting error Exception executing service,GetAppCollection.This service is returning null value.

Here is the snippet.

@Override

    public InfoTable GetAppCollections() throws Exception {

 

        InfoTable consolidatedAppCollections = InfoTableInstanceFactory.createInfoTableFromDataShape((String)"PTC.NavigateApps.CollectionDataShape");

        this.appCollectionsConsolidator.addAppCollectionRow(consolidatedAppCollections, "Product Configurator", null,null,TagLink.valueOf(VOCAB_PTC, VIEW_PR), 200);

        return consolidatedAppCollections;

  

    }

2 replies

1-Visitor
December 11, 2017

Hi balkrishna,

I have added a custom app to the landing page by using 'NewApp' thing in the composer. Go to the home mashup of the thing and just add the name of the app and select the mashup for the app and click save. You can see the app in the landing page. Hope this helps.

Thanks and Regards,

Saran

1-Visitor
December 12, 2017

Hi Balkrishna,

Are you using PTC Navigate 1.3?

One thing I recognized is that for the TagLink parameter of addAppCollectionRow() you have to give the ModelTag of your app collection to identify it. If you declared VOCAB_PTC and VIEW_PR as class variables, ignore this post

E.g. if your ModelTag is: Vocabulary:Term

your parameter would be: TagLink.valueOf("Vocabulary","Term")  so replace VOCAB_PTC and VIEW_PR in TagLink.valueOf(VOCAB_PTC, VIEW_PTC) with yout ModelTag.

Hope this helps.

Keijo