LinkedButton in a Columngrid

Hi everyone,
how can I set a linkedbutton in a column grid?
I've seen some samples about matrix, but not about grid
Thanks
Carles

I've found it!
            Dim oLink As SAPbouiCOM.EditTextColumn
            oLink = CType(Me.oGridGasoil.Columns.Item(0), SAPbouiCOM.EditTextColumn)
            oLink.LinkedObjectType = "1"
Thanks
Carles

Similar Messages

  • LinkedButton on the UDF Panel

    Hi all!
    I have an issue with objects linking.
    on the Service Call UDF Panel (form type -60110) i have EditText with Return Document number (docentry)
    i want to create drill down orange arrow quite near this field.
    1. After adding orange arrow - its invisible. after clicking on the place where should be located this orange arrow - it appears.
    i think it's because my item is under system label ('Static' object).
    2. Item is successfully linked to EditText where stored Return entry (I can see it on the tooltip text of the LinkedButton), but after clicking - nothing happens.
    By the way, if i do it not on the UDF Panel (on form with type 60110 - Service Call) - it works perfect.
    I've added LinkedButton, EditText, UserDataSource, bound new edittext to new datasource, set LinkTo property of LinkedButton to EditText and set LinkedObject, LinkedObjectType properties. this works correct.
    if i add LinkedButton on the UDF Panel, set LinkTo property to System EditText (my UDF where stored Return entry) and set LinkedObject, LinkedObjectType properties - it does not work.
    Please advice me, where might be problem?
    thanks in advance

    Hi ,
         If your problem is solved, please changed question to answered and give some point to the  problem solver.
    Best Regards,
    Thlaing

  • Button as LinkedButton

    Hello all,
    I'm trying to use a Button object as a LinkedButtton object. in the SDK i saw only an example of linking a column in a matrix.
    I don't want to see the LinkedButton mark, but just that my button will function as a link.
    The button is inside of purchase and sells forms, and i want to link it to the Account balance form.
    is it possible to do so?
    Thanks & Regards
    Mosh

    Hi everybody,
    First of all, excuse my bad English (it's not my mother language). Any correction is welcome about this...
    I have the same problem. I need a LinkedButton for showing Account Balance Form.
    After some tests, I didn't found a solution.
    Two partial approaches:
    A) Using financial reports (Edy Simon's proposal)
    1. When you want to show the Account Balance, Activate Menu Item 13057 (Financial Reports --> G/L Accounts and Business Partners)
    2. Get the "Form Type 892" Load Event
    3. Get the Form
                    Form oForm = Application.Forms.Item(pVal.FormUID);
    4. Unchecked the Accounts checkbox
                    (oForm.Items.Item("15").Specific as CheckBox).Checked = false;
    5.  Fill in the BP Code in Code From and To
                    (oForm.Items.Item("6").Specific as EditText).Value = "BPCode";
                    (oForm.Items.Item("7").Specific as EditText).Value = "BPCode";
    6. Simulate click on the OK Button.
                    oForm.Items.Item("1").Click(BoCellClickType.ct_Regular);
    Note: For avoiding to execute this code when you launch manually the report (when using the transaction directly), you can use a flag in your code. You can set the flag on in step 1, check its value in step 2 and set the flag off in step 6.
    B) Using Business Partners form
    1. When you want to show the Account Balance, launch the Business Partner Form (you can do it using Active Menu Item 2561 or using a Linked Button with Object Type = 2)
    2. Get the "Form Type 134" Load Event
    3. Get the Form
                    Form oForm = Application.Forms.Item(pVal.FormUID);
    4. Simulate click on the Balance Button
                    oForm.Items.Item("33").Click(BoCellClickType.ct_Regular);
    Note: You can use the same workaround previously mentioned for avoiding problems when using the transaction directly
    Howewer,
    In Case A, the report is not the same as Business Partners' Account Balance (sigh)
    In Case B, I have not been able to hide/close the Business Partner Form
    Hope that helps. Any help is welcome!
    Regards,

  • Problem - get Matrix with LinkedButton

    Hi Guys,
    I have a problem concerning the use of LinkedButton. I am using a LinkedButton Item in a SAPForms that is linked to a EditText Item. The LinkedObject Properties of LinkedButton is set to Business Partner. The LinkedButton is correctly configured and it normaly appears on the form. The only problem is that when I click on the LinkedButton I am getting only one instance of the Business Partner. What I would like to have is the list of all Business Partners in a Matrix items so that I can choose one of them.
    Can someone tell me how to proceed.
    Thanks
    Bop

    Hi Peter,
    I've never used the link button but based on the documentation it does just what you say: navigates to one record. I think what you need is to use, or copy the use of, the SAP "Choose From" form which displays a list for selection. Unfortunately it doesn't seem like this form's functionality is exposed or available to the UI-SDK.
    If you do a search on this forum for "Choose From" you will find a thread describing an attempt to use the existing SBO form but it isn't clear that it was succesful or even the best approach. The thread was started by Yan Li.
    I've got the same problem and it looks like I'm going to have to code my own "Choose From" form for lookups. At least then I will be able to fully control it.
    If anyone knows an good way to make use of the built in functionality and would chime in that would be great.
    - Mel

  • How to open Batch Details Form using a LinkedButton?

    Hi all,
    I just want to know how can I open the Batch Details system Form, using a LinkedButton from my user form.
    Just like the Batch Number Transaction Report window, from the Batch Column.
    It's difficult because this document don't have the ObjectType.
    Thanks a lot.
    Cheers
    David

    Solved!
    I did this:
    From the MatrixLinkPressedEvent:
    if (pVal.BeforeAction)
                        switch (pVal.ColUID)
                              case "column":
                                BubbleEvent = false;
                                AddOnApplication.Application.ActivateMenuItem("12290");//Form for Batch Details
                                form.EnableMenu("12290", true);
                                bool _runThread = true;
                                while (_runThread)
                                    Thread.Sleep(500);
                                    try
                                        ((SAPbouiCOM.EditText)AddOnApplication.Application.Forms.ActiveForm.Items.Item("40").Specific).Value = _dtGrid.GetValue("ItemCode", pVal.Row - 1).ToString();
                                        ((SAPbouiCOM.EditText)AddOnApplication.Application.Forms.ActiveForm.Items.Item("62").Specific).Value = _dtGrid.GetValue("Batch Hide", pVal.Row - 1).ToString(); ;
                                        AddOnApplication.Application.Forms.ActiveForm.DefButton = "38";
                                        AddOnApplication.Application.SendKeys("{ENTER}");
                                        _runThread = false;
                                    catch (Exception){}
                                    finally
                                        _runThread = false;
                                        form.Freeze(false);
    And that's it.
    Hope this help to someone
    Cheers

  • Matrix Column and LinkedButton?

    Hi,
    I have the following problem:
    For example Matrix...
    | Type |    ID   | .....
    1 | ITEM | ITEM001
    2 | BOM  | BOM001
    Each Columns UID was "Col0", "Col1", "Col2".....
    Column Col1 Type is 'it_EDIT'.
    I want to apply the Column in Matrix as the LinkedButton.
    Thanks.

    I think you can't do it with the Screen Painter
    You have to open the xml file, and modify some value of the column
    <column AffectsFormMode="1" backcolor="-1" description="" disp_desc="0" editable="1" font_size="12" forecolor="-1" right_just="0" text_style="0" title="Item No." type="<u><i><b>116</b></i></u>" uid="1" val_off="" val_on="" visible="1" width="85">
    <databind alias="ItemCode" databound="1" table="OITM" />
    <i><b><ExtendedObject linkedObject="4" /></b></i>
    </column>
    The two properties to change are
    Type (set to 116 for the linked arrow)
    and linkedObject
    linkedObject = 4 for the Item
    linkedObject = 2 for the Business Partner
    You have the complte list in the UI, look for BoLinkedObject Enumeration
    Sebastien

  • LinkedButton in Grid = DocEntry diff. from DocNum

    Hy All,
    I am using a Grid to display data from the ORDR etc.... Now I want to add a linked button to the docnum. But the docnum is not the same number as the docentry...
    I know that the docentry is the key but is there a way how I can use the docnum, for user-friendly-ness, with the linked button... The DocEntry doesn't ring a bell with the customer, the docnum does...
    Greets,
    Joeri

    Hi Joeri,
    Please have a look at this thread:
    LinkedButton - show DocNum but link using DocEntry?
    Kind Regards,
    Owen

  • LinkedButton in matrix

    Hi All,
    I have added some User Defined Fields to Sales Order Matrix. I want to place LinkedButton in one of these fields. Can anyone give me code for doing this.

    Hello,
    yes, it is not allowed to change the UDF column of B1 standard form into LinkedButton. Because it is created by B1, Its type has been determined by B1 and readonly. While there is a workaround:
    1).Handle the DoubleClick to open the linked form instead of LinkedButton.
    Kind Regards
    -Yatsea

  • Disappearance of LinkedButton

    SBO Gurus,
    I'm currently developing an add-on for sbo 2007a. I created a new LinkedButton, on Item Master Data form, which when clicked launches my user-defined form (basically, I'm just catching the event to launch my form via XML). Now, my concern is that upon launching of the user form - which by the way is working - the LinkedButton on the Item Master Data disappears for some reason. But it's still there that if you do a mouse click on the same spot, the button appears again. Has any of you experienced this or maybe knew how to solve this problem?
    Thanks in advance!

    Hi there
    Have you linked the linked button with any field at all.You may have edittext field with the linked button and link it with the button.I think now the button shouldnt disappear.
    HTH
    Ram

  • LinkedButton de Sistema

    Bom dia a todos, estou com a seguinte duvida, criei um choosefromlist em uma matrix de sistema e ele está funcionando corretamente, porém, não consigo colocar a seta laranja nesse campo da matrix pelo fato de ser uma matrix de sistema, alguem já precisou fazer isso ou tem idéia de como faço.
    Att,
    Vitor Avila (Flag SAP Solution Factory)
    Edited by: Rui Pereira on Nov 7, 2008 9:27 AM

    Bom dia!!!
    Desculpe a demora,
    no FormLoad, ou no Init, você terá que adicionar o ChooseFromList a este campo,  e depois no evento Choose From List
    //Criando choose from list
                    SAPbouiCOM.ChooseFromListCreationParams oCFLP = null;
                    oCFLP = ((SAPbouiCOM.ChooseFromListCreationParams)(Conexao.SBO_ApplicationUI.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)));
                    oCFLP.MultiSelection = false;//se vai ter mais de uma seleção ou não
                    oCFLP.ObjectType = "2"; //Tipo de objeto
                    oCFLP.UniqueID = "cflTrans";//Id do ChooseFrom list
                    oForm.ChooseFromLists.Add(oCFLP);
    //Na Coluna, depois de criar o Choose From List
                   ((SAPbouiCOM.EditText)((SAPbouiCOM.Matrix)oForm.Items.Item("MATRIX")).Columns.Item("Coluna")).ChooseFromListUID = "cflTrans"//Id do ChooseFrom Lista
                    ((SAPbouiCOM.EditText)((SAPbouiCOM.Matrix)oForm.Items.Item("MATRIX")).Columns.Item("Coluna")).ChooseFromListAlias= "CardCode"";//Alias do Campo a ser capturado
    //Onde oForm é o Form Instanciado
    //Capturando o Evento do Choose From List
               if( evento.type = "ChooseFromList")
                        SAPbouiCOM.IChooseFromListEvent oCFLEvento = null;
                        oCFLEvento = ((SAPbouiCOM.IChooseFromListEvent)(_eventoItem));
                        string sCFL_ID = null;
                        sCFL_ID = oCFLEvento.ChooseFromListUID;
                        SAPbouiCOM.ChooseFromList oCFL = null;
                        oCFL = oForm.ChooseFromLists.Item(sCFL_ID);
                        SAPbouiCOM.DataTable oDataTable = null;
                        oDataTable = oCFLEvento.SelectedObjects;
                        if (oDataTable != null)
                            if (oDataTable.GetValue(0, 0).ToString() == "")
                                return false;
                            try
                                if(oCFL = "IDCHOOSEFROMLIST")
                               ((SAPbouiCOM.EditText)((SAPbouiCOM.Matrix)oForm.Items.Item("MATRIX")).Columns.Item("Coluna")).Value= oDataTable.GetValue(0, 0).ToString();
                            catch (Exception)
    Espero que tenha ajudado.

  • LinkedButton object in a text field

    Hi all!
    I want to create a text field with a linked button (the orange arrow). When I click the arrow I want to see the item list an when I double click an item in the list, I want to insert the itemcode in my text field.
    I tried so
    frm.Items.Add("link",it_LINKED_BUTTON)
    frm.Items.Add("Edit", it_EDIT)
    frm.Items.Item("Link").LinkTo = "Edit"
    flecha = frm.Items.Item("link").Specific()
    flecha.LinkedObject=lf_Items
    but it doesn't work!
    Can you help me?
    Thank you very much in advance for your help.
    Kind regards,
    Veronica Vezzali

    Hi Veronica,
    unluckly i don't think that's the right way to do ehat you want.
    The "linked button" is a navigation button, so if you have an item code in the text field you can click the arrow and open the item master data.
    A "search form" must be created manually:
    - create a "search button"
    - catch the clink on the button and open a "search form"
    - create the search form and fill it with the right query
    - catch the "double click", close the "search form" and send the selected item code to the starting text field.
    I think it's the only way to do it.
    Hope this helps.
    Kind regards,
    Fabio Salucci

  • Activate linkedbutton in a matrix through code?

    Hi... Anyone know if it is possible to activate a linked button in a matrix through code?
    Observations:
    1 - In normal linked buttons i just use the click method... works fine
    2 - In matrix the columns click method just focus the cell
    3 - The colums extended object (Linked Button does not have a click event)
    Anyone know how this can be done at all?

    hi,
       The Click event of Cell Item with click type 'SAPbouiCOM.BoCellClickType.ct_Linked' Activates Linked Press event.
    oForm = oApplication.Forms.Item(FormUID)
    oMatrix = oForm.Items.Item("7").Specific                oMatrix.Columns.Item(<colid>).Cells.Item(<rowno>).Click(SAPbouiCOM.BoCellClickType.ct_Linked)
      HTH
    With Regards
    B.Ravi Shankar

  • LinkedButton and lf_Employee

    Hi all,
    I create a linkButton and a edit text.
    I'm link the button to lF_Employee and to the Edit Text.
    The link doesn't work, i can't open the form associate at the name of the edit text.
    If i insert the name or the empID, nothing happends. The button doesn't work ?
    What is the correct value to insert in the edit text, for open the correct form with the link button ??
    Thanks
    Michael

    Michael,
             Try the below code, in my form i have employee texbox i have CFL for that and link button if i choose the employee and click the link button the business partner will open.
    <item uid="lk_link2" type="116" left="110" tab_order="0" width="20" top="72" height="11" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="txt_pre" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1" >
                   <AutoManagedAttribute>
                     <Attribute id="2" description="editable" modeView="1" />
                   </AutoManagedAttribute>
                   <specific linkedObject="171" LinkedObjectType="171" />
                 </item>
    <item uid="txt_pre" type="16" left="128" tab_order="3" width="130" top="71" height="15" visible="1" enabled="0" from_pane="0" to_pane="0" disp_desc="1" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                   <AutoManagedAttribute />
                   <specific TabOrder="0" ChooseFromListUID="PreBy" ChooseFromListAlias="empID">
                     <databind databound="1" table="@PUR_PI_HEAD" alias="U_preby1" />
                   </specific>
                 </item>
    Note that in link button linkto="txt_pre" is the textbox name.
    If u have value in textbox only the link button will open the coressponding screen.
    If u r using userdefined screen for linkbutton there is another procedure.
    Satisfied Reward points,
    Regards,
    Anitha

  • Combo box as LinkedButton Object

    Hello all,
    I have one question. I created a UDF as column in line of documents. This column is combo box. Its ok but i want to do this column as combo with linked arrow. Is it possible?
    Thanks

    Hello,
    Thanks for your answer. But i dont know how to change type of column. This column is as UDF and has validvalue Yes,No. I need fot this column add link arrow.

  • LinkedButton Object question

    Hey All.
    Can anyone tell me how I can display the document number on a matrix cell or edit text box but still ust the docEntry number to link to a sales order? If our client uses customer numbering they want to see these numbers on the text box but Business One uses the docentry to open the corresponding record. I have noticed that on some business one forms they display the document number but the golden arrow links to the object properly. If I try to do this Business one says no matching record found.

    I have used a different technique in a few screens where I display the link arrow and the DocNum in the same column.  When the user clicks on the link arrow I swap the DocNum to DocEntry in the cell, allow the standard link arrow processing, and then swap it back to DocEntry.  This can be done using the et_MATRIX_LINK_PRESSED event.  If you freeze the form it is not even noticable to the user.
        If pVal.EventType = et_MATRIX_LINK_PRESSED Then
            If pVal.BeforeAction = True Then
                Call ChangeToDocEntry(sboApp, sboCompany, pVal.Row)
            Else
                Call ChangeToDocNum(sboApp, sboCompany, pVal.Row)
            End If
        End If
    John.

