Can you retrieve a single row from a user specified SDO theme?

I am currently trying to add a polygon to my map straight from the database. I have a table of towns blocks, which with the code below will add the the blocks.
var id = "addBlocks";
var theme = "data_source.TOWNS_BLOCKS";
var themeBasedFOI = new MVThemeBasedFOI(id, theme);      
mapview.addThemeBasedFOI(themeBasedFOI)
I was wondering if there was a way to select a single block (a particular row from the table) using this method?
Thanks,
Higel

My theme i this case is VIC_BLOCKS. I looked at the Templated Theme Based FOI Layer before, but from what i could tell you need the xml to define the <features>
This is the javascript code.
function temlatedThemeBasedFOI() {     
var themebasedfoi = new MVThemeBasedFOI('id','data_source.VIC_BLOCKS');
themebasedfoi.setQueryParameters('443');
mapview.addThemeBasedFOI(themebasedfoi);
Now i need the xml to define the query.
<?xml version="1.0" standalone="yes"?>
<styling_rules>
<hidden_info>
     <field column="BLOCK_MEMBER" name="Name"/>
</hidden_info>
<rule>
<features style="M.SMALL CIRCLE"> (BLOCK_MEMBER=:1) </features>
</rule>
</styling_rules>
But what is to be done with this xml. I assume it is in a separate xml file. So where do i put it and how does it link to the javascript? Am i on the right track or have i totally misunderstood the situation?
Thanks,
Higel

Similar Messages

  • Retrieve a single row from Multirow ResultsetObject

    I would like to know how can i retrieve a single row from a multi row result object. I have a result object which retrieved multiple rows and i would like to retrieve only the top row or a specific row. Can any one of you suggest how this can be done. Thank you for all the help in advance.

    call next() on your result set, this goes to the first row and you can retrieve the data with getString(), getInt(), etc.

  • Retrieve a single row from Oracle function

    Hi!
    I have an Oracle function created as follow:
    CREATE OR REPLACE FUNCTION user_data(userId IN users.user_id%TYPE)
    RETURN users%ROWTYPE AS
    userData users%ROWTYPE;
    BEGIN
    SELECT * INTO userData
    FROM users
    WHERE user_id = userId;
    RETURN userData;
    END user_data;
    This function returns a single row from 'users' table.
    I tried to retrieve that single row by mean of:
    CallableStatement statement = connection
    prepareCall("{ call ? := get_data(?) }");
    statement.*registerOutParameter(1, OracleTypes.OTHER)*;
    statement.setInt(2, 103);
    statement.execute();
    ResultSet rs = (ResultSet) statement.getObject(1);*
    String value = rs.getString(2);
    System.out.println(value);
    But this code doesn't work.
    I tried other OracleTypes, also. (I don't know what OracleType I receive when the Oracle function return a ROWTYPE.)
    Can somebody tell me how to retrieve that single row?
    What is the type of out parameter (registerOutParameter()) when the Oracle function return a ROWTYPE?
    Notes: No cursor can be added. No database change is allowed.
    Thank you in advance.
    [Adrián E. Córdoba]
    Edited by: aecordoba on Mar 18, 2011 3:58 PM

    aecordoba wrote:
    I beg your pardon for my bad English. (It isn't my original language.)
    It's not a language problem. It's that you didn't provide any details about what went wrong.
    That just is my problem:
    I know the retrieved result is not a result set: It's a single row.Doesn't matter if it's a single row. You have a ResultSet object. You have to call ResultSet's next() method to get to the first row, even if it's the only row.
    1- Which is the Oracle type I receive in Java when the Oracle function returns a ROWTYPE?I don't know.
    2- How can I get each column value when I receive a single row in Java?The same way as when there are multiple rows: For each row, call ResultSet.next() to advance to the next row, then call the appropriate ResultSet.getXxx() methods to get each column's value. Again: If you have a ResultSet, you must call next() to get to the first row, even if there is only one row. "First row out of 1 total row" is no different than "first row out of 100 total rows."
    EDIT: Okay, I didn't notice before that you're using a CallableStatement with "out" parameters. I've never used one of those before, so I'm not familiar with the details. I really don't know if casting to a ResultSet is appropriate here. Do you actually have documentation that says you can do that, or are you just guessing and trying to find something that works.
    Edited by: jverd on Mar 18, 2011 11:26 AM

  • Can you retrieve a task list for a user without specifying that user's connection settings?

    Hi
    I would like to know if it is possible to obtain a list of workspace tasks for a user of my choice. In the following code, taken from the relevant quickstart, I am able to retrieve a list of tasks for "administrator" because it is the "administrator" settings specified in the connection properties when obtaining an instance of ServiceClientFactory. If I wanted to obtain a list of tasks for user "greg", for example, is there a way I can do this without having to specify the settings for "greg" in the connection properties? I tried to invoke the setUserId() method of the TaskFilter interface but no tasks are returned for user "greg" in that scenario. The aforesaid user has 3 tasks assigned to him. If I specify the user name and password for "greg" in connection settings, I am able to retrieve his list of tasks successfully. However, this is undesirable because I want to be able to retrieve a list of tasks for any user of my choice, by passing a parameter. Is that possible? Code follows:
    //Start of code
    import com.adobe.idp.dsc.clientsdk.ServiceClientFactory;
    import com.adobe.idp.dsc.clientsdk.ServiceClientFactoryProperties;
    import com.adobe.idp.taskmanager.dsc.client.TaskManagerClientFactory;
    import com.adobe.idp.taskmanager.dsc.client.TaskManagerQueryService;
    import com.adobe.idp.taskmanager.dsc.client.query.StatusFilter;
    import com.adobe.idp.taskmanager.dsc.client.query.TaskFilter;
    import com.adobe.idp.taskmanager.dsc.client.query.TaskRow;
    import java.util.Iterator;
    import java.util.List;
    import java.util.Properties;
    public class RetrieveTaskInfo {
        public static void main(String[] args) {
            try {
                //Set connection properties required to invoke LiveCycle                                                                                                                        
                Properties connectionProps = new Properties();
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_EJB_ENDPOINT, "jnp://localhost:1099");
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_TRANSPORT_PROTOCOL,Service ClientFactoryProperties.DSC_EJB_PROTOCOL);          
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER_TYPE, "JBoss");
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_USERNAME, "administrator");
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_PASSWORD, "password");
                //Create a ServiceClientFactory object
                ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
                //Create a TaskManagerQueryService object    
                TaskManagerQueryService queryManager = TaskManagerClientFactory.getQueryManager(myFactory);
                //Define search criteria by performing a search on 
                //Assigned tasks (tasks assigned to the user specified
                //in connection properties) 
                TaskFilter filter = queryManager.newTaskFilter();
                StatusFilter sf = filter.newStatusFilter(); 
                sf.addStatus(StatusFilter.assigned); 
                filter.setStatusFiltering(sf);
                //Perform the search
                List result = queryManager.taskList(filter); 
                //Create an Iterator object and iterate through
                //the List object
                Iterator iter = result.iterator();
                while (iter.hasNext()) {
                    TaskRow myTask = (TaskRow)iter.next();
                    //Get the task identifier value
                    long taskId = myTask.getTaskId();
                    //Get the status of the task
                    long taskStatus = myTask.getTaskStatus();
                    //Get the name of process on which this task is based
                    String processName = myTask.getProcessName();
                    //Get the task description
                    String taskDes = myTask.getDescription();
                    System.out.println("The task identifier is " + taskId + "\n" +
                            "The status of the task is " + taskStatus + "\n" +
                            "The name of the process on which the task is based is " + processName + "\n" +
                            "The task description is " + taskDes);
            } catch(Exception e) {
                e.printStackTrace();
    //End of code
    Thanks
    Darren

    Paul,
    Thanks very much, I never tried just asking for the parameter I was looking at the entire list coming back from a query with no filters. Using the DBMS_LDAP package you can in fact get their GUID.
    I understand your concern for the use of the field and for other reasons have moved to a different identifier to tie OID accounts to our internal application user accounts.
    Thanks very much, I'm still glad to know how to do get at the info.

  • Can you retrieve deleted virtual copies from Lightroom?

    Hello,
    I removed a catalog from LR3 and re-imported it and my develop settings are intact however, my virtual copies are all missing. Is there a way to get those copies re-imported back into LR or could they be in a cache file somewhere on my computer?
    Help!!!
    AlikMc

    That depends on your OS and/or if you did change the defaults.
    Look here: http://kb2.adobe.com/cps/843/cpsid_84313.html

  • Can you manage a single library from two Pcs with iTunes at the same time?

    Dear all,
    I have a laptop and a desktop pc. Currently all my music and itunes are on the laptop. My laptop hard disk is filling up, so i want to move all the music off to the desktop. And yes i'd like to keep all the music in one location on the desktop pc. But ideally i'd like to be able to import new music to the library from both PCs, and also be able to modify the playlists and other details from both PCs. I looked at Sharing but that doesn't seem to let the non-owner to change the playlists....
    Any ideas how i can set this up?
    Thanks a lot, Dave

    The AE has multiple ports that can be expanded using hubs that we can hopefully connect the existing 3 TV sources, and can receive / transmit to multiple computers but can it operate the iTunes, internet distribution, and TV output (with switching TV inputs via the iMac & AE Utility) at the same time or do we need multiple AEs and another computer?
    The AirPort Extreme base station (AEBS) does not have a TV or video output.
    The AEBS, just like any other router, supports multiple clients simultaneously. Of course there is always bandwidth limitations for any device. So in theory the AEBS can support all of that. In reality the performance of each service will depend on the bandwidth used by each and the bandwidth available. This is no different than any router.

  • Can you share iCalander/Address Book with other users and restrict them from seeing certain entries?

    I'm doing some research for my boss concerning iCloud. He would like to setup a way to syncronize iCalender and the Address Book between three users but keep his personal information private. For example, he wants to be able to update his calender from his phone about an upcoming meeting/project so that the three computers at work are all updated and see upcoming events. Same goes for the contacts. If he adds a new contact or if I add a new contact, for a client or whoever it may be, he wants it to sync up for everyone. At the same time, if he adds a personal event to iCal such as, "Dinner with the girlfriend" or something irrelevant to work, he doesn't employees to be able to see that. My first idea was to setup an iCloud account but I'm wondering if you can even restrict certain things within an account.
    Anyone have any other ideas? They would be greatly appreciated.

    iCloud appears to provide no Address Book sharing. You might be able to do this through Google, but it would be likely to be all contacts or none.
    iCloud allows you to share calendars privately (editable if you wish) to other iCloud users or publicly (non-editable) to anyone - they would need a CalDAV client to read it, such as iCal or Google Calendars.
    You share individual calendars, so private events should be in their own calendar which is not shared.
    More on Calendar sharing here:
    http://support.apple.com/kb/PH2690

  • HT4059 why can you browse, and buys books from itunes but not read them on my iMac?  Pretty lame I think. my kindle show up across all my computers, iPhones and Android devices no problem.

    just wondering why you can browse, buy on itunes but not read on an imac. My kindle apps work on the imac, ipod, asus netbook, iphone and android devices.  Why not ibooks on imac?

    "just wondering why you can browse, buy on itunes but not read on an imac. "
    Because Apple does not make an ibook reader for computers.

  • Single row from this query without create a group by

    Can I have a single row from this query without create a group by on tipo (TIPO can have only 2 value (A,D)
    SELECT
    CASE TIPO
    WHEN 'D' THEN SUM(IMPORTO) ELSE 0 END DIMPORTO,
    CASE TIPO
    WHEN 'A' THEN SUM(IMPORTO) ELSE 0 END AIMPORTO
    FROM MGIORNALE
    WHERE K_CONTO = '100001' --CONTO
    AND DECODE(T_MOVIM,'MRAP',TO_DATE('31/12/'||to_char(a_competenza),'DD/MM/YYYY'),DATA_RG)
    -- BETWEEN DATAA AND DATAB
    BETWEEN '01/01/2006' AND '31/12/2006'
    --GROUP BY TIPO
    --AND TIPO = COL_conto
    Thanks in advance

    Is like this?
    sum (CASE TIPO
    WHEN 'D' THEN IMPORTO ELSE 0 END) DIMPORTO,

  • Hello , can you with a single account creative cloud , install on two computers ? (The one from home and one at work)

    Hello , can you with a single account creative cloud , install on two computers ? (The one from home and one at work)
    This will avoid me lugging around my mac, sorry for my english.
    Margaux, photographer

    Yes, this has been allowed with Adobe applications going back many years.  A program such as Photoshop can legally be installed and activated on two computers at a time for the use of the single licensed user.  You can't install legally on your own and a friend's computer for use by the two different people.  Prior to Creative Cloud, there was an unwritten limit on how many times a given application could be activated, but there is no longer such a limit under CC.  That means you could theoretically install on three or four computers, activating only two at a time, and then deactivating one or both before activating on another computer.

  • HT4910 Can you retrieve backup information from yesterday? My daughter deleted information in calendar and contacts that I need back???

    Can you retrieve old info saved on iCloud? From yesterday or even 12 hours ago.

    Notice the links on the R side of this panel to
    see related questions and solutions. Good luck.

  • Can you intercept an Oracle error from a "Process Row" process?

    Hi,
    Can you intercept an Oracle error from a "Process Row" process?
    Example:
    I have been just creating a validation process to check if I'm about to insert a duplicate record so I can give the user a "User friendly" error message.
    It would be awesome if in the error message you can select "PL/SQL function returning result" and have it pass it to the Notification area..
    I doubt there is a way but I thought I would ask..

    >
    I think everyone is waiting for a better exception-handling, but even 4.0 won't bring any improvements in this area.This is kind of what bugged me about 4.0. I feel that they put more effort into making it cool and flashy and ignored some pretty basic core issues like error handling. I mean sure the new jquery powered application builder is nice, but your users never see that - they do however see you not being able to hook into the error handling. There are several issues that have lingered for years that keep getting passed over for other things - i mean the Forms conversion release was such a waste in my opinion. They could have used that release to fix some bugs.
    Of course thats my 2 cents.

  • Can you retrieve purchased items from iTunes if wiped from comp memory?

    My iTunes account was wiped when I changed computers due to last one's logic board dying. Can I retrieve purchased tracks back from iTunes shop. I wasn't able to upload to iCloud before I lost access to comp.

    No.
    (101715)

  • Select a single row from a billion row table

    This is a fictitious scenario, how would you write a select statement on a table with a billion rows. It never returns anything,right? Somebody was suggesting a stored procedure.
    As an example : Assuming a Table with columns      Account(int), TransDate(DateTime), TransNum(int) and few other columns. I need a transaction that happened on 03-05-2014 8:15PM. Clustered index on Account. Non- clustered on TransDate.
    I was suggested to create a stored procedure, inside the SP you have 3 parameters: min_date, max_date, avg= min_date+max_date/2. You create a loop and feed the avg value to the max_date or min_date depending on where the row is. This is a suggestion
    that I am not clear my-self but wanted to see if you guys can help me develop this idea.
    Also please suggest how you would do it in your world. You guys could have much better ideas probably much simpler one's. Thanks in advance.
    svk

    I basically just need transaction for one particular datetime. Not any span. One of our senior developers suggested that a simple select statement takes for ever to return a single row from a billion rows and suggested a vague idea as above. 
    Either there is a suitable index on the column, and the SELECT will be fast.
    Or there is no index on the column, and in that case it will take quite some time to find the row. The only reason to loop is that you don't want to take out a table lock, but in that case you would do something like looping one account at a time. Looping
    over different time values will only mean that you will scan the table multiple times.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Selecting a single row from table control of standard transaction via repor

    Hi Experts,
    I have a requirement of selecting a single row from standard trasaction via ineractive report.
    For eg. for a given document number & item number, how can i select the specified item from transaction VA03.
    I am using call transaction to naviagate to the screen but unable to select the specified item.
    thanks in adavance for your Help.

    You mean selecting the item via BDC?
    Have you tried something like:
    perform bdc_field       using 'BDC_CURSOR'
                                  'VBAP-POSNR(01)'.
    perform bdc_field       using 'RV45A-VBAP_SELKZ(01)'
                                  'X'.
    or whatever your dynpro is to select the first row?

Maybe you are looking for

  • IC Elimination Package Missing

    Hi All, I realized, that IC Elim pacakage is missing and not SAP BPC System - MS Version 7.5 SP 1.03 & 1.06, even tried by organize package list can find examples and system, where do I find them ? Do I need to create them ? If yes - what are the ste

  • Update was terminated - Class PO - Number 366 - Device ARCH does not exist

    Dear Gurus, We are using Automatic PO generation through ME59, we also applied one SAP note to pick the custom document type through ME59 (normally the system pick NB as standard document) In  MN05 - if i set as default output type 1 - print ( then t

  • HTML Controls in ABAP (not ITS)

    Hello...    How to build a HTML form and post it by internet inside SAPGUI (ABAP Program)....???  It's possible....???

  • Using bridge patterns

    Hello all, I need suggestions from you all regarding the usage of bridge pattern in my problem. My xml file contains an element which when read gives the datatype like varchar , longint. etc..... for each of these i want to give them java types. Like

  • Palm T3, Palm Desktop, Note Pad

    Switching Palm T3 to a Mac, with the most recent version of Palm Desktop (for Mac of course) Note Pad is not shown in the Toolbar. How can I add it to the tool bar? Without it in the tool bar, Note Pad cannot be opened. I have tried looking in prefs