Adding columns in the matrix

Hai ,
I am adding the columns in an existing matrix at runtime in page load.
I can able to add but how to give the header text for the columns added?
I tried with the following code,
oMatrix.Columns.Item("ItemMake").Title = "Make";
but it gives  the error as,
"property or indexer 'SAPbouiCOM.IColumn.Title' cannot be assigned to -- it is read only"
and also i want the added column to be displayed in the first position.
Regards,
Kughan.

Hi,
Then i recommend u to create a UDF in the marketing document section. So that in the PO matrix u can get a new col. And for creating the UDF u can do it in SAP UI using.. Tools->Customization Tools->User defined Fields management or u can also do it in code C:\Program Files\SAP\SAP Business One SDK\Samples\COM DI\VB.NET\02.MetaDataOperations Check that sample for code.
Hope it helps,
Vasu Natari.

Similar Messages

  • Adding Columns to the matrix in SAP B1 user form using Visual studio 2010

    Hi,
    Using Visual studio 2010, I have created a SAP B1 user form( b1f ) with one matrix.Matrix is having 5 columns. Its working properly. Later, I want to add few more columns. Then I added columns to the matrix as I have created columns initially. But, it does not saves.
    i.e, Whenever I run, In B1 I could see only old columns. Newly created columns are not showing.So, I closed the .net project and opened again. Created columns are not showing in visual studio b1f itself. So, I created again and saved. But, its not saving.I tried it many times.
    What I am missing?
    Any help is appreciated.
    Thanks in advance,
    Parvatha Solai.N

    Hi Parvatha,
    Are you using B1 Studio? Anyway try to clean the solution first then rebuild it. This would re-copy files to the output directory, that contain your changes.
    Best regards,
    Pedro Magueija

  • Search Field column of the Matrix

    What I do:
    1 - A column of my matrix will have the option to click on the "tab" key or "enter" and open the "Item List" in the search mode.
    2 - When you select a record, is filled in the fields of my Matrix according to the selected record.
    3 - In short, I want to implement a column of the matrix field of research in a SAP table. And that when you select me to capture the data from this record for the Matrix.

    Hi harley.rodrigues,
    Could you share me your code , plz.
    Best Regard,

  • I'm actually trying to find the date i visited a site. adding columns allow the order to be sorted but not show a date. Please tell me it there's a way to see t

    I'm actually trying to find the date i visited a site. adding columns allow the order to be sorted but not show a date. Please tell me it there's a way to see the date. the sidebar no longer has the option for date. the most recent only shows the time.

    If you only see the time then that would mean that you see an entry of the current day (today).
    History items from past days should have the date as well in the Most Recent Visit column.
    You should be able to see this changing if you open the last 7 days folder and scroll down.

  • How to get added columns in the after DDL trigger?

    As title, I want to get information, like name/type/.., about the added columns by sql statement "alter table *** add (***)" in the after ddl trigger. But looks like dba_tab_columns view doesn't include the added columns.
    Thanks

    Hi
    Hi try other versions of the trigger like
    create or replace trigger addl_trigger
    after alter on schema
    declare
    TYPE attrs_cur IS REF CURSOR;
    m_cur attrs_cur;
    m_event varchar2(50);
    m_user varchar2(50);
    m_owner varchar2(50);
    m_user1 varchar2(50);
    m_type varchar2(50);
    m_name varchar2(50);
    m_column varchar2(50);
    m_cnt NUMBER;
    m_stmt varchar2(512);
    number_of_modified_objects BINARY_INTEGER;
    t ora_name_list_t;
    begin
    m_event:=ora_sysevent;
    m_user:=SYS_CONTEXT('USERENV','SESSION_USER');
    m_user1:=ora_login_user;
    m_owner:=ora_dict_obj_owner;
    m_type:=ora_dict_obj_type;
    m_name:=ora_dict_obj_name;
    if (m_type='TABLE' and m_event='ALTER')
    then
              execute immediate 'select count(*) from dba_tab_columns where owner=:1 and table_name=:2' into m_cnt
              using m_owner,m_name;
              insert into log values (m_cnt);
              dbms_output.put_line('->'||m_cnt);
              OPEN m_cur FOR 'select c.name from sys.col$ c, sys.obj$ o, sys.user$ u where o.obj# = c.obj# and o.owner# = u.user# and u.name=:1 and o.name=:2' using m_owner,m_name;
              LOOP
                        FETCH m_cur INTO m_stmt;
                        EXIT WHEN m_cur%NOTFOUND;
                        insert into log values (m_stmt);
                        --dbms_output.put_line(m_stmt||'**************');
                        END LOOP;
    end if;
    but all versions continue to insert only the already existing columns. I think that Oracle actualize the dictionary first after this system event.
    Bye, Aron

  • About existence of added column in the database apex application.

    Hi,
    I have created an report apex application based on the table. Consider the table as Employee_details
    The columns in the Employee_details tables are
    *) Employee_id
    *) name
    *) ip_address
    *) host_name
    *) port_no
    *) sys_type
    *) email_id
    *) login_id
    *) sys_config
    *) sys_serial_no
    *) place_allotted
    *) internet_status
    and also i have created an application using this column......Now i need to add an extra column "contact_no" with this table.....
    That only also i added in the table by giving "Add column" the column is added in the table.....
    But i need to add that extra column "contact_no" in my current application along with the existed columns.
    I went to "Actions" in the application that i have created, and i shifted that "contact_no" column from "do not display side to the display side". Now it is displaying.
    But the problem where i getting here is, when i logged out of the application and when i again login into the application the "contact_ no" column that i added to show it in display field is not displaying...Why?.........
    Regards,
    Hari R

    Hi,
    If its a table column then its better to add it to the IR by modifying the Report Query of the IR.
    If you add it through the Action button then you need to save the report as Default Setting for it to keep appearing the next time you visit the page.
    Regards

  • Adding columns in the UWL

    Hi,
    This is  Rajyalakshmi. I nee to add columns in the UWL .
    I have  changed the XML coding accordingly .and uploaded the file .but the  added columns are not appearing in the UWL.
    I have added the  view in the   XML file corresponding  to the backend related.
    do i need  add the view and atributes in teh standard XML file as well?
    It would be great if anybody can share the information reagrding this.
    Raji

    Hi Beth Maben,
    I am trying to add the custom attributes.now the added columns are appearing ina subview.But i the new columns which I ahve been added  need to appear in the  default view.
    the UWL version I am using is as below.
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE UWLConfiguration PUBLIC '-//SAP//UWL1.0//EN' 'uwl_configuration.dtd'>
    <UWLConfiguration version="7.00.01.01">
    I configured the XML for one task for test purpose.
    <ItemType name="uwl.task.webflow.TS10008126" connector="WebFlowConnector" defaultView="MyView" defaultAction="viewDetail" executionMode="pessimistic">
                   <ItemTypeCriteria externalType="TS10008126" connector="WebFlowConnector"/>
                       <Actions>
                        <Action reference="com.sap.pct.srm.core.action.oldwfl.approve"/>
                        <Action reference="com.sap.pct.srm.core.action.oldwfl.reject"/>
                        <Action reference="com.sap.pct.srm.core.action.launchWD.oldwfl.sc.approve"/>
                   </Actions>
              </ItemType>
              <ItemType name="uwl.completedtask.webflow.TS10008126" connector="WebFlowConnector" defaultView="MyView" defaultAction="viewDetail" executionMode="pessimistic">
                   <ItemTypeCriteria externalType="TS10008126" connector="WebFlowConnector"/>
                    <CustomAttributes>
                      <CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalObjectId" objectType="WebflowContainer" cacheValidity="final">
                       <Attribute name="REQ_NAME" displayName="Created By"/>
                      <Attribute name="TOTAL_VALUE" displayName="TotalValue"/>
                        <Attribute name="CURRENCY" displayName="Currency"/>
                  </CustomAttributeSource>
                 </CustomAttributes>
                   <Actions>
                        <Action reference="com.sap.pct.srm.core.action.launchWD.oldwfl.sc.display"/>
                   </Actions>
    created View is as follows :
    <!-- View: New and Inprogress Tasks -->
              <View name="MyView" selectionMode="SINGLESELECT" referenceBundle="MyView" width="98%" supportedItemTypes="uwl.task.webflow.TS10008126" columnOrder="subject,creatorId,RequisitionerName,TotalValue,Currency,createdDate" sortby="createdDate:descend" tableDesign="ALTERNATING" visibleRowCount="10" queryRange="undefined" displayOnlyDefinedAttributes="no" tableNavigationFooterVisible="yes" tableNavigationType="CUSTOMNAV" refresh="300" dueDateSevere="86400000" dueDateWarning="259200000" emphasizedItems="new" dynamicCreationAllowed="yes" actionPosition="bottom">
                   <DisplayAttributes>
                        <DisplayAttribute name="subject" type="link" width="" sortable="yes" format="default" actionRef="viewDetail" referenceBundle="subject" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes"/>
                        <DisplayAttribute
                             name="creatorId"
                             type="people"
                             width=""
                             sortable="yes"
                             format="default"
                             referenceBundle="from"
                             hAlign="LEFT"
                             vAlign="BASELINE"
                             maxTextWidth="0"
                             headerVisible="yes"/>
                              <DisplayAttribute
                             name="RequisitionerName"
                             type="String"
                             width=""
                             sortable="yes"
                             format="default"
                             referenceBundle="REQ_NAME"
                             hAlign="LEFT"
                             vAlign="BASELINE"
                             maxTextWidth="0"
                             headerVisible="yes"/>
                       <DisplayAttribute
                             name="TotalValue"
                             type="double"
                             width=""
                             sortable="yes"
                             format="medium"
                             referenceBundle="TOTAL_VALUE"
                             hAlign="RIGHT"
                             vAlign="BASELINE"
                             maxTextWidth="0"
                             headerVisible="yes"/>
                           <DisplayAttribute
                             name="Currency"
                             type="String"
                             width=""
                             sortable="yes"
                             format="medium"
                             referenceBundle="CURRENCY"
                             hAlign="RIGHT"
                             vAlign="BASELINE"
                             maxTextWidth="0"
                             headerVisible="yes"/>
                                                                                    <DisplayAttribute name="createdDate" type="datetime" width="" sortable="yes" format="medium" referenceBundle="sent_date" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes"/>               
                  </DisplayAttributes>
                   <Actions>
                        <Action reference="removeFromNavigation"/>
                             <Action reference="addToNavigaion"/>
                             <Action reference="personalize"/>
                   </Actions>
              </View>
    I am trying to add the attributes in the  in standard XML file  as well.but I am getting that error that " adding custom attributes is not supported " as per the  standard model definition.
    Appriciate your information  if any reagarding this .
    Raji.

  • OmniPortlet Tip: Adding columns to the tabular layout

    Hello,
    I had some questions about the limitation to 5 columns of the OmniPortlet tabular layout. Here is a tip to add more columns to this layout:
    1. backup the current OmniPortlet provider.xml
         /OC4J_HOME/applications/portalTools/omniPortlet/WEB-INF/providers/omniPortlet
    2. You can not open the file:
         and look for the tag <dataField
    3. You can add new fields, by copying the existing <dataField> tag and change the value of the <name> and <displayName>
              <!-- Here is a complete example -->
    <dataField class="oracle.webdb.reformlet.definition.DataFieldDefinition">
    <name>Field6</name>
    <displayName>Column6</displayName>
    <description>Field6</description>
    <text>##column##</text>
    <alignment>left</alignment>
    <displayAs>hidden</displayAs>
    <type>linebreak</type>
    <font>Arial.3.Plain.None</font>
    <color>#000000</color>
    <style>none</style>
    <styleType>custom</styleType>
    </dataField>
              <!-- end of the example -->
    The same logic could be used to add parameters or events to the OmniPortlet.
    Regards
    Tugdual Grall

    Hi, I have some problem to find this file "Omniportlet provider.xml".
    Where I can find it?
    I try to find in this path:
    /OC4J_HOME/applications/portalTools/omniPortlet/WEB-INF/providers/omniPortlet
    but I don't view OC4J directory.
    I'm using AS 10g
    Please answer me as soon as possible.
    Thanks.

  • Is it possible to add a column to the Item matrix in the ItemLookup form (C

    Hi,
    Is it possible to add a column to the Item matrix in the ItemLookup form (CFL or Find Lookup).
    I need to display a value in the newly added column if the itemgroup in that row matches a certain value , how can I achieve this.
    Thanks

    Hi,
    You may check this: Can we add CFL to the  system/form defined textbox?
    Please close your previous open thread.
    Thanks,
    Gordon

  • Adding new row in matrix

    Dear all,
    I press right-click on Journal Entry and select "Cancel" function.
    SAP B1 creates a new journal entry with inverted rows registration.
    Now, I added a new button in this form.
    When I press the button, I need to add a new empty row in the matrix.
    I use this command:
    oJEMatrix.AddRow()
    I also used this command:
    oJEMatrix.AddRow(1, 1)
    but what I obtain is a new row with the same values of the first row (it seems a duplication of the first row).
    The new row-index (first left column) in the matrix has the value "1" as the first original row.
    How can I add a new empty row in this matrix and refresh the matrix to update the index of each row?
    Best regards
         Emanuele

    I found the error:
    I was trying to set Credit > 0 and Debit > 0 on the same row.
    But now I have a nother issue with matrix.
    See image below...
    After populating the matrix, the rows index are incorrect. How can refresh the matrix to recalculate the correct row number in the first column?
    Best regards
        Emanuele

  • DateField not getting copy in the matrix using Datasource & Datatable

    Hello All,
    I have tried to copy data From Purchase Order Tables to my own created User Defined Form matrix columns using DBDatasource & Datatables ,Instead of Document Date all other data are getting copied but that document date field is not
    getting the data plus it is not showing any error message as such.
    Following is the code which i have written :-
    =====================================
    oPurchase_Amend.DataSources.DataTables.Add("oMatrixDT" )
    oPurchase_Amend.DataSources.DataTables.Item("oMatrixDT" ).Clear()
    Dim sSQL As String = "SELECT T1.[ItemCode], T1.[Dscription], T1.[Quantity], T1.[Price],(Select InvntryUoM From OITM Where ItemCode=T1.ItemCode) as 'UoM',T1.LineNum,T0.DocNum  as 'FrmDate' FROM OPOR T0  INNER JOIN POR1 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.[DocNum] ='1' and T0.CardCode='C0001'
    oPurchase_Amend.DataSources.DataTables.Item("oMatrixDT" ).ExecuteQuery(sSQL)
    oMatrix = oPurchase_Amend.Items.Item("mtx_0").Specific
    oMatrix.Clear()
    Dim oDBDataSource As SAPbouiCOM.DBDataSource = oPurchase_Amend.DataSources.DBDataSources.Item("@OSL_POAMD")
    Dim oDataTable As SAPbouiCOM.DataTable = oPurchase_Amend.DataSources.DataTables.Item("oMatrixDT" )
    oDBDataSource.Clear()
    For row As Integer = 0 To oDataTable.Rows.Count - 1
    Dim offset As Integer = oDBDataSource.Size
    oDBDataSource.InsertRecord(row)
    oDBDataSource.SetValue("U_ItemCode", offset, oDataTable.GetValue("ItemCode", row).ToString())
    oDBDataSource.SetValue("U_ItemName", offset, oDataTable.GetValue("Dscription", row).ToString())
    oDBDataSource.SetValue("U_UoM", offset, oDataTable.GetValue("UoM", row).ToString())
    oDBDataSource.SetValue("U_OldQty", offset, oDataTable.GetValue("Quantity", row).ToString())
    oDBDataSource.SetValue("U_OldRate", offset, oDataTable.GetValue("Price", row).ToString())
    > Line For Copying Document Date Data to the matrix datasource
    oDBDataSource.SetValue("U_OldDate", offset, oDataTable.GetValue("FrmDate", row))
    oDBDataSource.SetValue("U_LineId", offset, oDataTable.GetValue("LineNum", row))
      Next
    '--- Rebinding the datasource to the matrix columns -
    oMatrix.Columns.Item("col_0").DataBind.SetBound(True, "@OSL_POAMD", "U_ItemCode")
    oMatrix.Columns.Item("col_1").DataBind.SetBound(True, "@OSL_POAMD", "U_ItemName")
    oMatrix.Columns.Item("col_3").DataBind.SetBound(True, "@OSL_POAMD", "U_OldQty")
    oMatrix.Columns.Item("col_5").DataBind.SetBound(True, "@OSL_POAMD", "U_OldRate")
    oMatrix.Columns.Item("col_7").DataBind.SetBound(True, "@OSL_POAMD", "U_OldDate")
    oMatrix.Columns.Item("col_9").DataBind.SetBound(True, "@OSL_POAMD", "U_LineId")
    oMatrix.LoadFromDataSource()
    But i am not able to get the document date in the column of the matrix .
    Please suggest what changes i have to meke in this code to get the desired output.
    Thanks & Regards,
    Amit
    Edited by: AmitSharma_061985 on Dec 17, 2009 12:24 PM

    Hi Michael,
    FrmDate is the Document date of the purchase order which i am fetching through sql query and trying to copy that in the matrix
    through datasource .
    Edited by: AmitSharma_061985 on Dec 18, 2009 7:07 AM

  • Discoverer 10.1.2 does not refresh new added column

    Hello,
    I need help to add a new item to EUL Business Area folder for a new added column in the database table.
    When I refresh the folder in the BA EUL, the result shows no difference between the folder and the underlying table in the database; however, when I quey the table in the database, a new column is there. The refresh of the folder in the Discoverer Admin tool cannot find the newly added column. Weird!! The first time saw this problem.
    Could someone shine some light on it? Would be really appreciate it!
    Ping

    I have a slightly different problem and can't solve it! When I refresh the EUL, the result shows the differences between the folder and the underlying tables in the database. However, it does not refresh the EUL in Discoverer Administrator 10g. Nothing happens! When I try to refresh again, the same list is shown... Does anyone know what could be happening?
    Thanks

  • Irritating problem with adding columns

    I am adding columns to jtable. And then moving it to required postion.
    But whenever I edit those columns all the newly added columns and the first column reflects those changes. ie whatever I enter in the new columns, it appears in all newly added columns and the first column as well.
    whats wrong I am doing here.
    EditableHeaderTableColumn ncol = new EditableHeaderTableColumn();
    TableColumnModel columns = table.getColumnModel();
    int c = table.getSelectedColumn();
    columns.addColumn(ncol);
    columns.moveColumn(i-1, c+1);

    Make sure you are not sharing the TableColumn instance or adding a TableColumn that already is in the TableColumnModel.
    When resizing the table column, do the others resize too. ?

  • Add columns in system matrix

    Hi experts,
    I need help urgently. I want to add columns in the matrix of A/R invoice system form.
    Can someone give me a solution?
    Regards.
    Olivier

    Olivier
    You can add user defined fields into Marketing document rows, these will be new  columns and will appear U_[COLUMNAME]
    Regards
    J
    Edited by: János Nagy on May 18, 2010 2:01 PM

  • SSRS Reporting : Fill Cell Color according to the Location of the Cell in the Matrix

    Hello,
    I am trying to achieve below result in the SSRS but facing issues with Cell color Fill Expression when Detail value is NULL.
    If you look at the image, it should show exact same colors of the cell irrespective of the values.
    But in my case it is not showing color for NULL value cells.
    Below is the expression which I have put in the Fill Expression window.
    SWITCH(
    Fields!Columns.Value = "Col1" And Fields!Rows.Value = "Row1","Yellow",
    Fields!Columns.Value = "Col1" And Fields!Rows.Value = "Row2","Green",
    Fields!Columns.Value = "Col1" And Fields!Rows.Value = "Row3","Green",
    Fields!Columns.Value = "Col1" And Fields!Rows.Value = "Row4","Green",
    Fields!Columns.Value = "Col2" And Fields!Rows.Value = "Row1","Red",
    Fields!Columns.Value = "Col2" And Fields!Rows.Value = "Row2","Yellow",
    Fields!Columns.Value = "Col2" And Fields!Rows.Value = "Row3","Yellow",
    Fields!Columns.Value = "Col2" And Fields!Rows.Value = "Row4","Green",
    Fields!Columns.Value = "Col3" And Fields!Rows.Value = "Row1","Red",
    Fields!Columns.Value = "Col3" And Fields!Rows.Value = "Row2","Red",
    Fields!Columns.Value = "Col3" And Fields!Rows.Value = "Row3","Yellow",
    Fields!Columns.Value = "Col3" And Fields!Rows.Value = "Row4","Green"
    Please suggest me to get the colors for the NULL value cells.
    I tried with IsNothing() but then it is doing the same color of all NULL cells. I want them exactly same in the figure.
    Thank you,
    Mittal.

    Hi Mittal,
    Based on your dataset table, the matrix should displays as below. Are you manually insert Row1 row and Col3 column in the matrix?
    If that is true, the Fill cell color should be displayed as the picture above. Because there are no values for Rows=Row1 and Columns= Col1, Rows=Row1 and Columns= Col2… the expression for those cells has no effect. To achieve your requirement, we can manually
    insert those values in the dataset query like below:
    SELECT Columns, Rows, Value FROM table
    UNION all
    select 'Col1' AS Columns, 'Row1' AS Rows, NULL AS Value
    UNION all
    select 'Col1' AS Columns, 'Row3' AS Rows, NULL AS Value
    UNION all
    select 'Col2' AS Columns, 'Row1' AS Rows, NULL AS Value
    UNION all
    select 'Col2' AS Columns, 'Row4' AS Rows, NULL AS Value
    UNION all
    select 'Col3' AS Columns, 'Row1' AS Rows, NULL AS Value
    UNION all
    select 'Col3' AS Columns, 'Row2' AS Rows, NULL AS Value
    UNION all
    select 'Col3' AS Columns, 'Row3' AS Rows, NULL AS Value
    UNION all
    select 'Col3' AS Columns, 'Row4' AS Rows, NULL AS Value
    Then directly add those three field with the fill cell color expression to matrix, the matrix displays:
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

Maybe you are looking for

  • Cancel SO after pick release

    Dear Expert, I find out that it is not allowed to cancel SO with 'Pick Confirm/Staged' status. The Problem is: if I desire to cancel that SO, how is the work arround for this situation. And how can I return the stock from staging to original subinven

  • Syntax error: expecting rightparen before not.

    Another textbook problem! The step word for word in my textbook is: The following four lines of code placed above the goto statement for the function called by the home button so the animation does not play when the Home button is clicked. if (animat

  • Proposed new feature - dual level security

    Given the increasing use of smartphones used both for business & personal messages (not that this wasn't always so) it would be useful to have different security options for different e-mail accounts.  I always have to be careful about letting a fami

  • A Method betweeen two User Decision Activity

    Hi, Is it Possible to execute a method in between two user Decision Activites which advances with Dialog.The method that has to be executed is just a simple code based on the result of the user decision activity. By placing an ordinary activty betwee

  • Blank Black Screen in BB Link (Mac OS X)

    Blackberry Q10 (10.1.0.4181) Mac OS X (10.6.8) When I open Blackberry Link, I get a blank black screen in the application window. This occurs whether or not the device is connected. I have tried to remove the software and reinstall it and I encounter