How to programatically cut data in view

Hi There,
I have a requirement to programatically load data and display the 2-DAxis curve in view. Once the curve is displayed, the user can toggle a band cursor and with its help cut/tuncate data. All this needs to be achieved programatically. I am able to achive until setting the band cursor but could not find a means where to cut the data programatically. Can someone please help me out with the same.
Thanks in advance
Priya

Hi Priya,
I believe this is what you're describing.
OPTION EXPLICIT
Dim Sheet, Cursor, Area, Curve, Xch, Ych, Xmin, Xmax, TempCh, Start, Delta
Set Sheet = View.ActiveSheet
Set Cursor = Sheet.Cursor
Set Area = Sheet.Areas(1)
IF Area.DisplayObjType <> "CurveChart2D" THEN Call AutoQuit("Region clearing only works on 2D graph VIEW Areas")
IF Cursor.Type <> "Band" THEN Call AutoQuit("Region clearing only works with the VIEW band cursor")
IF NOT Area.DisplayObj.Curves.Count > 0 THEN Call AutoQuit("Your 2D graph in VIEW has no curves configured")
Set Curve = Area.DisplayObj.LeadingCurve
Xch = Curve.XChannelName : L1 = CNo(Xch)
Ych = Curve.YChannelName : L2 = CNo(Ych)
Xmin = MinV(Cursor.X1, Cursor.X2) : R1 = Xmin
Xmax = MaxV(Cursor.X1, Cursor.X2) : R2 = Xmax
TempCh = CNo("/TempIndexChannel")
IF TempCh > 0 THEN Call ChnDel(TempCh)
IF Xch = "" THEN
IF ChnPropValGet(Ych, "waveform") = "Yes" THEN
Start = ChnPropValGet(Ych, "wf_start_offset")
Delta = ChnPropValGet(Ych, "wf_increment")
ELSE
Start = 1
Delta = 1
END IF
TempCh = ChnLinGenImp("TempIndexChannel", ChnLength(L2), Start, Delta)
Xch = CStr(TempCh)
TempCh = "\Delete/"
L1 = CNo(Xch)
END IF
Call FormulaCalc("Ch(L2):= Ch(L2) + NoValue*((Ch(L1)>=R1) AND (Ch(L1)<=R2))")
IF TempCh = "\Delete/" THEN Call ChnDel(Xch)
Call WndShow("VIEW")
Brad Turpin
DIAdem Product Support Engineer
National Instruments

