Dynamic  theme generation

Hi,
I need to change during runtime the portal theme in EP6 SP4.
1)The theme must chnage for different user groups.
2)If i have an user with a default theme and, when I click over an entry in top level navigation, the portal theme should change depending on then choosen entry.
Do you have any idea? Where can i find documentation
Thank you. Regards

Hi Damodhar
--The theme must chnage for different user groups.
  for this check out the following link
  http://help.sap.com/saphelp_nw04/helpdata/en/f4/bb7a3b688d3c1de10000000a11402f/frameset.htm
---If i have an user with a default theme and, when I click over an entry in top level navigation, the portal theme should change depending on then choosen entry.
Check the above weblog and also Changing Portal Themes from Role to Role...
Regards
Rajeev.

Similar Messages

  • XMLParseException during dynamic theme generation

    Hi,
    I4m having problems with SQL statements in some requests to MapViewer during dynamic theme generation.
    When I put in the WHERE clause the operator "less than" the request fails. An XMLParseException is generated.
    For example:
    <jdbc_query XXXXXXX>
    select geom from table where column < 10
    </jdbc_query>
    the following exception is generated:
    oracle.xml.parser.v2.XMLParseException: Expected name instead of .
    When I change de symbol < to &lt; (like MapViewer Users Guide recommends):
    <jdbc_query XXXXXXX>
    select geom from table where column &lt; 10
    </jdbc_query>
    the following exception is generated:
    oracle.xml.parser.v2.XMLParseException: Unexpected EOF
    If the is no WHERE clause (select geom from table) the request works.
    What can be wrong ? Can I use the less than operator in the WHERE clause ?
    Thanks in advance,
    Rodrigo     

    OK. The OC4J version is 1.0.2.2.1. I4m using Oracle8i Enterprise Edition Release 8.1.7.0.0.
    Some examples of XML requests:
    1) This works fine
    <?xml version="1.0" standalone="yes"?>
    <map_request
    title=""
    basemap="MAP1"
    datasource="DS1"
    width="1098"
    height="648"
    bgcolor="#FFFFFF"
    antialiase="false"
    format="GIF_URL">
    <center size="73063.00272634998">
    <geoFeature>
    <geometricProperty typeName="center">
    <Point>
    <coordinates> 376875.541941716, 7810266.276712325</coordinates>
    </Point>
    </geometricProperty>
    </geoFeature>
    </center>
    <themes>
    <theme name ="PLANTIOS_MPD">
                   <jdbc_query
                   asis="true"
    spatial_column="GEOM"
                   render_style="C.PLANTIOS_MPD"
                   jdbc_host="MyServer"
                   jdbc_port="1521"
                   jdbc_sid="db01"
                   jdbc_user="scott"
                   jdbc_password="tiger"
                   jdbc_mode="thin">
                   select geom from table where column = 50
    </jdbc_query>
         </theme>
    </themes>
    </map_request>
    2) This doesn4t work ('<' replaces '=' in SQL WHERE clause)
    <?xml version="1.0" standalone="yes"?>
    <map_request
    title=""
    basemap="MAP1"
    datasource="DS1"
    width="1098"
    height="648"
    bgcolor="#FFFFFF"
    antialiase="false"
    format="GIF_URL">
    <center size="73063.00272634998">
    <geoFeature>
    <geometricProperty typeName="center">
    <Point>
    <coordinates> 376875.541941716, 7810266.276712325</coordinates>
    </Point>
    </geometricProperty>
    </geoFeature>
    </center>
    <themes>
    <theme name ="PLANTIOS_MPD">
                   <jdbc_query
                   asis="true"
    spatial_column="GEOM"
                   render_style="C.PLANTIOS_MPD"
                   jdbc_host="MyServer"
                   jdbc_port="1521"
                   jdbc_sid="db01"
                   jdbc_user="scott"
                   jdbc_password="tiger"
                   jdbc_mode="thin">
                   select geom from table where column < 50
    </jdbc_query>
         </theme>
    </themes>
    </map_request>
    3) This also doesn4t work ('&lt;' replaces '=' in SQL WHERE clause)
    <?xml version="1.0" standalone="yes"?>
    <map_request
    title=""
    basemap="MAP1"
    datasource="DS1"
    width="1098"
    height="648"
    bgcolor="#FFFFFF"
    antialiase="false"
    format="GIF_URL">
    <center size="73063.00272634998">
    <geoFeature>
    <geometricProperty typeName="center">
    <Point>
    <coordinates> 376875.541941716, 7810266.276712325</coordinates>
    </Point>
    </geometricProperty>
    </geoFeature>
    </center>
    <themes>
    <theme name ="PLANTIOS_MPD">
                   <jdbc_query
                   asis="true"
    spatial_column="GEOM"
                   render_style="C.PLANTIOS_MPD"
                   jdbc_host="MyServer"
                   jdbc_port="1521"
                   jdbc_sid="db01"
                   jdbc_user="scott"
                   jdbc_password="tiger"
                   jdbc_mode="thin">
                   select geom from table where column &lt; 50
    </jdbc_query>
         </theme>
    </themes>
    </map_request>
    Thanks,
    Rodrigo

  • Mapview dynamic theme generation questions

    In exercising the MapViewer tool with thematics map I had a view questions on the capabilities of the component:
    1. Is there a way in the map _request element reference a dynamically defined expression (column)
    that is returned from the query defined in the value of the "<jdbc_query>" element. I want to show counts from an inline view,
    but for brevity consider the the SQL
    select geom, state , state || '-' || state_abrv concat_state_name from states
    It seems that both the "label_column" attribute of the "<jdbc_query>" element and the "column" attribute of a "<rule>" element in
    a style rule can only reference columns that exist in the base table either of the base map/theme or in the query .
    I cannot seem to use a specification of "concat_state_name"
    in the "label_column" attribute ... throws ClassCastException. Should this be possible ?
    If not would the workaround would appear to use a view that is dynamically defined and insert a new map based on the view ?
    2. In my inline view example, I found in the "<jdbc_query>" element that when I specifed a "render_style" that
    was an advanced style with buckets it automatically selected my count expression and rendered the map correctly, which
    is great, but it might be a good idea to make it explicit if 1. could be handled (or can).
    3. For thematic maps it would be nice to dynamically define the buckets (<AdvancedStyle>)
    within the map request as the potient for permutations of numeric ranges in any application could vary.
    It looks like <styling_rules> might be able to handle this if you can use the BETWEEN operator or something
    like runway_number >= 10 and runway_number < 20 as expressions. Are these valid and if so where are they specified
    in the map_request ? I did not see them nested anywhere in the DTD yet the Example 2-1 in the documentation would
    imply they can be specified in the map request and the tool map definition tool does not seem to support the concept of a
    variable in the base table. The workaround would appear to be to dynamically add the theme using an insert.

    In exercising the MapViewer tool with thematics map I had a view questions on the capabilities of the component:
    1. Is there a way in the map _request element reference a dynamically defined expression (column)
    that is returned from the query defined in the value of the "<jdbc_query>" element. I want to show counts from an inline view,
    but for brevity consider the the SQL
    select geom, state , state || '-' || state_abrv concat_state_name from states
    It seems that both the "label_column" attribute of the "<jdbc_query>" element and the "column" attribute of a "<rule>" element in
    a style rule can only reference columns that exist in the base table either of the base map/theme or in the query .
    I cannot seem to use a specification of "concat_state_name"
    in the "label_column" attribute ... throws ClassCastException. Should this be possible ?
    If not would the workaround would appear to use a view that is dynamically defined and insert a new map based on the view ? MapViewer does allow dynamic expressions in <jdbc_query>. Can you test the following simple request:
    <?xml version="1.0" standalone="yes"?>
    <map_request datasource = "mvdemo">
    <themes>
    <theme name="theme1" min_scale="5.0E7" max_scale="0.0">
    <jdbc_query
    datasource="mvdemo"
    jdbc_srid="0"
    spatial_column="geom"
    render_style="C.RED"
    label_style="T.STREET NAME"
    label_column="concat_state_name"
    >select geom, state , state || '-' || state_abrv concat_state_name from states where state_abrv='MA' </jdbc_query>
    </theme>
    </themes>
    </map_request>
    As long as the name specified in lable_column matches the alias you give in the select list it should work.
    If not then maybe you need to use the view-based approach. It will definately work in the up-coming 9.0.4 version.
    2. In my inline view example, I found in the "<jdbc_query>" element that when I specifed a "render_style" that
    was an advanced style with buckets it automatically selected my count expression and rendered the map correctly, which
    is great, but it might be a good idea to make it explicit if 1. could be handled (or can).
    3. For thematic maps it would be nice to dynamically define the buckets (<AdvancedStyle>)
    within the map request as the potient for permutations of numeric ranges in any application could vary.
    It looks like <styling_rules> might be able to handle this if you can use the BETWEEN operator or something
    like runway_number >= 10 and runway_number < 20 as expressions. Are these valid and if so where are they specified
    in the map_request ? Yes that may indeed be a good thing to have in a future version of mapviewer. In the mean time yes you can always use such expressions as you provided in the styling_rules (which is only for predefined themes) or in a <jdbc_theme>.
    I did not see them nested anywhere in the DTD yet the Example 2-1 in the documentation would
    imply they can be specified in the map request and the tool map definition tool does not seem to support the concept of a
    variable in the base table. The workaround would appear to be to dynamically add the theme using an insert. The map definition tool is lagging behind in terms of supporting all the functions actually available in MapViewer server.
    Thanks,
    LJ

  • Can a Hyperlink be created based on the results of a Dynamic Theme Query?

    What I would like to do is create a link from the results of a dynamic theme. The following code displays the names of locations on my map, is there any way that the location name once placed on the map can be a hyperlink that will run a SQL statement that will show the status of that name. My map is based on 3 status levels identified by markers, green marker is up, red is down, amber is degraded. If the Marker is red I want to be able to click the name or the Marker that is on the map to find out what the problem actually is.
    Thanks in advance!
    &lt;mv:addJDBCTheme
         name="Locations_Names"
         datasource="mvdemo"
         spatial_column="map_loc_data"
         srid="8307"
         label_style="T.CITY NAME"
         label_column="location"
         min_scale="7.05" max_scale="0"&gt;     
              select l.location, l.map_loc_data
              from resources.locations_test l
              where l.location_id IN
              (Select distinct d_loc_id
              from cii.devices
              HAVING max(d_ops_status) &lt;= 2 GROUP BY d_loc_id)
    &lt;/mv:addJDBCTheme&gt;

    LJ,
    Any chance you can see what is wrong with the following code. I have gone over it line by line with an example out of the Oracle Pro spatial Data book, but I can not see what the problem is.
    I know you will not be able to run it but the error I am getting is:
    500 Internal Server Error
    java.lang.NoSuchMethodError at Oracle.lbs.mapclient.MapViewer.getUserPoint(MapViewer.java:3512)
         at oracle.lbs.mapclient.MapViewer.identify(MapViewer.java:4560)
         at oracle.lbs.mapclient.taglib.MapViewerIdentifyTag.doEndTag(MapViewerIdentifyTag.java:171)
         at tnoscmaps.MapofUS._jspService(_MapofUS.java:286)
         [SRC:/TNOSCMAPS/MapofUS.jsp:130]
    To me this is pointing to the following section:
    <mv:identify
    id="identifyResults"
    datasource="mvdemo"
    table="locations_test"
    spatial_column="map_loc_data"
    srid="8307"
    x="<%= imgCX %>"
    y="<%= imgCY %>"
    >
    location, state
    </mv:identify>
    This is my complete set of code for this page:
    <%@ page contentType="text/html;charset=UTF-8" %>
    <%@ taglib uri="/WEB-INF/mvtaglib.tld" prefix="mv" %>
    <%@ page session="true" %>
    <%@ page import="oracle.lbs.mapclient.MapViewer" %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>CONUS TNOSC SITES</title>
    </head>
    <body bgcolor="#FFFF00">
    <%
    // Name of this File
    String jspURL = response.encodeURL(request.getRequestURI());
    // URL of Mapviewer servlet
    String mapViewerURL =
    "http://"+ request.getServerName()+":"+request.getServerPort()+
    request.getContextPath()+"/omserver";
    String[][] featureInfo = null;
    if( request.getParameter("session-initialized") == null ||
    request.getParameter("new-session") == "true") {
    %>
    <!-- Initialize MapViewer handle.and save it in the session -->
    <mv:init
    url="<%=mapViewerURL%>"
    datasource="mvdemo"
    id="mvHandleSimpleViewerTags" />
    <!-- Set map format and size -->
    <mv:setParam
    title="CONUS TNOSC SITES"
    width="800"
    height="500"/>
    <!-- Add themes from the base map -->
    <mv:importBaseMap name="US_MAP"/>
    <!-- Dynamic Themes -->
    <mv:addJDBCTheme
         name="Locations_Names"
         datasource="mvdemo"
         spatial_column="map_loc_data"
         srid="8307"
         label_style="T.CITY NAME"
         label_column="location"
         min_scale="7.05" max_scale="0">     
              select l.location, l.map_loc_data
              from resources.locations_test l
              where l.location_id IN
              (Select distinct d_loc_id
              from cii.devices
              HAVING max(d_ops_status) <= 2 GROUP BY d_loc_id)
    </mv:addJDBCTheme>
    <mv:addJDBCTheme
         name="Locations_Green_Status"
         datasource="mvdemo"
         spatial_column="map_loc_data"
         srid="8307"
         render_style="M.GREEN"
         min_scale="50" max_scale="0">     
    SELECT l.map_loc_data, l.location_id
    FROM resources.locations_test l
    WHERE l.location_id IN (SELECT d_loc_id
    FROM cii.devices
         GROUP BY d_loc_id HAVING MAX(d_ops_status) = 0)
    </mv:addJDBCTheme>
    <mv:addJDBCTheme
         name="Locations_AMBER_Status"
         datasource="mvdemo"
         spatial_column="map_loc_data"
         srid="8307"
         render_style="M.AMBER"
         min_scale="50" max_scale="0">     
    SELECT l.map_loc_data, l.location_id
    FROM resources.locations_test l
    WHERE l.location_id IN (SELECT d_loc_id
    FROM cii.devices
         GROUP BY d_loc_id HAVING MAX(d_ops_status) = 1)
    </mv:addJDBCTheme>
    <mv:addJDBCTheme
         name="Locations_RED_Status"
         datasource="mvdemo"
         spatial_column="map_loc_data"
         srid="8307"
         render_style="M.RED"
         min_scale="50" max_scale="0">     
    SELECT l.map_loc_data, l.location_id
    FROM resources.locations_test l
    WHERE l.location_id IN (SELECT d_loc_id
    FROM cii.devices
         GROUP BY d_loc_id HAVING MAX(d_ops_status) = 2)
    </mv:addJDBCTheme>
    <!-- Set initial map center and size -->
    <mv:setParam
    centerX="-96.0"
    centerY="39.0"
    size="37" />
    <%
    MapViewer mvHandle = (MapViewer) session.getAttribute("mvHandleSimpleViewerTags");
    String userAction = request.getParameter("userAction");
    String imgCX = request.getParameter("userClick.x");
    String imgCY = request.getParameter("userClick.y");
    if("identify".equals(userAction)) {
    %>
    <mv:identify
    id="identifyResults"
    datasource="mvdemo"
    table="locations_test"
    spatial_column="map_loc_data"
    srid="8307"
    x="<%= imgCX %>"
    y="<%= imgCY %>"
    >
    location, state
    </mv:identify>
    <%
    featureInfo = identifyResults;
    else {
    %>
    <mv:run
    action="<%=userAction%>"
    x="<%= imgCX %>"
    y="<%= imgCY %>" />
    <%
    %>
    <!-- Output the HTML content -->
    <center><h1>CONUS TNOSC SITES</h1></center>
    <form name="viewerForm" method="post" action="<%= jspURL %>" >
    <center>
    <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" >
    <tr bgcolor="#FFFFFF">
    <td valign="top">
    <table border="0" cellpadding="0" cellspacing="0">
    <!-- Map display -->
    <tr>
    <td valign="top" align="center" >
    <input type="image"
    border="1"
    src="<mv:getMapURL />"
    name="userClick"
    alt="Click on the map for selected action"
    >
    </td>
    </tr>
    <!-- Map click action -->
    <tr>
    <td align="center">
    <input type="radio" name="userAction" value="recenter"
    <%= "recenter".equals(userAction)?"checked":""%> ><B>Re-center</B>
    <input type="radio" name="userAction" value="zoomin"
    <%= "zoomin".equals(userAction)?"checked":""%> ><B>Zoom In</B>
    <input type="radio" name="userAction" value="zoomout"
    <%= "zoomout".equals(userAction)?"checked":""%> ><B>Zoom Out</B>
    <input type="radio" name="userAction" value="identify"
    <%= "identify".equals(userAction)?"checked":""%> ><B>Identify Issue</B>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <!-- Current position -->
    <tr>
    <td align="center">
    <i>Center</i>[<b><%=mvHandle.getRequestCenter().getX()+","+
    mvHandle.getRequestCenter().getY()%></b>]  
    <i>Scale</i>[<b><%=mvHandle.getMapScale()%></b>]
    </td>
    </tr>
    <!-- Identification result -->
    <% if (featureInfo !=null && featureInfo.length>0) {%>
    <tr><td align="center">
    <table border="1">
    <% for (int i=0; i<featureInfo.length; i++) {%>
    <tr>
    <% String[] row = featureInfo;
    for (int k=0; k<row.length; k++) {%>
    <td><%= row[k] %></td>
    <% } %>
    </tr>
    <% } %>
    </table>
    </td></tr>
    <% } %>
    </table>
    </center>
    <input type="hidden" name="session-initialized" value="true" >
    </form>
    </body>
    </html>

  • Dynamic Themes in mapinit.jsp

    Hi ,
    How can I pass dynamic themes using mapinit.jsp ,
    For example alongwith all the parameters like map size , basemap etc..
    I want to give a new date parameter . based on the given date I need to put a where clause in my themes like where date=parameter.date.
    I have salesperson whose location changes on daily basis and user need to see their location on date basis , for example where all the salesman were on 28-10-2006 and where all the sales man were on 25-10-2006 and so on ..
    Please help

    Thanks a lot that worked out.But still as I have my complete requirement is I need to display set of radio buttons when I click on this link.
    Can this be possible by javascript.Can anyone give me an idea of how to do this. The actual scenario is like I get the a list of 30 dates and their corresponding radio buttons from a webservice. What I do is I read all the values from that webservice and convert them into text( actually I get the codes) and need to display that as a calendar to the user and when they click on a particular date { I copied a calender from the net and placed that code in my jsp to display the calender)
    the set of radio buttons should be displayed underneath the calender.That is both the calender and the list of radio buttons should be on the same page.
    Thanks in advance.
    Pavan.

  • UIX: how to get dynamic image generation working on ias10G?

    Hi,
    Anybody got UIX Dynamic Image Generation working on ias10G, on unix? My Images do not get generated (the page only shows the plain links)
    My env:
    - ias10G
    - AIX Version 5
    - java version: unknown, do not know what version ias10G is using
    On earlier versions (OC4J 903) we had to make sure an XServer was running and pointed our DISPLAY variable to that server. When the XServer was down, we got a nice error message in the application logs. However on ias10G I cannot figure out where to set this variable and I cannot find any error messages.
    Can anybody please help me out a bit?
    Cheers,
    Martijn

    Hi Andy,
    Thanks for your reply. However, I have not yet been able to get it working.
    I have verified that the java version is indeed (this is what the oc4j logfile shows when I supply the -showversion parameter)
    java version "1.4.1"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1)
    Classic VM (build 1.4.1, J2RE 1.4.1 IBM AIX build ca1411-20030930 (JIT enabled: jitc))The relevant fragment of the opmn.xml:
              <process-type id="oc4j_cif_mh" module-id="OC4J">
                   <module-data>
                      <category id="start-parameters">
                         <data id="java-options" value="-Djava.security.policy=/oracbd/j2ee/oc4j_cif_mh/config/java2.policy -
    Djava.awt.headless=true -Xmx75m -Xms75m -showversion"/>
                         <data id="oc4j-options" value="-properties"/>
                      </category>
                      <category id="stop-parameters">
                         <data id="java-options" value="-Djava.security.policy=/oracbd/j2ee/oc4j_cif_mh/config/java2.policy -
    Djava.awt.headless=true"/>
                      </category>
                   </module-data>
                   <start timeout="900" retry="2"/>
                   <stop timeout="120"/>
                   <restart timeout="720" retry="2"/>
                   <port id="ajp" range="3301-3400"/>
                   <port id="rmi" range="3201-3300"/>
                   <port id="jms" range="3701-3800"/>
                   <process-set id="default_island" numprocs="1"/>
                </process-type>Finally, your JSP passes the test. I can access it. But still no uix image generation. Are there any logfiles I can check for error messages on the failing image generation? May it be a web cache problem?
    Thanks in advance

  • How do u use SDO_RELATE for dynamic theme

    Hi ,
    I have line geometry. For this line geometry I have to create a buffer using SDO_GEOM.SDO_BUFFER and I have to check whether the given point geometry is with in this buffer.
    How can i do it?
    i have used buffer and SDO_RELATE but its giving error as
    "SDO_RELATE can not be used with out Spatial Index". Here my buffer is a dynamic theme.
    Is there any possibility to create index for dynamic theme?
    Thanks and Regards
    Aravindan

    Hello
    We did something familiar in a sence.
    We used an analysis based sdo_NN.
    Also therefor the spatial index is required and used.
    We created a Materialized view containing the sdo_buffered result geometry, based on additional where clauses for the base table..
    We defined a spatial index on the materialized view result table, and an additional view containing the sdo_nn operator to this materialized view result table.
    So when we changed the requirements in which geometry had to be buffered in the first step, we refreshed to materialized view. This caused the de sdo_index being updated. this way the view with the operator was actualized.
    I hope this explained a little bit the way we did this, maybe this can help you out.
    Luc

  • MapViewer Dynamic Theme help

    I am using MapViewer 10g to create a JSP map, using JSP Tags as in the TagMap example. All works well, however, in building the page in question, beside creating and printing the map, I also use a within_distance query to print out a list of values. Now, on the map, I would like to be able to draw or add a dynamic theme which would be a semi-transparent raster circle, with a varying radius (dependent on the within_distance size) at the center of the map (X,Y). Any help would be greatly appreciated.

    there is a bug in the addJDBCTheme tag where the asis attribute is ignored; normally if you set asis="true" then it should work (no spatial filter will be applied to your dynamic theme since it has no spatial index anyway). But somehow the asis attribute is ignored by the taglib.
    The work around is to use the client api itself, as show below:
    <%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/ordim/mvtaglib.tld" prefix="mapviewer"%>
    <P>Testing a point</P>
    <P>
    <mapviewer:init datasource="mvdemo"
    url="http://localhost:8888/mapviewer/omserver"
    id="mvhandle" />
    <mapviewer:importBaseMap name="demo_map" />
    <%
    mvhandle.addJDBCTheme("mvdemo", "centerPoint",
    "SELECT mdsys.sdo_geometry(2001, null, mdsys.sdo_point_type(-83, 39, null), null, null) geom FROM dual",
    "geom", null, "M.CIRCLE", null, null, true); %>
    <mapviewer:setParam centerX="-83" centerY="39" size="2" />
    <mapviewer:run />
    showing the map: <p>
    <img src = "<mapviewer:getMapURL />" align=left />
    </P>

  • Mapviewer dynamic themes

    Can anyone see what I am doing wrong here? I am just trying to display locations of cities I have in my table. the base map returns with no cities defined. I can get these to plot when I use the mapdef tool and create a map with themes, but I want to create dynamic themes. Here is the code, and below that is the SQL results from running the same query in SQLplus.
    thanks in advance!
    -Scott
    &lt;?xml version="1.0" standalone="yes"?&gt;
    &lt;map_request
    title="Testing Cities"
    basemap="SOUTHWEST"
    datasource ="mvdemo"
    width="640"
    height="480"
    bgcolor="#a6cae0"
    antialiase="false"
    format="GIF_STREAM"&gt;
    &lt;center size="12"&gt;
    &lt;geoFeature&gt;
    &lt;geometricProperty&gt;
    &lt;point&gt;
    &lt;coordinates&gt;-120, 39&lt;/coordinates&gt;
    &lt;/point&gt;
    &lt;/geometricProperty&gt;
    &lt;/geoFeature&gt;
    &lt;/center&gt;
    &lt;themes&gt;
    &lt;theme name="Cities"&gt;
    &lt;jdbc_query
    datasource="mvdemo"
    spatial_column="LOCATION"
    render_style="M.EXIT 5X5"
    jdbc_srid="8307"&gt;
    select city,location from cities where state_abrv='CA'
    &lt;/jdbc_query&gt;
    &lt;/theme&gt;
    &lt;/themes&gt;
    &lt;/map_request&gt;
    Example of SQL results from above query:
    SIERRA ARMY DEPOT
    SDO_GEOMETRY(1, NULL, SDO_POINT_TYPE(-120.15, 41.361, NULL), NULL, NULL)
    MOFFET FEDERAL AIRFIELD
    SDO_GEOMETRY(1, NULL, SDO_POINT_TYPE(-122.04745, 37.41883, NULL), NULL, NULL)
    FORT BAKER
    SDO_GEOMETRY(1, NULL, SDO_POINT_TYPE(-122.49954, 37.86682, NULL), NULL, NULL)
    LOS ANGELES AIR FORCE BASE
    SDO_GEOMETRY(1, NULL, SDO_POINT_TYPE(-118.3832, 33.94609, NULL), NULL, NULL)
    NORTH ISLAND NAVAL AIR STATION
    SDO_GEOMETRY(1, NULL, SDO_POINT_TYPE(-117.20133, 32.70655, NULL), NULL, NULL)
    MIRAMAR MARINE CORPS AIR STATION
    SDO_GEOMETRY(1, NULL, SDO_POINT_TYPE(-117.14253, 32.868381, NULL), NULL, NULL)

    Hi Scott,
    it may be related with your render style. Is it stored on your database? Try to use another style, for example a marker style M.CIRCLE (if you have it stored). If you don't get the right result, then post the log information.
    Joao

  • Add dynamic theme with no query

    Is it possible to add a dynamic theme without doing a database query? I'm adding linear features to my map request dynamically and wish to do the same for themes.

    This uses a select statement but not on a database table:
        <theme name="theme1">
           <jdbc_query
             datasource="mvdemo"
             spatial_column="geom"
             render_style="C.BLUE"
            >
               select mdsys.sdo_geometry(2003, null, null,
               mdsys.sdo_elem_info_array(1, 1003, 2, 27, 2003, 1),
               mdsys.sdo_ordinate_array(25,30, 20,35, 15,30, 10,25, 15,20, 10,15,
               15,10, 20,5, 25,10, 30,15, 25,20, 30,25, 25,30,
               15,25,25,25,20,15,15,25)) geom from dual
           </jdbc_query>
         </theme>
         ...

  • Map Viewer Query Rewriting for Dynamic themes and  Materialized Views.

    Hi,
    I am usng a WMS request to render FOI points in my map.
    Internally query rewrite is happening in Mapviewer for this dynamic theme and my data points query is getting converted as
    select FROM
    ( select status, shape from MatView.MyTab where id = '3' )
    WHERE MDSYS.SDO_FILTER(shape, MDSYS.SDO_GEOMETRY(2003, 4283, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(144.948120117188,-37.8162934802451,144.950866699219,-37.8141237016045)), 'querytype=WINDOW') = 'TRUE'
    here the rewritten query is not correct and is throwing exceptions in mapviewer log
    How can I make this query to be written correctly.
    (My orginal query before rewrite is: select status,shape from MatView.MyTab where id='3' )
    I am using a materialised view : MatView is a materialized view.
    When I used normal tables, the query is re written correctly.But for this materialized view this is happening.
    How can I correct the error?
    Is this has something to do with some Spatial Indexing in Materialised view or Query Rewriting for materialized view?
    Edited by: 841309 on Mar 10, 2011 11:04 PM

    Oops!
    The Materialized view was not accessible from the schema I tried :)
    And so when I gave permissions,it formed the correct query.
    So if permission is not there,map viewer will rewrite the query in a wrong way! New information.

  • UIX dynamic image generation problem under SUSE Linux

    Hi,
    we have developed an application with UIX 2.1.14 under Windows 2000, and everything works fine when we run the application on the local OC4J.
    But after deploying the .war file to our production system under SUSE Linux SLES-7 and 9iAS Rel.2, the dynamic image generation doesn't work correctly:
    One strange thing we noticed is that rendering works fine when we use ground colours like #00FF00, #FF0000 and so on. But not when we use colours like #3172ba. We have tried this with XVFB, VNC and with "headless" JDK 1.4 (with java option -Djava.awt.headless=true in opmn.xml).
    Any ideas? Or possible reasons why image generation works using colours like #FF0000 and why not with colours like #3172BA?
    Regards,
    Matthias Scherer

    Hi Brian,
    there are no messages telling us that there is a problem with our x-server. The only messages belonging to the graphics initialization we get are:
    Rendering page = Page[name=pages/login]
    oracle.cabo.image: Initializing image cache: /oracle/ias1/j2ee/OC4J_AIS/applications/aisintra/aisintra/cabo/images/cache/de/ ...
    oracle.cabo.image: Finished initializing image cache: /oracle/ias1/j2ee/OC4J_AIS/applications/aisintra/aisintra/cabo/images/cache/de/
    oracle.cabo.style: Initializing graphics environment...
    oracle.cabo.style: Waiting for graphics environment initialization...
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    Font specified in font.properties not found [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific]
    oracle.cabo.style: Finished initializing graphics environment.
    oracle.cabo.style: Initializing fonts...
    oracle.cabo.style: Waiting for font initialization...
    oracle.cabo.style: Finished initializing fonts.
    oracle.cabo.image: Initializing image cache: /oracle/ias1/j2ee/OC4J_AIS/applications/aisintra/aisintra/cabo/images/cache/ ...
    oracle.cabo.image: Finished initializing image cache: /oracle/ias1/j2ee/OC4J_AIS/applications/aisintra/aisintra/cabo/images/cache/
    Regards,
    Matthias

  • Dynamic  report generation

    We are migrating our client reports from crystal reports to business object reports and I need your help on how to achieve the below functionality in Business object reports.
    Requirements
    1. We need to generate and deliver around 30,000 statements to clients (mostly ftp and email) from 300 Webi report templates.
    2. This has to be a complete automated process with no user intervention.
    For example: Using Webi / Deski Report1, we need to run the report for each client account and then generate a statement and deliver it to client (only client specific data). Web1 reports are complex and some might take 30 to 60mins for generation.
    Questions
    1) Can it be done by just using BO tools with out coding ( using any .net sdk)?
    2) Can a single BO server handle the load, If not How to load balance reports generation and delivery across multiple servers?
    3) How to dynamically pass parameters to Webi report without coding?
    Thanks for reading my post. Any help/ suggestion is appreciated.

    In our current architecture, 
    1) We use crystal report templates and pass dynamic datasets at runtime to generate multiple client statements.
    2) For load balancing, we have 6 app servers with crystal runtime installed and we distribute load across the servers using custom code.
    My question is if use BO enterprise will there be any performance enhancements?

  • Dynamic table generation for Employee Schedule Project

    Hi,
    I am new to Jave programming and attempting to teach myself Java using the Sun tutorials & these forums. As a first step of learning, I want to do a Automated Employee Schedule Project in Java. (JSP)
    There are two main parts of the project. The first part will be a table with the employees listed down the left, the days of the week across the top, and with each cell being that employee's shift for the day. There are four different types of shift in a day ( M- Morning, R- Regular, A- Afternoon and N- Night).
    The second part will allows the user to enter in a new employee or display/edit an existing employee's information, including a list of scheduling constraints, like can?t work in Morning shift / Night shift. Apart from that number of employee in a shift may vary based on situation.
    Could you please help me to understand the flow for creating this Automated Employee Schedule project?
    Thanks in advance.
    Amitava

    I need the logic as to how to generate the shift plan. Could you tell me how to get about creating this dynamic table and any idea what i should take as baseline? I was thinking to read the employees from the database and take them as input for the first column. and the number of days as the column list. Can you tell me if this is the correct approach?

  • Dynamic Columns Generation in Bex

    Hi Gurus,
    I have a requirement to create a BEX report where user will enter a starting month/fiscal period and number of months/periods on a variable screen and the Bex will generate columns dynamically. If the user does not enter anything on the variable screen, then it will generate columns for all months the current year. For example if an user enters month; 01 and number of months 6, then it should generate Aug06, Sep06, Oct06, Nov06, Dec06, Jan07 these columns and populate values(0amount) in them.
    If the user runs report on say 2/22/2007 and enters nothing on the variable screen, then it should generate Jan07, Feb07 just 2 columns for 2 months and populate values in them.
    I checked the forum and there are couple of them addressing this topic but it is not clear to me. Somebody tells to create variable in row, somebody in columns and right customer exit.
    Can some experts readdress this topic and provide a step by step guide, how to achieve this kind of report?
    Any help is really appreciated.
    Thanks.
    Sheo

    It seems like writing User Exit is the only solution.
    in User Exit, at I_STEP = 2, you check for the input user value. If, u have month entered as 01/2007 and number of months as 6, you need to calculate the lower and higher limit of fiscal/calander month you want to restrict
    So, at I_STEP = 2, you find the value of your month variable as 01/2007 and no of month variable as 6, set the low and high value of month as per your req using some sort of calculation, which will be added into columns.
    if st I_STEP = 2, entered value is NULL or " ". Set the low and high value of month starting from jan of current year (which u can set using SY-DATUM) to current month of current year.

Maybe you are looking for