Screen Painter - Delete a Matrix Column

Hi,
I am trying out Screen Painter. Really nice tool…!!!
I added 1 column to much in my Matrix, how do I delete the column?
And how does the Swap button work? (Swap = To trade one thing for another.)
Thank you,
Rune

Rune,
I don't know if there's an easier way, but I open the XML code (the srf file), find the begining and end of the specific column info and remove it. then Save and the column is gone. You can do this in notepad or any editor. You just have to be careful to remove only the right code, but it's all together in one long section.
Of course make a backup of the srf file first Hope this helps.

Similar Messages

  • Combo box in matrix column does not bind

    Dear Sirs,
    I have a master data UDO with three child tables, and I generated an xml form file using the B1DE form ganerator for this UDO.
    After that I used screen painter to set some columns of the matrix bindend to the child tables as combo box.
    In the load data event of the form I populate each combo box cell with the valid values I want.
    Now, when I add (or update) data , the combo box let me choose the valid values correctly (and I can see the choosen value in the cell) , but then data are not saved in the DB, while the data entered in edit text columns are correclty saved.
    Anyone have an idea of the problem?
    Thank you for the help
    Massimo

    Massimo,
    Have a look at the SDK Sample for Matrix and DataSource ...
    ...\Program Files\SAP\SAP Business One SDK\Samples\COM UI\VB.NET\06.MatrixAndDataSources
    This may help.
    Eddy

  • Matrix column position problem in screen painter.

    hi.
    i am facing one problem.
    ie.
    i am developing one screen.
    it is having 3 matrix
    each matrix is having some columns
    one matrix ok two matrix ok thrid  matrix ok.
    but
    under third matrix i put some columnes
    1, 2 ,3, 4,
    in screen painter design mode every thing is ok
    it is appearing like 1,2,3,4
    but at preview mode or through the code if i open
    it is  appearing like 1, 4,3,2
    in preview mode screen painter if i click on the form settings it is showing only..
    matrix one columns only  it is not showing either 2 or 3
    and if i open the form through the code..
    i am able to see the columns of matrix 1 n matrix 2 and matrix 3
    i am using some code.
    If (pVal.FormUID = "WIP2PROCESS" And pVal.ItemUID = "1000007") Then
                                oForm = SBO_Application.Forms.Item("WIP2PROCESS")
                                oForm.PaneLevel = 2
                                oForm.Settings.Enabled = False
                                oForm.Settings.MatrixUID = "59"
                            End If
    now through the source code i am able to see the each column under matrix.
    but if  i change the matrix position at form setting it is changing but
    if i click other folder and come back to previous  folder..
    again the column position is   1, 4,3,2
    previously i changed to  1,2,3,4
    how can i do it..
    screen painter can i change it..
    Any information plz update me..

    Hi Srinivas,
    Can you do one thing for me ? Open your form in screen painter, set the columns as you want to display. Now change the unique id for the matrix. Then try to open it through code or see in preview mode.
    Hope it helps.
    Thanks & Regards
    Ankit Chauhan

  • Big problems with Matrix and Screen Painter

    Hi all !!!
    I have a terrible time with my matrix in screen painter. I looked over all the samples in SDK and tried different things. The closest i got to make it work is when my form loads, i can click in each on my cells on the first row of the matrix but when i enter data if i click on another cell i lose the data. My form is fairly simple. I got 4 fields as regular data and a matrix with 8 columns. Can someone help me with this !!!  Maybe one of you have an complete example for entering manually data in cells and then save it. I'm using a UDT (not UDO) table and using .net ...
    Thanks in advance

    Hi Alain
    It's not necaserry to delete the matrix. Leave it there. Then access your matrix with the following code
    Dim oMatrix As SAPbouiCOM.Matrix
    Dim oColumn As SAPbouiCOM.Column
    Dim oColumns As SAPbouiCOM.Columns
    oMatrix = SBO_Application.Forms.Item("FormID").Items.Item("MatrixID").Specific
    oColumns = oMatrix.Columns
    oMatrix.Clear()
    then create datasource and bind
    oForm.DataSources.UserDataSources.Add("DataID", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 20)
    oColumn = oColumns.Item("ColID")
    oColumn.DataBind.SetBound(True, "", "DataID")
    Hope this helps

  • Column order in screen painter

    Hello all,
    After creating a form in screen painter the column are not showing in the order they are shown in screen painter.
    I checked the .srf file and the order of the columns is correct, but when SAP B1 opens the form the matrix has the order of the columns all mixed up.
    Any ideias?
    Thanks in advance.

    Hi,
    Your question belongs to SDK forum.  You may search that forum first.  If there is no similar question with answer, post it there.
    Thanks,
    Gordon

  • Screen Painter - Matrix CellHeight & TitleHeight

    Hi,
    In Screen Painter the Matrix CellHeight & TitleHeight change all the time when I open the Form in Screen Painter. It works when I run the Form, but when I change the Form I always have to change the CellHeight & TitleHeight before I close the fom...puh
    Any suggestion?
    Thank you,
    Rune

    Hai Rune,
              U r change the .srf file to .xml na. So i can able to modify the xml file. I also have the same issue. But i change in xml so its working fine.
    Here is the code
    <item uid="m_Dbond" type="127" left="15" tab_order="0" width="526" top="78" height="228" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="0" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                  <AutoManagedAttribute />
                   <specific SelectionMode="0" layout="0" titleHeight="21" cellHeight="17">
                     <columns>
                       <action type="add">
                         <column uid="v" type="16" title="#" description="" visible="1" AffectsFormMode="1" width="20" disp_desc="0" editable="1" right_just="0" val_on="Y" val_off="N" backcolor="-1" forecolor="-1" text_style="0" font_size="-1">
                          <databind databound="1" table="@DBOND_DETAIL" alias="LineId" />
                          <ExtendedObject />
                        </column>
    Regards,
    Anitha

  • Add linkbutton to Matrix (Screen Painter)

    Hi All,
    I want to add a link button in a matrix but no success (The form has been developed in Screen Painter).
    Any Idea?
    Best Regards,
    Vangelis
    Edited by: Vangelis Kanellopoulos on Dec 31, 2009 10:48 AM

    Hello ,
    You can have a look a this thread Re: Screen Painter.  How to...
    this is a way to do it a second way is to specify in screen painter  the properties of your colum
    -Type = linkedobject
    -LinkedobjectType = 20
    linked object type takes the BoObjectTypes Enumeration search for it in the sdk
    It will give you something like this in your xml file
    <column uid="C17" type="116" title="Provision Num" description="" visible="1" AffectsFormMode="1" width="102" disp_desc="0" editable="0" right_just="0" val_on="Y" val_off="N" backcolor="-1" forecolor="-1" text_style="0" font_size="-1">
    <databind databound="1" table="" alias="DSProvNum"/>
    <ExtendedObject linkedObject="30" LinkedObjectType="30"/>
    </column>
    BR
    Abderrahim BOUKHRIS

  • Update column in screen painter

    i have column in screen painter and i write data when i make enter it's dissapear why???

    Did you have corresponding data object defined in program?
    I guess this is where the issue comes from. Simply system can't exchange data b/w screen and program.
    Try declaring one, it should help then.
    Also, what do you mean by column ? If it is a table control you need to use definition of this table, the simplest is usually by
    TABLES name_of_table.
    If this is a single field taken as reference from DDIC you should simply define it like
    DATA name_of_table-name_of_column TYPE name_of_table-name_of_column.
    Regards
    Marcin

  • Adding field/column in screen painter SE51

    We are trying to add field BSEG-VBUND for transaction code FSB1 fast entry screen (program SAPMF05A screen 8503). The new column will be after CoCd. However as the image below shows, TradPart is only on the first row but is needed on all rows as the other fields are.
    We tried to use grouping to include BSEG-VBUND for all rows and in screen layout editor it seems to be correct.
    But, when the syntax is checked the error states BSEG-VBUND is not assigned to a loop and that it must appear in "PBO" (PROCESS BEFORE OUTPUT) and "PAI" (PROCESS AFTER INPUT).
    We added BSEG-VBUND to PAI but then received the error that this is not assigned to a loop.
    As a functional - not technical - consultant, I am unfamiliar with how to correct this. Any suggestions are greatly appreciated.

    Siripuram,
    Thanks for tying to help. As I am not an ABAP programmer but just functional support, I am unfamiliar with where to make the change.
    The current logic is below. Any help with this is appreicated.
    PROCESS BEFORE OUTPUT.
            MODULE DYNPRO_KOPF_MODIF.
            MODULE STATUS_SETZEN_Z.
            MODULE SCHNELLERFASSUNG.
            MODULE REF_STARTZEILE_SB.
          LOOP.
            MODULE REF_BELEGZEILE_SB.
          ENDLOOP.
            MODULE REF_FUSSZEILE_SB.
    PROCESS AFTER INPUT.
            MODULE EXIT AT EXIT-COMMAND.
            MODULE PAI_ANFANG.
          FIELD BKPF-XMWST MODULE XMWST_SAKO.
          LOOP.
          CHAIN.
    * GENERATE-BEGIN, PLEASE DO NOT DELETE
            FIELD BSEG-BSCHL.
            FIELD RF05A-KONTO.                                 "&FG&C
            FIELD BSEG-WRBTR MODULE STERN_BETRG ON *-INPUT.
            FIELD BSEG-MWSKZ.                                  "&F4&E
            FIELD BSEG-PRCTR.
            FIELD BSEG-KOSTL.
              FIELD BSEG-AUFNR.                                "&MC&A
            FIELD BSEG-BUKRS.
    * GENERATE-END, PLEASE DO NOT DELETE
            MODULE MWSKZ_DELETED.                    "Note1405100
            MODULE SCHNELLERFASSUNG_KB ON CHAIN-INPUT.  "Kontierungsblock
            MODULE SCHNELLERFASSUNG    ON CHAIN-INPUT.
            MODULE MWSKZ_PRUEFEN       ON CHAIN-INPUT.
            MODULE WAEHRUNGSFELDER     ON CHAIN-INPUT.
            MODULE BETRAG_PRUEFEN      ON CHAIN-INPUT.
    * MODULE-BEGIN, PLEASE DO NOT DELETE
            MODULE RW_PRUEFUNG_POS  ON CHAIN-INPUT.            "&MO&C
    * MODULE-END, PLEASE DO NOT DELETE
            MODULE GESCHAEFTSBEREICH.
            MODULE TXJCD_PRUEFEN.
          ENDCHAIN.
            MODULE ZEILE_SPEICHERN.
            MODULE ZEILE_KOPIEREN.
          ENDLOOP.
            FIELD RF05A-NEWBS MODULE MC_OBJEKT_SETZEN.
            FIELD RF05A-NEWBK MODULE MC_BUKRS_PARM_SETZEN.
          CHAIN.
            FIELD RF05A-NEWBS.
            FIELD RF05A-NEWKO.
            FIELD RF05A-NEWUM.
            FIELD RF05A-NEWBW.
            FIELD RF05A-NEWBK.
            FIELD OK-CODE.
            MODULE GET_REQUESTED_LINE.
            MODULE FUSSZEILE_BEARBEITEN.
          ENDCHAIN.
    PROCESS ON VALUE-REQUEST.
    * F4-BEGIN, PLEASE DO NOT DELETE
            FIELD BSEG-MWSKZ MODULE F4_MWSKZ.                  "&M4&E
    * F4-END, PLEASE DO NOT DELETE
            FIELD RF05A-NEWKO MODULE F4_NEWKO.
            FIELD RF05A-NEWUM MODULE F4_NEWUM.
    Any help with this is greatly appreciated.

  • How to delete invisible fields from screen painter SE51?

    Dear all,
    How to delete/remove invisible fields from screen painter SE51?
    Thanks.

    HI,
    just go to screen painter-->layout in change mode.
    the invisible fields will be looking faded
    click on that and press the DEL button.
    that will be deleted.
    <b><REMOVED BY MODERATOR></b>
    vivekanand
    Message was edited by:
            Alvaro Tejada Galindo

  • Screen Painter and Matrix

    In screen painter I am unable to attach the folder with the respective matrix. Please give the complete method to attach the above mentioned.

    Hi Manish,
    I am not too sure what you want to know, but if you want a matrix to be displayed only on a specific folder you should do the following. I am going to show you the code, but you can do parts of it in screenpainter as well. In screen painter you cannot display it like you would at runtime.
    On your matrix you would set the PaneFrom and PaneTo properties. To only set it visible on the first folder:
            Dim oItem As SAPbouiCOM.Item
            Dim oForm As SAPbouiCOM.Form
            oForm = oApplication.Forms.ActiveForm
            oItem = oForm.Items.Item("My_Matrix")
            oItem.FromPane = 1
            oItem.ToPane = 1
    To add the folder you'll have to remember to set the ValOn and ValOff properties:
            Dim oFolder As SAPbouiCOM.Folder
            oFolder = oForm.Items.Item("My_Folder").Specific
            oFolder.Caption = "MyFolder"
            oFolder.DataBind.SetBound(True, "", "UDS_1")
            oFolder.ValOff = 0
            oFolder.ValOn = 1
    To invoke the folder's click event you have to code it manually:
    Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles oApplication.ItemEvent
            If pVal.FormTypeEx = "My_Form" Then
                If pVal.BeforeAction = True Then
                    If pVal.ItemUID = "My_Folder" Then
                        If pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED Then
                            Dim oForm As SAPbouiCOM.Form
                            oForm = oApplication.Forms.ActiveForm
                            oForm.PaneLevel = 1
                        End If
                    End If
                End If
            End If
        End Sub
    Hope it helps,
    Adele

  • Screen painter, matrix and DataBound problem...

    Hi
    Using SAP BO 6.7 I have made a form with a matrix.
    I have a usertable named @t_fingrp with a field named U_Nr.
    In the matrix-->Columns properties I set Databound to "true", set tablename to "@t_fingrp" and set the alias to "U_Nr".
    I then save the form as xml.
    Then I load it in code using something like this:
    XmlDocument XMLDoc1 = new XmlDocument();
    XMLDoc1.Load(sXMLFile);
    xml = XMLDoc1.InnerXml;
    SBO_Application.LoadBatchActions(ref xmlString);
    This will make the form appear in SAP BO with the matrix and the columns but NO data.
    What am I doing wrong??
    TIA
    Jan

    The data doesn't appear automatically when you bind a matrix to a data source.  You have to populate the data source from the database, and then add each row to the matrix manually.
    Below is a sample, hope it helps.
        'Populate the datasource
        Set sboDS = sboForm.DataSources.DBDataSources("OUSR")
        sboDS.Query
        'Add data to the matrix
        For lngCount = 0 To sboDS.Size - 1
            sboDS.Offset = lngCount
            sboMatrix.AddRow
        Next lngCount
    John.

  • Grid in screen painter

    Hi Dear;
    where can i find explanation about the screen painter and specially for the grid, columns and matrix
    regards;

    Hi Satish;
    i want a document that explain screen painter in deep and not like SDK.
    where can i find these docs?
    regards

  • Selecting Cell from Choosefromlist - Screen Painter

    Hi ...
    I've used screen painter for my form. In the preview mode, everything seems to be ok, I have my column matrix editable with choosefromlist. But when I run the add-on, I can't even select a cell. I've also tried creating the matrix through coding but still, I can't select a cell. Anyone knows what could be the problem?
    Thanks!
    Loren

    Hi Loren Flores,
    Actually you are not adding the row to your matrix, thats why you are not able to select a cell.
    Add the row to your matrix on Form Load event.
    and also on the lost focus of the column, add a new row in next line.
    on form Load---
    oMatrix.AddRow(1, 1);
    on lost focus--
    if (pVal.ItemUID == "Mtrx" && pVal.ColUID == "COL1")
                        if (pVal.Row >= oMatrix.RowCount)
                            if (pVal.Row == 1)
                                oEditText = (SAPbouiCOM.EditText)oMatrix.Columns.Item("COL1").Cells.Item(pVal.Row).Specific;
                                string sr = oEditText.String;
                                if (oEditText.String != "")
                                    oMatrix.AddRow(1, oMatrix.RowCount);
                                if (oMatrix.RowCount > 2)
                                    return;
                            else
                                oEditText = (SAPbouiCOM.EditText)oMatrix.Columns.Item("COL1").Cells.Item(pVal.Row).Specific;
                                string sr = oEditText.String;
                                if (oEditText.String != "")
                                    oMatrix.AddRow(1, pVal.Row);

  • Screen Painter.  How to...

    How to use the Matrix with a complex query and beeing able to make some columns with a LinkButton to the document.
    Which control should I use.  A Matrix, or a Grid
    Which one let me get Data from a complex query and by the same time beeing able to set some columns as Link to a document
    To date I've been able to use the DBDataSource.Add("BUT IT NEEDS A TABLE") not a query and I face the challenge
    of adding all the conditions with the dbDataSource.Query(CONDITIONS) which doesn't work since I have to get
    data from other tables....

    Awesome.  Thank you. 
    Just a last question.  When I set the Query in the Screen Painter. Why do I have to provide it again by code ?
    I did create the Data Table in Screen Painter and called it dtORDR but in code
    but I have to do a ExecuteQuery and provide the query again ?
    Since I get it the way you explained, why do I have to ExecuteQuery with the same query again ?
    I also get a Table not found when running
    MyDataTable is called dtORDR made in the ScreenPainter with a simple SELECT
    and by code I do like you said, and the binding are on dtORDR but I get "Table not found..."
    Here's my actual code :
    string Query = "SELECT ORDR.DocEntry AS OrderEntry, ORDR.DocNum AS OrderNum, ORDR.NumAtCard, ORDR.DocDueDate, ORDR.DocTotal, " +
                   "ORDR.CardCode AS CustomerCode, ORDR.CardName AS CustomerName, OCRD.FatherCard, OCRD.CreditLine " +
                   "FROM ORDR INNER JOIN " +
                   "OCRD ON ORDR.CardCode = OCRD.CardCode";
    oApprobationsMatrix = oForm.Items.Item("mOrders").Specific as SAPbouiCOM.Matrix;
    SAPbouiCOM.DataTable DBDataTable = oForm.DataSources.DataTables.Item("dtORDR");
    DBDataTable.ExecuteQuery(Query);
    // Settings the columns...
    oApprobationsMatrix.Columns.Item("Indicator").Width = 20;
    oApprobationsMatrix.Columns.Item("cDocNum").DataBind.SetBound(true, "dtORDR", "OrderNum");
    oApprobationsMatrix.Columns.Item("cDocNum").Editable = false;
    oApprobationsMatrix.Columns.Item("cDocNum").Width = 107;
    oApprobationsMatrix.Columns.Item("cDocEntry").DataBind.SetBound(true, "dtORDR", "OrderEntry");
    oApprobationsMatrix.Columns.Item("cDocEntry").Visible = false;
    I also tried to remove the table from the Screen Painter and use the code instead like this
    oApprobationsMatrix = oForm.Items.Item("mOrders").Specific as SAPbouiCOM.Matrix;
    SAPbouiCOM.DataTable DBDataTable = oForm.DataSources.DataTables.Add("dtORDR");
    DBDataTable.ExecuteQuery(Query);
    and I stiil get "Table Not Found"
    but the table seems to be there all right. 
    [See this image...|http://pages.videotron.com/gear/problem.jpg]

Maybe you are looking for

  • HEATING OF THE BATTERY AND PHONE

    I am usig a nokia 6233 it gets heated up excessively when ever i put it on charging the whole phone and the battery gets heated up please any one do help me and say what to do ...

  • The Daily Show Multi-Pass: how does this work?

    I subscribed to the Daily Show Multi-Pass. The store said it was busy and try again later. So I thought I'd do it later but meanwhile got an email saying I had the multi-pass and 9.99 has been deducted from my account! The email has a link to view ac

  • Workitem not going to a particular user id

    Hi, I am having a workflow container element APPROVERLIST which stores the ids of the users to whom a particular workitem should go. But for a particular user id , the workitem is not going to that person, rather it is going to some other user ids. I

  • Why does my temp on my weather icon say 23?

    Why does my weather icon say 23 when my other iphones say 72degrees as the main icon? Is there a setting I need to fix to have it say 72? All my temps are set to farenheit...this bugs the **** out of me. please help.

  • Installation of Oracle Developer suite 10g on windows 8

    Can any one Please confirm, if Oracle Developer suite 10g is supported on windows 8 or not? Any types of Documents/materiel in this regard shall be highly appriciable. Regards, Nahidullah Khan