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
Similar Messages
-
Link button in grid column to UDO
Hi,
I read through the posts regarding linking to user-defined objects, but I found it very confusing. Some posts say that it is not possible to create a link button to a UDO; others say you need to use the extended-object property.
Does anyone have code that I could use to designate a grid column as a link to a UDO?
The code I'm using is:
oGrid.Columns.Item(1).Type = SAPbouiCOM.BoGridColumnType.gct_EditText
txtColumn = oGrid.Columns.Item(1)
txtColumn.Width = 83
txtColumn.LinkedObjectType = ???
I need to fill in the "???".
If I designate an SAP B1 object type it works.
Thanks,
MikeRasmus,
Thanks for taking the time to provide a detailed explanation. I think though that SAP needs to solve these kinds of problems. It is my understanding that the main design goal of Business One is to provide an infrastructure that would reliably enable customization around it. There is no such thing as accounting software that does not need some kind of adaptation to make it work for specific kinds of business models. So a design that makes customization easier makes a great deal of sense.
If it is necessary to improvise in order to do what you need, then this design goal has not been met. It also means that Business One is not what is managing the process because you are effectively going around it. This in my view is actually worse than if Business One made these links work. By forcing us to go around it, we effectively loose the data protection that Business One should be providing. This is my take on it anyway.
We solved the problem by opening the appropriate form with the appropriate data in it by using the double-click event. The reason we have to do it this way is because the SDK will not even display the link button in a grid if its target is a UDO. This brings up another reason for the SDK to be more cooperative with these efforts. SAP has provided a detailed document describing the need to not deviate from Business Ones look and feel. Perhaps SAP needs also to provide an SDK that more reliably and easily enables that caveat.
If Business One had been designed from the ground up using SOA, its original design goal would be a lot easier to meet. Maybe this is the real problem.
Thanks,
Mike -
Link Button to open an UDO Object Form
hi
I was trying to open my udo form using a link button in a data grid. But i just cannot link the object.It is working fine with system forms.But i just want to know how to link an UDO Object.hai Manish,
you just catch the row you clicked and get the data with your linkbutton which you have clicked then activate your UDF (by activating menu event) and then perform the find action according to the data.......
i hope this helps .....
Regards.....
Chethan B.E.
9342504047
[email protected] -
hi,
is ther a way to implement a link button im my Grid Column and bind it to an existing UDO ?
I'm using SBO 2007A SP00 PL37.
the following code, shows the link button and links to an item
oGrid.Columns.Item(0).Type = SAPbouiCOM.BoGridColumnType.gct_EditText
oCol = oGrid.Columns.Item(0)
oCol.LinkedObjectType = 4
i tried to link to my udo by the following but without success:
oGrid.Columns.Item(0).Type = SAPbouiCOM.BoGridColumnType.gct_EditText
oCol = oGrid.Columns.Item(0)
oCol.LinkedObjectType = "UDO_VM_CONTRACT"
I'm looking for a way of direct linking. Now i try to do the following workaround, but maybe there is a better way to solve this problem:
Case SAPbouiCOM.BoEventTypes.et_MATRIX_LINK_PRESSED
If pVal.BeforeAction = False Then
BubbleEvent = False
moSboApplication.ActivateMenuItem("VmContract")
End If
best regards
Markus
Edited by: Markus Rewak on Jul 10, 2008 11:11 PM
Edited by: Markus Rewak on Jul 10, 2008 11:12 PMHi Madhu,
the udo object type is not working. To get the drill down functionality you have to use the item-object (4) and catch the matrix link pressed event and search the udo by your own logic.
' Add a link button to a column
oGrid.Columns.Item(0).Type = SAPbouiCOM.BoGridColumnType.gct_EditText
oCol = oGrid.Columns.Item(0)
oCol.LinkedObjectType = 4
Case SAPbouiCOM.BoEventTypes.et_MATRIX_LINK_PRESSED
If pVal.ColUID = "Vnr" And pVal.BeforeAction = True Then
BubbleEvent = False
Dim sLink As String
Dim oGrid As SAPbouiCOM.Grid
oGrid = oForm.Items.Item("Gcont").Specific
oGrid.DataTable = oForm.DataSources.DataTables.Item("DTcont")
sLink = oGrid.DataTable.GetValue(0, pVal.Row)
moSboApplication.ActivateMenuItem("VMarkus")
moSboApplication.Forms.ActiveForm.Mode = SAPbouiCOM.BoFormMode.fm_FIND_MODE
moSboApplication.Forms.ActiveForm.ActiveItem = "txtdocnum"
moSboApplication.Forms.ActiveForm.Items.Item("txtdocnum").Specific.value = sLink
moSboApplication.Forms.ActiveForm.Items.Item("1").Click(SAPbouiCOM.BoCellClickType.ct_Regular)
End If
End Select
This works very well.
have fun
Markus -
Link button for udo in the xml
Hi all ,
I know how to link a system object like this.
<column AffectsFormMode="1" backcolor="-1" description="" disp_desc="0" editable="1" font_size="12" forecolor="-1" right_just="0" text_style="0" title="Code" type="116" uid="202" visible="1" width="80">
<databind alias="U_ItemCode" databound="1" table="@APS1"/>
<ExtendedObject linkedObject="4"/>
</column>
but how can I link a UDO ? if My UDO' name is MUDO ,I write the XML like this,
<ExtendedObject linkedObject="MUDO"/>
and I always got error . who know ?
thanksHi Wei,
That's because you can't link to UDO's. There is no object type for an UDO. You should use onject type NONE and make the logic behind it yourself. (Capture the linked button press event and handle all actions)
Hope this helps,
Rowdy -
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 AMThanks 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 -
Hi all,
I am using link button in matrix. I bound link button with existring SAP transcation like employees and UDO too. but link is not working in both cases.
can anybody help me out....
ManishHi Manish,
Please refer the following sample code:
Dim oMatrix As SAPbouiCOM.Matrix = oItem.Specific
Dim oColumns As SAPbouiCOM.Columns = oMatrix.Columns
Dim oColumn As SAPbouiCOM.Column = oColumns.Add("DBS_Col1", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)
oColumn.TitleObject.Caption = "EmpId"
Dim oLink As SAPbouiCOM.LinkedButton = oColumn.ExtendedObject
oLink.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_lf_Employee
By the way, SDK Online Help is a good knowledge base, either searching in the forum help.
Kind Regards, Yatsea -
How to use user defined object with linked button
Hi experts
Can I use user defined table data with linked button. If yes then how. plz give me sample examples.
Regards
GorgeIf you have an UDO in your form, or any other, the FormDataLoad eventhandler should be used.
Take care, it is not inside the eventhandler.
for VB:
Select SBO_APPLICATION in the classes, and select FormDataLoad event
Private Sub SBO_Application_FormDataEvent(ByRef BusinessObjectInfo As SAPbouiCOM.BusinessObjectInfo, ByRef BubbleEvent As Boolean) Handles SBO_Application.FormDataEvent
in C#
Add a new eventhandler as
// declaration
SBO_Application.FormDataEvent += new SAPbouiCOM._IApplicationEvents_FormDataEventEventHandler(ref SBO_Application_FormDataEvent);
// eventhandler:
public void SBO_Application_FormDataEvent(ref SAPbouiCOM.BusinessObjectInfo BusinessObjectInfo, out bool BubbleEvent) -
How to add link button in Query generator
Hi,
I am trying to add link button in Query reports. While the query is for system table it automatically gives columns with link button but how to do this for user Tables.Hi,
Even by standard, this is not possible only when you using UDO.
You can create your form with Matrix, and use FlushToDataSource Method to load large amount of data inside. Now you can program the linked button click (et_MATRIX_LINK_PRESSED) by columns.
Regards,
J. -
hi guys,
I want to set a link button to user define table field.
I read the available topic in forum. But I am not able to get it. Please anyone help me regrading this problem.
If possible give explanation through code.
Thanks in advance.I´m sorry to tell that you can only show system objects and UDO objects using the link buttons. What I don´t know is if your for is for a UDO, SBO is able to know that it should open that form or it opens the standard one.
In case it doesn´t show the form you need, what you could do is use the linked button for a user defined object, set the linked object property to BoLinkedObject.lf_None and then handle the On_Click event and show your user form.
Regards,
Ibai Peñ -
Hi Expert, In system from in UDF LINK BUTTON
Hi,
1) In sales order form in matrix in one UDF column IN that i want to add link button .after clicking my UDO will open.
is it possible or not.
Regards
Rajkumar GuptaHi Raj Kumar,
Vasu h w r u..?
Plz try this
Dim oItem As SAPbouiCOM.Item
Dim oMatrix As SAPbouiCOM.Matrix
oMatrix = objForm.Items.Item("38").Specific
oItem = oMatrix.Columns.Item("ColumnId")
oItem.LinkTo = "ObjectId"
Firos C -
hi
Can anyone tell me why the click action is not working when
the link button is placed in datagrid.
<mx:DataGridColumn dataField="edit" headerText="">
<mx:itemRenderer>
<mx:Component>
<mx:LinkButton label="edit" click = "click1();">
</mx:LinkButton>
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
even if button is placed in the datagrid it is not working.When you use the <mx:Component> tag you create a new
scope. Its as if all of the content of the <mx:Component>
were in another file. If you used a separate file for your renderer
you wouldn't expect click() function to be recognized, right?
You can modify your renderer like this to make it work:
<mx:LinkButton label="edit" click =
"outerDocument.click1();">
Another option is to take advantage of the bubbling feature
of the click event. Instead of putting the click handler on the
LinkButton, put it on the DataGrid itself. Any click on the
DataGrid will then trigger the event handler.
The drawback to that is that EVERY click will call the event
handler - either the LinkButton's click on a click on the header.
Your event handler just has to examine the event data to determine
what control originated the event.
In this case, using outerDocument.click() is far easier, but
you might need the bubbling property of the event at some point in
the future. -
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? -
How to apply background color to link button in Flex 2
I need to apply background color to link button as the Rollover color has on its over event.How is this possible in Flex 2 ?I am using the above in Xcelsius as custom component so if I apply graphics and draw rect method it does not have any effect.Please help.
These might help:
http://jdevadf.oracle.com/adf-richclient-demo/components/skinningKeys/column.jspx
http://jdevadf.oracle.com/adf-richclient-demo/components/skinningKeys/table.jspx -
Add linked button to a editText field
Hello everybody,
i'm trying to add a linked button to a text field in the header of a JournalEntry. So far i've been able to add it on one of the columns of a document matrix.
Can anybody help me, please?
Ciao
MarcoYou need to create a new link button object, set the "linkto" property to point to the UID of the edittext containing the data, and set linkedobject to point to the target object (eg. business partners, items ...)
Set sboItem = sboItems.Add("LINK", it_LINKED_BUTTON)
sboItem.LinkTo = "10" 'UID of separate edittext containing the data.
Set sboLink = sboItem.Specific
sboLink.LinkedObject = lf_BusinessPartner
John.
Maybe you are looking for
-
How can I remove an old Email address in easy steps please
I have closed my AOL email account but cannot see a way of removing it from Thunderbird so keep getting the no access messages at start up. everything else is ok.
-
Adobe Premiere Pro 2 and Macromedia Flash MX 2004
I'm using Adobe Premiere Pro 2.0 and have recently installed Macromedia Flash MX 2004. Now when I go to export to Flash I don't get the Adobe Premiere's Flash Export dialog box when I press "Options" from the Export Settings. I get the Flash MX Prof
-
Hello in which transactions do i get the data for tables COSS and COSP
Hello i have these two tables. i need to know which transactions correspond to them .thx
-
What are new features of interactive reporting in hyperion 9.3 release
hi what are new features of hyperion system 9.3 interactive reporting over hyperion system 9.
-
I can`t listen to the appleloops in garageband anymore.
When I click on a loop in the browser it just plays about 1sec of it and then dies.Dragging the loop to a track works fine.I have already re-indexed the loops, rebooted and even reinstalled i-Life and MACOS Snow Leopard. Nothing solves the problem! I