1 Reply Latest reply: Apr 18, 2012 1:04 PM by jpaiva RSS

    JDBC theme based FOI support is disabled for the given data source. [SPATIA

    929651
      Hi,
      i am trying add dynamic theme to mapviewer using javascript
      it give this error

      [MVThemeBasedFOIControl.foiLoaded] MAPVIEWER-05523: . (MAPVIEWER-06009: Error processing an FOI request.
      Root cause:FOIServlet:MAPVIEWER-06016: JDBC theme based FOI support is disabled for the given data source. [SPATIAL])

      that is my javascript code


      baseQuery = "select SHAPE from MYTABLE ";
      var theme = "<themes><theme name='JDBC_THEME' >" +
      "<jdbc_query asis='true' spatial_column='SHAPE' jdbc_srid='8307' " +
      "render_style='' datasource='SPATIAL'>" + baseQuery +
      "</jdbc_query></theme></themes>";

      var buffertheme = new MVThemeBasedFOI('buffertheme', theme);
      buffertheme.setBringToTopOnMouseOver(true);
      buffertheme.setVisible(true);
      mapview.addThemeBasedFOI(buffertheme);


      note:mapviewer configuration datasource is content this line
      ........
      allow_jdbc_theme_based_foi="true"
      .....