Similar Messages

  • How to programatically populate data in ADF shuttle component?

    Hi,
    Can anyone please let me know the code for programatically pouplating data into the shuttle Oracle ADF shuttle component using ArrayList object? I have my data(records) in an Arraylist object and I am using JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660.
    Thanks,
    Vikas

    Have a look at this thread:
    http://baigsorcl.blogspot.com/2010/10/creating-shuttle-component-in-oracle.html
    Thanks,
    Navaneeth

  • How can I sort data in view that all member are transent attributes ?

    I create a view that 's not based on query . and all member of that view are transent attributes . if I want to sort records in the view with a transent attribute .
    What should I do ?
    as I know I can set order by clause , if that view is base on query .
    but for the view that not based on query . I don't know how to sort .
    if I have to sort by myself , Can you recommend how to sort it ?
    thanks in advance

    Can you post this question on the JDeveloper forum since it is not related to Jheadstart?
    Thank you,
    Steven Davelaar,
    JHeadstart Team.

  • How to select the data from a Maintainance View into an internal table

    Hi All,
    Can anybody tell me how to select the data from a Maintainance View into an internal table.
    Thanks,
    srinivas.

    HI,
    You can not retrieve data from A mentenance view.
    For detail check this link,
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ed2d446011d189700000e8322d00/content.htm
    Regards,
    Anirban

  • FillBy always fills in the same row in data grid view. How to make it fill in a new row for each click of the Fillby Button? VB 2010 EXPRESS?

    Hi there, 
    I am a beginner in Visual Basic Express 2010. I have a Point of Sale program that uses DataGridView to display records from an external microsoft access
    database using the fillby query. 
    It works, but it repopulates the same row each time, but i want to be able to display multiple records at the same time, a new row should be filled for
    each click of the fillby button. 
    also I want to be able to delete any records if the customer suddenly decides to not buy an item after it has already been entered. 
    so actually 2 questions here: 
    1. how to populate a new row for each click of the fillby button 
    2. how to delete records from data grid view after an item has been entered 
    Thanks 
    Vishwas

    Hello,
    The FillBy method loads data according to what the results are from the SELECT statement, so if there is one row then you get one row in the DataGridView, have two rows then two rows show up.
    Some examples
    Form load populates our dataset with all data as it was defined with a plain SELECT statement. Button1 loads via a query I created after the fact to filter on a column, the next button adds a new row to the existing data. When adding a new row it is appended
    to the current data displayed and the primary key is a negative value but the new key is shown after pressing the save button on the BindingNavigator or there are other ways to get the new key by manually adding the row to the backend table bypassing the Adapter.
    The following article with code shows this but does not address adapters.
    Conceptually speaking the code in the second code block shows how to get the new key
    Public Class Form1
    Private Sub StudentsBindingNavigatorSaveItem_Click(
    sender As Object, e As EventArgs) Handles StudentsBindingNavigatorSaveItem.Click
    Me.Validate()
    Me.StudentsBindingSource.EndEdit()
    Me.TableAdapterManager.UpdateAll(Me.MyDataSet)
    End Sub
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    'TODO: This line of code loads data into the 'MyDataSet.Students' table. You can move, or remove it, as needed.
    Me.StudentsTableAdapter.Fill(Me.MyDataSet.Students)
    End Sub
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Me.StudentsTableAdapter.FillBy(Me.MyDataSet.Students, ComboBox1.Text)
    End Sub
    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
    Me.MyDataSet.Students.AddStudentsRow("Jane", "Adams", "Female")
    End Sub
    End Class
    Get new key taken from
    this article.
    Public Function AddNewRow(ByVal sender As Customer, ByRef Identfier As Integer) As Boolean
    Dim Success As Boolean = True
    Try
    Using cn As New OleDb.OleDbConnection With {.ConnectionString = Builder.ConnectionString}
    Using cmd As New OleDb.OleDbCommand With {.Connection = cn}
    cmd.CommandText = InsertStatement
    cmd.Parameters.AddWithValue("@CompanyName", sender.CompanyName)
    cmd.Parameters.AddWithValue("@ContactName", sender.ContactName)
    cmd.Parameters.AddWithValue("@ContactTitle", sender.ContactTitle)
    cn.Open()
    cmd.ExecuteNonQuery()
    cmd.CommandText = "Select @@Identity"
    Identfier = CInt(cmd.ExecuteScalar)
    End Using
    End Using
    Catch ex As Exception
    Success = False
    End Try
    Return Success
    End Function
    In closing I have not given you a solution but hopefully given you some stuff/logic to assist with this issue, if not perhaps I missed what you want conceptually speaking.
    Additional resources
    http://msdn.microsoft.com/en-us/library/fxsa23t6.aspx
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • How to get list data and bind to data table or Grid view in share point 2010 using j query

    hi,
    How to bind list data in to data table or  grid view  using Sp Services.
    How to use sp services in share point 2010 lists and document library 

    Hi, You can use List service, SPServices and JQuery to get your requiement done-
    See here for an sample implementation -
    http://sympmarc.com/2013/02/26/spservices-stories-10-jqgrid-implementation-using-spservices-in-sharepoint/
    http://www.codeproject.com/Articles/343934/jqGrid-Implementation-using-SpServices-in-SharePoi
    Mark (creator of SPServices) has some good documentation on how to use SPServices-
    http://spservices.codeplex.com/wikipage?title=%24().SPServices
    SPServices Stories #7 – Example Uses of SPServices, JavaScript and SharePoint
    http://sympmarc.com/2013/02/15/spservices-stories-7-example-uses-of-spservices-javascript-and-sharepoint/
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • How do I reference multiple tables in SSAS Data Source View Named Calculation functionality?

    Hi SSASers - 
    On the Data Source View node of SSAS Visual Studio Interface, I want to create a named calculation that references multiple tables. Something like: CASE WHEN tableA.Column1 = 'Y' Then tableB.Column1 ELSE tableB.Column2 End, but the compiler throws an error
    here "Deferred prepare could not be completed". 
    What is the syntax for referencing multiple tables on this node or how else can multiple tables be used to create a calculated value in SSAS? I'm new to SSAS and so far have been building big views and building calculations this way. Another option is the
    Calculation tab off the cube node but this calculation will need to be based off of dimensions AND measures so please provide a syntax example here also. 
    Thanks in advance!
    Carl

    Thanks Jiri! The named query functionality off the Data Source View node is exactly what I was looking for - it's just a view on the SSAS side of things instead of the relational dbase.
    Sorry for the delayed answer verification - got pulled into something else last week. Carl 
    Carl

  • How can I select a date to view in Calendar while I am in month view?

    I am looking at month view in Calendar on my iPad. I touch a date. Intuitively, I expect that date to open up in Day or Week view, but it doesn't! On my iphone, it works just fine. Am I missing something?
    How can I select a date to view while in Month view and have it go to Day or Week view?
    Thanks for any help.

    I would try this:
    In Lr import one photo into a different folder that you can see in the list.
    Then in your OS (mac Finder / Win Explorer) move the photo to the folder that you cannot see.
    In Lr the photo will now appear with a question mark on its frame. Click directly on the question mark and select <Locate photo>. Navigate to the folder, open it, and click on the photo.
    Maybe this will help Lr to recognize the folder.
    If this doesn't help try renaming the folder in your OS.

  • View 'CUT Home Page View (CME)' is not licensed for this site.(SBL-DAT-0032

    Hi Siebel guru,
    I am getting below error when i login in to sibel server.
    View 'CUT Home Page View (CME)' is not licensed for this site.(SBL-DAT-00327)
    can any one help me out to solve this issue ASAP.
    Regards
    Prabhat

    Hi Goud,
    In Installtion time it asked pls update your license key.
    then i updated my license key from http://licensecodes.oracle.com/siebel.html.
    Ifound ther is four row license key information.
    I updated only first row licencse key.
    Is there any workaround for updating license key.
    pls provide me steps.
    Regards
    Prabhat

  • How can i get data from a maintance view?

    Hi all.
        Can you give me some suggestion about 'How can i get data from a maintance view?'?
         Thanks
         Best regard

    hi
    good
    go through this link
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ecdf446011d189700000e8322d00/content.htm
    thanks
    mrutyun^

  • I just upgraded my ipad OS and now my ipad is not picking up the 3G network.  Why and how do I fix this?  When I go into cellular data and view account it says my ipad is activated and ready to go.  What gives???

    Why and how do I fix this?  When I go into cellular data and view account it says my ipad is activated and ready to go.  What gives???
      It was working fine up until I upgraded the OS which I hadn't done in many versions so the ipad was not working as well as it should.  Now it is searching for the network. 

        Hello noodles074!
    Let's get your device working again! It's possible that your device just needs to be reprovisioned on our network. Please go to Settings>General>Reset>Subscriber Services>Reprovision Account. This may take several minutes. After allowing about 5 minutes for completion, please power your iPad off and back on, and test it again. Let us know if this takes care of it!
    Thank you,
    MichelleH_VZW
    Follow us on Twitter @VZWSupport

  • How to open the Data Perspective function of Smart View in EAS?

    How to open the Data Perspective function of Smart View in EAS?
    I use my Smart View to connect one ASO cube, and I found the button of Data Perspective is grey. It's not available.
    In Smart View Users' Guide, it says:
    Note: Data perspective may not be enabled in your Smart View system. Your options for data perspective are enabled and configured by the administrator in Oracle Essbase Administration Services.
    But I could not find how to configure the this option in EAS.
    Does anyone know about this?

    I have already turned on the varying attributes function, but the data perspective button is still grey, not available.

  • How to populate data into view object

    Hi all,
    I am quite new with ViewObject.
    I have one data table which is binding with view object.
    I want to populate data into view object from my managed bean.
    how can i achieve this kind of scenario?
    actually i try to get view object as in the following. but i get only null.
    ViewObject viewobject = DCIteratorBinding.getViewObject();
    With Regards,
    Wai Phyo

    Hi,
    You could use the following code snippet to get handle to view object from the iterator.
    FacesContext fc = FacesContext.getCurrentInstance();
    BindingContainer bindings =
    (BindingContainer)fc.getApplication().evaluateExpressionGet(fc,
    "#{bindings}",
    BindingContainer.class);
    DCBindingContainer bc = (DCBindingContainer)bindings;
    DCIteratorBinding iterator =
    bc.findIteratorBinding("<ITERATOR_ID>");
    ViewObject viewObject = iterator.getViewObject();
         // Perform operations on the view objectThanks,
    Navaneeth

  • How to execute data base view in sender communication channel  ?

    hi experts
    how execute data base view in sender communication channel.?
    when i execute select * from data base . ( Its working)
    When i execute select * from dbo.view (its showing error )
    My Question is there any procedure or syntax execute the views in sender side . ?
    Thanks and Regards
    G.Praveen Kumar

    The Error showing
    Database-level error reported by JDBC driver while executing statement 'select * from  View_abcMap'. The JDBC driver returned the following error message: 'com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name 'View_abcMap'.'. For details, contact your database server vendor

  • How to change the column name of Data Entry View of CAT2?

    Hi experts,
    The requirement is to change the name of one of the columns in the Time Sheet: Data Entry View appearing on execution of t-code CAT2. What should be the procedure to do the same?

    I came across the thread
    CAT2 Worklist enhancement.
    which aims to do the same. Does this method work? How is the problem mentioned in Step 5 of the final post to be resolved?

Maybe you are looking for

  • Can't get back to my mac to work

    I am guessing that this problem belongs somewhere in the server section. I am very crossed about this, as I have been calling apple support twice, they told me to chip on all the remote functions in sharing, and since remote management chips off scre

  • I can't use the new Adobe Reader X on my Macbook Pro. HELP!

    The other day I downloaded the new Adobe Reader X on my MacBook Pro. Since then I can't open pdfs in Firefox. How can this problem be solved????

  • Printing, Soft Proofing & Color Management in LR 1.2: Two Questions

    Printing, Soft Proofing, and Color Management in LR 1.2: Two Questions There are 2 common ways to set color management in Adobe CS2: 1. use managed by printer setting or, 2. use managed by Adobe CS2 program. I want to ask how Color Management for Ado

  • Sample results to one inspection lot

    Hi, Please confirm if the following is possible: Record result for samples say 5 samples by today and then assign those sample result to one inspection lots after one week. It yes then how ? Regards

  • Optimization techniques when animating?

    Hi, I am newbie when it comes to animations and was wondering if there are techniques/procedures that should or shouldn't be done when using EA to animate? I have been playing around with animations and I clearly noticed one animation which was an im