Removing matrix column by Unique ID

Hi,
Can i remove Matrix column by its Unique ID???
If so can you pls provide me the syntax
Thanks

Hi Pankil,
Try This....
Set oItem = oForm.Items.Add("Matrix1", it_MATRIX)
Set oColumn = oColumns.Add("G", it_LINKED_BUTTON)
oColumn.TitleObject.Caption = "Linked to none object"
oColumn.Width = 40
oColumn.Editable = True
'Removing column of matrix with unique id "G"
Call oColumns.Remove(u201CGu201D) also possible with column index
Thanks
Shafi

Similar Messages

  • Modify the Data Load wizard to remove the check for unique columns

    Hi,
    I'm trying to make a Data Loading Wizard into my application, which basically works nice except for one thing:
    I want to remove the check for unique columns, and insert ALL data which the users wants to upload.
    (Like the Data load utility under development).
    The reason is, that the data I want to upload is an export from my bank statements (in XLS / CSV format)
    And these exports don't have any primary key.
    Using the Apex wizard created Data Upload pages, I will loose data in case I had two identical payments in a day.
    Is there a way to do this, while keeping the pages created by the wizard to make Data Loading pages?
    apex 4.2.1

    I would suggest to load the data into a view and process the records into the real table(s) with instead-of-triggers. When you add a "1=2" where clause to the view, there never is any data and everything will be loaded.
    Otherwise you have to have a "real" PK value, like a timestamp or a statement_nr+line_nr.

  • Length of Uniqueid for matrix Column

    There appears to be an inconsistency in the length of the UniqueID that can be used for a matrix column.
    For an Addon in 2005 I have UDFs whose name is 12 characters long (including the U_), when appearing in matrix on a system form the system uses the UDF name for the columnID.
    However if I try to do the same thing when adding a column to a matrix on a user form I get error -7013 'The string value entered is too long; it should be less than 10 characters  [66000-14]'.
    Mirroring the UDF name as the column Id allows me to have generic code with out the need to jump through hoops to aling columns and field names.
    Is this a known issue for which there is a fix available?

    Hi Graham,
    It's a known issue but I'm not sure if a fix will be provided (it's a 'by design' feature and not a bug). I tested this in SBO 2007A and you still cannot have a matrix column in a user-defined form with a unique id of more than 10 chars.
    Unfortunately, you'll need to code a workaround or reduce your UDF sizes to 10 characters.
    Also, if you haven't already done so, I'd recommend you create a suggestion on the development collaboration forum:
    /community [original link is broken]
    Kind Regards,
    Owen

  • HsqlDB throws exception-- trying to alter the columns from unique- primary

    Hi,
    I am trying to migrate my old DB Schema to a new DB schema and the underlying database is HsqlDB. One of the tables has two of its columns described as UNIQUE in the older schema, whereas they were made PRIMARY in the new schema. I went through the documentation provided by HSQL (http://www.hsqldb.org/doc/guide/ch09.html) and tried to execute the following query to alter the columns:
    stmt.execute("Alter Table user_type_table add primary key (user_type_name,attribute_name)");
    Somehow I get the following exception when I tried to do this:
    java.sql.SQLException: Wrong data type: KEY in statement [Alter Table user_type_table add primary key]
    at org.hsqldb.jdbc.jdbcUtil.sqlException(Unknown Source)
    at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source)
    at org.hsqldb.jdbc.jdbcStatement.execute(Unknown Source)
    Am i doing something wrong?

    Rich,
    Whichever column(s) you changed to generate the conflicts will be present in the logs anyway. Since, your prebuilt conflict handler is not set up for those columns, you end up with apply errors. You can remove those columns from being part of conflict detection by calling the DBMS_APPLY_ADM.COMPARE_OLD_VALUES procedure. Hope this helps.

  • Password:Matrix Column

    Hai,
    Im using SAP B1 8.8 PL:17.
    I created one form with Matrix. I need one column as password field. So, when I select True for IsPassword, that particular column's unique Id, Alias name becomes 0. how to overcome this?
    Thanks in Advance.

    Hi Senthil,
    I do not know any attribute to do it from the column definition (I also looked at the xml definition, but the attribute is also not available) this is why you have to do what I proposed.
    You can perhaps try to modify by hand the xml definition of your form (if you don't know it, the .srf file is an xml file) and to add to the column definition the same property as for the EditText field (IsPassword="1"), but I really doubt it will work.
    Regards,
    Eric

  • 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.

  • How to set default value in matrix column

    Hi all,
    Does any one know how to set a default value in matrix column ?. I just want , when an event right click and add row. so i set a default value in a column field for example 'Test'. FYI the matrix is in the UDO.
    so my code will be like this
    If pVal.ItemUID = "Matrix" And pVal.MenuUID = "1292" Then
                        Try
                            Dim oColumn As SAPbouiCOM.EditTextColumn
                            Dim matrix As SAPbouiCOM.Matrix
                            matrix = oForm.Items.Item("Matrix").Specific
                           oColumn = mat.Columns.Item("Code").specific
                            oColumn.Value = "Test"
                        Catch ex As Exception
                            Debug.Print(ex.Message)
                            Debug.Print(ex.ToString)
                        End Try
                    End If
    I have run it and when i right click and add row it still can not set the default value in one of the matrx column.
    does any one know how to solve it. thanks in advance

    Hi Bodhi
    Sandeep is right you can set value using SetValue() function
    If pVal.ItemUID = "Matrix" And pVal.MenuUID = "1292" Then
                        Try
                            Dim matrix As SAPbouiCOM.Matrix= oForm.Items.Item("Matrix").Specific
                            oForm.DataSources.DBDataSources.Item("UDT").Clear()
                            matrix .AddRow()
                            matrix .FlushToDataSource()
                            With form.DataSources.DBDataSources.Item("UDT") 
                                    .SetValue("UDF", matrix .RowCount - 1, "Test")
                            End With
                            matrix .LoadFromDataSource()
                        Catch ex As Exception
                            Debug.Print(ex.Message)
                            Debug.Print(ex.ToString)
                        End Try
    End If

  • 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

  • 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

  • How to show image in matrix by selecting matrix column type as "it_PICTURE"

    Hi All!
    Can i show image in matrix, by selecting matrix column type as "it_PICTURE". If yes please write the steps.
    Thanks & Regards
    Surojit

    Hi
    First you have to set the matrix column type as it_PICTURE then bind that column to a userdatasource or dbdatasource. In the following code I am using userdatasource . This code will   set the picture to a sepecified columns first row. Please create small image and paste it in your c drive (15X15 size image-- "c:\pic.png")
    Dim oColumn As SAPbouiCOM.Column
                Dim mtxDisp As SAPbouiCOM.Matrix = form.Items.Item("mtxDisp").Specific
                form.DataSources.UserDataSources.Add("udsPic", BoDataType.dt_SHORT_TEXT, 254)
                oColumn = mtxDisp.Columns.Item("colPic")
                oColumn.DataBind.SetBound(True, "", "udsPic")
                mtxDisp.AddRow()
                mtxDisp.GetLineData(1) '*Loads UserDataSources from line X*'
                mtxDisp.DataSources.UserDataSources("udsPic").ValueEx = "c:\pic.png"
                mtxDisp.SetLineData(1) '*Sets Matrix line X based on current UserDataSource values*'
    Hope this helps
    Regards
    Arun

  • 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 Columns reset in Documents

    My customer continues to lose the setting on the width of the doucment columns. This morning, the quote, sales order, invoice and purchase order matrix columns had all reset.
    Has anyone else ever seen this?

    You may check this thread:
    User Settings lost after session is released
    Thanks,
    Gordon

  • Need to test if a column have unique values or not

    Hi all,
    in ETL process I need to check if some cols have unique values or not using sql or plsql.
    Suppose we need to load a big file data with external table initially and then test if values
    on one or more columns have unique values  in order to proceed with ETL process.
    What is the faster test I can execute to verify that a column have unique values or not?
    It's better for the ETL performance, use:
    a. techniques regard constraints like described on Ask tom forum
    "ENABLE NOVALIDATE validating existing data"
    (Ask Tom "ENABLE NOVALIDATE validating existing da...")
    b. "simply" query on the data?
    like this:
    select count(count(*)) distinct_count,
             sum(count(*)) total_count,
             sum(case when count(*) = 1 then 1 else null end) non_distinct_groups,
             sum(case when count(*) > 1 then 1 else null end) distinct_groups
    from hr.employees a
    group by A.JOB_ID
    c. use analytics function?
    d. use some feature directly on external table?
    Bye in advance

    Here is the example to handling the errrs using LOG_ERRORS into concept. You will check this and let me know if any doubt you have
    DATAFILE:-
    1000,ANN,ZZ105
    1001,KARTHI,ZZ106
    1002,PRAVEEN,ZZ109
    1002,PARTHA,ZZ107
    1003,SATHYA,ZZ108
    1000,ANN,ZZ105
    ----- Original Table With unique constraints
    SQL> CREATE TABLE tab_uniqtest(student_id     NUMBER(10) UNIQUE,
                              student_name   VARCHAR2(15),
                                                      course_name    VARCHAR2(15)
      2    3    4
    Table created.
    ----- External table
    SQL> CREATE TABLE tab_extuniqtest(student_id     NUMBER(10),
      2                               student_name   VARCHAR2(15),
      3                                                  course_name    VARCHAR2(15)
      4                              )
      5  ORGANIZATION EXTERNAL
      6  (
      7  DEFAULT DIRECTORY ann_dir
      8  ACCESS PARAMETERS
      9  (
    10    RECORDS DELIMITED BY NEWLINE
    11    BADFILE 'tabextuniqtest_badfile.txt'
    12    LOGFILE 'tabextuniqtest_logfile.txt'
    13    FIELDS TERMINATED BY ','
    14    MISSING FIELD VALUES ARE NULL
    15    REJECT ROWS WITH ALL NULL FIELDS
    16    (student_id,student_name,course_name)
    17  )
    18  LOCATION ('unique_check.csv')
    19  )
    20  REJECT LIMIT UNLIMITED;
    Table created.
    ---- Error logging table to log the errors
    SQL> CREATE TABLE dmlerrlog_uniqtest(ORA_ERR_NUMBER$     NUMBER ,
      2                                 ORA_ERR_MESG$       VARCHAR2(2000),
      3                                 ORA_ERR_ROWID$      ROWID,
      4                                 ORA_ERR_OPTYP$      VARCHAR2(2),
      5                                 ORA_ERR_TAG$        VARCHAR2(4000),
      6                                 inserted_dt         VARCHAR2(50) DEFAULT TO_CHAR(SYSDATE,'YYYY-MM-DD'),
      7                                 student_id              VARCHAR2(10)
      8                                  );
    Table created.
    ---- Procedure to insert from external table
    SQL> CREATE OR REPLACE PROCEDURE proc_uniqtest
      2  AS
      3  v_errcnt NUMBER;
      4  BEGIN
      5      INSERT INTO tab_uniqtest
      6      SELECT * FROM tab_extuniqtest
      7      LOG ERRORS INTO dmlerrlog_uniqtest('PROC_UNIQTEST@TAB_UNIQTEST') REJECT LIMIT UNLIMITED;
      8      SELECT COUNT(1) into v_errcnt
      9      FROM dmlerrlog_uniqtest
    10      WHERE ORA_ERR_TAG$ = 'PROC_UNIQTEST@TAB_UNIQTEST';
    11       IF(v_errcnt > 0) THEN
    12       ROLLBACK;
    13      ELSE
    14        COMMIT;
    15       END IF;
    16      DBMS_OUTPUT.PUT_LINE ( 'Procedure PROC_UNIQTEST is completed with ' || v_errcnt || ' errors') ;
    17  EXCEPTION
    18   WHEN OTHERS THEN
    19    RAISE;
    20  END proc_uniqtest;
    21  /
    Procedure created.
    SQL> SET SERVEROUTPUT ON
    SQL> EXEC proc_uniqtest;
    Procedure PROC_UNIQTEST is completed with 2 errors
    PL/SQL procedure successfully completed.
    SQL> SELECT STUDENT_ID,ORA_ERR_MESG$ FROM dmlerrlog_uniqtest;
    STUDENT_ID                     ORA_ERR_MESG$
    1002                           ORA-00001: unique constraint (
                                   SCOTT.SYS_C0037530) violated
    1000                           ORA-00001: unique constraint (
                                   SCOTT.SYS_C0037530) violated

  • How to remove all columns and cells in numbers

    how to remove all columns and cells in numbers

    Click on the Table's icon in the Sheets list. Press delete.
    Done.
    Regards,
    Barry

Maybe you are looking for

  • DOM Parsing problems... (newbie in trouble)

    I am trying to get a DOM Parser contruct a DOM Object from an XML file... I am having trouble getting the code validate against my XML Schema: <p> <?xml version="1.0" encoding="UTF-8"?> < <!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by Fed

  • Tutorial on Event handling structure in labview

    Hello, can some one suggest a tutorial on event handling? I want to understand about the adavanced feature of the event handling structure like the dynamic even handling. Further is there any tutorial and examples using the user defined even handling

  • Timeline code to document class code - best practices

    I'm starting to put all of my code in the document class instead of on the main timeline, and I have a few questions. When I was using the timeline, everything was linear. It was easy to know when things would start and end because of how the playhea

  • Password not saved???

    My keychain seems to not like to save my passwords and I didnt have this problem till I erased my computer and reloaded my stuff back on my computer. And when I use adium it logs me off after a while and then asks me to type my password again when I

  • Add user in ACS with limited access

    Dear I have low experiance with cisco ACS So kindly i need help to add user to The ACS which has limited access to my network Switches ( As Show only not to change configuration ) Also how to take backup for the ACS Database Thanks,