cancel
Showing results for 
Search instead for 
Did you mean: 

LinkedButton And EditText

Former Member
0 Kudos

Is it possible to link the EditText and LinkedButton

in B1 UI API 2004??

Anyone try that before?? I need some sample.

Thank!!!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Thanks for your code!!

But, I can't find the extendedObject property in EditText

Former Member
0 Kudos

There is no extendedObject property in EditText.

You can use method LinkTo to link LinkedButton to EditText.

If You want do something if LinkedButton is pressed, use event ItemPressed.

Hope it helps.

See this:

and:

/message/12271#12271 [original link is broken]

Message was edited by: Kamil Wydra

Former Member
0 Kudos

Hello,

Here is some code that can do what you want :

oItem = oForm.Items.Add("ECPart", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oItem.Left = 139
oItem.Width = 144
oItem.Top = 5
oItem.Height = 14
oItem.LinkTo = "Lien"
oEdit = oItem.Specific

oItem = oForm.Items.Add("Lien", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)
oItem.Left = 120
oItem.Top = 5
oItem.LinkTo = "ECPart"
oLink = oItem.Specific

oLink.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_BusinessPartner

HTH,

Thibault

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello.

This is how to add LinkedButton column to matrix:


[Visual Basic] The following sample code shows how to add link arrow to column.

Set oItem = oForm.Items.Add("Matrix1", it_MATRIX)

oItem.Left = 5
oItem.Width = 400
oItem.Top = 5
oItem.Height = 130

Set oMatrix = oItem.Specific
Set oColumns = oMatrix.Columns
Set oColumn = oColumns.Add("F", it_LINKED_BUTTON) '// new type of column
oColumn.TitleObject.Caption = "Linked to object"
oColumn.Width = 40
oColumn.Editable = True

Set oLink = oColumn.ExtendedObject '// new property
oLink.LinkedObject = lf_BusinessPartner

Using Linked Button not in matrix is similar to this.

Hope it helps.

Regards

Kamil Wydra

More that You can do is to try method LinkTo.

Maybe that helps.

Message was edited by: Kamil Wydra