Link Button to BusinessPartners AccountBalance/Deliveries/Orders
Hi all,
Is it possible with sdk to make link buttons such as the ones in the top right of BusinessPartners MasterData form, they are links to
Account Balance
deliveries
orders
regards,
Emmanuel
Dim oLinked As SAPbouiCOM.LinkedButton
'This is the linked button
oLinked = oForm.Items("8").Specific
'this is the edit box
oForm.Items("5").LinkTo = 8
'This is setting the Business Object
oLinked.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_BusinessPartner
This is to access a linked button for business parner, if you want to use a different object - just choose it from SAPbouiCOM.BoLinkedObject.
Similar Messages
-
How to use a link button in a matrix
Hi, I'm trying to create a matrix with a column that uses a link button to call a Sales order.. how can i do it? i'm new in SBO!
Hi,
You can do it in 2 differents ways:
1. With the ScreenPainter. Set the column property "Type" with the value "et_LINK_BUTTON" and the property "LinkObjectType" with the value of the Business Object (for Sales Orders, the value is "17").
2. Directly on the XML file. You can see and example below.
<column uid="col" type="116" title="Parte" description="" visible="1" AffectsFormMode="0" width="55" disp_desc="0" editable="1" right_just="0" val_on="" val_off="" backcolor="-1" forecolor="-1" text_style="0" font_size="-1">
<databind databound="1" table="" alias="col"/>
<ExtendedObject linkedObject="17" LinkedObjectType="17"/>*
</column>
The most important things are the properties "type" (116 for linked button) and "linkedObject" and "LinkedObjectType" (17 for Sales Orders).
I hope this can help you.
Regards,
Cristian Rivero -
Link button does not link to the right record.
Hi,
I have created a matrix, and I have made one of the column type as link button. The matrix is loaded with Sales Quotation record, and the DocNo column is a link button. For example, when i pressed the link button of record with DocNo = 10, but the Sales Quotation form pop out is record with DocNo = 8, anyone encountered this problem??? anyone have any solutions on this???
I have tried this with other marketing document object, such as Sales Order and Invoice, the same problem occured... huh, one more thing, if i did not set the document numbering series, the code is working fine, once i set the document numbering series, then this problem will happen ... hope to hear from you guys ...thanks in advanced!!!Hi,
I suppose the reason of this behavior is that the link button relates using the DocEntry value, and not the DocNum fields value.
What we usually do is to have 2 columns, on the first the DocEntry, and in the second one the DocNum. Then we set the DocEntry Column´s width to 20, and then only the orange arrow is shown.
This way, you get the behavior and appearance you need.
Hope that helps.
Ibai Peñ -
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
SARANThenks 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 -
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. -
Account Balance, Deliveries, Order Opportunities
Hello Expert,
What this indicate Account Balance, Deliveries, Order, Opportunities in Business partner Please tell me in detail with example?
Regards
VijayHi Vijay
Account balance links to of all the outstanding
Suppliers - Receivable
Customers Payable,
Deliveries link indicates all the open deliveries from Sales order
Opportunities All Open sales Opportunities and the stages of the opportunities.
For more detail you can SHIFT+ F1 on each field.
Regards,
Rakesh N -
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 -
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
I've got a linked button in a column within a matrix that shows Sales Order Document Numbers. I've set it to link to the Sales Order form using the following code:
oColumn = oColumns.Add("OrderNum", SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON)
oColumn.TitleObject.Caption = "Order Number"
oColumn.Width = 200
oColumn.Editable = False
oLink = oColumn.ExtendedObject
oLink.LinkedObject = SAPbouiCOM.BoLinkedObject.lf_Order
The problem I've got though is that if the Sales Order is created with a manually entered Document Number I get the following error when clicking on the linked button.:
"You are not permitted to perform this action [Message 200-30]"
I guess the reason it is happening is that the DocEntry and DocNum are different and the Linked Button is using the DocEntry as reference to which Sales Order needs to be opened when the linked button is pressed.
Is there anyway to stop this from happening and for the Linked Button to function as normal even if the Sales Order has a manually entered document number? So is there a way to allow the Linked Button to link through to a Sales Order using the DocNum not the DocEntry?
SteveCheers mate. I've just tried setting using the PressLink property of the EditTextColumn object however it's not letting me set the EditTextColumn to the column I have in my matrix. The code I have is:
Dim b As SAPbouiCOM.Column
Dim oEditTC As SAPbouiCOM.EditTextColumn
Try
If pVal.Before_Action = False Then
oForm.Freeze(True)
oEditTC = oMatrix.Columns.Item("DocEntry")
oEditTC.Visible = True
oEditTC.PressLink(pVal.Row)
oEditTC.Visible = False
oForm.Freeze(False)
End If
Catch test As Exception
MsgBox(test.Message)
End Try
The error I am getting is "Specified Cast Is Not Valid". The type of column I am trying to bind to is a "it_LINKED_BUTTON".
Steve -
Linked Button To SalesOrder, Error No Matching Record ODBC 2028
Hello,
I've added a LinkedButton to a Matrix Cell.
This is ok.
But the LinkedButton only works correct with the DocEntry
Number of SalesOrder ,not with desired DocumentNumber.
For Example, SalesOrder Document
DocEntry = 310
DocumentNumber = 400073
Entering 310 to matrix cell and clicking the
LinkedButton, the SalesOrder with DocumentNumber
400073 will be loaded.
Entering 400073 to matrix cell and clicking the
LinkedButton, error ODBC 2028 occurs.
Has someone an idea, how to link that
button properly to the DocumentNumber??
The source
'adding column
Set sbo_cOlumn = sbo_Matrix.Columns.Add
(UID:="1",Type:=it_LINKED_BUTTON)
'adding UserDataSource
oForm.DataSources.UserDataSources.Add UID:="1",
DataType:=dt_LONG_NUMBER
'bind column to UserDataSource
sbo_cOlumn.DataBind.SetBound
Bound:=True, TableName:="", Alias:="1"
' create linked Button
Set sbo_LinkedButton = sbo_cOlumn.ExtendedObject
sbo_LinkedButton.LinkedObject = lf_Order
Regards
ThomasHi,
I have the same problem with linking to Sales Order.
Sugesstion to use DocEntry instead of DocNum is correct only partially and it looks user-unfriendly even if you hide DocEntry value and have DocNum in the next column.
If you open "Inventory/Pick and Pack/Pick List" and select any pick, you can see a standard link to SO's DocNum, not to a DocEntry
Can please anybody explain how it is done?
Thank you
Natalya -
How create Linked Button on StaticText? Important!
Hallo
subject. examlpe: purchase order -> Vendor (Choose from list) and linked button was created in field Vendor (static text)
Ho to do this? please help and if possible - code (for B1 2004)
i am read this topic, but nothing was not got
Re: Add linked button to a editText fieldSAP often use hacks to make their linkedButtons, and this is one of them...
Normally Linked buttons only support EditText and Comboboxes...
A workaround I'll would guess would be to:
1 - Add the staticText
2 - Add a hidden editText
3 - Link a linkbutton to the hidden edittext, and make it of type ln_None
4 - Add a value to the hidden edit text (Else the linkedbutton will not be shown)
5 - Catch the event of press of the linkedbutton (ItemPressed), and do a manual opening of what you might need to open.
Haven't had time to test this, but guess it will work..
An other and more pretty option would be to use a disabled editText... -
Issue with production order linked to quote instead of sales order
Hi Gurus,
I did a lot of digging through SAP notes and accross the internet. Before I contact SAP, just wanted to give a shot @ SDN. Please help.
Background- for ATO (VC assemble to Order):
i) Created a quote
ii) Created a sales order with reference to a quote
iii) MRP created a planned order and the planned order is linked to the quote
iV) Production order created and it is also linked to a quote
v) All reports, MD04/COOIS shows that the plnd order/prd order is linked to the quote
My issue - print a shop paper or a customer specific product ID label....guess what 'it prints the quote number everywhere'.
Everything is tied to a quote - which is not a real demand. All purchase orders are tied to the quote. THIS IS STUPID.
I refered to SAP Notes - 181685 and 459734. But I need details of what config settings I should do and where?
I'm a pure PP guy, getting into SD requirement type & account assignement settings. Please help me with details.
http://scn.sap.com/message/8018953#8018953
This guy also had the same problem and his issue was never resolved.
Thanks,Hello
Take a look on the following note where this scenario is described:
16658 - Generate sales order stock based on quotation
The note proposes the following setting as a workaround to this issue:
"As of 3.0, when the requirements type is assigned to the transaction
during requirements type determination, it is possible to assign a
requirements type to the quotation that does not represent make-to-order
production."
Therefore, please check your customizing settings and make sure that a requirement class/type (transactions OVZG and OVZI) without MTO is assigned to the quotation item category (transaction OVZI).
On transaction OVZI, there is a field called "Origin of requirement type in requirement type determination". Please take a look on the information provided on the F1 help of this field:
========================================================================
Origin of requirement type in requirement type determination
In the standard release, the requirements type is determined according
to a certain search strategy depending on the strategy group of the
material.
In this field you can select an alternative search strategy (source):
Source 0 = Material master strategy, then item category and MRP type
Source 1 = Item type and MRP type strategy
Source 2 = Item type and MRP type strategy (as for source 1) with
additional check of the allowed requirements type
========================================================================
Therefore, my suggestion is to set this field to 1 for the quotation item category and assign an MTS requirement type on OVZI.
BR
Caetano -
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
Maybe you are looking for
-
BAPI - BUS2014 - Purchasing contracts
Hi guru's, I am using LSMW(BAPI - BUS2014) to create purchasing Contracts(MRO outline agreements). I am getting the following error - Tax Code I1 in procedure is invalid. But I am passing the right tax code and also checked the tax procedure. (everyt
-
Skype 7.5 Crashing On Startup as of Today
Faulting application name: Skype.exe, version: 7.5.0.101, time stamp: 0x555498c4 Faulting module name: Skype.exe, version: 7.5.0.101, time stamp: 0x555498c4 Exception code: 0xc0000005 Fault offset: 0x0022b3ac Faulting process id: 0x4960 Faulting appl
-
How is skill weighting handled?
We use skill weighting for our workgroups as sometimes we need backup from one to the other. It works okay, but sometimes not as well as we would hope. I have two problems in troubleshooting this. For one, our Agent Skills Report doesn't run right. W
-
my network speed keeps changing from 11mbps with an excellent connection to 2 mbps with an excellent conection still, except when it drops i can't connect to the web, then i have to repair the whole deal and it's up and going again til it feels like
-
See Bonjour Printer on Intel Macs; see printer but can't set-up/print on G4
I have an HP Laserjet connected to the usb port of my airport extreme. Using the Print & Fax preference set up and printing are fine on my Macbook Pro running 10.5.8 and on my iMac running 10.6.6. However when I use the same process on my iMac G4 (al