Matrix object

I'm trying to achieve a 'Falling leaf effect' to apply on a
number of little lines triggered by a mouse over event. I'm feeling
adventurous today and would like to use AS to do that.
i understood the matrix object could help and have a code
that looks like this :
var matrix:Matrix = new Matrix();
var scaleX:Number = 2.0;
var scaleY:Number = 3.0;
var rotation:Number = 2 * Math.PI * (45 / 360);
var tx:Number = 10;
var ty:Number = 20;
matrix.createBox(scaleX, scaleY, rotation, tx, ty);
the thing is i can't figure out how to put in relation the
code, the movie clip (do i need one?) and the event handler
together.
can anyone help?
thanks

you don't need a movieclip but you need some display object
to which to apply your matrix. you apply it by assigning the matrix
property of your display object to be your matrix.

Similar Messages

  • How to create matrix object manually ?

    hello expert, i am trying to create a matrix report object manually, i found some steps on google but they are not working to success.
    please help me to create one.
    google steps:
    To create a matrix object:
    1.
    In the Paper Layout view, click the Repeating Frame tool in the tool palette, then drag a rectangle to create a repeating frame.
    2.
    In the Property Inspector, under Repeating Frame, set the Source property to the "column" for the matrix, and set the Print Direction property to Down.
    3.
    Click the Repeating Frame tool in the tool palette again, then drag a rectangle to create a second repeating frame, intersecting the first repeating frame.
    4.
    In the Property Inspector, under Repeating Frame, set the Source property to the "row" for the matrix, and set the Print Direction property to Across.
    5.
    Drag a rectangle around both repeating frames to select them, then choose Insert > Layout Matrix.
    This creates a matrix object that is the intersection of the two repeating frames. For example:
    Figure 4-1 Example matrix object
    Shows two intersecting rectangles
    Description of "Figure 4-1 Example matrix object"
    6.
    Double-click the matrix object to set its properties.
    thanks n regards
    yash

    Hello,
    You need to select both frames(ctrl+click on both frames) before choosing Insert > Layout Matrix.
    It should work.
    Regards,
    Alex

  • Matrix object in matrix report

    hi friends
    I am designing a simple matrix report,
    data model - "select deptno , job , sum(sal) from emp group by deptno , job"
    now in the layout model i see that report builder has created a frame in which there is an object called
    "MATRIX
    verti rpeating frame
    horix rep frame
    cross product group
    if i wish to create a matrix report manually without wizard i am unable to find this object
    pls help me how can i create amatrix report manually
    ps help

    Hi,
    in order to create a matrix object you have to:
    - create a repeating frame (say R_1), set its source property to the "column" for the matrix and set its print direction property to "Down";
    - create a new repeating frame (say R_2) that intersect R_1 (they must not be one inside the other, but they must intersect!), set its source property to the "row" for the matrix an set its print direction property to "Across";
    - drag a rectangle around both repating frames (R_1 and R_2) to select them, then choose Insert --> Layout Matrix.
    This creates a matrix object that is the intersection of the two repeating frames.
    Hope this helps you
    Bye
    Raffy

  • Matrix object on multiple line

    Hi all,
    In my report I have a matrix object in a frame.
    When columns are too much to be contained in the frame, the matrix looks like truncated.
    I'd like the matrix go to the next line.
    I mean that if I have a matrix like the following:
    .     a     b     c     d     e     f     g
    A     1     1     1     2     2     2     2
    B     2     2     2     3     3     3     3
    C     4     4     4     5     5     5     5
    Actually I have the following layout (because the matrix is bigger than the frame):
    .     a     b     c     d     e
    A     1     1     1     2     2
    B     2     2     2     3     3
    C     4     4     4     5     5
    But I'd like to have something like this:
    .     a     b     c     d     e
    A     1     1     1     2     2
    B     2     2     2     3     3
    C     4     4     4     5     5
    .     f     g
    A     2     2
    B     3     3
    C     5     5
    Thanks in advance for your help!
    Samuele

    hi all...
    even i am facing exactly the same problem... any tips will be great...
    please help....

  • Function addition of Matrix object of UI-API

    Hi:
    I would like you to add the new features included to the Matrix object of UI-API.
    ・All data is acquired from the screen once
    ・All data is set to the screen once
    The performance of add-on using UI-API is very bad as long as this function doesn't exist.
    (Example)
    1. The item is acquired from the line data of the order slip for an indispensable check.
    2. Objects of an indispensable check are five items.
    << Present specification >>
    1 details --> 5 times Data acquisition
    100 details --> 500 times Data acquisition
    << New function proposal >>
    1 details --> 1 times Data acquisition
    100 details --> 1 times Data acquisition
    Extensive renovations can be expected as a performance.
    Please achieve a new function immediately.
    Postscript:
    Related message number: 891363

    Hi,
    If you want to post DRQ, please post it on the proper forum:
    /community [original link is broken]
    Drop off something like Please achieve a new function immediately.  You are not a commander here.
    Thanks,
    Gordon

  • Use Matrix Object

    Hi
    I have a problem with the Matrix Object. This object can be filled with data manually, running on the 2004C SDK, but NOT on the 2007A version. The line data can be edited, if it is filled before through DB datasource, but cannot be edited if the Matrix is empty.
    So my question would be that how can we enter data to the rows of the Matrix Object manually, if the  Matrix is actually empty.
    Thanks
    Karoly

    nice
    some rewarded points would be nice but you're new here
    lg David

  • Data entry using matrix object

    HI,
    I am new to SAP B1 and its SDK. I got struck while trying with the Turotial provided with SDK Help center - Blanket Agreement. Following are the problems.
    1) The Status combo box is not having values
    2) The values I entered into the Matrix columns are vanished when I navigated to next field(Combo box/Edit Text).
    Please Help!
    Thanks,
    Ajith G.

    Hi Ajith,
    You should look in the example code under the subs : AddDataSource and BindDataSource
    For every items in SBO, you should create the user data source and Bind it to your item
    If you fail to bind it, or error were raised when binding it, your input value will be lost.
    Example for an EditText created . Unique ID for this item is "txtExample"
    You have to
    'Declare  an user data source in global
        Private oUDS As SAPbouiCOM.UserDataSource
    'And then you add the data source to your form.
    Private Sub AddDataSource(ByVal FormUID As String)
          oform = sbo_Application.forms.item(FormUID)
          oUDS = oform.datasources.userdatasources.Add("txtEx", SAPbouiCOM.BoDataType.dt_SHORT_TEXT)
    End SUb
    'Bind The Datasource to your Item
    Private Sub BindDataSource(ByVal FormUID As String)
        Dim oForm as sapbouicom.form
        Dim oEdit as sapbouicom.EditText
        oForm = sbo_application.forms.item(formUID)
        oEdit = oform.items.item("txtExample").specific
        oEdit.databind.SetBound(True,"","txtEx")
    End Sub
    Hope it helps
    Regards
    Edy

  • Display data to matrix using LoadFromDataSource

    Hello all,
    I tried to display data to matrix.
    I used matrix object's LoadFromDatasouce.
    But it didn't display data at all.
    Pls help me!!
    creationPackage.ObjectType = "EVOSS_BUSTR"      
    creationPackage.UniqueID = "TEST
    creationPackage.FormType = "TEST"
    creationPackage.BorderStyle =  SAPbouiCOM.BoFormTypes.ft_Fixed
    Set oForm = SBO_Application.Forms.AddEx(creationPackage)
    sTableName = "@EVOSS_BUSTR"   
        oForm.Title = sTitle
        oForm.Height = 300
        oForm.Width = 350
        oForm.DataSources.DBDataSources.Add ("sTableName")
        Set oItem = oForm.Items.Add("1", it_BUTTON)
        oItem.Left = 5
        oItem.Width = 65
        oItem.Top = 240
        oItem.Height = 19
        Set oButton = oItem.Specific
        oButton.Type = bt_Caption
        Set oItem = oForm.Items.Add("2", it_BUTTON)
        oItem.Left = 75
        oItem.Width = 65
        oItem.Top = 240
        oItem.Height = 19
        Set oButton = oItem.Specific
        oButton.Type = bt_Caption
        'Adding a matrix
        Set oItem = oForm.Items.Add("TEST, it_MATRIX)
        oItem.Left = 5
        oItem.Width = 340
        oItem.Top = 10
        oItem.Height = 200
        oItem.AffectsFormMode = True
        Set oMatrix = oItem.Specific
        Set oColumns = oMatrix.Columns
        'Adding col 1
        Set oColumn = oColumns.Add("ColNb", it_EDIT)
        oColumn.TitleObject.Caption = "#"
        oColumn.Width = 20
        oColumn.Editable = False
        'oColumn.DataBind.SetBound True, "", "#"
        'Adding col 2
        Set oColumn = oColumns.Add("EVOSS_Code", it_EDIT)
        oColumn.TitleObject.Caption = "Code"
        oColumn.Width = 80
        oColumn.Editable = True
        oColumn.DataBind.SetBound True, sTableName, "Code"
        'Adding col 3
        Set oColumn = oColumns.Add("EVOSS_Name", it_EDIT)
        oColumn.TitleObject.Caption = "Name"
        oColumn.Width = 220
        oColumn.Editable = True
        oColumn.DataBind.SetBound True, sTableName, "Name"
        oMatrix.AddRow
        Set oColumn = oMatrix.Columns.Item("EVOSS_Code")
        Set eItemCode = oColumn.Cells.Item(1).Specific
    '   oForm.Mode = fm_FIND_MODE
    '   oForm.DataBrowser.BrowseBy = "EVOSS_Code"
        'oMatrix.SelectionMode = ms_None
         oForm.Visible = True
         add_line = True
         oMatrix.LoadFromDataSource

    Hello.
    For load a data to a matrix you need call a Query method of the dbdatasource to obtain data from the database.
    By.

  • Deleting row from a table binded to a matrix

    Hi all
    i have a form with a matrix binded to a user table which is handled as a Master Data lines by UDO.
    i want to enable deleting lines from the table by selecting a row in the matrix and clicking a delete button.
    currently i'm handling the click event by usint the method DeletRow of the matrix object.
    when i press the Update button (UID = "1"). the fact that a row was deleted from the matrix does not affect the bounded table.
    my question is how in code can i cause the deletion of a row from the matrix to also be deleted from the database table?
    appreciate the help
    Yoav

    Hi Yechiel
    flushToDatasource make the following:
    Flushes current data from the GUI to the bounded data source using the following process:
    1)Cleans the data source.
    2)Copies each row from the matrix to the corresponding data source record.
    In other words: This method load data from Matrix to DataSource (but not to database)
    the next step is update database from userdatasource
    Note: You migth read sdk help for more information

  • How to get the selected cell in a Matrix.

    Hi all,
    Does any one know how to get the selected cell in a Matrix. Please help to answer. Thanks in advance.
    Regards,
    Thanh Tran

    Hi,
    You can get the value of every cell  using UI API but using datasources is a better aproach.
    Using UI API you need to know the event you want to catch. Example: Catching click event in itemcode column and getting the value (C#):Ki
          if ((pVal.EventType == BoEventTypes.et_CLICK) &&  //CLICK EVENT
              (pVal.ItemUID == "38")  &&                                       //MATRIX-> ITEM 38
              (pVal.ColUID == "1") &&                                           //ITEMCODE COLUMN
              (!pVal.InnerEvent) &&                                
              (!pVal.BeforeAction))
                    Form form = null;
                    try
                        form = kernel.Application.Forms.Item(pVal.FormUID);
                        form.Freeze(true);
                        Matrix mtx = (form.Items.Item(pVal.ItemUID).Specific as Matrix);  //MATRIX OBJECT
                        string itemCode = (mtx.Columns.Item("1").Cells.Item(pVal.Row).Specific as EditText).Value.Trim();  //itemcode = VALUE OF CELL. COLUMN "1": ITEMCODE COLUMN. CURRENT ROW: pVal.Row
                    catch (Exception ex)
                        kernel.Application.MessageBox("Error " + ex.Message, 0, "", "", "");
                    finally
                         if (form != null)
                            form.Freeze(false);
    Kind regards,
    Nauzet Díaz

  • Collapsible rows in Matrix

    Hello all,
    Is it possible to create a matrix object with collapsible rows like on the standard form "User-Defined Fields - Management"?
    I have found that the Grid has a similar functionality, but it is not exactly the same, because in the Grid each level of nestedness must have a corresponding column, while on the abovementioned SAP form the whole hierarchy is located in the first column.
    Thank you in advance,
    Anton

    Hi,
    I thing It is not possible .in grid its possible. Anyway try like this,
    you have to double click event matrix column write a query in order by.
    Regards,
    Siva

  • Sharing a communication object between test sockets

    Hi everyone, I am having some trouble using teststand in batch mode as it is my first time doing so. Here is my question:
    I am creating a test sequence that uses multiple test sockets. I am using a switching matrix that is controlled over ethernet to allow me to connect different loads to the hardware under test. I only have one load, but I have several different devices that need to connect to that load for the tests to be run, and they can only be connected one at a time.
    My approach was to initilaze the connection to the switching matrix and store the resulting object reference as a global variable, which allows me to send commands to the switch matrix from any sub-sequence. I then created another sub sequence for the load tests called "External Load Tests". In this step, the load is connected to the hardware via the switching matrix, and tests are run. I am using batch mode, so I put a lock on the "External Load Tests" sub sequence so that only one thread can enter at a time.
    This sequence works if there is only one active test socket. If there is more that one, the first thread will get inside the external "External Load Tests" step and try to send a command to the switch matrix using the object reference that I mentioned. However, when this happens, the step hangs indefinitely until the other threads are manually stopped. It seams like the thread isnt being given access to the switch matrix object, becuase usually if there is an error the switch matrix driver throws an exception, but in this case it just hangs. 
    Any ideas on how I can fix this? I don't have a lot of experience with multi threading, so any advice would be greatly appreciated.
    Thanks!

    For the batch model you could use a serialized batch synchronization section rather than a lock. A lock should also work though, it just doesn't guarantee that all threads get to the section before any of them continue and doesn't guarantee the order like batch synchronization does. Typically you should use all default settings for the batch model (other than perhaps number of sockets). Which setting did you change? The 'Default Batch Synchronization' setting? You should typically leave this as "Don't Synchronize". Setting this to Parallel makes it synchronize at every step which requires all sockets to get to each step before any of them to continue. This is not the behavior that people typically want. In most cases you should use the default of "Don't Synchronize" and then set synchronization manually in your sequence where you want it, either using the step synchronization settings, or the batch synchronization step types, or other synchronization step types such as locks.
    Hope this helps,
    -Doug

  • A treeview in one of Matrix's columns

    Hi Guys,
    Because this is my first post on this forum, I would like to say "hello" to everybody.
    I would like to ask you about a following matter: is it possible to add a column to a matrix object (or changing an existing column appropriately by setting its relevant properties), which will display the values in a tree-form view?
    It would be great to have the same behavior as the present (SBO 8.8) behavour of the Category column displayed in the User-Defined Fields - Management window's matrix. Below you can find a screenshot of User-Defined Fields Management window, where the Category column is shown:
    Link: [User-Defined Fields - Management screenshot|http://img228.imageshack.us/img228/25/udfm.jpg]
    I'm aware that the grid control can be collapsed/expaneded in a similar way, but I would like to avoid the implementation of the grid control in this case.
    Marcin

    Hi all
    here is the form:
    http://rapidshare.com/files/396518983/Ubicaciones.srf.html
    I used SAPbouiCOM.BoMatrixLayoutType.mlt_Normal.
    I just neded 1 column, but if you need more than one column, all those  equal, maybe is not a great tip, but you can edit by your hand srf file.
    I mean, you can copy all the code for that column and paste it, of curse changing Column Id.
    Something like this:
    <column uid="0" type="16" title="" description="" visible="1" AffectsFormMode="1" width="538" disp_desc="1" editable="0" right_just="0" val_on="Y" val_off="N" backcolor="9671571" forecolor="16711422" text_style="1" font_size="-1"><databind databound="0" table="" alias=""/><ExtendedObject/></column>
    sorry if I can't help you more than this, I hope that you can use it.
    I think that most important here is the way how you use colors combination.
    Hope this helps and sorry for any mistake.

  • Date format in Matrix loaded by DataTable is shown as 20080319

    Hello,
    I've loaded most of our matrixes with DataTables. No problems up to now. Also date columns where shown in correct B1 GUI format.
    But now with a new matrix the date is 'suddenly' shown as '20080319'. When I view at B1 system information (at the bottom of B1) the column is described correctly with B1 GUI format:
    U_DateEndPr (Date)
    19.03.2008 [Form....Item..., U_DatEndPr]
    I've made a test (one of many):
    I've loaded the 'problem-matrix' with some columns (including one date column) from another DataTable which works correctly on another Matrix/Pane.
    The result is the same:
    In the first (correct working) matrix (pane 1) the date is 19.03.2008 and
    in the second matrix 20080319
    Is there something wrong with the matrix itself?
    I have absolutly no idea where my fault is.
    Does anybody made the same or similar experiences?
    So long,
    Roland

    Hello Petr,
    for the test which I've made i can say yes: I've loaded the problem-DataTable with the same query as the working dataTable.
    The only difference is:
    The problem-matrix has less columns than the working matrix. So I couldn't bound the problem.-DataTable/Matrix to all of the query result columns.
    Another hint:
    The Date format '20080319' looks like the result of SDK-ValueEx (B1-DB-Format-String)
    In another column beside '20080319' there's a double-value. This is shown with the correct decimal-separator of B1 (I've changed decimal sep. to '#' for test. The columns ar shown as:
    '20080319'  |  142#89
    ...so the second column is displayed correctly but the date format is still wrong...
    And:
    I get the same result when I do the problem-DataTable bind to exactly the same dataTable-UID as of the working DataTable.
    So at the moment I suppose that the error is in the Matrix-Object. Because both matrixes are loaded by the same DataTable (for trial) and only one of them shows wrong date-format.
    I forgot:
    The form with the problem-matrix was made with a 2 years old screenpainter. Althogh I've made changes on the form with a actual screenpainter - could this be a problem?
    Hmm, but I don't think so because on another pane and matrix of the same old form the date works corectly...
    Edited by: Roland Toschek on Mar 19, 2008 1:07 PM

  • Problem in matrix

    Hi every Body,
    I ve created in C# a matrix with columns, When I run the application, many rows appears but I can write only in the first row !!! I don't know why?
    I need to write on all the lines (rows) of the matrix.
    Can someone help me!

    Hello Haifa,
    The enabled is for the Matrix object, but I suggest that you use matrix.addrow() to solve the problem.
    holpe this helps,
    Pegorer.

Maybe you are looking for

  • System Image Manager

    Where can I download the Windows System Image Manager? I want to setup a preinstallion image and I need to generate an answer file but I need the SIM.

  • Authentication error while logging in through WEBLOGIC user

    Hi All I have installed OBIEE 11.1.1.5 on my system having Windows 7 (32bit). The installation went thru without any errors. I am able to login to Enterprise manager and Console with user weblogic/oracle123 but am not able to login to Analytics. its

  • MRBR Query for Records Since Last Run

    I have a requirement to pull all the blocked invoices since the last programs run. The main table in MRBR is RBKP_BLOCKED.  I'm needing to pull all of the records in that table since the program last run. The main tables I know I need are RBKP_BLOCKE

  • How to view backup data on PC

     I have been backing up address book from my BB  via desktop manager to a file on my PC,  How can I view the files (old address book)on my PC, is it possible? It seems as if i would have to transfer it back to the BB, which would delete the current o

  • Passing an internal table to a badi

    Helo  All, I have declared a variable outside the badi say data: phead like STRUCTURE_head occurs 0 with HEADER LINE. suppose this phead contains say 4 rows . calling the method of the badi .       CALL METHOD user_exit->method1         CHANGING