on 06-07-2004 4:05 PM
Are there any examples describing how to use it_LINKED_BUTTON items?
I'm trying to implement a form containing references to B1 objects; i.e. a matrix containing Articles including a link to the corresponding article.
Thanks a lot, that should do it!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
just FYI,
LinkedButton in matrix was not exposed in 6.5.
It is working great for SAP Business One version 6.7 MR.
Regards,
Yaniv G.
SDK Consultant
SAP Manage Israel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Unfortunately, linked button don't work into matrix. Maybe, it will in tne future versions. You can use linked button with the EditText object. The EditText must contain a valid key value for linking.
Best regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> Hi,
> Unfortunately, linked button don't work into matrix.
How does B1 implement linked buttons in a matrix? The article list inside a purchase order, for example.
Looks as though I'd have to code everything on myself. I'll open another thread for the regarding questions.
> Maybe, it will in tne future versions. You can use
> linked button with the EditText object. The EditText
> must contain a valid key value for linking.
I assume you mean:
- set the button items' LinkTo property to point to the Edit Text
- set the buttons' LinkedObject property to lf_WHATEVER to represent the object type
- put the object key into the EditText field
Right?
Hi,
How SAP Manage implements linked buttons in a matrix - it's a good question. As a developers of the program they have a little more possibilities and tool than we have. If you add linked buttom to a matrix you simply can't see it.
Here's example of working with linked button:
oForm.DataSources.DBDataSources.Add("OITM")
frmItem = oForm.Items.Add("txtItCode", SAPbouiCOM.BoFormItemTypes.it_EDIT)
frmItem.Left = 50
frmItem.Top = 5
frmItem.Height = 14
frmItem.Width = 100
oEdit = frmItem.Specific
oEdit.DataBind.SetBound(True, "OITM", "ItemCode")
frmItem = oForm.Items.Add("Link1", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)
frmItem.Left = oForm.Items.Item("txtItCode").Left + oForm.Items.Item("txtItCode").Width + 5
frmItem.Top = oForm.Items.Item("txtItCode").Top
frmItem.LinkTo = "txtItCode"
oLink = frmItem.Specific
oLink.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_Items
...
oForm.DataSources.DBDataSources.Item("OITM").Query(oConditions)
In the "txtitCode" appears some item code and linked button appears too.
Best regards,
Mark
I just found out that it works perfectly without using Datasources.
[LINK] [EDITTEXT]
Dim oLink As SAPbouiCOM.LinkedButton
Dim oId As SAPbouiCOM.EditText
oLink = oForm.Items.Item("LINK").Specific
' set object type
oLink.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_Items
oId = oForm.Items.Item("EDITTEXT").Specific
' set object identifier
oId.String = "Coolest article ever"
' link arrow to id field
oForm.Items.Item("LINK").LinkTo = "EDITTEXT"
' disallow editing of id field
oForm.Items.Item("EDITTEXT").Enabled = False
That's it, no query needed plus you can use several items of the same type in one form (don't know how to do that with DataSources).
I'm definitely looking forward to the next release in order to use a matrix for linked buttons...
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.