Query multiple SDO_PC objects

Hi,
I have a collection of SDO_PC objects in my BASE table (with each SDO_PC object having the appropriate BLKTAB# associated with it).
I know I can use a query such as:
select sdo_pc_pkg.to_geometry(
a.points, -- point LOB
a.num_points, -- # of points in the LOB
3, -- total dimensionality
4269 -- SRID
) from blktab10 a where blk_id<3;
to select a geometry from 1 PC object but I would like to be able to query all point clouds I have and return a geometry (or a collection of geometries) based on my query. Ex: Select sdo_pc_pkg.to_geometry (...) from base where id < 10.
I would then expand this idea and have views of the BASE table to partition data and then I would like to query each view as if it were 1 blktable to do something like: Return geometry for all points in (PARTIAL_VIEW_OF_BASE) that are within 5 miles of some geometry.
Is there an easy way (or any way) to do this?
Thanks a lot,
Dan

The sdo_pc_pkg.to_geometry function is not built for querying against a bunch of point clouds.
If you want to combine the results from different blocks into one geometry object, you can do that by using an
aggregate function on the geometries returned by each call to to_geometry() function. But this can get
very expensive.
You can use the spatial index on the blk table to find all the blocks which are within 5 miles of some geometry
and then only select those blocks to call the to_geoemtry function.
siva

Similar Messages

  • Querying for a script insert multiple selected objects...

    Is there a script or plugin which insert multiple selected objects in one new text frame with one click?
    And is there a script or plugin which extract the content of anchored text frame out it's frame and replace it with it's frame. and extract selected text and insert it inside a new anchored text frame in it's place? (like convert text to table - convert table to text, but instead table we use text frame)

    Hi,
    Using OMB scripting to set attribute properties in a data mapping sort of defeats the purpose of utilizing a graphical user interface to define and set properties for a data mapping? Surely the GUI data mapping tool was created to get away from writing scripts and scripting would also require that you know the name of the data mapping, table operator and the set of attribute names for which you have to write one line of script to set each property value, i.e. 90 lines to set 90 attribute values.
    Cheers,
    Phil

  • Best practice for linking fields from multiple entity objects

    I am currently transitioning from PHP to ADF. I'm looking for the best practice for linking data from multiple entity objects.
    Example:
    EO 'REQUESTS' has fields: req_id, name, dt, his_stat_id, her_stat_id
    EO 'STATUSES' has fields: stat_id, short_txt_descr
    'REQUESTS' is linked to EO 'STATUSES' on: STATUSES.stat_id = REQUESTS.his_status_id
    'REQUESTS' is also linked to EO 'STATUSES' on: STATUSES.stat_id = REQUESTS.her_status_id
    REQUESTS.his_status_id is independent of REQUESTS.her_status_id
    When I create a VO for REQUESTS, I want to display: REQUESTS.name, REQUESTS.dt, STATUSES.short_txt_descr (for his_stat_id), STATUS.short_txt_descr (for her_stat_id)
    What is the best practice for accomplishing this? It appears I could do it a few different ways:
    1. Create the REQUESTS VO with a LOV for his_stat_id and her_stat_id
    2. Create the REQUESTS VO with the join to STATUSES performed within the query for the VO. This would require joining on the STATUSES EO twice (his_stat_id, her_stat_id)
    3. I just started reading about View Links - would that somehow do what I'm looking for?
    I also need to be able to update his_status_id and her_status_id through the by selecting a STATUSES.short_txt_descr from a dropdown.
    Any suggestions on how to approach such a stupidly simple task?
    Using jDeveloper 11.1.2.2.0 if that makes a difference in the solution.
    Thanks ahead of time,
    CJ

    CJ,
    I vote for solution 1 as it's just your use case. As you said you what to update the his_status_id and her_status_id through the by selecting a STATUSES.short_txt_descr by a drop down. This is exactly the LOV solution.
    ViewLinks are used fro master detail navigation (which you don't do here) and Joining the data make it difficult to update (and you still need a LOV for the drop down box.
    Timo

  • Multiple Consumer Object per Streaming Connection in AIR2.0

    HI,
    we require streaming server setup for our project.
    We are trying to minimize number of connections to the streaming server.
    My query is "If we have multiple Consumer object instance with same channel and destination, will all the Consumer instances share the same streaming connection or for every Consumer object instance a new Connection is created?"
    Thanks in advacne for your support.
    Regards,
    Shailendra

    Thanks doghouseJim, appreicate
    I tried to substitute onStatus function with your code (metadata) and as a result I don't have reported  error anymore.
    However, for strange reason, once the flash goes into a html document the video is not loaded...
    any idea?
    Cheers

  • Multiple Consumer object per Streaming Connection in AIR

    hi,
    We require streaming server setup for our project.
    We are trying to minimize the active connections to the server.
    My query is "If we are using multiple Consumer object instances with same channel and destination, will we have a single connection to the server shared by all Consumer instances or we'll be having different connection for each Consumer instance".
    Thanks in advance for your support
    Regards,
    Shailendra Sirohi

    Excellent answer.  It dovetails with the approach I've started to take here.  I'm using something called NetConnectionClient to catch server calls.  Does your NCMgr class extend NetConnection or EventDispatcher?
    Mine extends EventDispatcher and has a method like the following.  Just stuffs the message from the server into an object first before dispatching an event containing it:
            public function receiveChatMessage(msg:String):void
                var tempObj:Object = new Object();
                tempObj.msg = msg;
                dispatchEvent(new NetConnectionClientEvent("onReceiveChatMsg", tempObj));
    All cool there.  This works up to this point.
    I'm hazy after that though.  Who should listen for and handle the event?  I'd like my chat component to listen for and handle it directly, like in your scenario.  But my chat component is in a separate mxml file imported into the main app file.  I'm hazy on how to have it grab what it needs.
    I currently have the "application" listening for and handling the event.  The handler method just relays the call by calling a method on the chat component instance, like this:
    chat.receiveMessage(tempObj); //tempObj contains the message
    I think that's too many relays of the same call, from the NetConnectionClient class, to the main application file, down to the custom chat component.  I'd like to cut out a leg of that trip.
    Should I have the chat component instance itself be listening, like this?
                chat.addEventListener("onReceiveChatMessage", chat.receiveChatMsg);
    Is that a proper relay of the dispatched event to the target component.  The syntax doesn't seem proper to me.  I feel like something's wrong with the design of the last leg of the relay here.

  • Error to uncheck  allow multiple resource object in design console

    Hi
    I need to uncheck the Allow multiple resource object in the Design Console, but operation generates an error and the change is not applied.
    DB read: select distinct ugp.ugp_key, ugp.ugp_name, ugp.ugp_display_name from ugp ugp, gpg gpg where ugp.ugp_key = gpg.ugp_key and ( gpg.gpg_ugp_key in (23) )
    [2013-03-21T06:24:27.516-07:00] [oim_server1] [NOTIFICATION] [] [XELLERATE.PERFORMANCE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] Query: DB: 0, LOAD: 0, TOTAL: 0
    [2013-03-21T06:24:27.516-07:00] [oim_server1] [NOTIFICATION] [] [XELLERATE.DATABASE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] DB read: SELECT count(*) as count FROM oug WHERE obj_key=7 and ( ugp_key in (1,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,21,22,23) ) and oug_write='1'
    [2013-03-21T06:24:27.517-07:00] [oim_server1] [NOTIFICATION] [] [XELLERATE.PERFORMANCE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] Query: DB: 0, LOAD: 0, TOTAL: 0
    [2013-03-21T06:24:27.517-07:00] [oim_server1] [NOTIFICATION] [] [XELLERATE.DATABASE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] DB read: select evt.evt_key, evt.evt_name, evt.evt_package from dob dob, evt evt, dvt dvt where dob.dob_key=dvt.dob_key and dvt.evt_key=evt.evt_key and (dob.dob_name='com.thortech.xl.dataobj.tcOBJ' or dob.dob_name='com.thortech.xl.dataobj.tcTableDataObj' or dob.dob_name='com.thortech.xl.dataobj.tcDataObj' ) and dvt.dvt_pre_update_sequence>0 order by dvt.dvt_pre_update_sequence
    [2013-03-21T06:24:27.518-07:00] [oim_server1] [NOTIFICATION] [] [XELLERATE.PERFORMANCE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] Query: DB: 1, LOAD: 0, TOTAL: 1
    [2013-03-21T06:24:27.518-07:00] [oim_server1] [ERROR] [] [XELLERATE.SERVER] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] Class/Method: tcDataObj/save Error :Data Update Failed
    [2013-03-21T06:24:27.518-07:00] [oim_server1] [NOTIFICATION] [] [XELLERATE.DATABASE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] DB read: select err_key, err_code, err_desc, err_rowver, err_remedy, err_count, err_last_occurance, err_action, err_help_url, err_severity from err where err_code='DOBJ.UPDATE_FAILED'
    [2013-03-21T06:24:27.519-07:00] [oim_server1] [NOTIFICATION] [] [XELLERATE.PERFORMANCE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] Query: DB: 1, LOAD: 0, TOTAL: 1
    [2013-03-21T06:24:27.519-07:00] [oim_server1] [ERROR] [] [XELLERATE.DATABASE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] Class/Method: tcDataBase/rollbackTransaction encounter some problems: Rollback Executed From[[
    java.lang.Exception: Rollback Executed From
    at com.thortech.xl.dataaccess.tcDataBase.rollbackTransaction(tcDataBase.java:578)
    at com.thortech.xl.dataobj.tcDataObj.rollback(tcDataObj.java:904)
    at com.thortech.xl.dataobj.tcDataObj.doRollback(tcDataObj.java:867)
    at com.thortech.xl.dataobj.tcDataObj.save(tcDataObj.java:538)
    at com.thortech.xl.dataobj.tcTableDataObj.save(tcTableDataObj.java:2906)

    After applying BP06, Allow Multiple Option Cannot Be Changed From True To False [ID 1556385.1]

  • Error in uncheck  allow multiple resource object in design console

    Hi
    I need to uncheck the Allow multiple resource object in the Design Console, but operation generates an error and the change is not applied.
    OIM Version will be 11gR1.
    DB read: select distinct ugp.ugp_key, ugp.ugp_name, ugp.ugp_display_name from ugp ugp, gpg gpg where ugp.ugp_key = gpg.ugp_key and ( gpg.gpg_ugp_key in (23) )
    [2013-03-21T06:24:27.516-07:00] [oim_server1] [NOTIFICATION] [] [XELLERATE.PERFORMANCE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] Query: DB: 0, LOAD: 0, TOTAL: 0
    [2013-03-21T06:24:27.516-07:00] [oim_server1] [NOTIFICATION] [] [XELLERATE.DATABASE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] DB read: SELECT count(*) as count FROM oug WHERE obj_key=7 and ( ugp_key in (1,5,6,7,8,9,10,11,12,13,14,15,16,17,18,20,21,22,23) ) and oug_write='1'
    [2013-03-21T06:24:27.517-07:00] [oim_server1] [NOTIFICATION] [] [XELLERATE.PERFORMANCE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] Query: DB: 0, LOAD: 0, TOTAL: 0
    [2013-03-21T06:24:27.517-07:00] [oim_server1] [NOTIFICATION] [] [XELLERATE.DATABASE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] DB read: select evt.evt_key, evt.evt_name, evt.evt_package from dob dob, evt evt, dvt dvt where dob.dob_key=dvt.dob_key and dvt.evt_key=evt.evt_key and (dob.dob_name='com.thortech.xl.dataobj.tcOBJ' or dob.dob_name='com.thortech.xl.dataobj.tcTableDataObj' or dob.dob_name='com.thortech.xl.dataobj.tcDataObj' ) and dvt.dvt_pre_update_sequence>0 order by dvt.dvt_pre_update_sequence
    [2013-03-21T06:24:27.518-07:00] [oim_server1] [NOTIFICATION] [] [XELLERATE.PERFORMANCE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] Query: DB: 1, LOAD: 0, TOTAL: 1
    [2013-03-21T06:24:27.518-07:00] [oim_server1] [ERROR] [] [XELLERATE.SERVER] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] Class/Method: tcDataObj/save Error :Data Update Failed
    [2013-03-21T06:24:27.518-07:00] [oim_server1] [NOTIFICATION] [] [XELLERATE.DATABASE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] DB read: select err_key, err_code, err_desc, err_rowver, err_remedy, err_count, err_last_occurance, err_action, err_help_url, err_severity from err where err_code='DOBJ.UPDATE_FAILED'
    [2013-03-21T06:24:27.519-07:00] [oim_server1] [NOTIFICATION] [] [XELLERATE.PERFORMANCE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] Query: DB: 1, LOAD: 0, TOTAL: 1
    [2013-03-21T06:24:27.519-07:00] [oim_server1] [ERROR] [] [XELLERATE.DATABASE] [tid: [ACTIVE].ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 91039ee4d5030ad9:6a4e2a3a:13d88717e95:-8000-0000000000005521,0] [APP: oim#11.1.1.3.0] Class/Method: tcDataBase/rollbackTransaction encounter some problems: Rollback Executed From[[
    java.lang.Exception: Rollback Executed From
    at com.thortech.xl.dataaccess.tcDataBase.rollbackTransaction(tcDataBase.java:578)
    at com.thortech.xl.dataobj.tcDataObj.rollback(tcDataObj.java:904)
    at com.thortech.xl.dataobj.tcDataObj.doRollback(tcDataObj.java:867)
    at com.thortech.xl.dataobj.tcDataObj.save(tcDataObj.java:538)
    at com.thortech.xl.dataobj.tcTableDataObj.save(tcTableDataObj.java:2906)

    After applying BP06, Allow Multiple Option Cannot Be Changed From True To False [ID 1556385.1]

  • Multiple SDO_GEOMETRY Objects of type CIRCLE with the same LOCATION

    Can i have a single MERCHANT LOCATION hold multiple SDO_GEOMETRY Objects of type CIRCLE ?
    For example the use case , i need to have a SDO_GEOMETRY TYPE CIRCLE circle defined for a single MERCHANT LOCATION with a 2 Mile radius as well as a 5 Mile Radius.
    is that even possible with Spatial? I know i can add a single geometry for a merchant at once, but i want to give the user the flexibility of choosing the type of geometry for the merchant based on set of rules. hence want to check if this can be done or not?
    Thanks in Advance

    Person with no name,
    Not clear exactly what you need to do here.
    You can store two circles with the same centre in a single sdo_geometry but only if you use a polygon with the circle with the greatest radius being the outer ring and the smaller radius the inner ring.
    I have a utility in my free COGO plsql package that allows me to create circles for PLANAR data pretty easily as follows:
    -- Function...
    Create
        function CreateCircle(dCentreX in Number,
                              dCentreY in Number,
                              dRadius in Number)
        return mDSYS.sdo_geometry
        IS
          dPnt1X NUMBER;
          dPnt1Y NUMBER;
          dPnt2X NUMBER;
          dPnt2Y NUMBER;
          dPnt3X NUMBER;
          dPnt3Y NUMBER;
        BEGIN
          -- Compute three points on the circle's circumference
          dPnt1X := dCentreX - dRadius;
          dPnt1Y := dCentreY;
          dPnt2X := dCentreX + dRadius;
          dPnt2Y := dCentreY;
          dPnt3X := dCentreX;
          dPnt3Y := dCentreY + dRadius;
          RETURN MDSYS.SDO_GEOMETRY(2003,NULL,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,4),MDSYS.SDO_ORDINATE_ARRAY(dPnt1X, dPnt1Y, dPnt2X, dPnt2Y, dPnt3X, dPnt3Y));
        End;
    select sdo_geometry(f.geom.sdo_gtype,
                        f.geom.sdo_srid,
                        sdo_point_type(f.centreX,f.centreY,null),
                        f.geom.sdo_elem_info,
                        f.geom.sdo_ordinates) as mcircle
      from (select 10 as centreX,
                   10 as centreY,
                   sdo_geom.sdo_xor(cogo.CreateCircle(10,10,2),
                                    cogo.CreateCircle(10,10,5),
                                    0.005) as geom
              from dual ) f;
    -- Results
    MCIRCLE
    SDO_GEOMETRY(2003,NULL,SDO_POINT_TYPE(10.0,10.0,NULL),SDO_ELEM_INFO_ARRAY(1,1003,2, 11,2003,2),SDO_ORDINATE_ARRAY(10.0,15.0, 5.0,10.0, 10.0,5.0, 15.0,10.0, 10.0,15.0, 10.0,8.0, 8.0,10.0, 10.0,12.0, 12.0,10.0, 10.0,8.0))(This geometry looks like a donut.)
    Note that I have included the centre coordinates in the sdo_point of the result sdo_geometry.
    To extract each ring:
    -- We need a function to return number of rings in a polygon as sdo_util.getNumElems() does not
    Create
      Function GetNumRings( p_geometry  in mdsys.sdo_geometry,
                            p_ring_type in integer /* 0 = ALL; 1 = OUTER; 2 = INNER */ )
        Return Number
      Is
        v_elements   pls_integer := 0;
        v_ring_count pls_integer := 0;
        v_etype      pls_integer;
        v_ring_type  pls_integer := case when ( p_ring_type is null OR
                                                p_ring_type not in (0,1,2) )
                                         Then 0
                                         Else p_ring_type
                                     End;
      Begin
        If ( p_geometry is not null ) Then
          v_elements := ( ( p_geometry.sdo_elem_info.COUNT / 3 ) - 1 );
          <<element_extraction>>
          FOR v_i IN 0 .. v_elements LOOP
            v_etype := p_geometry.sdo_elem_info(v_i * 3 + 2);
            If ( ( v_etype in (1003,1005,2003,2005) and 0 = v_ring_type )
              OR ( v_etype in (1003,1005)           and 1 = v_ring_type )
              OR ( v_etype in (2003,2005)           and 2 = v_ring_type ) ) Then
               v_ring_count := v_ring_count + 1;
            End If;
          END LOOP element_extraction;
        End If;
        Return v_ring_count;
      End GetNumRings;
    -- Query
    with circles as (
      SELECT SDO_GEOMETRY(2003,NULL,SDO_POINT_TYPE(10.0,10.0,NULL),SDO_ELEM_INFO_ARRAY(1,1003,2, 11,2003,2),SDO_ORDINATE_ARRAY(10.0,15.0, 5.0,10.0, 10.0,5.0, 15.0,10.0, 10.0,15.0, 10.0,8.0, 8.0,10.0, 10.0,12.0, 12.0,10.0, 10.0,8.0))
             as geom
        FROM dual
    select sdo_util.extract(a.geom,1,e.ringNo) as circle
      from circles a,
           (select level as ringNo from circles a connect by level <= GETNUMRINGS(a.geom)) e;
    -- Result
    CIRCLE
    SDO_GEOMETRY(2003,NULL,SDO_POINT_TYPE(10.0,10.0,NULL),SDO_ELEM_INFO_ARRAY(1,1003,2),SDO_ORDINATE_ARRAY(10.0,15.0, 5.0,10.0, 10.0,5.0, 15.0,10.0, 10.0,15.0))
    SDO_GEOMETRY(2003,NULL,SDO_POINT_TYPE(10.0,10.0,NULL),SDO_ELEM_INFO_ARRAY(1,1003,2),SDO_ORDINATE_ARRAY(10.0,8.0, 12.0,10.0, 10.0,12.0, 8.0,10.0, 10.0,8.0))Not sure if this helps you at all....
    regards
    Simon

  • Is it possible to  add multiples dimension objects in Webi Ranking ?

    As per the project requirement we need to convert custom sqls to reporting sql in webi 3.1 sp5 .
    Is it possible to  add multiple dimension objects while applying ranking (Webi query panel ).
    Or is there any other way to achieve this feature in BO ?
    Regards,
    Pranay

    Hi ,
    There is a way if you want to apply ranking within a ranking . Below are the steps:
    First on the outer side we can use the Rank feature which is available directly
    Then use the Rank Function (=rank ()) and reset your dimension accordingly .
    This kind of Ranking is possible.
    Regards,
    Rahul

  • POWL accessing data from multiple tables/objects

    Hello,
    I have a query on the POWL applications.
    If the powl application has to access data from multiple tables/objects, then the solution would be creating a data structure of those tables/objects and referring to that structure in GET_OBJECT_DEF methods.
    Is there any other soln? or I am right here?
    The queries which are saved for a particular user are transportable? if not, how can they be made transportable?
    Thanks & regards,
    Ravish

    you are right, you can do in get_objects method.
    POWL_QUERIES are transportab;e, you can save them in POWL_QUERY transaction.
    Best regards,
    Rohit
    http://wiki.sdn.sap.com/wiki/display/WDABAP/POWL

  • Using  Query Multiple to XML

    Hi,
    I am trying to use the service Query Multiple to XML which Queries the database using a SQL statement and returns the result set as XML data.
    I configure and test (using test functionality in this service to see what is gonig on) this service in my workflow. As the result of this test, I saw that this wuery returns a piece of data in xml format like this :
            Özlem Aksel
            Cihan Aydın
            Fatih Büyüktaş
            Melik Akyıldız
            Aydın Türkdoğan
    In Livecycle es samples, there is a sample about multiple query to xml,
    but this sample just show that this service returns XML element. But, does not show, how to use it in forms.
    My aim is, populating a dropdown list in my form, with the data returned by this query. Can anyone tell me how can use this data to populate my dropdown list?
    Thanks in advance
    Best regards
    Cihan Aydın

    Hi, <br /><br />I found a solution for my problem.<br />I try to explain it below :<br /><br />In order to get user names and fill them to a combo,I use a simple form which consist of only a combo of user names with the following <br />xml schema :<br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"><br />    <xsd:annotation><br />        <xsd:documentation xml:lang="en"><br />           MultipleSql deneme<br />        </xsd:documentation><br />    </xsd:annotation><br />    <xsd:element name="UserListApp" type="userlistFormType"/><br />   <br />    <xsd:complexType name="userlistFormType"><br />        <xsd:sequence><br />            <xsd:element name="userList"    type="userlistType"/><br />            <xsd:element name="tempdata"    type="xsd:string"  /><br />           </xsd:sequence><br />    </xsd:complexType><br />    <br />    <xsd:complexType name="userlistType" ><br />        <xsd:sequence><br />            <xsd:element name="users"    type="user"  minOccurs="1" maxOccurs="unbounded" /><br />        </xsd:sequence><br />    </xsd:complexType><br />   <br />    <br />    <xsd:complexType name="user" ><br />        <xsd:sequence><br />            <xsd:element name="name"    type="xsd:string"  /><br />        </xsd:sequence><br />    </xsd:complexType><br /></xsd:schema><br /><br />Then, in process design, I put an query to xml service with the following configuration :<br /><br />SQL stalement :<br />SELECT commonname from  edcprincipalentity where organization=?<br /><br />XML information :<br /><br />root Element name : userList<br />repeating element names : users<br /><br />XML output :<br /><br />define a process variable of XML type (im my ex : xml_output)<br />which returns :<br /><br /><userList><br />    <users><br />        <name type="VARCHAR">Fatih Büyükta&#351;</name><br />    </users><br />    <users><br />        <name type="VARCHAR">Ayd&#305;n Türkdo&#287;an</name><br />    </users><br />    <users><br />        <name type="VARCHAR">Özlem Aksel</name><br />    </users><br />      <users><br />        <name type="VARCHAR">Cihan Ayd&#305;n</name><br />    </users><br /></userList><br /><br />Then using a set value service, put this piesce of xml to  form data<br /><br />/process_data/<FORM VARIBLE NAME>/object/data/xdp/datasets/data/UserListApp<br />=<br />/process_data/xml_output<br /><br />Then, in form,<br /><br />add this script to combo box's initialize event :<br /><br />var oUsersNode = xfa.data.UserListApp.userList;<br />var oUsersNodeList = oUsersNode.resolveNodes("users[*].name");<br /><br />for (var i = 0; i < oUsersNodeList.length; i++)<br />{<br />    this.addItem(oUsersNodeList.item(i).value);<br /><br />}<br /><br />If you send your e-mail I can send you the complete example.<br /><br />Best regards<br /><br />Cihan

  • Jdbc: multiple Statement objects

    When or why would I need multiple Statement objects from a single Connection? Is it usual to call "stmt.close()" at the same time you close the Connection, or is there a reason to have multiple Statement instances for a single Connection?

    If you want to have multiple result sets to use at the
    same time, you need multiple Statement objects.
    Otherwise, calling another query on the statement
    after you get a ResultSet back will close the first
    ResultSet. Not sure if that's dependent on the DB
    driver implementation or not, but that's what happens
    in most I've seen. Closing the connection should
    close the statements that are created by it, though.You can only have one active result set per statement at a time.
    All drivers allow you to have more than one statement per connection. Some drivers allow you to have more than one active statement (a statement with an active result set) per connection.

  • New technique to place multiple anchored objects in InDesign story

    Hello,
    For a while I have been trying to figure out how to insert multiple anchored objects into an Indesign story. As far as I can tell, you cannot copy multiple objects that have already been placed in a document (such as a multi-page pdf) into an InDesign story, but must copy and paste them one-by-one into the story. This is a problem for a project I am working on where I want to have a large number of 340x52 pt pdfs to flow throughout a document in a master text frame interspersed with text.
    I have now found a solution for this issue that I thought I would share in case it would be helpful for anyone. It utilizes Automator actions for Mac OS X and Microsoft Word 2011 [2008 may work also, but I don't have a copy of that to test]; I am not good with scripting but perhaps similar solutions could be found for other systems and programs.
    1. If you want to place a multipage pdf within a text frame, first it into individual files for each page (with Acrobat Pro or pdftk or something similiar).
    2. Create an Automator service or program with the action "Create New Word Document". You can also use another automator action to save the document, or save it manually (to change the filename). In the finder, select the items you want, then run the service or drag them into the Automator program you have created.
    3. Place the word document into your InDesign story. Your items will now be anchored objects ordered in your text frame as they were in the finder.
    Please let me know if this is helpful or if anyone has suggestions for doing this process is a more efficient way. I am not sure, but it may be the case that this approach would only work on Macs, as I gather from this thread.

    I might note that I am using InDesign CS 5, and importing from a document stored in docx format.

  • Query multiple rows

    Hi, need some help on XML and XSD.
    say I have a table in the database with 3 columns: a, b, c
    on my XDP form, I have a table, like a spreadsheet, with 3 columns too: x, y, z
    and it has 10 rows.
    I want to pre-fill the form with 10 rows of data,
    so, in my Process's action profile,
    I use JDBC's query multiple rows to get the first 10 records of my database table.
    how do I put these 10 rows of data into the table on my form?
    TIA for helping me.
    Happy New Year!

    Step1: Use SQL Query Multiple results as XML activity
    Step2: Define the output of SQL activity to look similar to
    <table>
        <row>row1 value</row>
        <row>row2 value</row>
        <row>row3 value</row>
        <row>row4 value</row>
        <row>row5 value</row>
        <row>row6 value</row>
        <row>row7 value</row>
        <row>row8 value</row>
        <row>row9 value</row>
        <row>row10 value</row>
    </table>
    Step3: arrange your forms fields (Table and rows) in the same way as mentioned above.
    Nith

  • Delay when querying from CUBE_TABLE object, what is it?

    Hi Guys,
    We are using Oracle OLAP 11.2.0.2.0 with an 11g Cube, 7 Dimensions, Compressed and partitioned by Month.
    We have run into a performance issue when implementing OBIEE.
    The main issue we have is a delay while drilling on a hierarchy. Users have been waiting 7-12 seconds per drill on a hierarchy, and the query is only returning a few cells of data. We have managed to isolate this to slow performing queries on CUBE_TABLE.
    For example, the following query returns one cell of data:
    SELECT FINSTMNT_VIEW.BASE, FINSTMNT_VIEW.REPORT_TYPE, FINSTMNT_VIEW.COMPANY, FINSTMNT_VIEW.SCENARIO, FINSTMNT_VIEW.PRODUCT, FINSTMNT_VIEW.ACCOUNT, FINSTMNT_VIEW.SITE, FINSTMNT_VIEW.TIME
    FROM "SCHEMA1".FINSTMNT_VIEW FINSTMNT_VIEW
    WHERE
    FINSTMNT_VIEW.REPORT_TYPE IN ('MTD' )
    AND FINSTMNT_VIEW.COMPANY IN ('E01' )
    AND FINSTMNT_VIEW.SCENARIO IN ('ACTUAL' )
    AND FINSTMNT_VIEW.PRODUCT IN ('PT' )
    AND FINSTMNT_VIEW.ACCOUNT IN ('APBIT' )
    AND FINSTMNT_VIEW.SITE IN ('C010885' )
    AND FINSTMNT_VIEW.TIME IN ('JUN11' ) ;
    1 Row selected in 4.524 Seconds
    Note: FINSTMNT_VIEW is the automatically generated cube view.
    CREATE OR REPLACE FORCE VIEW "SCHEMA1"."FINSTMNT_VIEW" ("BASE","REPORT_TYPE", "COMPANY", "SCENARIO", "PRODUCT", "ACCOUNT", "SITE", "TIME")
    AS
    SELECT "BASE", "REPORT_TYPE", "COMPANY", "SCENARIO", "PRODUCT", "ACCOUNT", "SITE", "TIME"
    FROM TABLE(CUBE_TABLE('"SCHEMA1"."FINSTMNT"') ) ;
    If we increase the amount of data returned by adding to the query, it only increased the query time by .4 seconds
    SELECT FINSTMNT_VIEW.BASE, FINSTMNT_VIEW.REPORT_TYPE, FINSTMNT_VIEW.COMPANY, FINSTMNT_VIEW.SCENARIO, FINSTMNT_VIEW.PRODUCT, FINSTMNT_VIEW.ACCOUNT, FINSTMNT_VIEW.SITE, FINSTMNT_VIEW.TIME
    FROM "SCHEMA1".FINSTMNT_VIEW FINSTMNT_VIEW
    WHERE
    FINSTMNT_VIEW.REPORT_TYPE IN ('MTD' )
    AND FINSTMNT_VIEW.COMPANY IN ('E01' )
    AND FINSTMNT_VIEW.SCENARIO IN ('ACTUAL' )
    AND FINSTMNT_VIEW.PRODUCT IN ('PT' )
    AND FINSTMNT_VIEW.ACCOUNT IN ('APBIT' )
    AND FINSTMNT_VIEW.SITE IN ('C010885', 'C010886', 'C010891', 'C010892', 'C010887', 'C010888', 'C010897', 'C010893', 'C010890', 'C010894', 'C010896', 'C010899' )
    AND FINSTMNT_VIEW.TIME IN ('JUN11' ) ;
    12 rows selected - In 4.977 Seconds
    If we increase the data returned even more:
    SELECT FINSTMNT_VIEW.BASE, FINSTMNT_VIEW.REPORT_TYPE, FINSTMNT_VIEW.COMPANY, FINSTMNT_VIEW.SCENARIO, FINSTMNT_VIEW.PRODUCT, FINSTMNT_VIEW.ACCOUNT, FINSTMNT_VIEW.SITE, FINSTMNT_VIEW.TIME
    FROM "SCHEMA1".FINSTMNT_VIEW FINSTMNT_VIEW
    WHERE
    FINSTMNT_VIEW.REPORT_TYPE IN ('MTD' )
    AND FINSTMNT_VIEW.COMPANY IN ('ET', 'E01', 'E02', 'E03', 'E04' )
    AND FINSTMNT_VIEW.SCENARIO IN ('ACTUAL' )
    AND FINSTMNT_VIEW.PRODUCT IN ('PT', 'P00' )
    AND FINSTMNT_VIEW.ACCOUNT IN ('APBIT' )
    AND FINSTMNT_VIEW.SITE IN ('C010885', 'C010886', 'C010891', 'C010892', 'C010887', 'C010888', 'C010897', 'C010893', 'C010890', 'C010894', 'C010896', 'C010899' )
    AND FINSTMNT_VIEW.TIME IN ('JUN11', 'JUL11', 'AUG11', 'SEP11', 'OCT11', 'NOV11', 'DEC11', 'JAN12') ;
    118 rows selected - In 14.213 Seconds
    If we take the time for each query and divide by the number of rows, we can see that querying more data results in a much more efficient query:
    Time/Rows returned:
    1 Row - 4.524
    12 Rows - 0.4147
    118 Rows - 0.120449153
    It seems like there is an initial delay of approx 4 seconds when querying the CUBE_TABLE object. Using AWM to query the same data using LIMIT and RPR is almost instantaneous...
    Can anyone explain what this delay is, and if there is any way to optimise the query?
    Could it be the AW getting attached before each query?
    Big thanks to anyone that can help!

    Thanks Nasar,
    I have run a number of queries with logging enabled, the things you mentioned all look good:
    Loop Optimization: GDILoopOpt     COMPLETED
    Selection filter: FILTER_LIMITS_FAST     7
    ROWS_FAILED_FILTER     0
    ROWS_RETURNED     1
    Predicates: 7 pruned out of 7 predicates
    The longest action I have seen in the log is the PAGING operation... but I do not see this on all queries.
    Time Total Time OPERATION
    2.263     27.864          PAGING     DYN_PAGEPOOL     TRACE     GREW     9926KB to 59577KB
    1.825     25.601          PAGING     DYN_PAGEPOOL     TRACE     GREW     8274KB to 49651KB
    1.498     23.776          PAGING     DYN_PAGEPOOL     TRACE     GREW     6895KB to 41377KB
    1.232     22.278          PAGING     DYN_PAGEPOOL     TRACE     GREW     5747KB to 34482KB
    1.17     21.046          PAGING     DYN_PAGEPOOL     TRACE     GREW     4788KB to 28735KB
    1.03     19.876          PAGING     DYN_PAGEPOOL     TRACE     GREW     3990KB to 23947KB
    2.808     18.846          PAGING     DYN_PAGEPOOL     TRACE     GREW     3325KB to 19957KB
    What is strange is that the cube operation log does not account for all of the query time. For example:
    SELECT "BASE_LVL" FROM TABLE(CUBE_TABLE('"EXAMPLE"."FINSTMNT"'))
    WHERE
    "RPT_TYPE" = 'MTD' AND
    "ENTITY" = 'ET' AND
    "SCENARIO" = 'ACTUAL' AND
    "PRODUCT" = 'PT' AND
    "GL_ACCOUNT" = 'APBIT' AND
    "CENTRE" = 'TOTAL' AND
    "TIME" = 'YR09';
    This query returns in 6.006 seconds using SQL Developer, if I then take the CUBE_OPERATION_LOG for this query and subtract the start time from the end time, I only get 1.67 seconds. This leaves 4.3 seconds unaccounted for... This is the same with the my other queries, see actual time and logged time below:
    Query     Actual     Logged      Variance
    S3     6.006     1.67     4.336
    L1     18.128     13.776     4.352
    S1     4.461     0.203     4.258
    L2     4.696     0.39     4.306
    S2     5.882     1.575     4.307
    Any ideas on what this could be or how I can capture this 4.3 second overhead?
    Your help has been greatly appreciated.

Maybe you are looking for