How refresh(redraw) one element in dynamic (JDBC) theme-based FOI layer?

MapViewer version: Ver11_B090501
I'm add layer on map:
var QFM = createQuery('formosat', ordsArray.toString(), begd, endd);
var TFM = createTheme(QFM);
var HTFM = new MVThemeBasedFOI('HTFM', TFM);
HTFM.setRenderingStyle("C.FM");
HTFM.enableHighlight(true);
     HTFM.setHighlightStyle("C.SP");
     HTFM.setHighlightMode("multiple");
     HTFM.setMaxWholeImageLevel(maxImgLev); // 7
     //HTFM.enableImageCaching(true);
mapview.addThemeBasedFOI(HTFM);// add on map
If i try click on FOI element, it will be not Highlighted (because im used setMaxWholeImageLevel(maxImgLev); // 7). Can i redraw only selected elemet?

Feature highlighting only works when the theme is NOT displayed as a whole image.

Similar Messages

  • [HELP] Error: "JDBC theme based FOI support is disabled for the given data"

    Hi all,
    I have already set up MapViewer version 10.1.3.3 on BISE1 10g OC4J server. I am current using JDK 1.6. I create a mvdemo/mvdemo user for demo data.
    The MapViewer demo is running fine with some demo without CHART. But give this error with some maps that have CHART like: "Dynamic theme, BI data and Pie chart style", "Dynamic theme and dynamic Bar chart style". The error is:
    ----------ERROR------------
    Cannot process the FOI response from MapViewer server. Server message is: <?xml version=\"1.0\" encoding=\"UTF-8\" ?> <oms_error> MAPVIEWER-06009: Error processing an FOI request.\nRoot cause:FOIServlet:MAPVIEWER-06016: JDBC theme based FOI support is disabled for the given data source. [mvdemo]</oms_error>.
    ----------END ERROR------
    I searched many threads on this forum, some point me to have this allow_jdbc_theme_based_foi="true" in mapViewerConfig.xml and restart MapViewer.
    <map_data_source name="mvdemo"
    jdbc_host="localhost"
    jdbc_sid="bise1db"
    jdbc_port="1521"
    jdbc_user="mvdemo"
    jdbc_password="mvdemo"
    jdbc_mode="thin"
    number_of_mappers="3"
    allow_jdbc_theme_based_foi="true"
    />
    Error Images: [http://i264.photobucket.com/albums/ii176/necrombi/misc/jdbcerror.png|http://i264.photobucket.com/albums/ii176/necrombi/misc/jdbcerror.png]
    I have this configuration, but no luck. Could anyone show me how to resolve this problem?
    Rgds,
    Dung Nguyen

    Oop, i managed to have this prob resolved!
    My prob may come from this I use both scott and mvdemo schema for keeping demo data (import demo data).
    Steps i made to resolve my prob are:
    1) Undeploy MapViewer from Application Server Control (http://localhost:9704/em in my case)
    2) Drop user mvdemo
    3) Download mapviewer kit from Oracle Fusion Middleware MapViewer & Map Builder Version 11.1.1.2
    4) Deploy MapViewer again
    5) Recreate mvdemo and import demo data
    6) Run mcsdefinition.sql, mvdemo.sql with mvdemo user (granted dba already)
    7) Edit mapViewerConfig.xml
    <map_data_source name="mvdemo"
    jdbc_host="dungnguyen-pc"
    jdbc_sid="bise1db"
    jdbc_port="1521"
    jdbc_user="mvdemo"
    jdbc_password="!mvdemo"
    jdbc_mode="thin"
    number_of_mappers="3"
    allow_jdbc_theme_based_foi="true"
    />
    Save & Restart MapViewer
    And now, all demos run fine. Hope this helpful for who meet prob like my case.

  • Refreshing predefined theme based FOI in ADF 11g

    I am working on Jdeveloper 11g using ADF on a mapviewer application (i.e. geographical maps). I managed to display the base map and predefined theme FOI. I am now trying to just refresh the theme based FOI (predefinedTheme1) on user clicking the 'Refresh Now' command button, How do I do it?. I am attaching the JSPX file with the code.
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:dvt="http://xmlns.oracle.com/dss/adf/faces">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <af:document>
    <script type="text/javascript">
    <![CDATA[
    var mapview;
    baseURL = "http://"+document.location.host+"/mapviewer";
    mapview = new MVMapView(document.getElementById("map"), baseURL);
    alert(baseURL);
    function refreshFoi()
    var themebasedfoi1 = mapview.getThemeBasedFOI('themebasedfoi1');
    var themebasedfoi2 = mapview.getThemeBasedFOI('themebasedfoi2');
    var themebasedfoi3 = mapview.getThemeBasedFOI('themebasedfoi3');
    var themebasedfoi4 = mapview.getThemeBasedFOI('themebasedfoi4');
    themebasedfoi1.refresh();
    themebasedfoi2.refresh();
    themebasedfoi3.refresh();
    themebasedfoi4.refresh();
    function autoRefresh()
    if ((document.getElementById('foiVisible').checked) && (document.getElementById('refreshAuto').checked))
    refreshFoi();
    ]]>
    </script>
    <af:messages/>
    <af:form>
    <af:panelWindow closeIconVisible="false"
    title="Oracle Maps in JDeveloper 11g" id="pw1">
    <dvt:mapToolbar mapId="map"/>
    <dvt:map id="map" startingX="-100.04" mapServerConfigId="mapConfig1"
    baseMapName="MVDEMO.DEMO_MAP" mapZoom="0"
    startingY="40" unit="METERS"
    inlineStyle="width:100%; height:600px;"
    partialTriggers="::cb1">
    <dvt:predefinedTheme id="predefinedTheme1"
    themeName="MVDEMO.CUSTOMERS"/>
    </dvt:map>
    </af:panelWindow>
    <af:selectBooleanCheckbox
    label="Show Locations" id="foiVisible"/>
    <af:selectBooleanCheckbox
    label="Auto Refresh" id="refreshAuto"/>
    <af:commandButton text="Refresh Now" id="cb1" action="refreshFoi()"/>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    Thanks

    I am attaching the jspx file and the backing bean. I want to know how do I now refresh the predefinedtheme1.
    JSPX file
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:dvt="http://xmlns.oracle.com/dss/adf/faces" >
      <jsp:directive.page contentType="text/html;charset=windows-1252"/>
      <f:view>
        <af:document id="d1" binding="#{backingBeanScope.backing_AVMap.d1}">
          <af:form id="f1" binding="#{backingBeanScope.backing_AVMap.f1}">
            <af:panelStretchLayout binding="#{backingBeanScope.backing_AVMap.psl1}"
                                   id="psl1" bottomHeight="55px">
              <f:facet name="bottom">
                <af:panelGroupLayout layout="scroll"
                                     xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
                                     binding="#{backingBeanScope.backing_AVMap.pgl1}"
                                     id="pgl1">
                  <af:panelGroupLayout binding="#{backingBeanScope.backing_AVMap.pgl2}"
                                       id="pgl2">
                    <af:commandButton text="Refresh Now"
                                      binding="#{backingBeanScope.backing_AVMap.cb1}"
                                      id="cb1"
                                      action="#{backingBeanScope.backing_AVMap.refresh}"/>
                  </af:panelGroupLayout>
                </af:panelGroupLayout>
              </f:facet>
              <f:facet name="center">
                <af:group binding="#{backingBeanScope.backing_AVMap.g1}" id="g1">
                  <dvt:mapToolbar mapId="map"/>
                  <dvt:map startingY="40.0" startingX="-100.04" mapZoom="0"
                           mapServerConfigId="mapConfig1"
                           baseMapName="MVDEMO.DEMO_MAP"
                           inlineStyle="width:97%; height:681px;"
                           binding="#{backingBeanScope.backing_AVMap.m1}" id="map">
                    <f:facet name="rtPopup"/>
                    <f:facet name="popup"/>
                    <dvt:predefinedTheme id="*predefinedTheme1*"
                                         themeName="CUSTOMERS"/>
                  </dvt:map>
                </af:group>
              </f:facet>
              <f:facet name="top"/>
            </af:panelStretchLayout>
          </af:form>
        </af:document>
      </f:view>
      <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_AVMap-->
    </jsp:root>Backing bean
    package backing;
    import oracle.adf.view.faces.bi.component.geoMap.ThemeFOI;
    import oracle.adf.view.faces.bi.component.geoMap.UIGeoMap;
    import oracle.adf.view.rich.component.rich.RichDocument;
    import oracle.adf.view.rich.component.rich.RichForm;
    import oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout;
    import oracle.adf.view.rich.component.rich.layout.RichPanelStretchLayout;
    import oracle.adf.view.rich.component.rich.nav.RichCommandButton;
    import org.apache.myfaces.trinidad.component.UIXGroup;
    public class AVMap {
        private RichForm f1;
        private RichDocument d1;
        private RichPanelStretchLayout psl1;
        private UIGeoMap m1;
        private UIXGroup g1;
        private RichCommandButton cb1;
        private RichPanelGroupLayout pgl1;
        private RichPanelGroupLayout pgl2;
        public void setF1(RichForm f1) {
            this.f1 = f1;
        public RichForm getF1() {
            return f1;
        public void setD1(RichDocument d1) {
            this.d1 = d1;
        public RichDocument getD1() {
            return d1;
        public void setPsl1(RichPanelStretchLayout psl1) {
            this.psl1 = psl1;
        public RichPanelStretchLayout getPsl1() {
            return psl1;
        public void setM1(UIGeoMap m1) {
            this.m1 = m1;
        public UIGeoMap getM1() {
            return m1;
        public void setG1(UIXGroup g1) {
            this.g1 = g1;
        public UIXGroup getG1() {
            return g1;
        public void setCb1(RichCommandButton cb1) {
            this.cb1 = cb1;
        public RichCommandButton getCb1() {
            return cb1;
        public void setPgl1(RichPanelGroupLayout pgl1) {
            this.pgl1 = pgl1;
        public RichPanelGroupLayout getPgl1() {
            return pgl1;
        public void setPgl2(RichPanelGroupLayout pgl2) {
            this.pgl2 = pgl2;
        public RichPanelGroupLayout getPgl2() {
            return pgl2;
        *public void refresh(){*        System.out.println("In refresh method");
    }Edited by: Shay Shmeltzer on Apr 2, 2010 10:15 AM

  • How to get one element of a database with database toolkit

    I am working with an access database in which I want to store information about all the computers that recide in a network. The information that I will store in this database is computer's IP address, computer name, etc. Now I want to look in my database the ip address of the computers and get the ip of every one as a string. What I'm trying to do is to convert the output variant of the block "get" to a two dimensional array for then convert it to a matrix in which I can get the elements one by one. Attached is the vi in which I'm working. If you can help me to figure out how to solve my problem I'll be very happy and if I am not in the indicated discussion forum please guide me to find the correct one.
    Attachments:
    Getting just one element.vi ‏11 KB

    Well I found this post that answered my question
    http://forums.ni.com/t5/LabVIEW/how-to-get-records​et-from-database/m-p/1471374?requireLogin=False

  • How to concat one element with 0..4 occurence?

    Hello! I need to concat occurences of one element to one element like this
    <a>
    <element>1</element>
    <element>2</element>
    <element>3</element>
    <element>4</element>
    </a>
    to:
    <b>
    <elementB>1234</elementB>
    </b>
    How can I do this? Occurence of element is 0..4
    Thanks!

    Hello! I have some errors while executing this UDF:
    Function Concat_city, Line 2:
    cannot find symbol symbol  : variable length location: class com.sap.aii.mapping.api.TransformationInput for(int a=0;a<input.length;a++){                    ^
    Function Concat_city, Line 3:
    array required, but com.sap.aii.mapping.api.TransformationInput found  sb = sb.append(input[a]);
    Note: /usr/sap/SPD/DVEBMGS22/j2ee/cluster/server0/./temp/classpath_resolver/Map8aa9d039226b11e1869e00000d43ca76/source/com/sap/xi/tf/_MM_Delvry_2_OrderImport_line_old_.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /usr/sap/SPD/DVEBMGS22/j2ee/cluster/server0/./temp/classpath_resolver/Map8aa9d039226b11e1869e00000d43ca76/source/com/sap/xi/tf/_MM_Delvry_2_OrderImport_line_old_.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 2 errors
    What does it means?
    Edited by: Andrey Bolshakov on Dec 9, 2011 2:44 PM
    Sorry, I forgot about input parameter
    Edited by: Andrey Bolshakov on Dec 9, 2011 2:49 PM

  • How to use one dataTable to dynamically assign different values?

    For example, there is only one popup window that contains one dataTable. For every commandButton that calls this popup window will result in different dataTables.
    How to do that?
    Thank you.

    I wanna reuse the same popup window page to display different dataTables with values based on which button(on father window) is clicked...
    I use an html to include the popup window like this:
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <frameset>
    <frame src="popupMediaType.jsf" />
    </frameset>
    </html>
    So there will be two pages for one popup window...and I call this html by javascript in the father window...
    I wanna use just two pages to do all the work for other similar popup windows...

  • JSF - How To align one element of a gridpanel

    The following is the code. What i need is to right align the label at the left side. ie
    Name TextField
    Age TextField
    Address TextArea
    Now how i had achived is to put th outputlabel inside another gridpanel and give its alignment as right. Please see the code of "*Name*" label
    <center><h:panelGrid border="0" columns="2"
                   style="width: 540px">
                            <h:panelGrid styleClass="number" columns="1" style="width: 138px">
                          <h:outputLabel value="Name"></h:outputLabel>
                         </h:panelGrid>
                   <h:inputText id="employeeId" value="#{employee.employeeName}"
                        style="width: 355px"></h:inputText>
                        <h:outputLabel value="Code"></h:outputLabel>
                   <h:inputText id="employeeCode" value="#{employee.employeeCode}"
                        style="width: 162px"></h:inputText>
                        <h:outputLabel value="Age"></h:outputLabel>
                   <h:inputText id="ageId" value="#{employee.age}" style="width: 69px"></h:inputText>
                        <h:outputLabel value="Addtess"></h:outputLabel>
                   <h:inputTextarea id="addressId" value="#{employee.address}"
                        style="height: 108px; width: 360px"></h:inputTextarea>
                        <h:outputLabel value="Identification Mark 1"></h:outputLabel>
                   <h:inputText id="identification1"
                        value="#{employee.identificationFirst}" style="width: 368px"></h:inputText>
                        <h:outputLabel value="Identification Mark 2"></h:outputLabel>
                   <h:inputText id="identification2"
                        value="#{employee.identificationSecond}" style="width: 368px"></h:inputText>
                        <h:outputLabel value="Designation"></h:outputLabel>
                   <h:selectOneMenu value="#{employee.designationId}">
                        <f:selectItems value="#{designation.designationList}" />
                   </h:selectOneMenu>
         </h:panelGrid></center>

    Index out the element you want to modify (using index array), perform the modification, put back at right index using replace array element.
    If you are worried about performance, use the in-place element.
    http://www.ni.com/white-paper/6211/en/
    CLA
    www.dvel.se

  • How to map one element to multiple target nodes? Kindly help!

    Hi Experts,
       I have a source XML:
       <Inventory>
             <MaterialNo>Z001</MaterialNo>
             <InventoryLineItem>
               <BatchNo>B001</BatchNo>
               <Quantity>100</Quantity>
             </InventoryLineItem>
             <InventoryLineItem>
               <BatchNo>B002</BatchNo>
               <Quantity>120</Quantity>
             </InventoryLineItem>
             <InventoryLineItem>
               <BatchNo>B003</BatchNo>
               <Quantity>50</Quantity>
             </InventoryLineItem>
       </Inventory>
    I want the target output as: This is a RFC function module which has an internal table ITAB_STOCK as the input parameter.
       YGET_STOCK
           ITAB_STOCK
             Item
                 MM - Z001
                 Batch - B001
                 Qty - 100
             Item
                 MM - Z001
                 Batch - B002
                 Qty - 120
             Item
                 MM - Z001
                 Batch - B003
                 Qty - 50
       What I am getting is:
            YGET_STOCK
           ITAB_STOCK
             Item
                 MM - Z001
                 Batch - B001
                 Qty - 100
             Item
                 Batch - B002
                 Qty - 120
             Item
                 Batch - B003
                 Qty - 50
          The MaterialNo (MM) is not coming in all the items. What could be the problem in my graphical mapping? How to achieve the expected target uisng graphical mapping?
          Kindly help!
    Thanks
    Gopal

    Hello,
      Just do the below mapping you will get it...
    Map InventoryLineItem to Item in your table.
    Then MaterialNo--->CopyValue---->MM
                                       [0]
    You will get it let me know if not.
    Regards,

  • Problem refreshing theme based FOI

    Hi,
    We have a map and we want to display shops on it. That works, however new new call containing a different collection of shop IDs does not result in a refresh of the map in the sense that these new shops appear on it. I have been studying the JavaScript API, and I thought that I did find the (best) way to do this, namely the following flow (omitting less relevant code):
    1. First we start with a function that initializes the MapViewer object:
    function showRasterMap(){
    raster_mvo = new MVMapView(document.getElementById("rastermap"), baseURL);
    var base_map = new MVBaseMap("MVDS.RASTER_MAPCACHE");
    base_map.setVisible(true);
    raster_mvo.addBaseMapLayer(base_map);
    raster_mvo.setCenter(MVSdoGeometry.createPoint(center_x, center_y, 90112));
    raster_mvo.setZoomLevel(0);
    raster_mvo.addScaleBar();
    raster_mvo.display();      
    2. Then when the end user clicks on a node of a tree widget, a second function is called that collects the shop IDs and passes that array to a function that sets the query parameter.
    function RasterWindow_loadRasterKaart(){
    var data = dojo.json.serialize({nodeId: list.activeNodeId});
    request = {data: data, action: "getBaseIds"};
         dojo.io.bind({
         url: "list.do",
         load: rasterWindow.bolletjesCallback,
         mimetype: "text/plain",
         content: request,
         preventCache: true
    function RasterWindow_bolletjesCallback(type, data, evt){
    var arr = dojo.json.evalJson(data);
    prepareArraydMap(arr);
    3. Now the interesting part comes, namely the question how to (best) refresh the map. I solved like this: when the ThemeBasedFOI doesn't exist yet, then it will be initialized and added to the MapView object. But when it already exists, then it needs to bind the new query parameter, execute the query and refresh the MapView object. The reason for proceeding like this, is of course to avoid to re-create the ThemeBasedFOI and MapView objects again and again (which doesn't look like a good coding practise and intuitively looks less performing). So my little function became something like this:
    function prepareArraydMap(arr){
    var myArrayParam = new ArrayParameter(arr,'narray','t_unitids')
    if (raster_foi == null) {
    raster_foi = new MVThemeBasedFOI('rasterUnitsFoi','MVDS.THEMERASTERUNITS', baseURL);
    raster_foi.setQueryParameters(myArrayParam);      
    raster_foi.setBringToTopOnMouseOver(true);
    raster_foi.addEventListener("mouse_right_click", foiRightClick);
    raster_foi.enableInfoTip(true);
    raster_foi.setVisible(true);
    raster_mvo.addThemeBasedFOI(raster_foi);
    else {
         raster_foi.setQueryParameters(myArrayParam);
         raster_foi.setVisible(true);
         raster_foi.refresh(false);
    raster_mvo.display();
    The problem is however, it does not work. The first request to display the shops on the map is: request=getfoi&version=1.0&theme=MVDS.THEMERASTERUNITS&bbox=-265933.3333333333:29066.666666666686:546866.6666666666:841866.6666666666&width=1536&height=1536&paramnum=1&param1=257476,118262&paramtype1=narray&sqltype1=t_unitids&area=yes&dstsrid=90112
    Subsequent requests (for different shops) have a likewise request, but do not result in shops being displayed (only the map is visible). Also: a strange post appeared (in FireBug), namely: POST http://localhost:8888/mapviewer/ReturnLocaleOper, which contains:
    i0=Pan%20NorthWest&i1=Pan%20North&_i2=Pan%20NorthEast&_i3=Pan%20West&_i4=Pan%20East&_i5=Pan%20SouthWest&_i6=Pan%20South&_i7=Pan%20SouthEast&_i8=Slider%20Bar&_i9=Drag%20To%20Zoom&_i10=Zoom%20In&_i11=Zoom%20Out&_i12=Scale%20at%20the%20center%20of%20the%20map&_i13=MapView%20baseURL%20is%20not%20set,%20please%20check&_i14=km&_i15=mi&_i16=m&_i17=ft&_i18=Home
    _i17="ft";
    _i11="Zoom Out";
    _i7="Pan SouthEast";
    _i3="Pan West";
    _i18="Home";
    _i15="mi";
    _i14="km";
    _i10="Zoom In";
    _i6="Pan South";
    _i0="Pan NorthWest";
    _i9="Drag To Zoom";
    _i1="Pan North";
    _i13="MapView baseURL is not set, please check";
    _i5="Pan SouthWest";
    _i12="Scale at the center of the map";
    _i8="Slider Bar";
    _i2="Pan NorthEast";
    _i16="m";
    _i4="Pan East";
    Date: Fri, 22 Dec 2006 00:41:37 GMT
    Server: Oracle Containers for J2EE
    Connection: Keep-Alive
    Keep-Alive: timeout=15, max=100
    Content-Type: text/html;charset=UTF-8
    Transfer-Encoding: chunked
    I am lost. I would very much appreciate any help.
    Greetings, Erik

    I have separated the map code from the main application, and it works now: I can display FOIs and display another set of FOIs by calling the refresh method of the MVThemeBasedFOI. The JavaScript code is quite simple:
    function showRasterMap() {
    raster_mvo = new MVMapView(document.getElementById("rastermap"), baseURL);
    raster_mvo.addBaseMapLayer(new MVBaseMap("MVDS.RASTER_MAPCACHE"));
    raster_mvo.setCenter(MVSdoGeometry.createPoint(150000, 450000, 90112));
    raster_mvo.setZoomLevel(0);
    raster_mvo.addScaleBar();
    raster_mvo.display();
    function showRasterFOI(arr) {
    var t0 = new Date();
    var arrParam = new ArrayParameter(arr, 'narray', 't_unitids');
    if (raster_foi == null) {
    raster_foi = new MVThemeBasedFOI('rasterUnitsFoi', 'MVDS.THEMERASTERUNITS', baseURL);
    raster_foi.setQueryParameters(arrParam);
    //raster_foi.setBringToTopOnMouseOver(true);
    raster_foi.enableInfoTip(true);
    raster_foi.setVisible(true);
    raster_mvo.addThemeBasedFOI(raster_foi);
    else {
    raster_foi.addEventListener('after_refresh', function() {
    var t1 = new Date();
    var diff = t1 - t0;
    alert('timer: ' + diff + ' msec');
    raster_foi.setQueryParameters(arrParam);
    raster_foi.refresh(true);
    //TODO: check if zooming is required
    //raster_mvo.display(); THIS KILLS PERFORMANCE
    So everything looks fine here, except the performance, namely in my browser it takes 33 seconds to display a single FOI !
    However I had a look on the code again, and I found that the last call to display the MVMapView object resulted into the gigantic perfomance breakdown as mentioned above. When reading the API, I didn't get consious of this performance penalty. The API just says about the display method: "This method displays all map content inside the map container (which is an HTML DIV element defined in the web page)."
    Maybe you could find time to extend the API with information and advices of how to best use it, especially witn respect to performance.
    I am happy that I managed to solve this issue that turned our hear into grey color.

  • How to use bounding theme with jdbc theme

    Hello
    I'm using oracle maps javascript API to locate geometry with jdbc theme based foi, so how to use bounding theme with jdbc theme? Give me help, thanks.

    Hi,
    You can find some information & code samples at this link :-
    http://download-west.oracle.com/docs/cd/B19306_01/java.102/b14355/xadistra.htm#g1077100
    Regards,
    Sandeep

  • Layering JDBC themes on an SVG without redrawing image

    Is there a way via Javascript or other means to add dynamic JDBC themes to an SVG, within a JSP, without having to refresh/redraw the page and subsequent SVG everytime? Thank you in advance...

    The only way to get Firefox to offer to save the SVG image would be to force a content type that Firefox doesn't recognize as supported natively.
    *Mason: https://addons.mozilla.org/firefox/addon/mason/

  • JDBC theme - dynamic advanced style

    Hi
    I'm using dynamic JDBC theme's from within javascript. For instance :
    themebasedfoi=new MVThemeBasedFOI("XX","<themes><theme name='XX'><jdbc_query asis='true' spatial_column='GEOLOC' jdbc_srid='82343' render_style='DK_VALUE' datasource='PHV_MAP'>"+aip_sql+"</jdbc_query></theme></themes>");
    that works nicely.
    Now I want to be able to build the advanced bucket style on the fly instead of using a fixed advanced style(in the example DK_VALUE').
    I can define the style as for instance:
    vol_style="<style name='vol_style'><AdvancedStyle><BucketStyle><Buckets><RangedBucket seq='0' label='less than 100k' high='10000.0' style='C.RED_1'/><RangedBucket seq='1' label='100k - 150k' low='10000.0' high='15000.0' style='C.YEL_1'/><RangedBucket seq='2' label='150k - 250k' low='15000.0' high='20000.0' style='C.BLUE_1'/><RangedBucket seq='3' label='250k - 350k' low='20000.0' high='30000.0' style='C.GRE_1'/><RangedBucket seq='4' label='350k - 450k' low='30000.0' high='100000.0' style='C.GRE_2'/></Buckets></BucketStyle></AdvancedStyle></style>";
    But how can I get the dynamic theme to use this dynamically created advanced style?
    Jesper

    With MapViewer 11 preview 1, you can define dynamic styles and use the dynamic styles in your jdbc themes. We provide classes such as MVStyleColor, MVStyleMarker, MVBucketStyle, MVBarCharStyle, MVPieCharStyle and the most generalized all, MVXMLStyle to define any MapViewer supported style.
    Here is an example.
    var dynStyle = new MVStyleColor("mycolor", "00FF00", "FF0000") ;
    var themeDef =
    '<theme name="mytheme" >' +
    '<jdbc_query spatial_column="geometry" jdbc_srid="8307" ' +
    'render_style="mycolor" datasource="mvdemo">'+
    'select geometry from counties' +
    '</jdbc_query></theme>' ;
    var themeBasedFOI = new MVThemeBasedFOI('county_theme', themeDef);
    themeBasedFOI.addStyle(dynStyle) ;
    mapview.addThemeBasedFOI(themeBasedFOI);

  • Problem Joining JDBC theme to XML NSDP file

    I've created a basic map of Germany with different layers for regions etc. I've then added a dynamic JDBC theme using the following code
    var baseQuery= "select geometry, name from world_sample.world_city_metropolis where iso_country_code = 'DEU'";
    var theme = "<themes><theme name='MY_JDBC_THEME' >" +
    "<jdbc_query spatial_column='geometry' jdbc_srid='8307' " +
    "render_style='C.RED' datasource='WORLD_SAMPLE'>" + baseQuery +
    "</jdbc_query></theme></themes>" ;
    themebasedfoi = new MVThemeBasedFOI('themebasedfoi2',theme);
    themebasedfoi.setBringToTopOnMouseOver(true);
    mapview.addThemeBasedFOI(themebasedfoi);
    I've then tried to bind this theme to a small XML source using this code
    function setupNsdp(themebasedfoi)
    var nsdpInfo = new MVNSDP("defaultNSDP");
    nsdpInfo.setTheme("MY_JDBC_THEME");
    nsdpInfo.setKeyColumn("name");
    var xml_data = "<nsdp_xml>"+
    "<table>"+
         "<tr><th>name</th> <th>Revenue (M)</th></tr>"+
         "<tr><td>BERLIN</td> <td>120.0</td></tr>"+
    "</table>"+
    "</nsdp_xml>";
    var ps = new Object();
    ps["xml"] = xml_data;
    nsdpInfo.setParameters(ps);
    themebasedfoi.setNSDP(nsdpInfo);
    The problem is that when I click on the Berlin FOI on the map I get a pop up box that contains only the name of the city and not the Revenue Column which was defined in the XML sample.
    I think that the setNSDP method must be failing but I'm not sure how to debug this. I've read many different tutorials and I'm sure that I ahve followed them correctly but if anyone could provide any info that may help me debug or fix this problem then that would be much appreciated
    Thanks
    David

    I just upgraded to Mapviewer 11 preview and it has fixed this issue.

  • JDBC THEME-MAPVIEWER-05517 Request string is too long for Oracle Maps' non-

    hi,
    if I need a quite complex query to be added to dynamic JDBC theme I get this error:
    [MAPVIEWER-05517] Request string is too long for Oracle Maps' non-AJAX remoting.
    -why? I am using Oracle Maps JS API so it is AJAX remoting, or not?
    -what is the limit of a JDBC theme definition?
    regards,
    Brano

    hi,
    yes, having look at MVMapView.enableXMLHTTP(true) in doc explains a lot...
    thanks,
    Brano

  • How to display UI elements dynamically on the click of a radiobutton

    hi all,
    I have created two radio buttons rb1, rb2 dynamically.  If i click on rb1, ......
    one label, one inputfield (ie., some UI elements ) must be displayed in the same view & if i click on rb2, other UI elements must display. 
    can anyone tell how to display UI elements which were created dynamically on the click of a radio button.
    thanks & regards,
    vila

    Hi,
    1. Create a context attribute name visible1 of type type     com.sap.ide.webdynpro.uielementdefinitions.Visibility(using brose button in the type property of context)
    2. Bind this context to all tha elements of that you want to make visible when radio button 1 is clicked to their visibility property.
    3. Create a context attribute name visible2 of type com.sap.ide.webdynpro.uielementdefinitions.Visibility(using brose button in the type property of context)
    4. Bind this context to all tha elements of that you want to make visible when radio button 2 is clicked to their visibility property.
    5. Create actions for both radio button1 say action1 and for radio button2 say action2.
    6. In action1 write this line of code
    wdContext.currentContextElement.setVisible1(WDVisibility.VISIBLE);
    wdContext.currentContextElement.setVisible2(WDVisibility.BLANK);
    7. In action2 write this line of code
    wdContext.currentContextElement.setVisible2(WDVisibility.VISIBLE);
    wdContext.currentContextElement.setVisible1(WDVisibility.BLANK);
    Regards,
    Murtuza

Maybe you are looking for

  • Adobe Reader will not update from 11.0.0.6 to 11.0.0.7

    I have tried installing the update to my Windows 8.1 machine, but it fails every time. When I right click and run as administrator from the download, it extracts, then pops up with: "The upgrade patch cannot be installed by the Windows Installer serv

  • How to clear the open documents in case if document currency and local curr

    Hi,     Can anyboday advise how to clear the open document of a particular vendor for a particular company code. Here the issue is that balace is netted to Zero in the document currency but not in the local currency. The document was posted in Curren

  • Total Credit Limit for Co. code

    Hi sappers,                   I want to fix a total credit limit for Co. code sothat the aggregate of credit limit fixed for every Customer cannot exceed that total credit limit.

  • Slow to open and save files

    My Macbook Pro with Mac OS X 10.7.4 has been real slow lately in opening files, saving documents, opening webpages.  Any suggestions on ways to speed things up?  I often have MS Excel and Word and Outlook open so not sure if that is the problem.

  • Print Entire Site Code

    Hi All, Is there a way to print the code of an entire site, not just each page individually?