Maybe you are looking for

  • Expoting Illustrator CC files into Photoshop

    I can't seem to export my Illustrator CC files into Photoshop and keep the edges of things sharp and yet still preserve layers. I'm doing the same thing I did with my old CS4: FILE > EXPORT, then specifying CMKY and "write layers" and no anti-alias.

  • Ai opens then windows says there is a problem and it needs to be closed

    I just bought a new laptop, downloaded the Creative Cloud and apps and I keep getting a "problem has occurred" window when I open Ai and other apps then it closes

  • Budget for parent

    Hello We have made a Project say P/ 0919 this is at parent level agains this pareent level we have 4 childs levels P/0919 - Project  Parent P/09191/1 - Child 1 P/0919/2- Child 2 P/0919/3 -Child 3 P/0919/4 -Child 4 Budgets were allocated to childs 20

  • [SOLVED] libxml2 2.9.1.-4 includes a malfunctioning Python 3 module

    The libxml2 2.9.1.-4 update has broken Python 3. E.g. if you start newsfeed (from AUR), you get: File "newsfeed", line 19, in <module> from newsfeed import * File "/home/martin/git/3NewsFeed/newsfeed.py", line 30, in <module> import feedparser, rssfi

  • VLAN trunk over Frame Relay

    I want to define a VLAN 101 within a branch office on one port of a CAT3524XL, that will in turn go to a router in that branch and be trunked back to the main office router (through a frame relay connection). Once in that main router, I want that one