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]
Similar Messages
-
I've tried clicking on this link to a allow you to enrol to vote in Australia on my mac, but everytime I do it it just reloads the page. I've been able to open it in chrome and on firefox on a pc and from that I can gather it seems to be one of those separate web apps but I don't have java installed on either of my computers so it's not a java applet. This has happened before with other links to similar styles of interactive web apps but the same thing happens, it just reloads the page with the link on it. I always just ended up doing them on a different computer or browser. I tried disabling all add-ons and allowed all pop ups but that didn't solve it. I couldn't find anyone with similar problems when I searched.
You can try these steps in case of issues with web pages:
Reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
*Hold down the Shift key and left-click the Reload button
*Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
*Press "Command + Shift + R" (Mac)
Clear the cache and cookies only from websites that cause problems.
"Clear the Cache":
*Firefox > Preferences > Advanced > Network > Cached Web Content: "Clear Now"
"Remove Cookies" from sites causing problems:
*Firefox > Preferences > Privacy > Cookies: "Show Cookies"
Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Firefox/Tools > Add-ons > Appearance).
*Do NOT click the Reset button on the Safe Mode start window.
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes -
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 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 -
Linked Button error in a subReport with Crystal Reports
Hi expert,
I have a designed a subreport with Crystal Report, and I have add the Sap Linked button (OLE Object), to allow the user to click on the linked button and open the relativa Sap Document (Invoice, Delivery, etc etc).
In the hypetetx linked property, I have write the link
'http://$b1$/link=OINV&key=1'
In this way all is ok, but In my query I have the name of the table and the DocEntry, so I try this way:
'http://$b1$/link='&{Comando.Table}&'&key='&{Comando.DocEntry}
If I try to open the document, I retrieve the error: You are not permitted to perform this action. Authorisation Path: Help.
I don't understand if the problem is the authorization (i am manager, superuser) or if I had write in a wrong mode the hypertext link. (maybe the Apex?)
Anybody can help me?
Regards
MarcoHi Marco,
if {Comando.DocEntry} field is string type try this code:
'http://$b1$/link?table='& {Comando.Table} &'&key='& ToText(ToNumber({Comando.DocEntry}),0,'','')
else if DocEntry field is number type try this code:
'http://$b1$/link?table='& {Comando.Table} &'&key='& ToText({Comando.DocEntry},0,'','')
Regards,
Domenico
Edited by: Domenico Lovino on Feb 23, 2012 10:04 AM -
What does the chain/link button in Logic instruments do?
I'm a new user of Apple MacBook Pro and MainStage v2.2.2 for music ministry work. Found the Logic Software Instruments and some useful documentation about the interface and programming for each, but no mention thus far of the two lines of controls that MainStage adds to the top of each.
First line is blue chain/link button - no rollover help, no F1 help, no right click context menu/help, no nothing. The pulldown items on that line and the stuff on line 2 is fairly obvious. What does that little chain link button do? Every one of the software instruments seems to have the button present.
NotLiableOkay. I tried your experiment. Double click on ES P button in channel strip and up pops the ES P software instrument. Click on link button -- on is blue, I see -- and double click on EXS24 button in another channel strip. EXS24 window pops up, with the link button still blue/on, replacing the ES P window. Turn off link button and open another software instrument and it joins the EXS24 on the screen.
I now know what the button does, and that was my entire reason for posting, but your first sentence now has me curious. You wrote, "The Link function is not obvious in MS, but essential in Logic." It wasn't obvious because it's not documented, that I can find, in MS help, MS User Guide or Logic Pro 9 Instrument documentation. No rollover tip. Zip, squat, nada. When you contrast "obvious" with "essential," do you mean the feature is not relevant in MS? I'm not looking for a Logic tutorial, but I did find the feature mentioned in that product's manual. I just want to know what, if anything, I need to do with this in MS.
Art -
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,
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,
GeethaHi 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 -
Push button to Open a container in Adobe form
Hi all,,
I placed a Button on Adode form, but when I click on theat button, I shold get a pop-up window. How can I get that.
I'm not using Webdynpro application. Only the normal adobeform executed by the Report.
I'm now to the Adobe form. What code should we write in Script Editor.
Thank you!
VenkataHi,
I'm workign on Generic Object Services.
When I click the button on Adobe form, it should open a window contianing the text or links.
I kept button on Adobe form, it displays but behaves like an immage.
How to Activate or work with button.
What should I write in Script Editor to act like a button and open a window. -
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 -
How can I create a custom button for opening a form?
I have a parent form having child forms. In my main form I want to create custom buttons for opening child forms. I want to use master-detail form but there are more than one child forms, and in master-detail form I can only create one detail form. So I will create a form based on a table and in that form I will call the child forms by custom buttons. Can I do that?
Thanx,
Gulsah.This can be easily done. First open up two instances of your Portal. In one window, you will need to go into your component you wish to link FROM. In the other window you will need to go into your component you wish to link TO. In the component you wish to link TO there will be a moduleid. Note this somewhere. Then, you will see an area that says: "Call Interface: Show". Click on this. (In the window you are linking to.). In this window, you will see a bunch of stuff. At the bottom you will see a URL call. This is the call you need to use. At the top, it explains each piece of the URL call. Just subsitute YOUR appropriate information into the URL call. In the form you wish to link FROM, create a button. Once you create this button, it will appear at the bottom, click on it and you will see an area to insert a Javascript. Click the onClick and insert:
//this is the variable you want to pass from one form to the other
get_field_name = getField(this.form,'COLUMN_NAME_IN_DATABASE');
//this is so you can open the "child" form
window.open('/pls/cc_prod/DAD_NAME.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=MOD_ID_HERE&p_arg_names=_sessionid&p_arg_values=&p_arg_names=COLUMN_NAME_IN_DATABASE&p_arg values='+GETFIELD_NAME+'&p_arg_names=_COLUMN_NAME_IN_DATABASE_cond&p_arg_values=%3D');
In the fourth tab, where it says, "....before displaying form" insert the following: (This will tell the form how to handle the getField function.)
htp.p('<script language="JavaScript1.3">
< !--
function getField(form,fieldName)
var objName = "";
var tmp = "";
var dAction = "";
var sel_idx = 0;
var cnt = 0;
var instance = 0;
var slicedName;
var fillData = new Array();
for (var i = 0; i < form.length; i++)
slicedName = form.elements.name.split(".");
tmp = slicedName[2];
instance = parseInt(slicedName[3],10);
if (!tmp)
continue;
objName = tmp;
if (objName == fieldName)
return form.elements[i].value;
//-->
</script>');
I hope this helps.
null -
Button link doesn't open after publishing
Hello,
I am trying to put a link into my Captivate project so that users can access our homepage. From what I can tell, the only way to do this is to create a button that opens to a URL. Great, except when the project is published, the link doesn't work.
I've seen the blog post about adjusting the Flash settings to allow access to the site but my questions are: 1) wouldn't you have to adjust these settings on every computer on the user's end? our tutorial is intended for thousands of off campus college students, so this won't work for us. 2) how can you adjust the setting if the Flash error box doesn't appear?
Is there another way to add a link in Captivate that I'm not aware of?
Thanks!
BethHi Beth
Where will the Captivate content be accessed from when the college students view it?
If your answer is to say "Why from our web server, you silly man!". That's the answer I was hoping to hear. Once content is accessed from a server the Flash is in a "safe" zone and the issue doesn't happen. It only happens if you provide the content via CD or otherwise and folks access by running it from their local C drives.
Cheers... Rick
Helpful and Handy Links
Captivate Wish Form/Bug Reporting Form
Adobe Certified Captivate Training
SorcerStone Blog
Captivate eBooks -
How to remove the Linked Button in particular forms
How to remove the linked button in particular sap b1 forms.
Hi,
In standard B1 Forms, we can't remove the linked button.
Why you want to remove linked button.
I think, the user don't want open the master data?
In such cases you can use the authorization for the users to access the master data.
Hope this will help you.
Regards,
Venkatesan G. -
Link button to User Defined Object in Grid
Hi,
I'm using SAP B1 8.81 with B1DE.
I have added a grid which is populated from a DataTable to a form.
One of the columns in the grid contains the DocEntry of a User Defined Object.
How can I display a link button on the grid ?
Regards,
BenHello Ben,
You need to set the column object type.
Dim oGrid As SAPbouiCOM.Grid = oForm.Items.Item("MyGrid").Specific
oGrid.Columns.Item("DocEntry").Type = BoGridColumnType.gct_EditText
Dim oEditCol As SAPbouiCOM.EditTextColumn = oGrid.Columns.Item("DocEntry")
oEditCol.LinkedObjectType = "2" 'The SDK documentation says you should use the value 0, but in previous versions it didn't work, so I recommend you user a value other than -1 or 0
You then need to catch the et_MATRIX_LINK_PRESSED event and other your user form...
From the SDK Help File regarding the BoLinkedObjectType enum
lf_None -1 No target object
lf_UserDefinedObject 0 User-defined object
lf_GLAccounts 1 G/L account object
lf_BusinessPartner 2 Business Partner object
lf_Items 4 Item object
lf_SalesEmployee 53 Sales employee object
Regards,
Vítor Vieira
Maybe you are looking for
-
How to not loose filter in report
In a report I use a filter and this filter can be set with a variable. Now from this report I go to the underneath form, but when I return to the report (after cancel, save, create ertc) I loose this filter. Is there an effective way to keep this fil
-
Is there a way to create a save preset?
Basically what I'd like to do is, when I go to "save as" it will default it to a psd rather then a jpg. Thats all I want! Is this possible? This way I don't have to constantly select psd and just type the name and be done with it. Thanks in advance!
-
What is new in ios 7.0.3?
What is new in ios 7.0.3?
-
Rendering imported images in Final Cut so they look nice
I recently edited a video requiring still image animation, something Final Cut is notoriously poor at. After much experimenting, I got good results that I want to share. Hope it will help someone else. I have also posted this info, with pictures, her
-
Hello. On my laptop e43 i cant make work wireless adapter, not displayed in linux (lspci) and win 7 cant see hardware. Hardware switch on and bios wireless enable. Can u help me?