Skip to Content
author's profile photo Former Member
Former Member

use link button

hi,

how to use link button for user defined form

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2011 at 05:54 AM

    Hi Hareesh,

    If you want to use link button linked to User Defined Field, follow the following steps :

    1. Add the link button control to the Field on User Defined Form

                    oItem = oForm.Items.Add("lnkBP", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)
                    with oItem 
                         .LinkTo = "BP"   'Field Name with which the link to button is linked              
                         .Left = 10  
                         .Width = 10
                         .Top = 10
                         .Height = 10
                         oLink = oForm.Items.Item("lnkBP").Specific
                         oLink.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_BusinessPartner  'Business Object type for Linked Button 
                     End With
        

    2.Adding Link Button to the column in Matrix

    > Add the Column in the matrix of type it_Link_Button

    > Assign the link Button a valid Business Object

    e.g.

                    oLink = oCol.ExtendedObject
                    oLink.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_Item
           

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2011 at 07:05 AM

    thank u

    but i want to use link button to user defined form (eg---->:PODP form) 'where PODP is User defined Form

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2011 at 07:21 AM

    Hi Hareesh,

    Sorry, I thought u want to place one link button on a User Defined Form.

    Doesnt matter. You can code this manually by handling et_Click event of Link Button and opening the User Define Form there.

    e.g.

    Private Shared Sub MyForm_Link_Pressed_BeforeAction(ByVal pVal As SAPbouiCOM.ItemEvent, ByVal BubbleEvent As Boolean)
           Try
                DocEntry = oForm.items.item("DocEntry").specific.value  'Pull the DocEntry Value from Field to which Link Button                                                                                
    'is linked
                Initialize_MyForm() 'Call the Function to load your User Defined Form 
                oForm = SboApp.Forms.ActiveForm
                oForm.freeze(true)
                oForm.Mode = SAPbouiCOM.BoFormMode.fm_FIND_MODE   'Set the Form mode to Find Mode
                oForm.Items.Item("DocEntry").Specific.value = DocEntry  'Set the DocEntry Value
                oForm.Items.Item("1").Click(SAPbouiCOM.BoCellClickType.ct_Regular)
            Catch Ex As Exception
                Throw Ex
            Finally 
                oForm.freeze(false)
            End Try     
        End Sub
    

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 04, 2012 at 09:43 AM

    thank u all

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.