Changing Matrix column title?

Hi all,
Is it possible to change a matrix column title using the ColumnTitle.Caption property? I have tried using the following code but it does not work:
'Sales order form - Add mode.
If pVal.FormType = 139 And pVal.FormMode = 3 Then
'After form loads
If pVal.EventType = et_FORM_LOAD And pVal.Before_Action = False Then
'SO form.
Set oForm = oApp.Forms.Item(FormUID)
Set oItem = oForm.Items.Item("38")
Set oMatrix = oItem.Specific
Set oColumn = oMatrix.Columns.Item("1")
oColumn.TitleObject.Caption = "Item Code"
End If
End If
Thank you.
Andrew.

Hi John,
Thanks for the reply. Your questions/suggestions led me on a path to finding the problem and a solution.
I tried the same block of code in another company db and it changed the column title fine. The reason it wouldn't work in the current company db I'm working on was because I had previously changed the column title to 'Item No.' (using ctrl & double-click). So the SDK was changing the Original Description but the new desc. of 'Item No.' remained unchanged. As soon as I deleted the new desc. the SDK worked fine.
Thanks for your help.
Regards,
Andrew.

Similar Messages

  • Change Matrix column backcolor in standard form

    Hi, all
    Is it possible to change the Matrix column backcolor in standard form?
    thanks.

    hi,
    yes it is possible.
    oMatrix.Columns.Item("1").BackColor = 16316664 'color codes
    regards,
    varma

  • Change font of column title

    Hi,
    does someone know, if it's possible to change the font of a matrix column title in SAP Business One.
    I want to change the column title of the invoice matrix, where i put in the order details, like article, article description, amount and so on.
    I hope someone has any idea.

    Hi frank
    You can change the column title by Ctrl+dbl click, you can also make it bold.
    Have a nice day
    HTH
    Regards
    baskar

  • XML Schema Collection (SQL Server 2012): How to create an XML Schema Collection that can be used to Validate a field name (column title) of an existing dbo Table of a Database in SSMS2012?

    Hi all,
    I used the following code to create a new Database (ScottChangDB) and a new Table (marvel) in my SQL Server 2012 Management Studio (SSMS2012) successfully:
    -- ScottChangDB.sql saved in C://Documents/SQL Server XQuery_MacLochlainns Weblog_code
    -- 14 April 2015 09:15 AM
    USE master
    IF EXISTS
    (SELECT 1
    FROM sys.databases
    WHERE name = 'ScottChangDB')
    DROP DATABASE ScottChangDB
    GO
    CREATE DATABASE ScottChangDB
    GO
    USE ScottChangDB
    CREATE TABLE [dbo].[marvel] (
    [avenger_name] [char] (30) NULL, [ID] INT NULL)
    INSERT INTO marvel
    (avenger_name,ID)
    VALUES
    ('Hulk', 1),
    ('Iron Man', 2),
    ('Black Widow', 3),
    ('Thor', 4),
    ('Captain America', 5),
    ('Hawkeye', 6),
    ('Winter Soldier', 7),
    ('Iron Patriot', 8);
    SELECT avenger_name FROM marvel ORDER BY ID For XML PATH('')
    DECLARE @x XML
    SELECT @x=(SELECT avenger_name FROM marvel ORDER BY ID FOR XML PATH('Marvel'))--,ROOT('root'))
    SELECT
    person.value('Marvel[4]', 'varchar(100)') AS NAME
    FROM @x.nodes('.') AS Tbl(person)
    ORDER BY NAME DESC
    --Or if you want the completed element
    SELECT @x.query('/Marvel[4]/avenger_name')
    DROP TABLE [marvel]
    Now I am trying to create my first XML Schema Collection to do the Validation on the Field Name (Column Title) of the "marvel" Table. I have studied Chapter 4 XML SCHEMA COLLECTIONS of the book "Pro SQL Server 2008 XML" written by
    Michael Coles (published by Apress) and some beginning pages of XQuery Language Reference, SQL Server 2012 Books ONline (published by Microsoft). I mimicked  Coles' Listing 04-05 and I wanted to execute the following first-drafted sql in
    my SSMS2012:
    -- Reference [Scott Chang modified Listing04-05.sql of Pro SQL Server 2008 XML by Michael Coles (Apress)]
    -- [shcColes04-05.sql saved in C:\\Documents\XML_SQL_Server2008_code_Coles_Apress]
    -- [executed: 2 April 2015 15:04 PM]
    -- shcXMLschemaTableValidate1.sql in ScottChangDB of SQL Server 2012 Management Studio (SSMS2012)
    -- saved in C:\Documents\XQuery-SQLServer2012
    tried to run: 15 April 2015 ??? AM
    USE ScottChangDB;
    GO
    CREATE XML SCHEMA COLLECTION dbo. ComplexTestSchemaCollection_all
    AS
    N'<?xml version="1.0"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="marvel">
    <xsd:complexType>
    <xsd:all>
    <xsd:element name="avenger_name" />
    <xsd:element name="ID" />
    </xsd:all>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>';
    GO
    DECLARE @x XML (dbo. ComplexTestSchemaCollection_all);
    SET @x = N'<?xml version="1.0"?>
    <marvel>
    <avenger_name>Thor</name>
    <ID>4</ID>
    </marvel>';
    SELECT @x;
    GO
    DROP XML SCHEMA COLLECTION dbo.ComplexTestSchemaCollection_all;
    GO
    I feel that drafted sql is very shaky and it needs the SQL Server XML experts to modify to make it work for me. Please kindly help, exam the coding of my shcXMLTableValidate1.sql and modify it to work.
    Thanks in advance,
    Scott Chang

    Hi Scott,
    2) Yes, FOR XML PATH clause converts relational data to XML format with a specific structure for the "marvel" Table. Regarding validate all the avenger_names, please see below
    sample.
    DECLARE @x XML
    SELECT @x=(SELECT ID ,avenger_name FROM marvel FOR XML PATH('Marvel'))
    SELECT @x
    SELECT
    n.value('avenger_name[1]','VARCHAR(99)') avenger_name,
    n.value('ID[1]','INT') ID
    FROM @x.nodes('//Marvel') Tab(n)
    WHERE n.value('ID[1]','INT') = 1 -- specify the ID here
    --FOR XML PATH('Marvel')  --uncommented this line if you want the result as element type
    3)i.check the xml schema content
    --find xml schema collection
    SELECT ss.name,xsc.name collection_name FROM sys.xml_schema_collections xsc JOIN sys.schemas ss ON xsc.schema_id= ss.schema_id
    select * from sys.schemas
    --check the schema content,use the name,collection_name from the above query
    SELECT xml_schema_namespace(N'name',N'collection_name')
    3)ii. View can be viewed as virtual table. Use a view to list the XML schema content.
    CREATE VIEW XSDContentView
    AS
    SELECT ss.name,xsc.name collection_name,cat.content
    FROM sys.xml_schema_collections xsc JOIN sys.schemas ss ON xsc.schema_id= ss.schema_id
    CROSS APPLY(
    SELECT xml_schema_namespace(ss.name,xsc.name) AS content
    ) AS cat
    WHERE xsc.name<>'sys'
    GO
    SELECT * FROM XSDContentView
    By the way, it would be appreciated if you can spread your questions into posts. For any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • Change the column width on the fly

    Dear all,
    I have a problem, i have a matrix report, the row is "the project name" and the column is "the items" using within each project, and the problem is the items are variable from time to time the report run for each project, so its exceeds the paper width.
    And the question is, is there any way to change the width of the column on the fly, i mean dynamiclly change the column width each time the report is called to make all items fit the paper width.
    Thank u

    i don't think that we can change the layout of the column in reports
    The simple solution for that problem is that u have to
    fix the horizontal and vertical layout of the text item
    better is to post this problem at reports forum
    Najeeb

  • 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

  • Changing Chart Legend Title

    How do I change a legend title? I created a bar chart using the chart wizard, and the legend title was taken from the name of the column appearing on the Y-axis. I changed the axis label, but this change was not propagated to the legend title. Is there anyway to change the legend title, either directly or through PL/SQL?

    Bill,
    Oracle Graphics allows for the direct access to any object within a Chart via PL/SQL. This can be done either through a number of built-ins or even by traversing the Chart's Object Heirarchy (VGS tree) By getting the handle to the label object it is possible to directly change the text. The Reports Team is correct in that it cannot be done directly from within the Reports Builder (though may be passed as a parameter at run time). Instead create an OPEN_DISPLAY trigger in the Oracle Graphics Builder for the OGD which takes the desired text as a parameter.
    There are examples of getting the handle to a chart opject in the demos & documentation.

  • BSP Changing the Column name

    Hi experts,
    I have used tableview in BSP . In the output it displays the column name as per the table which i have referred. I want to change the name of the column. How Should i do that.. anyone plz explain me with an example.
    Thanks in Advance
    Edited by: Vijay Babu Dudla on Apr 28, 2009 12:59 AM

    Hi ,
    If you want to change the column name, you can put your code following:
    <htmlb:tableViewColumn columnName    = " "
               *title        = " put the cloumn name here"*
               </htmlb:tableViewColumn>
    Please try.
    Any doubt let me know.
    Regards,
    Chris Gu
    Edited by: Gu Chris on Apr 28, 2009 5:26 AM
    Edited by: Gu Chris on Apr 28, 2009 5:26 AM
    Edited by: Gu Chris on Apr 28, 2009 5:27 AM

  • 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

  • Problem with Matrix columns of type Quantity

    Hi all!
    I need to show in a matrix column a quantity with the number of decimal set in SBO. My code is:
    Dim dt As SAPbouiCOM.DataTable = oFrm.DataSources.DataTables.Add("PCKG")
                    dt.Columns.Add("clQta", SAPbouiCOM.BoFieldsType.ft_Float, 30)
    In this way the number of decimal that i see is 2, but in SBO parameterization i have 4 decimal.
    How can I do?
    Thanks

    Hi,
    Check this option.  Go to Administration -> System Initialization -> General Settings -> Display tab.  Here check the Decimal places for Quantities.  It might be 4.  Change it to 2 and recheck the value in your form.
    Hope this helps.
    Regards,
    Satish.

  • Fetch the column title and evaluate with another value.

    Hi all,
    I am new to SAP SDK and am trying to populate the Forecast matrix with quantities for items defined in Sales Order and for the delivery date mentioned in SO.
    I want to fill in the quantities for the respective item code in the date column of Forecast.
    For ex: Sales Order has an item M which has a delivery date of say 15/12/2010 and quantity as 100 then when i want to fill this in Forecast how do i fill 100 Qty in the column with title date as 15/12/2010?
    As the column id are all variables in Forecast screen how best can i search for a particular date in the number of columns via code.
    Sample code if provided will be useful..
    Thanks in advance
    Regards
    Rohan S Kamble

    The following link might help you in achieving this
    Re: Make the column title with value month_year based on the fiscal year/period

  • Reg BSP table column title

    Hi All,
    I have problem with BSP table title display for one of the field.
    The current code of
    <%-- -
    Create table for line item----
    --%>
                                                      <htmlb:tableView id    = "tv_eban"
                                                                table = "<%= it_final %>" >
                                                      </htmlb:tableView>
                                                      </htmlb:tabStripItem>
                                                  </htmlb:tabStrip>
    The table field titles are defined and comes by default. From where does the sap table title text is coming. Here can we now update to display the new title for one of the new table field.
    Thanks in advance. Please let me know if you need any further details.
    From
    Reddy.

    Hi Readdy,
    The column title of the BSP application comes from each data-element's field label of your table columns.
    For example, let us assume that internal table contains two columns, say
    col1 type char10
    col2 type char50
    where,
    col1 and col2 are column names of the internal table and
    char10 and char50 are data elements associated with col1 and col2 respectively.
    Now when you display this structure in a table view then by default the title is got from the data element. The field label in the data element is used for this purpose.
    In our example, the char10 field label is blank and char50 filed label is 'c'. So by default the col1 title will be blank and col2 title will be 'c'. (Don't worry i have cross-checked it).
    There are three ways where you could give your own title
    1. Provide a correct data element to the columns with correct field labels.
    2. Change the BSP code by providing the title as given below,
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <htmlb:content design="design2003">
      <htmlb:page title = "Table view column defult title text ">
        <htmlb:form>
            <htmlb:tableView id="tv1" table="<%= itab %>">
            <htmlb:tableViewColumns>
            <htmlb:tableViewColumn columnName="col1" title="Column 1"></htmlb:tableViewColumn>
            <htmlb:tableViewColumn columnName="col2" title="Column 2"></htmlb:tableViewColumn>
            </htmlb:tableViewColumns>
            </htmlb:tableView>
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    3. To implement a iterator for this table view and change the title. (This has loads of features in order to modify the table view display).
    Hope it helps! Please search in the sdn forums for more intresting ways of using the tableview tag. As suggested by SAP Mentor Graham Robinson, please look into the example BSP application for more information.
    Regards,
    Maheswaran
    Edited by: Maheswaran B on Mar 8, 2010 5:02 PM

  • Sort column title does not stay hilighted

    This problem started with iTunes 8.0.2. As before, the column title is hilighted when you click on it to sort and remains hilighted when you go in another playlist and get back. For some columns like "Album for sort", the hilighted title changes when getting back to the playlist for "Album" (or Album by year or Album by Artist), but the sort itself seems to remain OK.

    Are you using "View > Sort Photos > By Title"?  Is the second option set to "ascending" or "descending"?

  • Is it possible to have an empty column title in a configTable?

    Hi all,
    is it possible to have an empty column title within a configurable table (chtmlb:configTable)? Whenever I change the title with the config tool to empty and save the changes it seems that it doesn't take effect.
    The problem is that the column width is too less to display the whole text and I don't want to have "A..." displayed there.
    Best regards
    Ben

    Hi,
    Not possible directly but possible programatically.
    The Column titles come from the data-element description. To override this, you will need to change the data element nd its fairly simple. Create a data element similar to the std. data element domain but put your description and then in GET_M method of that attribute, use this Z data type.
    For example, suppose its searhc result Displaying addresses in a table view, then for states, you get name as "Region".
    In most of asian countires, instead of region, "state" this word is used. So if i want to disply the colum header as states and not region,
    1) i will find which is the doain of std. region field.
    2) i will create a data element with this domain but i will give different description to my data element, This description would be States
    3) In the GET_M method of that particular column attribute, i will change the type to my data element.
    an i am done.
    Thus you can create your data element with shorten and more meaningful text . I think system does not allow you to save a data element or domain w/o a description hence i doubt if blank will be possible..need to check it out.
    Hope this helps
    Thanks & Regards,
    Suchita

  • Changing a column postion from say 5th to 1st

    Hi there,
    i need some help on changing a column position to a preferred
    position.
    Can an 'Alter' statement do it. Whether yes or no, how?
    ---My table
    create table new_employee(
    empno number(4),
    ename varchar2(25),
    job varchar2(15),
    deptno number(2),
    title varchar2(2)'
    sex varchar(1)'
    constraint pk_new_employee primary key (empno),
    constraint fk_new_employee foreign key (deptno) references dept);
    How can I make 'title' column become the first column.
    Much appreciation in advance.
    Ayo

    The only way to physically change the order of columns in a
    table is to drop the table and re-create it with the order you
    want. This is, however, completely unneccessary. The physical
    order of the columns is meaningless in Oracle. You can index on
    any column or set of columns in any order regardless of where
    they are in the physical order.
    If you want to get title as the first column, you simply select
    it first when you query the table.
    SELECT title, empno, ename
    FROM new_employee
    The only time that the physical order of the columns matters is
    when you do an insert statement without a column list. For
    example, given your table, and the following data:
    empno        123
    ename        SMITH
    job          CLERK
    deptno       20
    TITLE        SR. CLERK
    SEX          M
    This insert statement will work:
    INSERT INTO new_employee
    VALUES (123,'SMITH','CLERK',20,
            'SR. CLERK','M')
    This one will not:
    INSERT INTO new_employee
    VALUES ('SR. CLERK',123,'SMITH','CLERK',
            20,'M')
    This one will:
    INSERT INTO new_employees
        (title,empno,ename,job,deptno,sex)
    VALUES ('SR. CLERK',123,'SMITH','CLERK',
            20,'M')As long as you tell Oracle in which order the column values are
    passed, you can populate the columns in any order.

Maybe you are looking for

  • Serial No in cross tab

    i need to give serial no in cross tab.... i had given in group header... i have 5 different groups.. so i need to refresh the serial no for each cross tab... Please help me... Thanks in Advance.......................

  • Cancellation of Service order confirmation

    In IW31 we are creating service orders. That service order is posted in 03/24/2008. When i cancel that service order today it is posting into 03/24/2008. But it has to post in Current date. ( 11/25/2008 ).Can any one tell me why it is happening like

  • Help needed on WebServices

    hi guys!! please help asap!! this is regarding my academic project!!!!! I have to develop web service. I have downloaded j2ee1.4+sun's server+jwsdp1.5 from sun's website. I have set all the variables as stated in tutorial (like j2ee.home, build.prope

  • Re:  credit on Apple account

    I have a $50.00 credit at the Apple I-Tune account, why did Apple ask for my credit card information and then charge my credit card account?????  I want that Credit Card amount reversed and use the Apple credit on my account!

  • Problem with Adobe Flash Player website warning keeps appearing? -Solution is simple: uninstall it!

    Problem with Adobe Flash Player website warning keeps appearing? -Solution is simple: uninstall Adobe Flash Player! (-Who needs it anyway?)