on 05-05-2015 10:14 AM
Hi all,
I have a problem of how to change title of my add-on in SAP B1 9.1.
I created the add-on of Employee Master Data but I want to change its title, is it possible?
When I change the title as (Member Master Data) in property, it will display Employee Master Data again.
If it is possible to change it, how can I do?
Please anyone can help me.
Hi Rurangwa,
Which Title are you trying to change ?
Regards
Edy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Yes, you can change it:
Try this as follows:
if (pVal.FormType == 60100 && pVal.EventType == BoEventTypes.et_FORM_LOAD && pVal.BeforeAction == false)
{
SAPbouiCOM.Form oForm = (SAPbouiCOM.Form)oApplication.Forms.GetForm(pVal.FormType.ToString(), pVal.FormTypeCount);
oForm.Title = "New Title";
}
Hope it helps.
Thanks & Regards
Ankit Chauhan
Hi,
Try this:
If pVal.FormType = 60100 AndAlso pVal.EventType = BoEventTypes.et_FORM_LOAD AndAlso pVal.BeforeAction = False Then
Dim oForm As SAPbouiCOM.Form = DirectCast(oApplication.Forms.GetForm(pVal.FormType.ToString(), pVal.FormTypeCount), SAPbouiCOM.Form)
oForm.Title = "New Title"
End If
Or you can try:
If pVal.FormType = 60100 And pVal.EventType = BoEventTypes.et_FORM_LOAD And pVal.BeforeAction = False Then
Dim oForm As SAPbouiCOM.Form = CType(oApplication.Forms.GetForm(pVal.FormType.ToString(),pVal.FormTypeCount), SAPbouiCOM.Form)
oForm.Title = "New Title"
End If
Hope it helps.
Thanks & Regards
Ankit Chauhan
Hi Ankit,
My add-on works correctly except that I want to change its title from Employee Master Data to Member Master Data.
As I said before I’m still learning SDK codes, it means I’m not good in SDK codes.
If it is possible you can help me in declaration of BoEventTypes and oApplication because they need to be declared.
So the problem I have today is how to declare BoEventTypes and oApplication in visual basic (Visual studio 2010)
Please anyone can help me.
User | Count |
---|---|
108 | |
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.