Selecting data with cursors on an X-Y Graph

I would like to make an interactive XY plot with two cursors. These
cursors will allow the user to select a range of data, and send the
selected data to an array. Sending the data to an array and referencing
the positions to the array is no problem, but I cannot get the two
cursors to work simultaneously.  I am monitoring the positions on
the front panel, and both indicators display the same data. How do I
set the property nodes to treat each cursor as separate, and collect
separate data from each? Thanks.

Before you can get the cursor index or cursor position, you have to first set the active cursor.
Message Edited by Dennis Knutson on 03-24-200609:57 AM
Attachments:
active cursor.JPG ‏15 KB

Similar Messages

  • Select data with SDO_RELATE in lat long coordinate system(8307) in 10gR2

    Hi all,
    I have problem with selecting data from table.
    Data are in lat lon coordinate system 8307.
    These requests don't return any data:
    SELECT ISSUE_ID FROM MAP_ISSUES WHERE SDO_FILTER(GEOMETRY, sdo_geometry (2003, 8307, null, sdo_elem_info_array (1,1003,1),sdo_ordinate_array(-180,-90, 180,-90, 180,90, -180,90, -180,-90)) ) = 'TRUE';
    SELECT ISSUE_ID FROM MAP_ISSUES WHERE SDO_RELATE(GEOMETRY, sdo_geometry (2003, 8307, null, sdo_elem_info_array (1,1003,1),sdo_ordinate_array(-180,-90, 180,-90, 180,90, -180,90, -180,-90)), 'MASK=ANYINTERACT' ) = 'TRUE'
    Optimized polygon does return all data correctly:
    SELECT ISSUE_ID FROM MAP_ISSUES WHERE SDO_FILTER(GEOMETRY, sdo_geometry (2003, 8307, null, sdo_elem_info_array (1,1003,3),sdo_ordinate_array (-180,-90,180,90)) ) = 'TRUE'
    Smaller polygon select data correctly too.
    SELECT ISSUE_ID FROM MAP_ISSUES WHERE SDO_FILTER(GEOMETRY, sdo_geometry (2003, 8307, null, sdo_elem_info_array (1,1003,1),sdo_ordinate_array (52,-7, 54,-7 , 54,-5 , 52,-5, 52,-7)) ) = 'TRUE'
    I have tried changed polygon to be clockwise, counter clockwise, make the area a bit smaller( 160 instead of 180, 89 instead of 90) nothing has helped.
    My explanation than was, that Earth is sphere and each defined polygon defines TWO polygons in the sphere and there is convention that the smaller is chosen to select data. It would make sense along the previous results, but than I found one post which says that this is bug http://www.frontoracle.com/oracle-database/703/180703-size-of-are-of-interest-smaller-equals.html
    I have found in other thread that max only 1/2 of Earth could be selected Different results using SDO_RELATE with polygon and rectangle type but it seems not true, because optimized bounding box works fine!
    What is right? Is there anything in official documentation?
    Is it bug.
    Max 1/2 of Earth could be selected in one request.
    Each polygon defines two areas in the Earth and the smaller one is used to do spatial SDO_RELATE operation?
    Thanks!
    Regards,
    Zdenek

    Zdenek,
    A bug, or limititation, whichever you choose. IMHO if you ask for something, and don't get what you expect, it is a bug that could be fixed.
    But for 10g anywho, the following applies, which is why I choose 120 degree breaks for my code as it is less than 180...
    The following size limits apply with geodetic data:
    ■ No polygon element can have an area larger than one-half the surface of the Earth.
    ■ In a line, the distance between two adjacent coordinates cannot be greater than or
    equal to one-half the perimeter (a great circle) of the Earth.
    If you need to work with larger elements, first break these elements into multiple
    smaller elements and work with them. For example, you cannot create a geometry
    representing the entire ocean surface of the Earth; however, you can create multiple
    geometries, each representing part of the overall ocean surface. To work with a line
    string that is greater than or equal to one-half the perimeter of the Earth, you can add
    one or more intermediate points on the line so that all adjacent coordinates are less
    than one-half the perimeter of the Earth.
    Bryan

  • Dynamically select data with 20 input parameters

    Hi Experts,
    Now i have created a subscreen with more than 20 fields on it. these fields are defined by parameters, not select options. user can input any fileds for these input parameters.
    So now i should write codes to select data from database according the user input. Is there any easy way for me to write it? I heard about dynamically SQLs, but i don't know how to use it.
    Thanks a lot!

    you forgot to mention why you needed dynamic SQL : I guess that when user lets a field blank, you must not perform selection on it.
    The easiest is ( FIELD1 = P_FIELD1 OR FIELD1 = space ) AND ( FIELD2 = P_FIELD2 OR FIELD2 = space ) AND etc. Even if it seems repetitive, I advise you to keep the SQL static instead of dynamic, because in this latter case, I think the code will be a little bit less clear.
    Of course, if you argue that there are other requirements, then maybe it's worth re-evaluating the solution.
    If you need more information, just look at ABAP examples in your system (SE38, Environment, Examples, ABAP examples -> ... -> Dynamic conditions)

  • How to select data with multiple child nodes

    We have the following data:
    me table ei table
    m1 e1
    m1 e2
    m1 e3
    m1 e4
    m2 e5
    m2 e6
    m3 e7
    m3 e8
    I would like to display them as:
    m1 e1
    e2
    e3
    e4
    m2 e5
    e6
    m3 e7
    e8
    How to best do this with sql?
    I would like to produce this list with sql and then transform it to xml.
    Thanks.

    Since you did not use tags it is not clear what results should be:
    SQL> WITH TBL AS (
      2  SELECT 'm1' me, 'e1' ei FROM DUAL UNION ALL
      3  SELECT 'm1' me, 'e2' ei FROM DUAL UNION ALL
      4  SELECT 'm1' me, 'e3' ei FROM DUAL UNION ALL
      5  SELECT 'm1' me, 'e4' ei FROM DUAL UNION ALL
      6  SELECT 'm2' me, 'e5' ei FROM DUAL UNION ALL
      7  SELECT 'm2' me, 'e6' ei FROM DUAL UNION ALL
      8  SELECT 'm3' me, 'e7' ei FROM DUAL UNION ALL
      9  SELECT 'm3' me, 'e8' ei FROM DUAL
    10  )
    11  SELECT  CASE ROW_NUMBER() OVER(PARTITION BY ME ORDER BY EI) WHEN 1 THEN ME ELSE NULL END ME,
    12          EI
    13    FROM  TBL
    14    ORDER BY TBL.ME,
    15             TBL.EI
    16  /
    ME EI
    m1 e1
       e2
       e3
       e4
    m2 e5
       e6
    m3 e7
       e8
    8 rows selected.or
    SQL> WITH TBL AS (
    2 SELECT 'm1' me, 'e1' ei FROM DUAL UNION ALL
    3 SELECT 'm1' me, 'e2' ei FROM DUAL UNION ALL
    4 SELECT 'm1' me, 'e3' ei FROM DUAL UNION ALL
    5 SELECT 'm1' me, 'e4' ei FROM DUAL UNION ALL
    6 SELECT 'm2' me, 'e5' ei FROM DUAL UNION ALL
    7 SELECT 'm2' me, 'e6' ei FROM DUAL UNION ALL
    8 SELECT 'm3' me, 'e7' ei FROM DUAL UNION ALL
    9 SELECT 'm3' me, 'e8' ei FROM DUAL
    10 )
    11 SELECT CASE ROW_NUMBER() OVER(PARTITION BY ME ORDER BY EI) WHEN 1 THEN ME ELSE EI END ME,
    12 CASE ROW_NUMBER() OVER(PARTITION BY ME ORDER BY EI) WHEN 1 THEN EI ELSE NULL END EI
    13 FROM TBL
    14 ORDER BY TBL.ME,
    15 TBL.EI
    16 /
    ME EI
    m1 e1
    e2
    e3
    e4
    m2 e5
    e6
    m3 e7
    e8
    8 rows selected.
    SQL>
    SY.

  • Designing View to select Date with Time

    Hi,
    How can we design the view to select the date along with time?
    We know that we can provide drop downs for hours, minutes and seconds.
    Is there any alternative to display UI element to select the date and time. I am in 7.0 SP17
    Thanks

    Hi Tatayya Marni,
    For selecting the Date and Time u can try a workaround. First create a simple type of type date and bind it to an Input Field so that the date can be captured and for the for the time u can use the System Date and using the same SystemDate u can get the Time in Hours, Minutes and Seconds.
    Eg  :- store the SystemDate in a Date variable and to get the hour u can use Date.getHours(), getMinutes
        Date dt = new Date(System.currentTimeMillis());
        dt.getHours(),dt.getMinutes(),dt.getSeconds());
    Hope this works dor u.
    Regards,
    Poojith M V

  • Any efficient way to select data with limit?

    HI
    I want to select some rows of my table for showing in a webpage
    number of rows is very very much and all of them cannot be showed in one page, so i used paging for my webpage
    every page has just 20 rows
    problem is here , how to select rows between 400 and 420 ( for example)
    i am using this way of query:
    select * from
    select col1,col2,col3, rownum as r_n
    from my table
    where ... and .... and ... and ...
    order by id desc
    where r_n between 400 and 420
    this query works, but it is slow. i think database first run inner query and select all rows then select those ones that are in my range
    is there any other efficient way to do this?

    What is a "realtime response"?
    Do they really want the response to be fast on the 200,000th page? Is there actually a use case where a human being looks at 20 rows, hits next, and repeats 200,000 times? Because assuming that the user takes only a second to wait for the page to render, read the results, and hit next, that means that this one user will have spent 3333 minutes/ 55.6 hours/ 2.3 days just looking at results without a break. Are they really going to care at that point if it takes a bit longer to get the next page of results?
    Part of being a developer is explaining trade-offs to the customer. If you want the database to page the results by issuing separate queries, the first page of results will be far faster than the 200,000th page. Since users are normally far more concerned about the performance of the first page than the 200,000th, this is generally a reasonable trade-off. There are alternate approaches that will likely improve the performance of fetching the 200,000th page of results. But those will generally require a more complex architecture. For example, you can return a REF CURSOR to the middle tier and let the middle tier fetch a page of results at a time. But then you have to implement the state control logic so that the right end user session sees the right cursor handle and gets the right session back (this problem is much, much easier in a client/server application)
    Justin

  • Auto-fill calender date and validate other fields depending upon selected date for infopath forms

    I have a calender box in infopath form which i want to autoselect when user opens the form..Ex..i am opening form on 14th march the calender should show as 19th march and also i have to perform few validation and action such as if i am selecting date with
    more than 5 days gap should open other field which is a dropdown..How can i perform this..

    Do you have Excel Services? if so, this article may be of use to you:
    http://sergioblogs.blog.co.uk/2013/01/08/infopath-2010-and-excel-services-in-sharepoint-15407321/
    You can configure an excel workbook to validate if a date is a working day and then use formulas to workout the working date for 5 days after the date you enter, then link your InfoPath form to connect to the excel workbook and return the result of your
    calculation.
    Regards
    Sergio Giusti
    http://sergioblogs.blog.co.uk/
    Whenever you see a reply and if you think is helpful, click " Vote As Helpful". And whenever you see a reply being an answer to the question of the thread, click "
    Mark As Answer".

  • ORA-13773: insufficient privileges to select data from the cursor cache

    We are trying to create STS using the below query:
    exec sys.dbms_sqltune.create_sqlset(sqlset_name => 'TEST_STS', -
    sqlset_owner => 'SCOTT');
    The below procedure will load sql starting with 'select /*MY_CRITICAL_SQL*/%' from cursor cache into STS TEST_STS.
    DECLARE
    stscur dbms_sqltune.sqlset_cursor;
    BEGIN
    OPEN stscur FOR
    SELECT VALUE(P)
    FROM TABLE(dbms_sqltune.select_cursor_cache(
    'sql_text like ''select /*MY_CRITICAL_SQL*/%''',
    null, null, null, null, null, null, 'ALL')) P;
    dbms_sqltune.load_sqlset(sqlset_name => 'TEST_STS',
    populate_cursor => stscur,
    sqlset_owner => 'SCOTT');
    END;
    We were getting the following error: ORA-13761: invalid filter
    After granting the below privileges to the user we are getting the below error:
    Err msg:
    ERROR at line 1:
    ORA-13773: insufficient privileges to select data from the cursor cache
    ORA-06512: at "SYS.DBMS_SQLTUNE", line 2957
    ORA-06512: at line 10
    For SQL Tuning Sets:
    GRANT ADMINISTER ANY SQL TUNING SET TO scott;
    For Managing SQL Profiles:
    GRANT CREATE ANY SQL PROFILE TO scott;
    GRANT ALTER ANY SQL PROFILE TO scott;
    GRANT DROP ANY SQL PROFILE TO scott;
    For SQL Tuning Advisor:
    GRANT ADVISOR TO scott;
    Others:
    GRANT SELECT ON V_$SQL TO SCOTT;
    GRANT SELECT ON V_$SQLAREA TO SCOTT;
    GRANT SELECT ON V$SQLAREA_PLAN_HASH TO SCOTT;
    GRANT SELECT ON V_$SQLSTATS TO SCOTT;
    grant select on sys.DBA_HIST_BASELINE to SCOTT;
    grant select on sys.DBA_HIST_SQLTEXT to SCOTT;
    grant select on sys.DBA_HIST_SQLSTAT to SCOTT;
    grant select on sys.DBA_HIST_SQLBIND to SCOTT;
    grant select on sys.DBA_HIST_OPTIMIZER_ENV to SCOTT;
    grant select on sys.DBA_HIST_SNAPSHOT to SCOTT;
    Any info from your end to resolve the issue will be of great help.
    Thanks

    What is the alert log reporting. Are you seeing any other errors than these in the alert log too?

  • I'm having problems (1)selecting onscreen text, (2) having problems resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    I'm having problems (1) selecting onscreen text, (2) resizing menu boxes and selecting menues with the cursor. I'm not able to select menus and move them. I'm not sure how to correct this.

    1) This is because of software version 1.1. See this
    thread for some options as to how to go back to 1.0,
    which will correct the problem...
    http://discussions.apple.com/thread.jspa?threadID=3754
    59&tstart=0
    2) This tends to happen after videos. Give the iPod a
    minute or two to readjust. It should now be more
    accurate.
    3) This?
    iPod shows a folder icon with exclamation
    point
    4) Restore the iPod
    5) Try these...
    iPod Only Shows An Apple Logo and Will Not Start
    Up
    iPod Only Shows An Apple Logo
    I think 3,4, and 5 are related. Try the options I
    posted for each one.
    btabz
    I just noticed that one of the restore methods you posted was to put it into Disk Mode First rather than just use the resstore straight off, I Have tried that and seems to have solved the problem, If it has thank you. previously I have only tried just restoring it skipping this extra step. Hope my iPod stays healthy, if it doesnt its a warrenty job me thinks any way thanks again

  • File Count with selected date range

    Hi,
    Our requirement is to get the file count with selected date by the user from two sharepoint date time controls i.e. dtp1 and dtp2 into the data table. I am able to get the file count of specific folder from Pages library through below code. Now need to get
    the selected date range from two date time picker controls and check with the item created by is within the date range. If yes I need to get the file count.
    So please share your ideas/thoughts to do the same.
    SPList list =
    wikiweb.Lists["Pages"];
                        SPFolderCollection oFolders
    = list.RootFolder.SubFolders["foldername"].SubFolders;
                        DataTable dt
    = new DataTable();
                        dt.Columns.Add("Column1");
                        DataRow dr;
                        if (oFolders.Count
    > 0)
                            foreach (SPFolder oFolder in oFolders)
     if (!oFolder.Name.Equals("Forms"))
                                    dr
    = dt.NewRow(); 
    dr["Column1"] = oFolder.ItemCount.ToString();
    dt.Rows.Add(dr);
    Regards,
    Sudheer
    Thanks & Regards, Sudheer

    Hi,
    I have modified the code as below
    if((DateTime)(oFolder.Item.File.TimeCreated>dtFromDate.SelectedDate)&&(DateTime)(oFolder.Item.File.TimeCreated<dtToDate.SelectedDate))
    But still it is throwing the error.
    Please share your ideas on the same.
    Regards,
    Sudheer
    Thanks & Regards, Sudheer

  • Select List with Submit - Branch Error - form data does not save

    I am a new APEX user so please excuse my ignorance. I have created a simple application in which a primary data entry form branches either to a detail form (one to many on the parent ID) or a master tabular report used for navigation. These branches work fine. Then I tried to get a little fancy with a conditionally displayed element based on the value the user selects in a select list on the main form(P9_REPORT_TYPE). I converted the select list to a select list with submit and created a new branch (on submit - after processing) to the current page (Page 9) to avoid the "no branch found" error. To avoid the branch being unconditional, I tried to use the 'Request = Expression1' condition with the Expression 1 field set to P9_REPORT_TYPE. The behavior I get is that the page seems to submit but the data on the form is not saved -- even the new value selected in P9_REPORT_TYPE reverts to the old value. I simply need the page data to submit so that the conditionally displayed element will take effect (which it does if you use one of the other button-based branches and then return to the form). Do I have the syntax wrong? It seems like this should be straightforward but I've tried a number of options including using a PL/SQL condition V('REQUEST')='P9_REPORT_TYPE' with no success. I'm guessing that the value of Request is getting cleared before it has a chance to trigger the branch? Any help would be greatly appreciated.

    Exactly so! Thanks Scott for setting me straight. For the benefit of other readers, the value in the Source Used column had been set to "Always, replacing any existing value in session state" and should have been set to "Only when current value in session state is null".

  • Opening a System-Form with selected Data

    Hi,
    i´m looking for a way to open a System-Form, e.g. Orders with
    selected Data.
    In the moment i do the following:
         application.ActivateMenuItem("2050");  // orders
         SAPbouiCOM.Form belegForm = application.Forms.ActiveForm;
         belegForm.Mode = SAPbouiCOM.BoFormMode.fm_FIND_MODE;
         SAPbouiCOM.EditText edDocNum = (SAPbouiCOM.EditText)belegForm.Items.Item("8").Specific;
         edDocNum.Value = "4711";
         belegForm.Items.Item("1").Click(SAPbouiCOM.BoCellClickType.ct_Regular);
    This works, but the screen is blinking, because first the form ist opened and shown with
    empty values and then filled.
    Is there a way to activate the form and do the search-Operation and afterwards show it ?
    I think ist must be possible, because when clicking on the link-Button near CardCode, the Contacts-Form
    is opened in this way.
    regards Matthias

    Hi Ibai,
    i have tested both: freeze and form.visible = false in
    the form_load-Event. It doesn´t work here.
    Also neither the call
       application.ActivateMenuItem("1281");  // find
    nor the call
       oForm.Mode = SAPbouiCOM.BoFormMode.fm_FIND_MODE;
    work in the form_load-Event.
    After the form-Load-Event the et_FORM_ACTIVATE-Event is called.
    Here the functions work, but here the screen is already visible.
    regards Matthias

  • Cannot select a music into slideshow and book slideshow presentations. In the older Mac this was easy. With new Mac OS X 10.6.8 it should work as I can stop the slideshow with cursor but pop up window for choosing music is dead. I cannot drag music into i

    Cannot select a music into slideshow and book slideshow presentations. In the older Mac this was easy. With new Mac OS X 10.6.8 it should work as I can stop the slideshow with cursor but pop up window for choosing music is dead. I cannot drag music into it. Preselected music just goes on.

    I am talking about iPhoto. In my old Mac even in Books choosing slideshow gives a pop up where you can select a music from I tunes library. In this new one I can stop the slideshow with cursor and it shows music option but it is, as I said dead. Does not response at all to commands.

  • Select data from database tables with high performance

    hi all,
    how to select data from different database tables with high performance.
    im using for all entries instead of inner joins, even though burden on data base tables is going very high ( 90 % in se30)
    hw to increase the performance.
    kindly, reply.
    thnks

    Also Check you are not using open sql much like distict order by group by , use abap techniques on internal table to acive the same.
    also Dont use select endselect.
    if possible use up to n rows claus....
    taht will limit the data base hits.
    also dont run select in siode any loops.
    i guess these are some of the trics oyu can use to avoid frequent DATA BASE HITS AND ABVOID THE DATA BASE LAOD.

  • Cursor Lockup - Path Selection Icon with Tiny Menu(?) Icon Attached

    Hi.
    I'm running CS4 11.0.2 on a Quad-Core Intel MacPro with OS X10.6.6 (6 Gig RAM).
    My cursor has changed to an arrow icon (like the Path Selection Tool) with what looks like a tiny pop-up menu stuck on the right side. I can't figure out how to get rid of it. I re-started Photoshop, and re-set the preferences.
    I can't use most of the tools. I can use the paintbrush but it is constrained to horizontal and vertical strokes. I feel like I've seen this cursor icon before but I can't remember when it usually shows up or how to get rid of it.
    I would include a screenshot but it doesn't show up in any screenshots I've been able to take.
    Thanks in advance
    Dominick

    It is an Apple caused bug introduced in 10.6.5 and is still in 10.6.6
                                      Delete the Adobe Photoshop Settings file? at startup / Tools act strangely.                    

