Matrix column data

hi all,
         how to pass the value for a particular column in the matrix from my back end coding?????
oMatrix.Columns.Item("tspent").Cells.Item(iCnt)= 45  //Any Value
like this i want to pass my value from the backend coding..but at this line it's saying error........how to do this???
regards,
shangai.

Hi
1) column uid in your matrix is tspent ? I meen what you shoud use item uid.
For iCnt = 1 To oMatrix.VisualRowCount
  oMatrix.Columns.Item("tspent").Cells.Item(iCnt)= 45  //Any Value
Next
2) Or you can do it so:
For iCnt = 1 To oMatrix.VisualRowCount
  oMatrix.GetLineData(iCnt)
  'oMatrix.Columns.Item("tspent").Cells.Item(iCnt)= 45  //Any Value
  oForm.DataSources.UserDataSources.Item("userdatasourcenamehere").Value = 45
  oMatrix.SetLineData(iCnt)
Next
3) Also try to check type and size of the column if you are using userdatasource ...
<userdatasources>
  <action type="add">
    <datasource uid="uTspent" type="9" size="8"/>
      <datasource uid="u_BPCode" type="9" size="15"/>
Regards
Sierdna S.

Similar Messages

  • SSRS 2008 Matrix - Column Data Incorrect

    I am trying to convert an old local Crystal Report. Basically, for a given order, there are multiple line items. The report needs to show Order and Vendor in the left two columns, then a variable number of columns (that fit on a page) to display the line numbers.
    To do this, I added a Matrix, and adding the groupings and all that. However, I get only one line item for each Order/Vendor combination, even though each combination has at least two line items.
    Current:
    ============================================
    + Order + Vendor + Item 1 + Item 2 ...
    ============================================
    + OrdValue1 + VendValue1 + Value + [blank]
    ============================================
    + OrdValue2 + VendValue2 + [blank]+ Value
    ============================================
    Desired:
    ============================================
    + Order + Vendor + Item 1 + Item 2 ...
    ============================================
    + OrdValue1 + VendValue1 + Value + Value
    ============================================
    + OrdValue2 + VendValue2 + Value + Value
    ============================================

    Hi dgjohnson,
    In Reporting Services, the issue always occurred when there is no value when Order= OrdValue1, Vendor=VendValue1, Item=Item2 and Order= OrdValue2, Vendor=VendValue2, Item=Item1. In this scenario, the cell that corresponding to the value would be blank. In
    order to troubleshoot this issue more efficiently, could you please provide us more information about the report? If possible, provide us some screenshots about your report design and your dataset with sample data. So that we can make further analysis and
    help you out.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • SSRS 2008R2 : Not able to use Previous aggregrate function in matrix columns cell

    Hi Expert,
    I have used a matrix tablix in my report. It is working fine. But when I am trying to use Previous aggregrate in one matrix column cell I get the below error:
    The use of previous aggregrate function ia a tablix cell with in 'Tablix1' is not supported.
    Please help me regarding that.
    Thanks Rana

    Hi Rana,
    In your scenario, you use previous function in the “Data” cell, right? Previous function cannot be used in the overlapping parts of row group and column group. One workaround of this issue is use custom code to get the previous value.
    Public Shared previous as Integer
    Public Shared current as Integer
      Public Shared Function GetCurrent(Item as Integer) as Integer
         previous=current
         current=Item
         return current
      End Function
      Public Shared Function GetPrevious()
         return previous
      End Function
    Then you can use the expression below in the “Data” cell to get the previous value:
    =Code.GetCurrent(fields!Score.Value) & "-Previous-" & iif(Code.GetPrevious()=0,"",Code.GetPrevious())
    If you have any questions, please feel free to ask.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Check box in matrix column bind correctly but doesn't appear check sign

    Dear Sirs,
    I have a check box in a matrix column (the matrix is placed i an extra folder in the item master data form).
    The column is bound to a DBDataSource related to the user defined table @IIT_ITM1 as reported in the following code. The table field bound to the check box column is alphanumeric of size 1.
    I use the following code:
                    oCln = oMtx.Columns.Add("Per_coll", SAPbouiCOM.BoFormItemTypes.it_CHECK_BOX);
                    oCln.DisplayDesc = true;
                    oCln.Description = "For test";
                    oCln.TitleObject.Caption = "For test";
                    oCln.ValOn = "Y";
                    oCln.ValOff = "N";
                    oCln.Width = 60;
                    oCln.DataBind.SetBound(true, "@IIT_ITM1", "U_IIT_PerColl");
                    oCln.Editable = true;
    The problem is: the binding to the database work (if I click on the check box and save the data, then the database content change accordingly) but I CANNOT LET THE USER SIGN APPEAR on the check box control!
    Does anyone have the solution?
    Thank you for help
    Massimo

    No response from the forum

  • Load System Matrix with Data

    Hi,
    I like to fill system Matrix with data; please find the code below.
    Thank you very much for your good work and support.
    Thank you,
    Rune
    CODE
    #region SalesOrderItemLine_GetDataFromDataSource
    public void SalesOrderItemLine_GetDataFromDataSource( SAPbouiCOM.Form oForm, bool Matrix77_AddRefresh )
         try
              if ( Matrix77_AddRefresh )
    oForm.DataSources.DataTables.Add("SYS_77");
              oForm.DataSources.DataTables.Item("SYS_77").ExecuteQuery("SELECT [Code],[Name],[U_Weight],[U_PoNo],[U_CoopName],[U_Consignee],[U_PalGroup],[U_Container],[U_ItemCode],[U_CheckBoxSelect] FROM [dbo].[@MyTable] WHERE [U_MatrixAorB] = 'A' AND [U_WRKsalesOrderYN] = 'N'");
              ( ( SAPbouiCOM.Matrix ) ( oForm.Items.Item("77").Specific ) ).Columns.Item("1").DataBind.Bind("SYS_77", "U_ItemCode");
              ( ( SAPbouiCOM.Matrix ) ( oForm.Items.Item("77").Specific ) ).Clear();
              ( ( SAPbouiCOM.Matrix ) ( oForm.Items.Item("77").Specific ) ).LoadFromDataSource();
              ( ( SAPbouiCOM.Matrix ) ( oForm.Items.Item("77").Specific ) ).AutoResizeColumns();
         catch ( Exception Error )
              oApplication.MessageBox("Add-On Error-3232: = " + Error.Message, 1, "Ok", "", ""); // My Error Code
    #endregion

    Hi David!
    This is a Product Development Collaboration suggestion!
    I like to load data into system matixes...that could be really nice!
    (No my problem is still out there...
    Thank you,
    Rune

  • How to display calculated matrix columns in a graph?

    Hi, 
    I am working in VisualStudio 2010 hitting SQL Server 2012 to build SSRS reports.
    I have a need to graph year over year percentage growth as derived from two SSRS matrix columns.  Everything is working except that the chart displays only one value for each year series, rather than displaying the correct percentages for each audience
    for each of the two years.
    The values in the chart series properties are called with the expression: =ReportItems!YoYGrowthPercent2014.Value (or =ReportItems!YoYGrowthPercent2014.Value, respectively), where "YoYGrowthPercent2014" is the name of the detail cell holding
    the expression to calculate the growth percentage at the audience level in the matrix.
    It looks like it should work yet the results are incorrect.  I've read several hundred articles and posts at this point and do not have an answer.
    Is there any way to do this? It seems like it should be so simple, and yet...
    Thank you!
    ~Khrys.

    I can reproduce your issue.  If you toggle open Audience P I think you will find the very last value for the last Category and the last Product_Group will be around 15% for Growth 2014 and around 23% for Growth 2015.  The chart series expression
    is choosing the last value for ReportItems!YoYGrowthPercentage as it doesn't know how to attribute that ReportItem to the Audience matrix.  If you want a chart to display only the percentage for Audience, I suggest that you have a separate data
    source with the values for GrowthPercentage for only the Audiences, and make that the data source for your chart. Also, I would make the growth figures in your matrix also a matrix by doing the percentage calculation directly in the table. You would pull in
    the value for this year and the value for last year into your data set, and then do the calculation within the report as follows:
    =SUM(Fields!Value.Value)/Sum(Fields!LastYearValue.Value)-1
    Create a second Column Group adjacent after, also by year.  Your query could look something like this, depending on how your tables are structured:
    SELECT a.Audience, a.Category, a.ProductGroup, a.Year, a.Value, b.Year as LastYear, ISNULL(b.Value,0) as LastYearValue
    FROM YoYGrowth a LEFT OUTER JOIN
    YoYGrowth b ON a.Audience = b.Audience and a.Category= b.Category and a.ProductGroup = b.ProductGroup
    AND a.Year-1 = b.Year
    Hope it helps.  Cheers,
    Martina White

  • Problem in matrix Column

    Hi,
    In a matrix column if all row contains data 'A' means in the header text it should display 'A'  but if in matrix column if 5 rows contains 'A' and 3 rows contains 'B' means in the header text should display 'B'. How to do this i have done but its not working correctly in all entries.
    Regards,
    madhavi

    Hi Madhavi,
    sounds like an algorithm problem in your code.
    you problem should be no big deal:
    1. you have have two counter variables
    2. go through the matrix.rowcount
    3. look in the column if there's A or B
    4. add 1 to the correct counter
    5. look which counter is higher - more A or more B
    6. set the column title.
    lg David

  • Matrix column

    Hai,
    How can i freez the matrix column.
    eg.
      for example there are 20 columns in the matrix . I need to freez still 5 column. so that when the user can scroll and enter the data easily.
    regards
    Suresh S

    Hi Suresh,
    Eventhough its not possible, you can try the following idea. I haven't tried it and I don't have sample code for you, but just think about it.
    Say you have columns 1 to 10. 1 to 5 should stay visible (frozen) when the user scrolls to the right. When the user presses the tab key from one column to the next you can see which column is selected. If it is column 6 you do nothing. If you get to column 7, hide column 6. If you get to column 8, hide column 7, etc.
    You need to think about this a bit more in detail, but I hope the suggestion will put you in the right direction.
    Hope it helps,
    Adele

  • How to load Matrix report data into basic table data using ODI

    Hi,
    How to load Matrix report data into basic table data using oracle Data Integrator ?
    Requirement Description:
    Following is the matrix report data:
    JOB                       DEPT10                DEPT20 
    ANALYST                                           6000
    CLERK                   1300                     1900 Need to convert it into below format:
    JOB                             Dept                        Salary
    ANALYST                  DEPT10     
    ANALYST                  DEPT20                     6000
    CLERK                       DEPT10                    1300
    CLERK                       DEPT20                    1900
        Thanks for your help in advance. Let me know if any further explanation is required.

    Your list seems to be a little restrictive, you can do a lot more with ODI procedures.
    If you create new procedure, and add a step. In the 'command on source' tab set you technology and schema as per your source database. Use the unpivot functionality as described in the link, please, rather than using 'SELECT *' use the appropriate column names and alias them for eg:
    SELECT job as job,
    deptsal as deptsal,
    saldesc as saledesc
    FROM pivoted_data
    UNPIVOT (
    deptsal --<-- unpivot_clause
    FOR saldesc --<-- unpivot_for_clause
    IN (d10_sal, d20_sal, d30_sal, d40_sal) --<-- unpivot_in_clause
    Then in your 'command on target' tab set the technology and schema to your target db, then put your INSERT statement for eg:
    INSERT INTO job_sales
    (job,
    deptsal,
    saledesc
    VALUES
    :job,
    :deptsal,
    :saledesc
    Therefore you are using bind variables from source to load data into target.
    Obviously if the source and target table are in the same database, then you can have it all in one statement in the 'command on target' as
    INSERT INTO job_sales
    (job,
    deptsal,
    saledesc
    SELECT job as job,
    deptsal as deptsal,
    saldesc as saledesc
    FROM pivoted_data
    UNPIVOT (
    deptsal --<-- unpivot_clause
    FOR saldesc --<-- unpivot_for_clause
    IN (d10_sal, d20_sal, d30_sal, d40_sal) --<-- unpivot_in_clause
    also set the log counter as 'Insert' on the tab where your INSERT statement is, so you know how many rows you insert into the table.
    Hope this helps.
    BUT remember that this feature only came out in Oracle 11g.

  • Hide Matrix column With Parameter

    Hi
    I,m trying to hide matrix columns with parameters. If i for example have one matrix column with for example tre metrix values  (Jan, Feb, and Mar). I have an expression with the values Jan, Feb, Mar with witch i would like to decide which
    columns to show in the matrix column. In cases when i have a real column i use code as below in the column. But now that this three columns basically exists in one matrix column i dont know how to solve it. Anybody that has a soluiton on this preferably
    some example code on the example.
    IIF(INSTR(JOIN(Parameters!ColumnChoser.Value,
    ","),"Jan")>0,False,True)
    Best regards Arne
    Arne Olsson

    Why not restrict data to only show the months you passed. Matrix creates columns based on data available so what you need is a filter like this in query below
    WHERE ','+ @MonthList + ',' LIKE '%,' + MonthName + ',%'
    assuming @MonthList as parameter through which you pass Jan,Feb etc and MonthName is column of the table containing corresponding month names used as matrix column group.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • ORE: invalid cost.matrix column names

    I am trying to use the odmDT method with applying custom costs like so:
    > dt.mod = ore.odmDT(default ~ .,credit_train,max.depth=20,cost.matrix=matrix(c(0,1,4,0),nrow=2)
    but I get the error:
    Error in ore.odmDT(default ~ ., credit_train, max.depth = 20, cost.matrix = error_cost) :
      ORE: invalid cost.matrix column names
    I can't find any documentation anywhere on how exactly this cost matrix needs to be specified.
    Any help would be appreciated

    The value for cost.matrix currently requires a data frame object. The following examples using the NARROW data successfully pass a data frame for the value of cost.matrix:
        R> NARROW.costs.gender <- data.frame(ACTUAL_TARGET_VALUE = c("M","F","M","F"),
                                          PREDICTED_TARGET_VALUE = c("M","M","F","F"),
                                          COST = c(0.0, 0.25, 0.75, 0.0))
        R> NARROW.costs.class  <- data.frame(ACTUAL_TARGET_VALUE = c(0,1,0,1),
                                          PREDICTED_TARGET_VALUE = c(0,0,1,1),
                                          COST = c(0.0, 0.25, 0.75, 0.0))
        R> dt.mod1  <- ore.odmDT(GENDER ~ ., NARROW, cost.matrix=NARROW.costs.gender)
        summary(dt.mod1)
        R> dt.mod2  <- ore.odmDT(CLASS ~ ., NARROW, cost.matrix=NARROW.costs.class)
        summary(dt.mod2)
    I've filed a bug so this behavior may be evaluated for a future Oracle R Enterprise release.

  • Splitting Column Data in a Ticker View

    Hi All,
    How to split the column data into Rows rather in a Single Row in a Ticker View?
    I have created a Request with 3 columns viz., Emp ID, EName and Salary. In Ticker View, diplaying the data in 3 rows. But, I would like to display the data as we see in a Table Format i.e.,
    1 John 10000
    2 Allen 15000
    Instead of
    1 2
    John Allen
    10000 15000
    Thanks,
    -Vency

    Hi,
    Thanks for giving Reply.
    I knew that we can use HTML tags. I have done with Creating Table and used @{Column_Number} in Row Format.
    <Table><tr><td>@2</td></tr><tr><td>@3</td></tr></Table>
    Here, @2 is a Second Column Data is occupying only one row i.e., displaying John Allen. But I need to display Allen in the next line as I gave the example in the previous post. I am not getting the way How can I Split that @2 into multiple rows.
    Is you are expecting me to do in other way? please suggest..
    Thank You,
    -Vency

  • Show Column Data In One Row

    Hello,
    Tell Me how i can show a single column data in one row.
    10
    20
    30
    To
    10,20,30

    If you are OK with displaying comma separated list or column data you could:
    SQL> select  ltrim(sys_connect_by_path(ename,','),',') ename_list
      2    from  (
      3           select  ename,
      4                   row_number() over(order by 1) rn,
      5                   count(*) over() cnt
      6             from  emp
      7          )
      8    where rn = cnt
      9    start with rn = 1
    10    connect by rn = prior rn + 1
    11  /
    ENAME_LIST
    SMITH,ALLEN,WARD,JONES,MARTIN,BLAKE,MILLER,SCOTT,KING,TURNER,ADAMS,JAMES,FORD,CLARK
    SQL> To display as separate columns you would need to either know number of rows:
    SQL> select  min(case rn when 1 then ename else null end) ename1,
      2          min(case rn when 2 then ename else null end) ename2,
      3          min(case rn when 3 then ename else null end) ename3,
      4          min(case rn when 4 then ename else null end) ename4,
      5          min(case rn when 5 then ename else null end) ename5,
      6          min(case rn when 6 then ename else null end) ename6,
      7          min(case rn when 7 then ename else null end) ename7,
      8          min(case rn when 8 then ename else null end) ename8,
      9          min(case rn when 9 then ename else null end) ename9,
    10          min(case rn when 10 then ename else null end) ename10,
    11          min(case rn when 11 then ename else null end) ename11,
    12          min(case rn when 12 then ename else null end) ename12
    13    from  (
    14           select  ename,
    15                   rownum rn
    16             from  emp
    17          )
    18  /
    ENAME1  ENAME2  ENAME3  ENAME4  ENAME5  ENAME6  ENAME7  ENAME8  ENAME9  ENAME10  ENAME11  ENAME12
    SMITH   ALLEN   WARD    JONES   MARTIN  BLAKE   CLARK   SCOTT   KING    TURNER   ADAMS    JAMES
    SQL> or use dynamic SQL.
    SY.

  • Can i see the column DATA(BLOB type) in PM_OBJECTS of DCM schema

    we installed DCM managed clustering .it is Database repository type.
    i am trying to see the column DATA(BLOB type) in PM_OBJECTS of DCM schema .
    I wrote a program in java to read blob data type and write it into a temporary file.
    when i open temporary files all the data in junk format.
    can i see the real data of thatcolumn.Is it possible?
    first of all for what purpose DCM shema will be used?

    Hi,
    There is no option to show the comments on the diagram.
    We plan to add such feature in the next version.
    Ivan

  • How to Calculate Line items Total of Matrix Column

    hai experts,
                  Im facing a problem like
                   1. i have a matrix with a column Labour Costs in that im taking some cost.
                   2. in footer a have a Edit Text like Total Labour Cost
                   3 when i enter amount in matrix column it sholud disply that value in total labour cost and when we add new row ,labour cost it should add to 'total labour cost' in footer.Like Invoice Documents.

    Where do you want to implement this like sapscript / smartforms or adobe forms? please specify.

Maybe you are looking for