[JS] TSelection "class" : just a simple selection manager

TSelection is a JS object to make the "user-selection" management more easy in your scripts :
http://marcautret.free.fr/geek/indd/selection/
Just a beta-version...
Some feature:
- TSelection.getBounds() (as geometricBounds)
- TSelection.getType() (check pageItems, texts, cells, hybrid sel.)
- TSelection.show(true) (zoom on)
Regards,
P

Hi Pablo,
Very nice stuff! Thanks for sharing!
Harbs

Similar Messages

  • SharePoint 2010 Slide Library Unable To Select Managed Metadata When Publishing.

    Hello,
    I'm running into some problems with Managed Metadata when uploading (publishing) slides in a SharePoint 2010 Slide Library.  If I have Managed Metadata Site Columns that are set to be required in my slide library, and I publish my slide(s) into the
    SharePoint 2010 Slide Library I'm not prompted to enter in my required Metadata before the slide is published.  The slide will upload, but then I would need to edit the slide and then enter in the required Metadata.
    If I create a new column with a type set to Choice for example, and set it to be required and I upload (publish) a slide I'm now prompted to enter in the required Metadata, but all the Managed Metadata choices are grayed out and I'm unable to select anything. 
    I'm able to select a Choice for the new column.
    Is this a bug within SharePoint 2010 that does not allow me to enter in Required Managed Metadata Tags on uploading (publishing) slides?
    Regular document libraries work just fine with required Managed Metadata.
    Thanks for any assistance.
    v/r
    JShidell
    v/r JShidell

    Hi,
    According to your post, my understanding is that the Managed Metadata not prompted to enter value in the required metadata.
    I had tested with this issue, and I found the same issue.
    We will help to submit the issue to proper pipeline for you.
    Again, thank you for your report which will definitely make SharePoint a better products. There might be some time delay. 
    Appreciate your time and patience.
    Thank you for your understanding and support.
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Simple Select statement in MS Access

    I am not able to get this simple select statement working in MS Access.
    "SELECT PhotoLocation from RfidData WHERE TeamID = '"+teamID ;
    It is using a variable called teamID which is a string.
    The error is java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression
    Please Suggest
    Thank You...

    Let's look at your code, shall we?
    public String readPhotoLoc(String teamID)
        Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
        Connection con = DriverManager.getConnection(dbURL,"","");
        PreparedStatement ps = con.prepareStatement("Select PhotoLocation from RfidData ");  // There's no bind parameter here, so setString will do nothing
    ps.setString(1,teamID);
    ResultSet rs = ps.executeQuery();  // what do you do with the ResultSet?  Nothing.  //You don't return anything,  either.  I doubt that this mess even compiles.
    }Here's one suggestion for how to write it properly:
    public String readPhotoLoc(Connection connection, String teamID)
        String photoLoc = null;
         PreparedStatement ps = null;
         ResultSet rs = null;
        try
            String query = "SELECT PhotoLocation FROM RfidData WHERE TeamID = ?";
            ps = connection.prepareStatement(query);
            ps.setString(1,teamID);
            rs = ps.executeQuery();
            while (rs.next())
                photoLoc = rs.getString("PhotoLocation");
            return photoLoc;
        catch (SQLException e)
              e.printStackTrace();
               return null;
        finally
              try { if (rs != null) rs.close(); } catch (SQLException ignoreOrLogThis) {}
              try { if (ps != null) ps.close(); } catch (SQLException ignoreOrLogThis) {}
    }Make sure that the types of the columns match the Java types.
    %

  • Simple Select on VBPA using index running very slow

    Hello,
    We have a very simple selection on the table VBPA:
    data:
    begin of it_vbeln occurs 100,
      vbeln like vbpa-vbeln,
    end of it_vbeln.
    select vbeln from vbpa
    into table it_vbeln
    where
    kunnr = '##########'
    and parvw = 'AG'.
    All we're trying to accomplish is to find orders for a given customer number and type.
    We have two indices "Z1" and "Z2" which respectively declare: KUNNR, and MANDT, KUNNR, PARVW.
    In looking at a sql trace, it says it's using the VBPA~Z2 index, which is expected, and that its estimated costs are very low on the index:
    SELECT STATEMENT ( Estimated Costs = 71 , Estimated #Rows = 63 )
           2 TABLE ACCESS BY INDEX ROWID VBPA
             ( Estim. Costs = 71 , Estim. #Rows = 63 )
             Estim. CPU-Costs = 553,782 Estim. IO-Costs = 71
               1 INDEX RANGE SCAN VBPA~Z2
                 ( Estim. Costs = 3 , Estim. #Rows = 111 )
                 Search Columns: 3
                 Estim. CPU-Costs = 43,764 Estim. IO-Costs = 3
    Despite declaring that it will do an index range scan, in SM51 it shows as Sequential Read (Table Scan?) and takes a VERY long time to return, about 60 - 120 seconds.
    Since this is needed for a user exit that will be run during order creation, it needs to occur MUCH faster. Our entries in VBPA number above 10 million records currently.
    Can anyone suggest either why the index does not appear to be helping (it takes just as long without the index), or perhaps another method for finding the orders for a given customer number.
    Thank you,
    Randy

    Hi Randy,
    I suggest you skip the attempts to speed up selecting on VBPA, but rather look into using table VAKPA for finding sales documents for a given partner number.
    Greetings
    Thomas

  • Simple Select Query Taking 5-10s

    We have a web server on the same lan as the DB server.
    A simple select * from tablename (~100 entries) is taking
    anywhere from 30ms to 10 seconds lan. ASP code on the web server
    provides instant (30ms) queries. Ping is never <1ms. If I point
    to a remote DB server, the same query is never more than 300ms
    (which is great for over the internet).
    I enabled logging in CFAdmin -> Datasources and shortly
    after my select * from tablename I see this:
    spy(2009/02/28 16:39:00.539)>>
    Connection[2].setReadOnly(boolean readOnly)
    spy(2009/02/28 16:39:00.539)>> readOnly = false
    spy(2009/02/28 16:39:00.539)>> OK
    spy(2009/02/28 16:39:05.726)>> OK (true)
    We need to get this up and running ASAP. Please help!!

    > I'm connecting to SQL Server 2000 on a Win2k3 box.
    > The default CF8 Installation.
    > Every table this happens for.
    OK. I think CF8 runs the most recent JDBC drivers too. It
    might pay to
    check that though.
    > Select * is needed, because we have existing sites we
    are migrating a lot of
    > which use select *.
    Sure. But just for the purposes of experimentation, change
    your test code
    to specify columns to see if it makes any difference.
    It might pay to get hold of FusionReactor to check what CF is
    doing with
    the queries, under the hood.
    Adam

  • Clarification regarding 'Simple Repository Manager' by Thilo Brandt

    Hi KM Gurus,
    Please Help!!! If I am not clear, please clarify with me and help me.
    I tried importing <b>simple repository manager</b> example authored by <b>Thilo</b> into NWDS and deployed it in the portal.
    I was able to see this repository manager getting displayed under the repository managers link. I think the code provided is creating both the repository manager and a repository based on that repository manager. Am I right?
    I also created another new repository based on this simple repository manager.
    I created a <i>KM windows system</i> and created user mapping too for that system and assigned that system to the <i>Windows Landscape System</i> while defining my new repository. I selected the <i>Security Manager</i> as <i>W2KSecurityManager</i> and <i>ACL Manager Cache</i> as <i>ca_rsrc_acl</i>. <i>OSRoot</i> is <i>'C:/'</i>.
    But I am not able to see this repository under the root folder.
    I am not able to figure out where I went wrong.
    Can anybody please help me in figuring it out?
    best regds,
    Alagammai.
    Message was edited by: Alagammai Arunachalam

    Alagammai, you wrote:
    > I selected the Security Manager as W2KSecurityManager
    > and ACL Manager Cache as ca_rsrc_acl. OSRoot is 'C:/'
    I'm afraid you can't activate the <b>Security Manager</b>. Are you sure that the startup of com.sap.bc.rf.manager.SimpleRepositoryManager ends succesfully? Have you checked <i>Component Monitor -> Repository Managers</i>? If I activate the Security Manager for this SimpleRepositoryManager, the Component RunTime complains that it can't instantiate the W2kSecurityManager submanager:
    Failed to init sub-manager:
    Exception loading and instanciating sub-manager:
    com.sapportals.wcm.repository.manager.generic.security.w2k.W2kSecurityManager
    (java.lang.NoSuchMethodException:
    com.sapportals.wcm.repository.manager.generic.security.w2k.W2kSecurityManager.<init>
    (com.sap.netweaver.bc.rf.mi.IManager))
    Davide

  • Just a simple little TIMER

    Can someone please recommend a freeware/shareware application that is a simple TIMER? Not a calendar or anything elaborate. A t-shirt, not an evening gown. Just a simple little TIMER, so that I can set it to ring after whatever number of minutes. Something that can sit in a little footprint on my desktop.
    Thank you.
    I looked in the Apple section already.
    -Lorna

    Here is a selection of DashBoard widgets that you
    can
    install and access just by hitting F12...
    http://www.apple.com/downloads/dashboard/status/medita
    tiontimerwidget.html
    http://www.apple.com/downloads/dashboard/calculate_con
    vert/321.html
    http://www.apple.com/downloads/dashboard/business/stop
    it.html
    http://www.apple.com/downloads/dashboard/food/eggtimer
    widget.html
    JAMES, when I clicked onto the URLs above, I got the message below:
    Looking for something at Apple.com?
    The page you tried was not found. You may have used an outdated link or may have typed the address (URL) incorrectly. You might find what you’re looking for in one of these areas:
    But that's ok. I can explore those blue links on my own later on. Thank you, James.
    -Lorna

  • How to excecute simple select using EntityManager

    Hello I am developing a project using Seam, JSF, EJB and JBoss.
    All the mappings to the database are correctly done.
    However I would like to create a simple select that retrieves the maximum value of the id.
    This is how I thought I could do it.
    Query q = em.createNativeQuery("select max(id)", Project.class);
    But it keeps telling me that column id cannot be found.
    Am I writing something wrong?

    Ok, this is how I solved it.
    Query q = em.createQuery("select max(id) from " + Project.class.getName());
    Changed it to createQuery and class.getName

  • My laptop have refused to start it will just show windows boot manager on the screen,

    My laptop have refused to start up, it will just show windows boot manager on the screen,and me to choose an operating system to start or press tab to select a tool but when I tryed all those things none of it will respond

    Thanks also Star 1. I have gone the route you suggest also but with the same results as I explained to the hatter. I have about a dozen die-hard Windows friends and they have been trying to help me also. We have tried everything and I have read a several pages on how to do it but nothing looks like what they are saying it does. When in Vista, Vista says it is the default SU OS. When in XP, XP says it is the default SU OS. So there is nothing to change. Only the Windows Boot Manager (which is really not a manager but a boot selector) shows Vista as default and XP next. I've learned again what I already knew. Windows is a conglomerated piece of crap that is hard as heck to use.

  • Is there a Java utility class to help with data management in a desktop UI?

    Is there a Java utility class to help with data management in a desktop UI?
    I am writing a UI to configure a network device that will be connected to the serial port of the computer while it is being configured. There is no web server or database for my application. The UI has a large number of fields (50+) spread across 16 tabs. I will write the UI in Java FX. It should run inside the browser when launched, and issue commands to the network device through the serial port. A UI has several input fields spread across tabs and one single Submit button. If a field is edited, and the submit button clicked, it issues a command and sends the new datum to the device, retrieves current value and any errors. so if input field has bad data, it is indicated for example, the field has a red border.
    Is there a standard design pattern or Java utility class to accomplish the frequently encountered, 'generic' parts of this scenario? lazy loading, submitting only what fields changed, displaying what fields have errors etc. (I dont want to reinvent the wheel if it is already there). Otherwise I can write such a class and share it back here if it is useful.
    someone recommended JGoodies Bindings for Swing - will this work well and in FX?

    Many thanks for the reply.
    In the servlet create an Arraylist and in th efor
    loop put the insances of the csqabean in this
    ArrayList. Exit the for loop and then add the
    ArrayList as an attribute to the session.I am making the use of Vector and did the same thing as u mentioned.I am using scriplets...
    >
    In the jsp retrieve the array list from the session
    and in a for loop step through the ArrayList
    retrieving each CourseSectionQABean and displaying.
    You can do this in a scriptlet but should also check
    out the jstl tags.I am able to remove this problem.Thanks again for the suggestion.
    AS

  • My Photoshop CS 5 has some strange actions when I copy a portion of a photo using the clone stamp  to transfer to another part of the image. It carries the entire layer (not just the stamps selection) across the screen and I cannot place it where I need t

    My Photoshop CS 5 has some strange actions when I copy a portion of a photo using the clone stamp  to transfer to another part of the image. It carries the entire layer (not just the stamps selection) across the screen and I cannot place it where I need to. It appears as if I selected the entire layer on purpose (which I did not)
    The below items appeared when I opened Photoshop CS 5:
    “Photoshop has encountered a problem with the display driver and has temporarily disabled G & U enhancements. Check the video card malfunctions website for latest software. GPU enhancements can be enabled in the performance panel of preferences.”
    (I believe this started after the automatically updated Windows was applied. It was coincident with the before mentioned problem . . . but I don’t really know if it had anything to do with it. )

    For the Clone Stamp problem, check the Clone Source panel and Clipped is probably unchecked.
    If so, check Clipped and see if that makes a difference.
    (Window>Clone Source)
    As to the video card problem:
    Which version of windows are you using?
    What is the make and model of your graphics card?
    Do you know which update windows installed?

  • Java class integration with Oracle Identity Manager 9.1.0.2

    Hello Friends,
    I have a java class that is responsible for sending notifications, my question is how do the relationship of this class with the Oracle Identity Manager 9.1.0.2 so you can take the class and notify users when an application is approved or rejected.
    Any recommendation for this process.
    Thanks for the support
    Edited by: JLK on Jun 12, 2012 5:20 PM

    Hi
    Java class integration with OIM happen through concept of adapters. You can go through OIM documentation of how to create adapters.
    In your case you should create a process task adapetrs adn attach it on the Approved response code in your approval process.
    Desingn Console --> Process management --> Process definition --> <Apprlication Process Ex: AD User>.
    Alternatively you can also send notification using OIM OOTB email templates.
    Regards
    user12841694

  • My ipod touch is being read as just a simple camera and will not let me access it, how does one go about fixing this problem

    My ipod touch is being read as just a simple camera and will not let me access it, how does one go about fixing this problem? My screen has recently cracked and i need to retrieve my music from it but cant do so when my computer is reading it as a camera and only showing me its pictures.

    Here:
    iOS: Device not recognized in iTunes for Windows
    or
    iOS: Device not recognized in iTunes for Mac OS X
    Also try another computer.

  • Slow query results for simple select statement on Exadata

    I have a table with 30+ million rows in it which I'm trying to develop a cube around. When the cube processes (sql analysis), it queries back 10k rows every 6 seconds or so. I ran the same query SQL Analysis runs to grab the data in toad and exported results, and the timing is the same, 10k every 6 seconds or so. r
    I ran an execution plan it returns just this:
    Plan
    SELECT STATEMENT  ALL_ROWSCost: 136,019  Bytes: 4,954,594,096  Cardinality: 33,935,576       
         1 TABLE ACCESS STORAGE FULL TABLE DMSN.DS3R_FH_1XRTT_FA_LVL_KPI Cost: 136,019  Bytes: 4,954,594,096  Cardinality: 33,935,576  I'm not sure if there is a setting in oracle (new to the oracle environment) which can limit performance by connection or user, but if there is, what should I look for and how can I check it.
    The Oracle version I'm using is 11.2.0.3.0 and the server is quite large as well (exadata platform). I'm curious because I've seen SQL Server return 100k rows ever 10 seconds before, I would assume an exadata system should return rows a lot quicker. How can I check where the bottle neck is?
    Edited by: k1ng87 on Apr 24, 2013 7:58 AM

    k1ng87 wrote:
    I've notice the same querying speed using Toad (export to CSV)That's not really a good way to test performance. Doing that through Toad, you are getting the database to read the data from it's disks (you don't have a choice in that) shifting bulk amounts of data over your network (that could be a considerable bottleneck) and then letting Toad format the data into CSV format (process the data adding a little bottleneck) and then write the data to another hard disk (more disk I/O = more bottleneck).
    I don't know exedata but I imagine it doesn't quite incorporate all those bottlenecks.
    and during cube processing via SQL Analysis. How can I check to see if its my network speed thats effecting it?Speak to your technical/networking team, who should be able to trace network activity/packets and see what's happening in that respect.
    Is that even possible as our system resides off site, so the traffic is going through multiple networks.Ouch... yes, that could certainly be responsible.
    I don't think its the network though because when I run both at the same time, they both are still querying at about 10k rows every 6 seconds.I don't think your performance measuring is accurate. What happens if you actually do the cube in exedata rather than using Toad or SQL Analysis (which I assume is on your client machine?)

  • Simple select query is taking a lot of time

    hi gems...
    my table has 7267563 rows...and i am doing a simple select * from table;
    but it is taking a lot of time nearly 25minutes but not completed...
    when i did select count(1) from table then it gave the result instantly also select * from table where rownum < 10 is also fine...even when i am selecting all the records using rownum i.e. select * from table where rownum < 7267563 is also giving result instantly...
    but the entire table is not getting result i.e. select * from table...also there is no lock in the table(though i know that select is nothing to do with lock)..
    what may be the issue..please suggest...thanks in advance...
    Edited by: user12780416 on Dec 12, 2011 11:08 PM

    Hi;
    Please see below thread
    query takes too long ...
    help in solving long run query
    HOW TO: Post a SQL statement tuning request - template posting
    Hope it helps
    Regard
    Helios

Maybe you are looking for