Maybe you are looking for

  • SQL Server 2000 Reporting withJava

    Hi All, Can any one give the code to open SQL Server 2000 Reporting file (i.e, with the extension '.rdl') as we do for the crystal reports '.rpt' file in jsp. Is there any eclipse plugin for SQL Server 2000 Reporting service. thanks in advance.

  • Drop squence in a trigger

    i have made a statment trigger that drop a sequence and start a new one for each day: SQL> create table b2 (n number(10),da date); Table created. SQL> create sequence seq_b2; Sequence created. 1 create or replace trigger b2 before insert on emp 2 dec

  • I plugged my ipod in while my computer was booting up - uh-oh

    First it didn't detect the ipod at all - then i shut down and disconnected the ipod, which was frozen on "do not disconnect" so i turned it back on and itunes says it's corrupted, but when I push restore, nothing happens. Or it is taking a long long

  • OEM Console - uanble to see interconnect components

    I have installed OEM and Interconnect10g(9.0.4) in separate homes. I have not installed the 9iAS server. I have followed the post installation instructions for the Oracle management infrastructure. But I still am unable to see the interconnect compon

  • Extending user information entries?

    Hi there! Is it possible to extend the user information (such as E-Mail address or Telephone) with "arbitrary" data (e.g. Age / Date of Birth)? The entries "Position" and "Department" of "Additional Information" make it seem possible to me, I haven't