Update Matrix

Hai to all,
         Iam new to SAP B1. I dont knw how to update the matrix?????? Can anybody help me????????????????
Iam uisng datasource to fill the matrix................
Regards,
N.Anitha

its ok Rasmus,
                if i use ur code all the values in the tables will be affected. Whts my expectation is tht,
For example,
   iam having the form contains header part and detailed part, header part contains 4 edittext,4 static and detailed part contains one matrix. Note tht the header and detailed part r stored in seperate tables. But in detailed table there is an headerid.
So that while iam inserting the values i can able to enter more than one row in the matrix.
  Now my need is tht while updating i can able to update tht 2 rows also....
Wht is the solution???????????/

Similar Messages

  • How to updated matrix into related table?

    hi, can anyone help me below coding how to updated matrix into related table?
    Thank you.
                For rowNum = 0 To oMatrix.RowCount
                    oRecordset.Fields.Item("Code").Value = oMatrix.Columns.Item("DSCode").Cells.Item(rowNum).Specific.Value
                    oRecordset.Fields.Item("Name").Value = oMatrix.Columns.Item("DSName").Cells.Item(rowNum).Specific.Value
                    oRecordset.Fields.Item("U_RPTC").Value = oMatrix.Columns.Item("DSReport").Cells.Item(rowNum).Specific.Value
                    oRecordset.Fields.Item("U_USRC").Value = oMatrix.Columns.Item("DSUser").Cells.Item(rowNum).Specific.Value
                    oRecordset.MoveNext()
                Next

    For Fast Matrix Loading you can user some thing like this.
            Dim Column As SAPbouiCOM.Column
            Dim Matrix As SAPbouiCOM.Matrix
            Dim Table As SAPbouiCOM.DataTable
            Table = oForm.DataSources.DataTables.Add("Documents")
            Table.Columns.Add("Code", SAPbouiCOM.BoFieldsType.ft_Integer)
            Table.Columns.Add("Name", SAPbouiCOM.BoFieldsType.ft_Integer)
            Table.Columns.Add("U_RPTC", SAPbouiCOM.BoFieldsType.ft_AlphaNumeric, 255)
            Table.Columns.Add("U_USRC", SAPbouiCOM.BoFieldsType.ft_AlphaNumeric, 255)
            Matrix = oForm.Items.Item("MatrixUID").Specific
            Column = Matrix.Columns.Item("Code")
            Column.DataBind.Bind("Documents", "Code")
            Column = Matrix.Columns.Item("Name")
            Column.DataBind.Bind("Documents", "Name")
            Column = Matrix.Columns.Item("U_RPTC")
            Column.DataBind.Bind("Documents", "U_RPTC")
            Column = Matrix.Columns.Item("U_USRC")
            Column.DataBind.Bind("Documents", "U_USRC")
            Table.ExecuteQuery(SQLQuery)
            Matrix.LoadFromDataSource() 'Load The Data to the Matrix
    To pull the data form the display back to the Table you can use this
    Matrix.FlushToDataSource()

  • To update Matrix

    Hello To All,
                     I am Anitha using datasource i want to update the matix and also i need to add a row during updation.Can anybody give suggestion. Its urgent....

    Hello selin,
                 Thanks for ur code. But dont want tht... I knw to add the records in the matrix. I need to update the matrix in runtime. At the same time while updating the records in runtime if we want to add the records wht we have to do...
    If u have samples plz send me. Its Urgent............
    Thanks
    Anitha

  • How to update AR Invoice Matrix (UDF)

    Hi,
    I want to load the matrix data to a custom form. After user updates the custom form data. Then, get back the data to matrix.
    Now I am using the following code:
    - Get matrix value
    For i = 1 To mMatrix.VisualRowCount
       Dim tmp as stsring = mMatrix.Columns.Item("U_UDF1").Cells.Item(i).Specific.value
       Dim tmp as stsring = mMatrix.Columns.Item("U_UDF2").Cells.Item(i).Specific.value
    Next
    - Update matrix value
    For i As Integer = i To mDataTable.Rows.Count - 1
       mMatrix.Columns.Item("U_UDF1").Cells.Item(i + 1).Specific.value = mDataTable.GetValue("Value1",i)
       mMatrix.Columns.Item("U_UDF2").Cells.Item(i + 1).Specific.value = mDataTable.GetValue("Value2",i)
    Next
    Have any better solution? If the matrix's sorting order is changed, all the data will be wrong. How can solve this problem?
    Regards,
    On

    The problem you are facing is because both AR Inv and AR Res Inv are stored in the same table OINV. The AR RESERVE Invoice is differentiated by the OINV field isINS which will have a Y when the Invoice is an AR Invoice. Checking this field is they approach.
    1.  Add a database field (let us presume this is Field_341)
    Table: AR Invoice
    Field: isINS - Reserve Invoice
    2. Add a Formula Field
    Formula: Field_341 == "Y"
    3. Add another Formula Field
    Formula: Field_341 != "Y"
    4. Add another Text Field:
    AR Reserve Invoice
    To the Text field which has INVOICE link the formula in Step 3
    To the Text field which has AR Reserve Invoice link the formula in Step 2
    THIS WILL WORK

  • Can i create a matrix

    hi friends
    i have a doubt . can i create two cfl in the same form? if so how?
    thanks and regards
    Manoj Nagaraj

    Hi,
    Yes, you can create more CFLs with own UniqueID on the same form.
    In manage item event handler you can filter by uid of CFL.
    An example of CFLs on Clients Orders form:
    <ChooseFromListCollection>
      <action type="add">
        <ChooseFromList UniqueID="-1" ObjectType="17" MultiSelection="0" IsSystem="1" />
        <ChooseFromList UniqueID="1" ObjectType="73" MultiSelection="0" IsSystem="1" />
        <ChooseFromList UniqueID="10" ObjectType="1" MultiSelection="0" IsSystem="1" />
        <ChooseFromList UniqueID="11" ObjectType="1" MultiSelection="0" IsSystem="1" />
        <ChooseFromList UniqueID="12" ObjectType="17" MultiSelection="0" IsSystem="1" />
      </action>
    </ChooseFromListCollection>
    It is possible to find many examples by searching on SDK forum for words "CFL" or "ChooseFromList".
    When you create form call this function to add cfls
    Private Function AddChooseFromList(ByRef oForm As SAPbouiCOM.Form) As Boolean
      Dim b As Boolean = True
      Try
        Dim oCFLs As SAPbouiCOM.ChooseFromListCollection
        Dim oCons As SAPbouiCOM.Conditions
        Dim oCon As SAPbouiCOM.Condition
        oCFLs = oForm.ChooseFromLists
        Dim oCFL As SAPbouiCOM.ChooseFromList
        Dim oCFLCreationParams As SAPbouiCOM.ChooseFromListCreationParams
        oCFLCreationParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
        ' Agent CFL
        oCFLCreationParams.MultiSelection = False
        oCFLCreationParams.ObjectType = 53
        ' Agent Code
        oCFLCreationParams.UniqueID = "cflACode"
        oCFL = oCFLs.Add(oCFLCreationParams)
        oCons = oCFL.GetConditions()
        oCon = oCons.Add()
        ' Agent Name
        oCFLCreationParams.UniqueID = "cflAName"
        oCFL = oCFLs.Add(oCFLCreationParams)
        oCons = oCFL.GetConditions()
        oCon = oCons.Add()
        ' Agent: Button CFL
        oCFLCreationParams.UniqueID = "cflAButt"
        oCFL = oCFLs.Add(oCFLCreationParams)
        oCons = oCFL.GetConditions()
        oCon = oCons.Add()
        ' Business Partner CFL
        oCFLCreationParams.MultiSelection = False
        oCFLCreationParams.ObjectType = 2
        ' BP Code
        oCFLCreationParams.UniqueID = "cflBPCode"
        oCFL = oCFLs.Add(oCFLCreationParams)
        oCons = oCFL.GetConditions()
        oCon = oCons.Add()
        ' BP Name
        oCFLCreationParams.UniqueID = "cflBPName"
        oCFL = oCFLs.Add(oCFLCreationParams)
        oCons = oCFL.GetConditions()
        oCon = oCons.Add()
        ' BP Button for CFL
        oCFLCreationParams.UniqueID = "cflBPButt"
        oCFL = oCFLs.Add(oCFLCreationParams)
        oCons = oCFL.GetConditions()
        oCon = oCons.Add()
      Catch ex As Exception
        b = False
        ' log exception
      Finally
        System.GC.Collect() 'Release the handle to the table
      End Try
      Return b
    End Function
    If you about CFL on matrix... in manage Item event check CFL UniqueID...
    Case BoEventTypes.et_CHOOSE_FROM_LIST
      If Not pVal.BeforeAction _
      And (pVal.ColUID = "colICode" Or pVal.ColUID = "colIName") Then
        Dim oCFLEvento As SAPbouiCOM.IChooseFromListEvent
        oCFLEvento = pVal
        Dim sChooseFromListUID As String
        sChooseFromListUID = oCFLEvento.ChooseFromListUID
        Dim oChooseFromList As SAPbouiCOM.ChooseFromList
        oChooseFromList = oForm.ChooseFromLists.Item(sChooseFromListUID)
        Dim oDataTable As SAPbouiCOM.DataTable
        oDataTable = oCFLEvento.SelectedObjects
        Dim sCode As String = ""
        Dim sName As String = ""
        Try
          sCode = oDataTable.GetValue(0, 0)
          sName = oDataTable.GetValue(1, 0)
        Catch ex As Exception
          ' log exception
          sCode = ""
          sName = ""
        End Try
        If Not sCode.Equals("") Then
          ' IF MATRIX COLUMN
          ' Update Matrix Row:
          '    1) oForm to have oMatrix object;
          '    2) row, to know where are need to be writed the Code & Name values.
          b = MatrixUpdateCell(oForm, pVal.Row, sCode, sName)
          ' IF DBDATASOURCES
         oForm.DataSources.DBDataSources.Item("USER_TABLE").SetValue("Code", 0, sCode)
         oForm.DataSources.DBDataSources.Item("USER_TABLE").SetValue("Name", 0, sName)
        End If
      End If
    Or search DK forum for "CFL matrix" words.
    Also look this
    Case SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST
      If Not pVal.BeforeAction Then
        Try
          oForm.Freeze(True)
          Dim oCFLEvento As SAPbouiCOM.IChooseFromListEvent
          oCFLEvento = pVal
          Dim sCFL_UID As String
          sCFL_UID = oCFLEvento.ChooseFromListUID
          Select Case sCFL_UID
         Case "cfl1"
           Dim oCFL As SAPbouiCOM.ChooseFromList
           oCFL = oForm.ChooseFromLists.Item(sCFL_UID)
           If oCFLEvento.BeforeAction = False Then
             Dim oDataTable As SAPbouiCOM.DataTable
             oDataTable = oCFLEvento.SelectedObjects
             Dim valCode As String = ""
             Dim valName As String = ""
             Try
               valCode = oDataTable.GetValue(0, 0)
               valName = oDataTable.GetValue(1, 0)
             Catch ex As Exception
               ' log exception
             End Try
             Try
              If (pVal.ItemUID = "eBPCode") Or (pVal.ItemUID = "bCFL1") Then
                ' for userdatasource
                oForm.DataSources.UserDataSources.Item("uCardName").ValueEx = valName
                ' for dbdatasource
                oForm.DataSources.DBDataSources.Item("USER_DEF_TABLE").SetValue("U_DEFINED_FIELD", 0, valCode)
                ' form to update mode
                oForm.Mode = SAPbouiCOM.BoFormMode.fm_UPDATE_MODE
              End If
             Catch ex As Exception
              Dim s As String = ex.Message
             End Try
           End If
         Case "cfl2"
           ' do something
         Case "cfl3"
           ' do something
          End Select
        Catch ex As Exception
          ' log exception
        Finally
          oForm.Freeze(False)
        End Try
      End If
    Hope I help you.
    Regards
    Sierdnas
    Edited by: Sierdna S on Jul 17, 2008 12:04 PM

  • Wird das Yoga 2 ein Update auf Lollipop erhalten

    Wird das Yoga 2 ein Update auf Lollipop erhalten?
    Admin Edit; Betreff editiert

    Hallo grisu63, willkommen im Forum,
    wissen wir leider nicht. Über den folgenden Link findest Du das Android Update Matrix, wir beobachten die Seite sollte es etwas neues geben;
    http://support.lenovo.com/us/en/documents/ht101396
    Andy  
      Deutsche Community     Comunidad en Español    English Community Русскоязычное Сообщество

  • A6000 plus when is the update to lollipop

    i wish they won't release on last day of this month i want it asap

    hey lenovo team,
     Can any one tell me when will be lollipop update for lenovo a6000+ ?? see Q2 is already over ,as you mentioned in update matrix ,you supposed to give OTA update before yesterday itself , but you didnt.
    So tell us exact date for lollipop update orelse atleast update the update matrix page.
    See as we are your customer,you should value us.
    I need response from your team (lenovo)
    So when will be lollipop update for lenovo a6000+
    Admin note; post merged in, subject edited.

  • Unicode characters appear as      (boxes) in AIR for IOS

    I am developing an application for iPhone and it has an input Text box. (Placed on stage from flash CS6). In the Desktop emulator everything works fine. But, on the actual phone, everything I type appears as       . But surprisingly, when I am inputting the text, (i.e. the textbox is in edit mode) the characters are displayed correctly. But as soon as I leave the box it appears as       . Is there someway I can display the text the same way it is displayed during the edit mode?
    I am trying to input Devanagari देवनागरी characters.
    P.S. I did some research on this and found that, if I specify the  font for the textbox = "DevanagariSangamMN" then there is some improvement.
    I say improvement becasue althought the boxes       are replaced by actual characters , they aren't correctly formated.
    For e.g. during edit mode the text appears as this: कार्यकर्ता
    But as soon as I leave the textbox it appears as this: कार्यकर्ता (I typed this here by adding special unicode characters ZWNJ so that characters won't join)
    Anyway, I don't like the idea of having to specify font names? What If some user would like to input chinese, how would I know what chinese font to use?
    Isn't there some way to let IOS handle things, (just like how it handles things when I am inputing text).
    Thanks.

    Thanks to everyone who replied.
    The conclusiver answer is that there are only 2 ways to display H264 video in AIR for IOS
    (more info here http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/NetStream.htm l#play%28%29)
    1. Progressive download
    2. HLS format (slight caveat, in my tests at least, OSMF 1.6.1 does'nt handle this, but if you use the NetStream directly with StageVideo enabled it works)
    Updated Matrix is :
    FMS 4.5 H.264 Streaming test matrix
    RTMP
    HDS
    HLS
    HTTP Progressive Download
    AIR for Android
    Yes
    Yes
    No
    Yes
    AIR on Windows (Desktop)
    Yes
    Yes
    No
    Yes
    AIR on IOS
    No
    No
    Yes
    Yes
    Safari Browser on IOS
    No
    No
    Yes
    No

  • Will there be Lollipop for S820?

    Does anybody know if S820 and/or other smartphones are getting the Lollipop Upgrade? Or...if it is possible to use a Rom like the ones from Cyanogen?
    Thank You.
    Solved!
    Go to Solution.

    Hi Soujiroska
    Does anybody know if S820 and/or other smartphones are getting the Lollipop Upgrade?
    Still waiting for the Lenovo update matrix to be updated.All new upgrades should be announced there.
    Keep an eye on that.
    Or...if it is possible to use a Rom like the ones from Cyanogen?
    Not aware of a CM version for the S820.
    Regards.
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as ''ACCEPT AS SOLUTION"! 
    Unsolicited PM's will not be answered! ....Please post your question/s in the appropriate forum board.
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

  • Multi-screen GUI

    Hello,
    I have made GUI in LabView using TAB control. GUI will toghther with VI be used for process control. I need to split 'frames' from TAB control into 3 separate screens and still use one PC. Is this feasible?
    To summary: One common PC with VI running, GUI presented on three separate (19" flat) screens.
    Do I need the new graphic card to PC or? What if the PC are an laptop?
    Thanks in advance
    Hariss

    Not to advertise, but check this out by Matrox: 
    http://www.matrox.com/graphics/offhome/th2go/home.cfm
    ...... now I want one of these!!!  .....
    (where's the drool icon??)
    EDIT=====
    I have to get one of these!!!
    Check out the specs:
    TripleHead2Go is compatible with many professional and enthusiast class desktop and laptop PCs equipped with certain NVIDIA® and ATI® enabled graphics chipsets and add-in-boards (including multi-GPU configurations). Maximum resolutions supported may vary depending on the GPU version. An updated matrix of GPU version and maximum resolution supported is available on the compatibility page.
    Inside the box
    TripleHead2Go connector box
    2-foot HD15-to-HD15 (analog) monitor cable
    2-foot DVI-I to VGA cable
    External 5VDC power adapter
    Region-specific power cable(s)
    Quickstart paper and CD, which includes the following software:
    Install package
    PowerDesk SE (includes Image quality adjustment, center popup, window management, etc.)
    Electronic Product Manual
    Matrox Surround Gaming Utility
    Additional resolutions (such as DualHead modes or Triple Widescreen modes) can be enabled through the TripleHead2Go Mode Expander Tool.
    Product information
    Dimensions
    9.2 cm x 10.7 cm x 2.5 cm
    Weight
    168 grams
    Connectors
    HD-15 (analog) x 4 (1 input, 3 output), Power (5VDC, 2A)
    Message Edited by JoeLabView on 06-20-2006 10:55 AM

  • Tiger to Snow Leopard possible Java architectures

    My company is developing a Java application with a small native library in a Universal Binary. We want to be sure we test our native library on all possible architectures, but we're having a hard time determining what they are. We're supporting Mac 10.4 - 10.6, Java 1.5+.
    Could anyone help me fill in this matrix? I think I have it correct except for the question marks. This would be helpful for me, but I would assume others would find this useful too.
    Tiger
    Intel 32-bit: Java 5 (32-bit)
    Intel 64-bit: Java 5 (32-bit), Java 5 (64-bit)?
    PowerPC 32-bit: Java 5 (32-bit)
    PowerPC 64-bit: Java 5 (32-bit), Java 5 (64-bit)?
    Leopard
    Intel 32-bit: Java 5 (32-bit)
    Intel 64-bit: Java 5 (32-bit), Java 5 (64-bit), Java 6 (64-bit)
    PowerPC 32-bit: Java 5 (32-bit)
    PowerPC 64-bit: Java 5 (32-bit), Java 5 (64-bit)?
    *Snow Leopard*
    Intel 32-bit: N/A
    Intel 64-bit: Java 6 (32-bit), Java 6 (64-bit)
    PowerPC 32-bit: N/A
    PowerPC 64-bit: N/A

    Thanks, I didn't realize that. Can you fill in any of the gaps or identify other errors?
    Here's an updated matrix:
    Tiger
    Intel 32-bit: Java 5 (32-bit)
    Intel 64-bit: Java 5 (32-bit), Java 5 (64-bit)?
    PowerPC 32-bit: Java 5 (32-bit)
    PowerPC 64-bit: Java 5 (32-bit), Java 5 (64-bit)?
    Leopard
    Intel 32-bit: Java 5 (32-bit)
    Intel 64-bit: Java 5 (32-bit), Java 5 (64-bit), Java 6 (64-bit)
    PowerPC 32-bit: Java 5 (32-bit)
    PowerPC 64-bit: Java 5 (32-bit), Java 5 (64-bit)?
    *Snow Leopard*
    Intel 32-bit: Java 6 (32-bit)
    Intel 64-bit: Java 6 (32-bit), Java 6 (64-bit)
    PowerPC 32-bit: N/A
    PowerPC 64-bit: N/A

  • Jetzt wird das langsam

    Habe schon die letzten Jahre immerwieder mal Pages angeschaut. Musste aber immerwieder zu AppleWorks zurückkehren. Doch jetzt mit Pages 08 habe ich fast alle AppleWorks Files konvertiert.

    Hallo grisu63, willkommen im Forum,
    wissen wir leider nicht. Über den folgenden Link findest Du das Android Update Matrix, wir beobachten die Seite sollte es etwas neues geben;
    http://support.lenovo.com/us/en/documents/ht101396
    Andy  
      Deutsche Community     Comunidad en Español    English Community Русскоязычное Сообщество

  • Playing HLS stream using OSMF in Air for IOS

    Is there any sample app (source) that shows how to play HLS streams using AIR for IOS, that the OSMF team can make available?
    I am running into issues trying to get this to work as outlined here. http://forums.adobe.com/message/4013821#4013821
    TIA,
    - Abey

    Thanks to everyone who replied.
    The conclusiver answer is that there are only 2 ways to display H264 video in AIR for IOS
    (more info here http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/NetStream.htm l#play%28%29)
    1. Progressive download
    2. HLS format (slight caveat, in my tests at least, OSMF 1.6.1 does'nt handle this, but if you use the NetStream directly with StageVideo enabled it works)
    Updated Matrix is :
    FMS 4.5 H.264 Streaming test matrix
    RTMP
    HDS
    HLS
    HTTP Progressive Download
    AIR for Android
    Yes
    Yes
    No
    Yes
    AIR on Windows (Desktop)
    Yes
    Yes
    No
    Yes
    AIR on IOS
    No
    No
    Yes
    Yes
    Safari Browser on IOS
    No
    No
    Yes
    No

  • Vibe Z2 Pro - Lollipop

    Hello,
    I am wondering if the Lenovo is planing update to Android Lollipop, it is just great phone instead of that creepy VibeUI.
    Second thing - where I can found what was updated with last OTA ? I get 3 new firmwares but without any info what was updated.

    Hi
    Being Lenovo's flagship phone it's very likely that the K920 will get upgraded to Android L .I wouldn't worry about that...But I don't know when(still waiting for a new update matrix).
    VibeUI is Lenovo's customized UI(User Interface).You're actually running Android 4.4.2 Kitkat>>>If you want the stock Android look and fell just go Settings-->Developer options-->Switch system UI style and you'll be on stock Android.
    If you can't find ''Developer options'' in Settings>>Go to Settings-->About phone-->Version information-->Press/Tap 7x on the ''Software version number'' to enable developer options.
    Regarding your second question:As far as I know Lenovo dosen't provide changelogs for it's updates...But if you tell me you current firmware build number(Settings-->About phone-->Version information-->Software version number ? ) I may be able to to find a changelog(''info what was updated'') from third party sources.
    Hope this helps.
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as ''ACCEPT AS SOLUTION"! 
    Unsolicited PM's will not be answered! ....Please post your question/s in the appropriate forum board.
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

  • Updating and Loading a  Matrix Row with Mix of DB and Non DB fields

    Hi
    I'm using SAPB1 2005 SP1 PL14 with B1DE 1.3
    I have a matrix on a form that was generated by the UDO Form Generator. The Matrix contains data associated from a Document Lines table.
    The underlying table and (therefor the matrix as well) only had 1 user field (column)
    I've added a set of additional (read only) columns to the matrix together with supporting non db user datasources for each column. I've bound the new columns to the user datasources.
    The new columns are only informational and should display data associated with the actual db field (column) in the matrix.
    I require assistance / advice with 2 requirements:
    <i>Requirement 1.
    When loading the matrix, I'd like the non DB columns to be populated with data associated with the actual DB field.</i>
    <i>Requirement 2.
    When Adding / Updating the actual DB field in the matrix, I'd like the Non DB columns to be populated with the assocaited data.</i>
    I've managed to get requirement 2 working by using a matrix onValidate Event. (not sure if this is the best approach?)
    Any idea how I can achieve requirement 1 ?
    Cheers,
    Ben

    Hi Trinidad,
    Putting the additaional columns in the table will result in me storing redundant info in the specific table.
    The values are already stored in other related tables and I'd just like to display them as additional info fields.
    .Ben

Maybe you are looking for