Set value to system matrix (38) cell

Hello,
Thanks for your reply.
I need to set value for some UDF on a system matrix (38). Crurrently ,I use following code:
public void SetValue(string columnUniqueId, int matrixRowIndex, string value);
(I'm using the coresuite framwork)
The coresponding way in SDK would be:
oMatrix.Columns.Item("columnUniqueId").Cells.Item("matrixRowIndex").Specific.value = "value"
This works but when I have more than 10 UDF to fill together, the performance is bad. It takes nearly 3-4 seconds to load one item(row).
Is there any fast way to set the value? Or is there any other suggestion how to do it?

No, the problem is not by loading of UDFs by a existing document.
But when you create a new document and you add a new postion to the document by choosing an item. Then our AddOn copies the UDF values from the item master data into the corresponding UDFs in the postion. At this moment I have to write them manually.
The best would be when the UDFs in the Item Master Data would be autiomatically created also  in the postion of documents. Because in this way they would be automatically loaded by SBO itself.
I think SBO has a mistake in its design by here.

Similar Messages

  • Focus when setting value in system matrix

    Hi All,
    Starting from SAP Business One 8.8 SAP changed the behaviour of the matrix focus.
    Previously, after you set a value in a system matrix with the UI API, the focus was automatically restored to the item that previously had the focus. In 8.8, the focus remains on the matrix cell.
    We're currently facing different issues with addons which were working in the past as this is a change of behaviour.
    I would like to know from other forum users what they think about this change of behaviour, is it good, not good?, ...
    Thank You,
    paolo

    Hi Paolo,
    I ran in to this issue on a number of my addons which caused me a lot of extra work. Personally I thought it was a weird change to make as I would rarely (if ever) want to automatically set focus to a cell in a matrix when the value is changed through code. Typically my addon might be setting 3 or more values in a row (based on data that the user selects) and, after the change to the UI API, the screen flickers badly and the focus ends up on the final cell that was updated which can make data entry awkward (especially as Form Settings allows any user to change the order of the columns). In the end I had to freeze the form during my updates and then call the Click method on the cell where I wanted focus to remain.
    I did raise this with SAP support and they said it was a deliberate design change. Hopefully they will change it again so that the developer can pass in a parameter or something to control where the focus is placed after the update.
    Kind Regards,
    Owen

  • Set value of System Matrix Form using SDK

    Is is possible to set matrix value using SDK of user defined form. Plz forward code for same.

    Yes it is possible. You need to get the form and into the form the item, cast it to a matrix and then set the values into it.
    There is plenty of samples you can use to learn about UI API. You can download them directly from SDN.

  • Is there any way to put the values inthe system matrix which is non editabl

    is there any way to put the values inthe system matrix which is non editable...
    this Q is not that much priority since i had achieved the requirement other way round by having user defined matrix ... but if i get the way for this it will help my add on performance much better...

    Hi Raj, I didnt get all the details but here some ideas how you can solve your issue:
    Depending in the system form you are working you can always use a DBDataSource in order to manipulate the rows in a matrix. It's much better as using the objects of the matrix itself. In this case you can use:
    oMatrix.FlushToDataSource()
    oDBDsource.SetValue("U_Quan", pVal.Row, "101")
    oMatrix.Clear()
    oMatrix.LoadFromDataSource()
    As you can see in SetValue i'm obtaining the Column, then the row number and then setting a NEW value for this cell.
    Please consider if you can use DBDataSource instead of UserDataSource.
    If the answer is yes then you can use the following:
    oMatrix.FlushToDataSource()
    '//Get the line you want
    matrix.GetLineData(pval.row)
    '//Call the Userdatasource assigned to that column
    UserDataSource = UserDataSources.Item("ItmCode")
    '//Set the new value
    m_UserDS.ValueEx = "A02520"
    oMatrix.LoadFromDataSource()
    You can also use:
    oMatrix.Columns.Item("ItemName").Cells.Item(l_rownum).Specific.String = "A02520"
    In case you are not assigning the string in a combobox of course.
    Good luck!
    Felipe

  • How to fill values in the system matrix through code

    hi
    All
    i want to fill the system matrix in the sales order in such a way that
    Items will be filled in system matrix in the lost focust event of the Customer Code selection in the Sales order Document
    how can i fill the system matrix through code
    one thing that first column(ItemCode)  of the system matrix column is a Icombbox type
    Now i need to fill out item code using code
    can any one suggest the answer
    thanks in advance

    madhu,
    You need to catch the Validate event, when pVal.BeforeAction = False for form items 4 (CardCode) and 54 (CardName) of the Sales Order form.
    Concerning the form's matrix, you can fill it but you cannot change it (you cannot change the ItemCode column into a ComboBox. Is is a EditText)
    Fill a System matrix's Cell with the following code:
        Dim oMatrix As SAPbouiCOM.Matrix = oForm.Items.Item("38").Specific
        oMatrix.Columns.Item("ItemCode").Cells.Item(Row_Num).Specific.Value = "Item_Code"
    Regards,
    Vítor Vieira

  • How to Set column value in SO matrix , if the column is not visible.

    Hi,
    We are trying to set value in to a column from sales order matrix with the below mentioned code
    ((SAPbouiCOM.EditText)oMat.Columns.Item("U_TWBS_AC_BaseEntry").Cells.Item(pVal.Row).Specific).String
    it will throw an u201CForm Item is not editable u201C  error if the  column ("U_TWBS_AC_BaseEntry")  visible is set to false through form settings.
    how can we solve the issue,can we use any DI object in order to reset the form settings.
    Thanks & Regards

    Hi
    Try and make the column visible then set the value and make it invisible then
    Hope this helps
    Regards
    Vivek

  • Set value of project code to Reciept from production matrix.

    Hello Friends,
    I want to set value of project code to Reciept from production matrix after selecting Production order number.I have taken project code field in Production order header.That project code value i have to set  in Reciept from production. I got the Project code no by query but I cant set it to Reciept from production  Matrix project column.
    RS.DoQuery("Select U_PrjCode from OWOR where DocEntry='1')
    str = RS.Fields.Item("U_PrjCode").Value
    oMatrix.Columns.Item("21").Cells.Item(1).Specific.value = str
    this code give me an error
    "Item-Cant set value on item because the item cant get focus"
    Plz give me solution for this..
    Thanks & Regards,
       Swati

    Hello Swati,
    The cell should be foucsed before setting value for it. try this:
    RS.DoQuery("Select U_PrjCode from OWOR where DocEntry='1')
    str = RS.Fields.Item("U_PrjCode").Value
    oMatrix.Columns.Item("21").Cells.Item(1).Click()
    oMatrix.Columns.Item("21").Cells.Item(1).Specific.value = str
    Kind Regards
    -Yatsea

  • How to access a Matrix cell value outside the matrix in textbox?

    Hi
    I have created a matrix in SSRS. Columns are grouped by Channel Type. I want to access indicated cells value outside the matrix. 
    After Running the report the report shows
    How can I access cell values outside the matrix? Please help

    Hi Aladin92,
    According to your description, there is a matrix in the report, you want to reference the first value of total outside the matrix, right?
    In fact, Report item expressions can only refer to other report items within the same grouping scope or a containing grouping scope. Are the both textboxes in the same group. To workaround the issue, please refer to the following steps:
      1. Click and select the matrix, copy it and paste it in the report above the original matrix.
      2. Right-click handle of the first row in the upper matrix, click Insert Rows, then click Inside Group-Above.
      3. Right-click second cell of the first row, then click Expression.
      4. In the Expression text box, type the expression like below:
    ="A total of "& ReportItems!Textbox5.Value & "out of 258 BC CCRs have been evaluated"
      5. Set the text boxes and rows visibility to be hidden except for the text box with expression.
    The following screenshots are for your reference:
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    Wendy Fu
    TechNet Community Support

  • Error trying to run SSIS Package via SQL Server Agent: DTExec: Could not set \Package.Variables[User::VarObjectDataSet].Properties[Value] value to System.Object

    Situation:
    SSIS Package designed in SQL Server 2012 - SQL Server Data Tools
    Windows 7 - 64 bit.
    The package (32 bit) extracts data from a SQL Server db to an Excel Output file, via an OLE DB connection.
    It uses 3 package variables:
    *) SQLCommand (String) to specify the SQL Statement to be executed by the package
    Property path: \Package.Variables[User::ExcelOutputFile].Properties[Value]
    Value: f:\Output Data.xls
    *) EXCELOutputFIle (String) to specify path and filename of the Excel output file
    Property path: \Package.Variables[User::SQLCommand].Properties[Value]
    Value: select * from CartOrder
    *) VarObjectDataSet (Object) to hold the data returned by SQL Server)
    Property path: \Package.Variables[User::VarObjectDataSet].Properties[Value]
    Value: System.Object
    It consists out of 2 components:
    *) Execute SQL Task: executes the SQL Statement passed on via a package variable. The resultng rows are stored in the package variable VarObjectDataSet
    *) Script Task: creates the physical output file and iterates VarObjectDataSet to populate the Excel file.
    Outcome and issue:The package runs perfectly fine both in SQL Server Data Tools itself and in DTEXECUI.
    However, whenever I run it via SQL Server Agent (with 32 bit runtime option set), it returns the errror message below.
    This package contains 3 package variables but the error stating that a package variable can not be set, pops up for the VarObjectDataSet only.  This makes me wonder if it is uberhaupt possible to set the value of a package variable
    of type Object.
    Can anybody help me on this please ?
    Message
    Executed as user: NT Service\SQLSERVERAGENT. Microsoft (R) SQL Server Execute Package Utility  Version 11.0.2100.60 for 32-bit  Copyright (C) Microsoft Corporation. All rights reserved.    Started:  6:40:20 PM  DTExec: Could
    not set \Package.Variables[User::VarObjectDataSet].Properties[Value] value to System.Object.  Started:  6:40:20 PM  Finished: 6:40:21 PM  Elapsed:  0.281 seconds.  The package execution failed.  The step failed.
    Thank you very much in advance
    Jurgen

    Hi Visakh,
    thank you for your reply.
    So, judging by your reply, not all package variables used inside a package need to be set a value for when run in DTEXEC ?
    I already tried that but my package ended up in error (something to do with "... invocation ...." and that error is anything but clearly documented. Judging by the error message itself, it looks like it could be just about anything. that is why I asked my
    first question about the object type package variable.
    Now, I will remove it from the 'set values' list and try another go cracking the unclear error-message " ... invocation ...". Does an error message about " ... invocation ..." ring any bells, now that we are talking about it here ?
    Thx in advance
    Jurgen
    Yes exactly
    You need to set values only forthem which needs to be controlled from outside the package
    Any variable which gets its value through expression set inside package or through a query inside execute sql task/script task can be ignored from DTExec
    Ok I've seen the invocation error mostly inside script task. This may be because some error inside script written in script task. If it appeared after you removed the variable then it may because some reference of variable existing within script task.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Javascript to set slider value with System Events

    If I open System Preferences and run this in Script Editor, it fails. It sets the volume to zero, not 50%.
      var se = Application("System Events");
      var spp = se.processes["System Preferences"];
      var curr = spp.windows[0].sliders[0].value();
      console.log("Current value: " + curr + " - " + typeof(curr));
      spp.windows[0].sliders[0].value = 0.5
      var curr = spp.windows[0].sliders[0].value();
      console.log("Current value: " + curr + " - " + typeof(curr));
    But the same thing in AppleScript seems to work fine.
    tell application "System Events"
       tell process "System Preferences"
       set v to value of slider 0 of window 0
       log v
       set value of slider 0 of window 0 to 0.5
       end tell
    end tell
    Anyone know what the problem is?
    thanks,
    Rob

    Jon Handy wrote:
    Hello,
    You should use something like this within the link attribute for that report column.
    onClick="javascript:setItem('P48_RECEIPT_ID',#RECEIPT_ID#);"As noted above, it is not considered good practice in this forum to post unnecessary follow-ups to long expired threads and users. It's worse to do so with information that is inaccurate or incomplete.
    What is the purpose of <tt>javascript:</tt> in this code?
    What is <tt>setItem</tt>? It is not a standard APEX JavaScript API method.
    You're welcome to get involved in the forum, but why make your first post an inaccurate response to a random 6 month old post that is only one of hundreds/thousands of questions on setting an item value using JavaScript?

  • Problem in Setting value in cells of jTable

    I am trying to set values in the table by editing the cells, the problem is that once i enter some values in the cells and hit enter or click on next cell it gives an exception of stack overflow, i tried tracing i am getting all the values of the particular row and colums and the value which is entered,
    public void setValueAt(Object aValue, int rowIndex, int columnIndex)
    Object[] row = (Object[]) data.get(rowIndex);
    row[columnIndex] = aValue;
    super.fireTableCellUpdated(rowIndex, columnIndex);
    but it is not executing the super.fireTableCellUpdated() function.
    i will be thankful if you provide me with the solution for the above problem or provide me any other way.
    Thank's in Advance.

    Use the DefaultTableModel, then you don't have to write custom code for the setValueAt() method.
    If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
    Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.

  • Set values in matrix

    hi ,
    i created matrix in screen painter. it includes 3 columns unit of measurement, length, width.
    i want to set values to length and width manually.
    when the form is loaded the length and width should appear in matrix
    Regards,
    Puneeth

    Here an sample to add DataSource-Information via a XML-Editor.
        <form appformnumber="WREDE_CREDITNOTES" FormType="WREDE...
                  <datasources>
                        <dbdatasources>
                            <action type="add">
                                <datasource tablename="@WREDE_CREDITNOTES"/>
                                <datasource tablename="@WREDE_CN_LINES"/>
                            </action>
                        </dbdatasources>
                        <userdatasources>
                            <action type="add">
                                <datasource uid="FolderDS" type="9" size="1"/>
                                <datasource uid="NumAtCard" type="9" size="100"/>
                                <datasource uid="cnnumber" type="9" size="100"/>
                                <datasource uid="dnline" type="0" size="4"/>
                                <datasource uid="lines" type="0" size="4"/>
                                <datasource uid="sum" type="6" size="8"/>
                                <datasource uid="sum2" type="6" size="8"/>
                                <datasource uid="draft" type="0" size="4"/>
                                <datasource uid="Folder2" type="9" size="1"/>
                                <datasource uid="FolderDS" type="9" size="10"/>
                                <datasource uid="FolderDS" type="9" size="10"/>
                            </action>
                        </userdatasources>
                        <DataTables>
                            <DataTable Uid="OPENDN">
                                <Columns/>
                            </DataTable>
                        </DataTables>
                    </datasources>
                    <Menus>

  • SharePoint Designer Workflow unnecessary set Modified By value as System Account.

    Hi Friends,
    I have created SharePoint Designer Workflow, it update other List Item as well same Item on Item Adding and Editing event.
    I have Developed workflow using System Account.
    While doing any change by general user in Workflow list it update Modified By value to System Account only.
    I want modified by value as General user only.
    Or No need to update modified and Modified by details.
    So please help me How I can resolve this issue.
    Thanks,
    Digambar Kashid 
    Thanks and Regards, Digambar Kashid

    Hi Digambar, that's by design, but here are some workarounds:
    http://blog.mmasood.com/2012/12/approval-worfklow-showing-system.html
    https://social.technet.microsoft.com/Forums/office/en-US/f3f9b1ff-9507-4471-935d-4ab8937839b6/oob-approval-workflow-makes-modify-by-field-as-system-account?forum=sharepointadminprevious
    cameron rautmann

  • Add data in a user defined column in System matrix

    Hello All,
    I have created a User defined column in the Goods Issue Form
    When I choose a particular order, I get values in the matrix defined by system
    Based on this selection, I fire a query which returns a value and this value has to be
    displayed in the user defined column.
    I am trying to add a value to this column but I get the following error message
    Form Item is not Editable
    Here is the code written in form activate event
           code = (EditText)matrix.Columns.Item(1).Cells.Item(i).Specific;
                    string strcode = code.Value.ToString();
                    string str;
                    str = "select itemCode from owor where Docnum='" + strcode + "'";
                    RecSet.DoQuery(str);
                    e = (EditText)matrix.Columns.Item(15).Cells.Item(i).Specific;
                    strcode = RecSet.Fields.Item(0).Value.ToString();
                    try
                        matrix.Columns.Item(15).Editable = true;
                        e.String = strcode;
                        matrix.Columns.Item(15).Editable = false;
                    catch (System.Runtime.InteropServices.COMException com_err)
    Regards
    Nirmala B

    On system forms, you cannot update the DataSource (DBDataSource) of system matrixes, SAP blocks it.
    The only solution is to set the column visible and editable, and write in it with the matrix cell set value method.
    The downside is that the user will be able to see and edit the values (unless you catch all edit and click events to that cell).

  • AffectsFormMode property of User defined field in system matrix

    Hallo
    I added one UDF in System matrix of  service call id at panel  Solution.
    I  set formated search for that UDF field to populate Symptons data from  system knowldge base form (table).
    I set the fromatted search property for that UDF Column is Automatic.
    So when i nevigate record on Service call form, this UDF column fetch the value and so form goes in Update Mode.
    Please i want to   AffectsFormMode  property for that column, so i  have to get the form mode is "OK"
    How it is possible.
    Pleaase help me
    Narendra
    Edited by: NarenKD on Dec 28, 2010 12:24 PM

    Hi H2
    It is true,
    But When i  open 'Service Knowledge Base'  child form  by clicking ID Link Button in Solution Tab of Service Call Form
    and update that form (here symptoms field important for me),
    it does not change the state of Parrent Service call form  to update.
    Also there is not any link between this two table SCL1 service call  and OSLT Solution knowldege table In PLD.
    so i create Symptoms  UDF in matrix at solution tab of Service call form.
    also i create formatted search to fill this column.
    I set that formatted search as "auto refresh when field change"
    so when i navigate through service call records. it featches and put value in that UDF column and make form state "Update"
    I want to avoid it.
    means when i navigate the service call, when the value of  that UDF Is different then OSLT table then that Service Call goes to update state otherwise it have OK state.
    I used query in formatted search to fetch the value for UDF
    What will be the solution for this problem.
    Also tell me Can i call formatted search through program means can i give formatted search command (shift F2. or press formatted seach button) in program.
    Regards
    Narendra
    Edited by: NarenKD on Dec 29, 2010 9:41 AM
    Edited by: NarenKD on Dec 29, 2010 9:50 AM

Maybe you are looking for

  • How to call function module from IP

    Hi I need to trigger the process chain from the input ready queries in Bex analyzer. I figured out that I need to call RSPC_API_CHAIN_START. How do we go about in calling the above function module in IP. Thanks in advance I

  • Changing destination drive for burning music to USB (drive F) instead of cd (drive E)

    My computer shows that I have both a Drive E for CDs and a Drive F for the USB but I cannot figure out how to change the destination when I try to burn to the USB instead of the CD.  Does anyone have an answer? Thanks, ClintsMomma This question was s

  • Issues with quartz screensavers' screencapture.

    I started messing around with quartz composer when Tiger came out, and I've made a wide variety of screensavers since. One of the new features in leopard is the ability to take a screenshot the moment the screensaver activates. This allows you to mak

  • Resetting the Noise Margin after Upgrade to 21CN

    Hello, A few weeks ago I requested the Noise Margin resetting when I was on ADSL Max - which worked a treat  However, since then I've been upgraded to 21CN (see below) and the Noise Margin has jumped back up to an average of about 9db.  The line has

  • IBGP as IGP in DMVPN Problems

    Hi, Is it possible to run iBGP as the IGP in a DMVPN (instead of EIGRP\OSPF) ? I am testing a deployment scenario where the iBGP connection always fails after initially coming up (stays up for around 30 minutes. The spoke says that it did not get the