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

Similar Messages

  • Displaying a theme-based FOI layer as a whole image with javascript API v2

    Hi,
    I have looked the Oracle maps V2 tutorial developed in mvdemo.war application provided with Oracle Mapviewer v11.1.1.7. I have looked how to use theme-based FOI layers and I have not found how to set the "whole image" property for these layers. This feature is present in javascript API V1 and it greatly improves application performance. Our applications use this property very often.
    Is this property present in javascript API V2 but not documented?
    If it's not present, do you know if it will be?
    How can we show a layer with many geometry features and obtain the same performance we have now with the whole image property?
    Thanks,
    Arturo

    Hi,
    since this is a very crucial feature for us I'm very interested in that functionality as well. Is there a comparable functionality in the V2 API or will it be available in feature releases?
    Thanks
    Dominik

  • [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.

  • Displaying default styles in an advanced style as theme based foi

    Hi,
    I have a problem to display the default style of an advanced style as theme based foi.
    According to the mapviewer log x feature were found to display but no one was rendered into the map.
    MapViewer with image layer works, MapBuilder, too.
    MapViewer version:
    Ver1033p5_B081010
    MapBuilder marker definition:
    <?xml version="1.0" ?>
    <AdvancedStyle>
    <BucketStyle>
    <Buckets default_style="C.ORANGE">
    <CollectionBucket seq="0" type="string" style="C.BLUE">90002,19208</CollectionBucket>
    <CollectionBucket seq="1" type="string" style="C.RED">14002,13004</CollectionBucket>
    </Buckets>
    </BucketStyle>
    </AdvancedStyle>
    The mapviewer log indicates 7 found featuers, but only 2 of them are displayed. The 5 items are using the default style and are not visible.
    LOG
    May 28, 2009 3:46:26 PM oracle.sdovis.LoadThemeData run
    FINER: LoadThemeData running thread: Thread-6894
    May 28, 2009 3:46:26 PM oracle.sdovis.theme.PredGeomThemeProducer loadFeaturesInWindow
    FINER: [Master scale] 46.091784655389 [Theme scale factor] 1.0
    May 28, 2009 3:46:26 PM oracle.sdovis.theme.PredGeomThemeProducer loadFeaturesInWindow
    FINEST: [ TEST_FOI_POI_2 ]: 2xxx973.7866666666,5xxx599.714666666,2xxx466.072533333,5xxx968.929066666
    May 28, 2009 3:46:26 PM oracle.sdovis.theme.PredGeomThemeProducer loadFeaturesInWindow
    FINEST: Theme query [ TEST_FOI_POI_2 ]: SELECT ID, GEOM, 'M.TEST_IMAGE2', null, 'null', -1, 'rule#0', ID, BEMERKUNG FROM FOI_TEST_POI WHERE MDSYS.SDO_FILTER(GEOM, MDSYS.SDO_GEOMETRY(2003, 31466, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(:mvqboxxl, :mvqboxyl, :mvqboxxh, :mvqboxyh)), 'querytype=WINDOW') = 'TRUE'
    May 28, 2009 3:46:26 PM oracle.sdovis.theme.PredGeomThemeProducer loadFeaturesInWindow
    FINER: [ TEST_FOI_POI_2 ] Fetch size: 100
    May 28, 2009 3:46:26 PM oracle.sdovis.theme.PredGeomThemeProducer loadFeaturesInWindow
    INFO: [ TEST_FOI_POI_2 ] sql exec time: 0ms, total time loading 7 features: 31ms.
    May 28, 2009 3:46:26 PM oracle.lbs.mapserver.core.MapperPool freeMapper
    FINER: freeMapper() begins...
    May 28, 2009 3:46:26 PM oracle.lbs.foi.ThemeRenderingThread render
    FINER: 7 features loaded.31
    May 28, 2009 3:46:26 PM oracle.lbs.foi.ThemeRenderingThread render
    FINER: Total time rendering foi data:0
    May 28, 2009 3:46:26 PM oracle.lbs.foi.FOIServlet doPost
    FINEST: ---- begin FOI response ----
    {"foiarray":[{"id":"201","gtype":"2001","imgurl":"http://server02/mapviewer/images/foi/23_p_Sj_28_24.png","x":2xxx200,"y":5xxx800,"width":28,"height":24,"attrs":["201",]},{"id":"200","gtype":"2001","imgurl":"http://server02/mapviewer/images/foi/23_p_Sj_28_24.png","x":2xxx200,"y":5xxx866,"width":28,"height":24,"attrs":["200",]}],attrnames:["Bezeichnung","BEMERKUNG"],themeMBR:[1.0,0.0,0.0,2xxx422.22678222],hiliteImgPref:"Sh",hiliteMW:10,hiliteMH:10,isWholeImg:false}
    ---- end FOI response ----
    May 28, 2009 3:46:26 PM oracle.lbs.foi.FOIServlet sendGZippedResponse
    FINEST: Sending FOI response in gzip format.
    Regards,
    Cord

    Hi Joao,
    thanks!
    Do you know a workaround or alternative for that problem?
    I have a request of our customer. He has about 400 different group items. Only a few of them (40-60) should be defined with an individual style and the rest with a default style.
    The problem is, that the number of group items rises nearly daily. The new ones should automatically be displayed with the default style.
    Cord

  • Overlapped theme based FOIs in FireFox

    Hi. Ive got problem with using overlapped theme based foi's in firefox. The problem is that only one foi is clickable, and the foi under the upper one is only displayed but not active. It works in IE. One foi is polyline and other is polygon. Is there any solution ?

    I've got the same issue.
    Have you managed to deal with this somehow?

  • Templated Theme Based FOI layer Error

    I'm trying to add FOI like in an example - Templated Theme Based FOI layer.
    Javascript:
    var tbfc = 0;
    function addMyFOI(oKOD){
    tbfc++;
    var foi_name = 'foi'+tbfc;
    var tbg = new MVThemeBasedFOI(foi_name,'cad.dj');
    tbg.setQueryParameters("'"+oKOD+"'");
    tbg.setBringToTopOnMouseOver(true);
    mapview.addThemeBasedFOI(tbg);
    dynamic theme:
    <?xml version="1.0" standalone="yes"?>
    <styling_rules>
    <hidden_info>
    <field column="NOMER" name="ffff"/>
    <field column="DOM" name="ffff"/>
    <field column="LIT" name="dff"/>
    </hidden_info>
    <rule>
    <features style="M.CYAN PIN"> (NOMER=:1) </features>
    </rule>
    </styling_rules>
    When i call addMyFOI function i get error looks like this:
    06/10/20 01:06:10 ERROR [oracle.lbs.foi.FOIServlet] [Foi Server] foi width value is wrong.
    Does anybody know what it is?

    var baseURL = "http://"+document.location.host+"/mapviewer";
    var mapCenterLon = 18429.573997;//getCenterLon(MAP_NAME);
    var mapCenterLat = 17544.041656;//getCenterLat(MAP_NAME);
    var mapZoom = 5;
    var mpoint = MVSdoGeometry.createPoint(mapCenterLon,mapCenterLat,262148);
    mapview = new MVMapView(document.getElementById("map"), baseURL);
    mapview.addBaseMapLayer(new MVBaseMap("CAD.TYUMEN"));
    mapview.setCenter(mpoint);
    mapview.setZoomLevel(mapZoom);
    mapview.addNavigationPanel("EAST");
    mapview.addCopyRightNote("&#169;2006 powered by &#8482;");
    ovcontainer = new MVMapDecoration(null,null,null,200,150) ;
    ovcontainer.setCollapsible(true);
    mapview.addMapDecoration(ovcontainer);
    var over=new MVOverviewMap(ovcontainer.getContainerDiv(),3);
    mapview.addOverviewMap(over);
    mapview.display();
    I use this code to initialize my map.
    Hmmm, I still cannot solve that problem

  • 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 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.

  • Uncorrect HightLight  theme-based FOI layer

    Im add 2 ThemeBasedFoiLaywer
    if (document.getElementById('HTQB').checked) {
    var QQB = createQuery('QBRD', ordsArray.toString(), begd, endd);
    var TQB = createTheme(QQB,"C.QB");
    var HTQB = new MVThemeBasedFOI('HTQB', TQB);
              HTQB.enableHighlight(true);
              HTQB.setHighlightStyle("C.HSP");
              HTQB.setHighlightMode("multiple");
              HTQB.setBringToTopOnMouseOver(true);
              HTQB.setAutoRefresh(false);
              HTQB.attachEventListener('mouse_click',foiEvent);
              HTQB.attachEventListener('after_refresh', fo2 = function(){
                   createResultTable('HTQB');
                   var t = mapview.getThemeBasedFOI('HTQB');
                   t.detachEventListener('after_refresh',fo2);
    mapview.addThemeBasedFOI(HTQB);
    if (document.getElementById('HTWV').checked) {
    var QWV = createQuery('WorldVW', ordsArray.toString(), begd, endd);
    var TWV = createTheme(QWV,"C.WV");
    var HTWV = new MVThemeBasedFOI('HTWV', TWV);
              HTWV.enableHighlight(true);
              HTWV.setHighlightStyle("C.HWV");
              HTWV.setHighlightMode("multiple");
    HTWV.setBringToTopOnMouseOver(true);
              HTWV.setAutoRefresh(false);
              HTWV.attachEventListener('mouse_click',foiEvent);
              HTWV.attachEventListener('after_refresh', fo3 = function(){
                   createResultTable('HTWV');
                   var t = mapview.getThemeBasedFOI('HTWV');
                   t.detachEventListener('after_refresh',fo3);
    mapview.addThemeBasedFOI(HTWV);
    When im click on FOI element - he is hiding!
    Firebug say me what image is not found:
    !http://pic.ipicture.ru/uploads/090709/cStUVOX67O.jpg!
    Ок, im look at */mapviewer/images/fig/* and see what name of any images is wrong (look at the picture)
    !http://pic.ipicture.ru/uploads/090709/b9iO1tTrNL.jpg!
    Edited by: user11305894 on 09.07.2009 7:21
    Edited by: user11305894 on 09.07.2009 7:23

    You must use ROWID
    function createTheme(q,s){
    var t = "<themes><theme name='MY_JDBC_THEME' >" +
    "<jdbc_query asis='true' key_column='*rowid*' spatial_column='geom' jdbc_srid='40998' " +
    "render_style='"+s+"' datasource='sovzond'>" +
    q +
    "</jdbc_query>" +
    "</theme></themes>";
    return t;
    }

  • Theme based FOI

    Is it possible to get the theme name from a FOI when it is clicked.
    I am adding a number of themebased layers to my map.
    Each layer has a mouse click event listener so that can use displayInfoWindow and show more details about the FOI from the database.
    in order to do this I need to get the layer the FOI belongs to so that I can create the correct query.
    Thanks in advance
    Ian.

    Do all the themes share the same click event listener function?
    1) If they don't, then you know which listener function is attached to which theme. As shown below, it's easy to add code in the listener function to tell which theme it belongs to.
    theme1.attachEventListener(MVEvent.MOUSE_CLICK, listener1) ;
    theme2.attachEventListener(MVEvent.MOUSE_CLICK, listener2) ;
    function listener1(...)
    var theme = "theme1" ;
    function listener1(...)
    var theme = "theme2" ;
    2) If the themes share the same listener function, then for every theme, you can create a new listener function that invokes the original listener function. As the result, the themes no longer share the same listener and we're talking about scenario 1) again.

  • Refreshing predefined FOI in 11g

    I am working on Mapviewer 11g on Jdeveloper 11g using ADF. 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

    Hello!
    And why you create new MVMapView ?
    (mapview = new MVMapView(document.getElementById("map"), baseURL);)
    If you use dvt:map the variable "map" alredy is in javascript page scope.
    This is AdfDhtmlGeoMap object.
    This code find the current map instance:
    if (map) {
    var mapview = map.getMVMapView();
    You may use Firebug in FF to check this.
    If you use dvt:map jsp page contains _AdfDhtmlGeoMap-SHEPHERD-PS1-9296.js.
    It includes AdfDhtmlGeoMap prototype and other mapviewer object such MVMapView, MVSdoGeometry, MVMenu etc.

  • ADF 11g - Refreshing adf:Table using af:poll and ValueExpressions

    Hi,
    I am trying refresh an ADF Read-only table with the af:poll component.
    I could see the System.out message in console and Browser activity (refreshing) because of af:poll method.
    But, the values are not getting updated until I refresh the page manually and removing the "?_adf.ctrl-state=1228194074_3" part from the Browser URL.
    Please find the code which I am using:
    System.out.println("Updating table");
    FacesContext fctx = FacesContext.getCurrentInstance();
    *ValueBinding dcb = fctx.getApplication().createValueBinding("#{bindings}");*
    DCBindingContainer bindings = (DCBindingContainer)dcb.getValue(fctx);
    DCIteratorBinding dciter =bindings.findIteratorBinding("DepartmentsIterator");
    Key current_row_key = dciter.getCurrentRow().getKey();
    dciter.executeQuery();
    dciter.setCurrentRowWithKey(current_row_key.toStringFormat(true));
    Also, I could see createValueBinding / ValueBinding is deprecated and replaced by ValueExpression.
    Is this causing any issues or is there any working sample of the same in ADF 11g.
    thanks & regards,
    S.Vasanth Kumar.
    JDev Studio Edition Version 11.1.1.0.1
    Build JDEVADF_MAIN.BOXER_GENERIC_081203.1854.5188
    Edited by: vasanth.s.kumar on May 6, 2009 10:06 PM

    Thank you for the help.
    But, I am getting NullPointerException after implementing the following code.
    RequestContext.getCurrentInstance().addPartialTarget(this.getTable1());
    RequestContext.getCurrentInstance().addPartialTarget(this.getTable2());
    +"java.lang.NullPointerException+
    +For more information, please see the server's error log for+
    +an entry beginning with: Server Exception during PPR, #4"+
    Please find the complete stack trace attached.
    Inside EmployeesBean
    Updating table
    May 6, 2009 10:34:05 PM oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator handleError
    SEVERE: Server Exception during PPR, #1
    javax.el.ELException: java.lang.NullPointerException
         at com.sun.el.parser.AstValue.invoke(AstValue.java:161)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1264)
         at org.apache.myfaces.trinidad.component.UIXPoll.broadcast(UIXPoll.java:98)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:458)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:763)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:640)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:275)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:175)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:181)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:279)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:239)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:196)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:139)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:102)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:65)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:149)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.NullPointerException
         at org.apache.myfaces.trinidadinternal.context.RequestContextImpl._getNearestPPRTarget(RequestContextImpl.java:770)
         at org.apache.myfaces.trinidadinternal.context.RequestContextImpl.addPartialTarget(RequestContextImpl.java:487)
         at nl.whitehorses.coherence.view.backing.EmployeesBean.refreshTable(EmployeesBean.java:105)
         at nl.whitehorses.coherence.view.backing.EmployeesBean.onPoll(EmployeesBean.java:110)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
         ... 38 more
    thanks & regards,
    S.Vasanth Kumar.

  • DBMS based custom login module for ADF 11g on Web Logic Server (10.3.1.0)

    We have the requirement of creating a login page, wherein the authentication is performed against users records stored in a specific table in Oracle Database. The ADF 11g developer guide does not provide any example to accomplish the same. Though there are numerous examples of achieving the same using OC4J, but there is none available to achieve this on Web Logic Server. Do we have any documentation or information available on this?

    User,
    Have a search on the forum or check the WLS documentation. WLS has built-in authenticators for this that you can likely use.
    John

  • Migration of  ADF 10g application to ADF 11g(Portlet Customization Error)

    Hi,
    Currently we are doing a migration of ADF/Webcenter 10g appication to 11g(11.1.1.6) and in the current 10g application portlet is used which contains the file based content and can be customized using a specific role say(admin).
    We have almost done the migration using the Jdeveloper 11.1.1.6 and most of the pages along with the portlet content are coming similar to the 10g look and feel but whenever we want to do portlet customization using the specific role we are getting the below exception. The content is file based system and the details of the versions are as below
    10g Environment:
    OC4J version. Oracle Containers for J2EE 10g (10.1.3.5.0)
    JDK version- java version "1.5.0_06"
    Webcenter and it’s version : Webcenter 10g(10.1.3.5.0)
    ADF version. Oracle ADF 10g
    Jdeveloper 10.1.3.3.0
    11g Environment: Currently I am using Jdeveloper 11.1.1.6 with Integrated weblogic server
    webcenter extension used: oracle.webcenter.framework_bundle/oracle.webcenter.customization_bundle
    Error which I am getting during portlet customization:
    [2013-02-20T14:47:42.162+05:30] [DefaultServer] [ERROR] [] [oracle.portlet.binding] [tid: [ACTIVE].ExecuteThread: '14' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: portaladmin] [ecid: 39e706a46ad531be:31f43ddc:13cf6ad5231:-8000-0000000000000386,0] [APP:TEST_DEV#V2.0] An error has occured for Portlet Binding portlet3.[[
    java.lang.NullPointerException
    at oracle.adfinternal.model.portlet.binding.PortletModelImpl.getRequireIframe(PortletModelImpl.java:907)
    at oracle.adfinternal.model.portlet.binding.ActivityPortletModelWrapper.getRequireIframe(ActivityPortletModelWrapper.java:71)
    at oracle.adf.model.portlet.binding.PortletBinding.prepareRenderPhase(PortletBinding.java:455)
    at oracle.adf.model.portlet.binding.PortletBinding._refresh(PortletBinding.java:377)
    at oracle.adf.model.portlet.binding.PortletBinding.refresh(PortletBinding.java:969)
    at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3273)
    at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2876)
    at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareRender(PageLifecycleImpl.java:561)
    at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareRender(FacesPageLifecycle.java:82)
    at oracle.adf.controller.v2.lifecycle.Lifecycle$9.execute(Lifecycle.java:224)
    at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:197)
    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.access$1000(ADFPhaseListener.java:23)
    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$5.before(ADFPhaseListener.java:402)
    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.beforePhase(ADFPhaseListener.java:64)
    at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.beforePhase(ADFLifecyclePhaseListener.java:44)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:352)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:222)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.portlet.client.adapter.adf.ADFPortletFilter.doFilter(ADFPortletFilter.java:32)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.webcenter.framework.events.dispatcher.EventDispatcherFilter.doFilter(EventDispatcherFilter.java:44)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.wcps.client.PersonalizationFilter.doFilter(PersonalizationFilter.java:75)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.webcenter.content.integration.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:168)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.webcenter.lifecycle.filter.LifecycleLockFilter.doFilter(LifecycleLockFilter.java:151)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Any hellp or suggestion will be helpful for me to resolve this issue.
    Thanks in Advance
    Chetan

    Hi,
    given its a WebCenter question, you want to post it to the Webcenter forum: WebCenter Portal
    Frank

  • Urgent help needed in achieving below ADF 11g flow

    Hi, I am using JDEV 11.1.1.2.0 with ADF 11g.
    I have a below requirement.
    Say in below eg. I am getting col1, col2, col3 from a single tbl in screen 1. On clicking col1's row I should go to screen 2
    Screen1
    Col1     Col2     Col3
    Nm1     Code1     10
    Nm1     Code1     30
    Nm2     Code1     30
    Nm1     Code2     20
    Here in screen 2 I will have a calculated field as shown below. Besides this In the same screen I will have a list showing distinct of col2 for the value cliked in col1. So here in this eg. it will be for Nm1 I will have 2 values in the list Code1 and Code2.      
    Screen 2          
    Col1     Nm1     
    Col2     Code1     
    Tot     *40*     
    Col2     Select     
    Code1     X     
    Code2          
    Now here if user selects the radio of 'Code2' Then my above data should change as below
    Col1     Nm1     
    Col2     Code2     
    Tot     *20*
    Col2     Select     
    Code1          
    Code2     X
    I do this by passing the col1 value as a param to a query VO.
    I have tried this using different VOs like a VO with query, VO with user defined column... nothing helps.
    I am just unable to reach to screen 2. I am either getting invalid column OR missing in out parameters.
    Can any one help on how and what should be done? This is not even master-details stuff. master-details seems easier than this.
    Urgent help is needed.
    Thanks in advance

    I have resolved your problem and build a sample application.
    You have to create 2 views and use master detail.
    First view will be a simple view for the page 1 and second view will be readonly using group by. Then create a view link between them.
    Let me know your email id. I will email you the sample application.
    SID
    Edited by: manieshsailoz on Apr 26, 2010 5:12 PM

Maybe you are looking for

  • Onboard Mac Lan no longer works after 1.9 update!!!

    I was using bios v1.8 and both my Mac Lan and my Giga Lan were working perfectly fine. Now that i updated to v1.9 my Mac Lan no longer works but my Giga is fine!!!  My Mac Lan still gets an ip address from my router, but i cannot ping the router nor

  • Enter a valid value error

    Hi, Can anyone pls. help us figure out the problem with the newly created business partner master records?  We get an "Enter a valid value" error message when the agent (user) tries to confirm the business partner in CIC.  The user got the same error

  • Valuation Type Check in STOs

    In STO creation in ME27 Transaction, the field Valuation Type is mandatory.In availability check, we could able to find the available stock at issuing plant at quantity level. But our requirement is how to find the issuing plant stock at each Valuati

  • Sending PDF file in presentation layer as a attachment to Email

    Hi, I have a PDF file in my Presentation layer, I want to send it as a attachment to Email. Is there any Function Module or sample code to it. Regards, Adithya M.

  • REALLY Mysterious Gray Lines on Every Export (pictures)

    I'm working on a video that contains a white background, and the client's background is also pure white. Every export I give him has a gray vertical line showing on the left and right borders of the video. We've narrowed down every possible cause, an