Link Button in Predefined Screen

Hai Friends,
           I want to customize PO screen.There is added one tab named Terms and Conditions.
On tht tab i had one matrix. Using CFL iam filling this Matrix. Now my aim is that in first column i want linkbutton. how to do that??
Does anyone have idea???
Regards,
Anitha
Edited by: ani nazir on Mar 28, 2008 6:00 PM

Here is the Code:::
PO_Frm.DataSources.UserDataSources.Add("DS_code", SAPbouiCOM.BoDataType.dt_SHORT_TEXT)
            oCol = oCols.Add("TextCode", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)
            oCol.DataBind.SetBound(True, "", "DS_code")
            oCol.TitleObject.Caption = "Code"
            oCol.Width = 150
            oCol.ChooseFromListUID = "CFL1"
            oCol.ChooseFromListAlias = "TextCode"
            lb = oCol.ExtendedObject
            lb.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_PredefinedText
Regards,
Anitha

Similar Messages

  • Link button in a grid column

    hi friends,
    I am trying to insert a link button in my grid (column1)
    I created  a user form with a grid.
    Now in that grid (first column) i want to insert a link button,which will call a system form(like sales order screen)
    i'm pasting piece of code (vb.net)related to my grid
    so plz send me code how to get link button in my grid and where i can insert that code
    ' Add a Grid item to the form
            oItem = oForm.Items.Add("MyGrid", SAPbouiCOM.BoFormItemTypes.it_GRID)
            ' Set the grid dimentions and position
            oItem.Left = 20
            oItem.Top = 100
            oItem.Width = 520
            oItem.Height = 300
            ' Set the grid data
            oGrid = oItem.Specific
            oForm.DataSources.DataTables.Add("MyDataTable")
            oForm.DataSources.DataTables.Item(0).ExecuteQuery("select DocNum from [@SALCO_H]")
            oGrid.DataTable = oForm.DataSources.DataTables.Item("MyDataTable")
            ' Set columns size
            oGrid.Columns.Item(0).Width = 50
            'oGrid.Columns.Item(1).Width = 60
            'oGrid.Columns.Item(2).Width = 130
            ' Get the added form object by using the form's UID
            oForm = SBO_Application.Forms.Item("frmGrid")
    Thanks & Regards
    SARAN

    Thenks for u r reply , i gone through that link it is helpful for me but still i have a problem,
    now i'm getting linkbutton but it is not performing any function,though i gave the code for that link button and related screen id like <b>2</b> for business partner or like <b>bplist</b>
    and <b>one more problem</b> i was facing with grid is
    i created a grid in my user screen and i want to get the <b>form settings</b> for that grid(if i click <b>(tools--->form settings)</b>.then it display form settings screen for perticular userscreen.
    is it possible to get form settings for a screen having grid
    Thanks & regards
    SARAN

  • Link Button In Grid

    Hai To All,
                 Iam creating reports for my module. For that iam using grid to  display the fields. Now my issue is i want to place the link button(Orange arrow) for specific fields.
    For Example,
    For Supplier Code iam placing the following code so that i can able to get view the link button and if i click i can able to open the Business Partner.
    Grid.Columns.Item(0).Type = SAPbouiCOM.BoGridColumnType.gct_EditText
                                    Dim oCol As SAPbouiCOM.GridColumn
                                    oCol = Grid.Columns.Item(0)
                                    oCol.LinkedObjectType = 2
    Similar to that i want to create link button for my user defined screen that is my screen.I registered as UDO as "PI_UDO"
    Grid.Columns.Item(0).Type = SAPbouiCOM.BoGridColumnType.gct_EditText
                                    Dim oCol As SAPbouiCOM.GridColumn
                                    oCol = Grid.Columns.Item(0)
                                    oCol.LinkedObjectType = "PI_UDO"
    If i give "PI_UDO" as my linked object it is not accepting.No error display also....
    If i use none option for linked button,
    Grid.Columns.Item(0).Type = SAPbouiCOM.BoGridColumnType.gct_EditText
                                    Dim oCol As SAPbouiCOM.GridColumn
                                    oCol = Grid.Columns.Item(0)
                                    oCol.LinkedObjectType = -1
    I cant able to view the link button......
    Weather we can able to create link button for our screen???
    In Forum someone told that we can....But some told as cannot??
    What is the solution for this???
    Its an urgent requirement can anyone help me.......
    Regards,
    Anitha
    Edited by: ani nazir on Jul 30, 2008 11:06 AM

    Thanks Petr,
    If i use like that i can able to open the screen but there is an error
    "No Matching Records found in Business Partner"
    In Matrix Item Link press event i made bubbleevent=false
    Regards,
    Anitha

  • Button on selection screen to link with PDF

    Hello,
    I have a customer request to provide documentation for each transaction on its selection screen. So they want to have a button on selection screen which should download PDF file stored on SAP application server. Is this possible (they said it is) and where can I found some instructions how to implement this.
    Thanks for your answers.
    Tomi

    Ok guys ... thanks but I found solution just in case someone else needs it:
    It works ... just upload PDF document with SMW0 and this program can display it:
    data: docu_key TYPE WWWDATATAB VALUE 'ZPP_DOCU_ZPPGM',
          DOC_BEZ(10) TYPE C VALUE '123test'.
      DATA:
            l_tmp_path            TYPE rlgrap-filename,
            l_filename            TYPE rlgrap-filename,
            l_extension           TYPE rlgrap-filename,
            l_file                TYPE string.
    l_filename = doc_bez.
      CONCATENATE 'MI' docu_key INTO docu_key.
      CALL FUNCTION 'WWWPARAMS_READ'
        EXPORTING
          relid                  = docu_key-relid
          objid                  = docu_key-objid
          name                   = 'fileextension'
        IMPORTING
          value                  = l_extension
        EXCEPTIONS
         ENTRY_NOT_EXISTS       = 1
          OTHERS                 = 2
      IF sy-subrc NE 0.
        "MESSAGE s521 RAISING no_docu_disp.
        EXIT.
      ENDIF.
      CALL FUNCTION 'GUI_GET_DESKTOP_INFO'
        EXPORTING
          type   = 4
        CHANGING
          return = l_tmp_path.
      concatenate l_tmp_path '\' l_filename l_extension into l_tmp_path.
      call function 'DOWNLOAD_WEB_OBJECT'
           exporting
                key         = docu_key
                destination = l_tmp_path
           changing
                temp        = l_filename.
      l_file = l_tmp_path.
      CALL METHOD cl_gui_frontend_services=>execute
        EXPORTING
          document               = l_file
          synchronous            = ' '
          operation              = ' '
        EXCEPTIONS
          cntl_error             = 1
          error_no_gui           = 2
          bad_parameter          = 3
          file_not_found         = 4
          path_not_found         = 5
          file_extension_unknown = 6
          error_execute_failed   = 7
          synchronous_failed     = 8
          not_supported_by_gui   = 9
          OTHERS                 = 10.

  • How do I remove download links/button redirect to accurate download

    When I go to some sites that have a download link underscored in blue or a button next to text or any other part of the page, I was able to click and download the file. When you point at the link or button you would see the path it will take to download the file. It would have the website name your visiting plus other codes.
    But on returning to these sites, when I choose what I want to download, the link or button wants to go to accuratedownload.com. It presents the name of the item I want and with a .EXE extension. My main browser is Firefox version 26.0 on my XP PC. I test Internet Explorer and it produces the same results. Something has changed. I go to the site on my mobile phone, I am able to download the file from the same site and the links/buttons are not embedded with codes to go to accuratedownload.com. I do not know what to call this problem since I had no luck in finding solutions to redirection being embedded in a link or button on a web page that worked fine.
    I've tried a reset Firefox, my profile, running Symantec Anti-Virus, Malwarebytes Anit-Malware, Clearing history and so on. The problem still occurs. Need Help.
    Note: It would be nice if when the Download Screen pops-up, that we could rename the download file to a name we want (Saves time). Even if you rename the file, the history should record where it came from with the original name if it needs to be downloaded again.

    To let you know, When I did a reset and restarted Fire Fox without the Add on's. I tested each user account on my PC. Each user account that used Fire Fox or Windows Explorer showed the same symtoms.
    Back to troubleshooting, I've completed a scan using Sothos Free Virus Removal Tool. After a lengthy scan of every drive, partition, USB Thumb Drive and so on that it found, in about 5.5 hours it found Mal/FakeAvCn-C, Mal/JavDlEx-A and CXmal/BadLnk-A and continued by clicking the Clean Up button and that took about 15 minutes for some reason. Then it asked to send the log to Sophos. I clicked send and it failed to get to them.
    I tried going on the internet to test the cleanup by clicking on some links and buttons. I could not get on the internet. I found that the NIC card was not working. Don't know why now but probably was affected by the scan. I found myself troubleshooting and reinstalling NIC drivers several times before the NIC card started to run correctly.
    I read you post and tried to change the proxy settings in Fire Fox to "No Proxy." The scan, clean up and proxy settings change did not remove the embedded paths in links or buttons that allow you to download or be sent to the intended location. It still had paths to accuratedownload.com and eachdownload.com.
    Question: By default is the proxy setting suppose to be "Use system proxy settings"? Should I put this back to this setting.
    Windows Explorer has the same problem. Is Fire Fox a stand alone product or does it build parts of itself using Windows Explorer?
    =========
    Besides the scans and removal done to the registry, the scans it did on the files and folders, the Sophos log shows the virus attached to files in Documents and Folders, All Users (and other user accounts), Application and data folders, Java and Cache, including any shortcuts and long cryptic files like (pg42l784fcuo452hsb6cfbkoke045p75f2e02887m).
    When programs fail to delete or cleanup after themselves, what locations can be safely deleted manually?

  • Link button not working in matrix

    Hai To All,
              I created one form with only one matrix. On that i have 5 columns. In first column i have linkbutton link to user defined screen. What its not working.
    My code is here
    If pVal.ItemUID = "matrix" And pVal.ColUID = "Docno" Then
                            Dim oMatrix As SAPbouiCOM.Matrix
                            Dim doc As String
                            oMatrix = Frm.Items.Item(pVal.ItemUID).Specific
                            doc = Trim(oMatrix.Columns.Item("Docno").Cells.Item(pVal.Row).Specific.Value)
                            Dim oForm As SAPbouiCOM.Form
                            Dim blnBool As Boolean = False
                            For frm As Integer = 0 To app.Forms.Count - 1
                                Try
                                    If app.Forms.Item(frm).UniqueID = "PI" Then
                                        oForm = app.Forms.Item("PI")
                                        oForm.Close()
                                        Exit For
                                    End If
                                Catch ex As Exception
                                    app.StatusBar.SetText(ex.Message)
                                End Try
                            Next
                            If blnBool = False Then
                                app.ActivateMenuItem("PI")
                                oForm = app.Forms.Item("PI")
                                oForm.Select()
                                oForm.Freeze(True)
                                oForm.Mode = SAPbouiCOM.BoFormMode.fm_FIND_MODE
                                oForm.Items.Item("txt_ino").Specific.Value = Trim(doc)
                                oForm.Items.Item("1").Click()
                                oForm.Freeze(False)
                            End If
                        End If
    Regards,
    Anitha

    Petr,
         Actually this form is same as we discuss sterday that is the form should open automatically without any click. Now my problem is while form opening iam loading some data using query this also working fine. Here iam using linkbutton in matrix. If i click link button i want to open other form which is also created by me. My code is rite but y i dont knw the link button is not working.
    here is the code written in itemevent
    Case SAPbouiCOM.BoEventTypes.et_MATRIX_LINK_PRESSED And pVal.BeforeAction = False
                        If pVal.ItemUID = "matrix" And pVal.ColUID = "Docno" Then
                            Dim oMatrix As SAPbouiCOM.Matrix
                            Dim doc As String
                            oMatrix = Frm.Items.Item(pVal.ItemUID).Specific
                            doc = Trim(oMatrix.Columns.Item("Docno").Cells.Item(pVal.Row).Specific.Value)
                            Dim oForm As SAPbouiCOM.Form
                            Dim blnBool As Boolean = False
                            For frm As Integer = 0 To app.Forms.Count - 1
                                Try
                                    If app.Forms.Item(frm).UniqueID = "PI" Then
                                        oForm = app.Forms.Item("PI")
                                        oForm.Close()
                                        Exit For
                                    End If
                                Catch ex As Exception
                                    app.StatusBar.SetText(ex.Message)
                                End Try
                            Next
                            If blnBool = False Then
                                app.ActivateMenuItem("PI")
                                oForm = app.Forms.Item("PI")
                                oForm.Select()
                                oForm.Freeze(True)
                                oForm.Mode = SAPbouiCOM.BoFormMode.fm_FIND_MODE
                                oForm.Items.Item("txt_ino").Specific.Value = Trim(doc)
                                oForm.Items.Item("1").Click()
                                oForm.Freeze(False)
                            End If
                        End If
    Regards,
    Anitha

  • Show link/button after all pages have been visited

    I want to make a course that branches out, so you can pick in which order you can learn about the different subjects, and at the end of each you will get the option to go back to "main screen"(this is also where you pick which subject to learn about). There are 4 subjects that have 1 slide with 6 slides under there again.
    What I want is to have a link/button on the "main screen" that allows you to go to the closing slide (just a plain thank you for your time etc), but I only want it to be visible after you've visited all the learning pages (4+(4*6)=28).
    I looked at advanced actions and conditional actions, but I didn't really find anything. Anyone have any ideas or work around? Thanks!

    This kind of thing has been explained many times on this forum.  In fact it's come up so many times over the past few years I'm quite surprised your searches didn't find anything about similar interactions.
    If your continued searches yield nothing, and you want a very detailed step by step tutorial on how to achieve such an interaction, I would suggest this e-book:
    http://www.infosemantics.com.au/adobe-captivate-advanced-actions
    It has a number of practice exercises with example CPTX files showing how this is achieved.

  • What does the chain/link button in Logic instruments do?

    I'm a new user of Apple MacBook Pro and MainStage v2.2.2 for music ministry work.  Found the Logic Software Instruments and some useful documentation about the interface and programming for each, but no mention thus far of the two lines of controls that MainStage adds to the top of each.
    First line is blue chain/link button - no rollover help, no F1 help, no right click context menu/help, no nothing.  The pulldown items on that line and the stuff on line 2 is fairly obvious.  What does that little chain link button do?  Every one of the software instruments seems to have the button present.
    NotLiable

    Okay.  I tried your experiment.  Double click on ES P button in channel strip and up pops the ES P software instrument.    Click on link button  -- on is blue, I see -- and double click on EXS24 button in another channel strip.  EXS24 window pops up, with the link button still blue/on, replacing the ES P window.  Turn off link button and open another software instrument and it joins the EXS24 on the screen.
    I now know what the button does, and that was my entire reason for posting, but your first sentence now has me curious.  You wrote, "The Link function is not obvious in MS, but essential in Logic."  It wasn't obvious because it's not documented, that I can find, in MS help, MS User Guide or Logic Pro 9 Instrument documentation.  No rollover tip.  Zip, squat, nada.  When you contrast "obvious" with "essential," do you mean the feature is not relevant in MS?  I'm not looking for a Logic tutorial, but I did find the feature mentioned in that product's manual.  I just want to know what, if anything, I need to do with this in MS.
    Art

  • UDO - Link button

    Hi,
    I have my custom designed form.
    Can I add a 'Orange Link arrow' for an UDO in it?
    I could do it for the system objects.
    When I tried it in the screen painter, I got the error 'Invalid Numeric Value'.
    Thanks in advance.
    Regards,
    Geetha

    Hi Geetha,
    I don't think UDOs are supported for link buttons (or should I say, I can't get it to work ) so you'll need to code it yourself. If you trap the event of the user clicking on the link button, you can open your UDO form in Find mode, populate the key field and click the Find button.
    Kind Regards,
    Owen

  • Link Button disappears while running the application

    Hi All,
      In one of my User Defined Forms i've added a link button and i've given the properties like Linkto,Link Object and all.In Preview mode it is available.But while i run the application,it is not available .Any body please help me to resolve this issue
    Regards
    Gibi

    Hi Gibi,
    Form Freeze mode stops you from seeing any updates on the screen (to prevent the flickering effect) until you unfreeze it.
    The linked button will only display once the field has been filled and the form is "un frozen".
    hth
    Regards
    Tinus

  • ICON_CREATE on button on a screen

    Dear expers,
    I have a requirement to expand and collaspe a subscreen on click of a button. But i stuck in changing the icon of a button on every click. I have a example to change the icon of a button on selection screen but its not working on a screen with ICON_CREATE function.
    Kindly suggest,
    Praveen Lobo

    Hi,
    The example Report Program explains you how to use the code for changing the ICON for a text. But in the function module documentation of the ICON_CREATE, it is clearly mentioned that the same can be used to change the ICON of the Push Button also.
    Code Snippet:
         CALL FUNCTION 'ICON_CREATE'
           EXPORTING
                name                  = icon_name
                text                  = icon_text
                info                  = 'Status'
                add_stdinf            = 'X'
           IMPORTING
                result                = push_btn
           EXCEPTIONS
                icon_not_found        = 1
                outputfield_too_short = 2
                OTHERS                = 3.
    push_btn should be the name of the Push button on the Screen. And change the property of it to Output enabled. And then execute the code. it will change the Icon of the Push button dynamically.
    have a look at the following link:
    http://help.sap.com/saphelp_nw70/helpdata/en/9f/dba9a635c111d1829f0000e829fbfe/content.htm
    "Pushbuttons have a label - the text that you specify statically in the attributes - and can also have icons. If you set the Output field attribute for a pushbutton, you can also set its text dynamically in the ABAP program. To do this, you must create a field in the ABAP program with the same name as the pushbutton. You must then assign the required text to the field before the screen is displayed. You can also assign icons to dynamic texts on pushbuttons by including the icon code in the text. The icon codes are all contained in the include program <ICON>. For example, the ICON_CANCEL () icon has the code @0W@." - This explains that you can change the icon of the Push button.
    Hope this helps.
    Thanks,
    Samantak.

  • How to get rid fo emergency button on lock screen?

    Need to disable emergency button on lock screen. I do not like it when the police call me saying I made a false 911 call while I am working.
    Anyone figure out how to disable?
    Please help.
    Scott

    Hi and Welcome to the Community!
    This article may be partially on point:
    KB26459 How to prevent accidental emergency calls from a BlackBerry smartphone
    Many jurisdictions require that ability, and so it cannot be overridden.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Camera link on locked home screen

    Camera link on locked home screen - when clicked, doesn't direct me to camera, Button just 'bounces' and stays on locked screen

    Tap on the camera icon and then drag it from the bottom to the top of the screen.

  • UI: Linked Button,

    why the Linked Button works only on the first pane on a user defined form, which will load from XML? On the second or third,... pane it will not be show?
    Thank for your help
    Best regards
    Jörn Pelikan

    Yes, I've had the same problems too. I also can't get the Linked Buttons to work for a combo box from a form created from the Screen Painter. Every time I save the form in Screen Painter and then re-open the form, the combo box linked to the Linked Buttons moves to a different position. So far I've only managed to get the linked buttons to work on a TextEdit which in pane 0 or pane 1.

  • Linked button

    I hav created my own form through screen painter and dragged a linked button on it.
    "I am using the following code to disable the link button"
    private SAPbouiCOM.Form oContStatus;
    oContStatus = SBOApplication.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount);
    oContStatus.Items.Item("11").Enabled =false;

    Hi yash, strange that you want to disable the link button, as it's only valid when the linked object exist. If not, it will not appear. How ever, if you want to "disable" it what ever reason, use the "Visible" property. With it you will erease it from the screen.
    HTH,
    Felipe

Maybe you are looking for

  • Service purchase order bapi_po_create1 error: maintain services or limits

    I am trying to create service Purchase Order. I am getting error: 'Purchase order still contains faulty items, Please maintain services or limits'. Struggling to solve this. Can anybody shed some light on this to solve. I would appreciate your any he

  • OPC Tunneller

    Any issues with Matrikon OPC Tunneller and Labview DSC? Here is the answer I got from Matrikon, just want to hear if there is any experience here. Hi Bob Tunneller has no known issues with LabView OPC client. Tunneller tends to need very little confi

  • BT Disconnection despite bill being paid

    Hoping someone on this forum can assist my father with his internet connection. He has a business line phone and broadband which is fully paid up. He did enquire about changing this to a private line and broadband as he is now doing less business and

  • Moving events in iPhoto

    in iphoto, can you tell me how to move entire events into a new album and retain the event name, etc   the drag and drop method just dumps all the photos individually from the event into the new album. then i seem to have to recreate and rename the e

  • Samsung 205bw SyncMaster

    So we purchased this 20" Samsung 205bw SyncMaster LCD monitor. It's got DVI and VGA inputs, supports a native resolution of 1680x1050 and has some pretty nice specs other than that (for a consumer grade monitor that is.) Now the only problem we're fa