Change a system form title
Hi all,
I want to modify the BP master data form title.
I have developed an add-on where i used a BP master data form. when i click on my submenu the BP master data form is activate but i won't the title "Business Partners master data". I want "Fiche consignataire" when BP master data form is activate.
Help me please.
Hi,
If I understand you question wll you should try this:
Select Case pVal.FormTypeEx
Case "134"
Select Case pVal.EventType
Case SAPbouiCOM.BoEventTypes.et_FORM_LOAD
Dim form As SAPbouiCOM.Form = SBO_Application.Forms.Item(pVal.FormUID)
form.Title = "my title"
End Select
End Select
Hope it helps,
D.
Similar Messages
-
Item ID for Minimize, Maximize button at system form title bar
Hi,
Can anyone help me out finding Item ID for Minimize, Maximize and close buttons at system form title bar (Left side Title of form and right side three buttons). I need ID for these items, if anyone knows please reply. will appreciate help on same.
Thanks,
JayI'm tryin to get over with Item master screen strech machenism. I've Added matrix at pane 6 and position is not fixed when ever form is rezised or base product font size is changed. I've alredy tried providing values to top left width height through oexisting item vaues, I'm not using any integer value. Let me know if i can freez it's position ....... Sample code below
oExistingItem = oForm.Items.Item("174")
oItem = oForm.Items.Add("mtx_MFGALS", SAPbouiCOM.BoFormItemTypes.it_MATRIX)
oItem.Top = oExistingItem.Top + oExistingItem.Height + oExistingItem.Height
oItem.Width = oExistingItem.Width + oExistingItem.Width
oItem.Height = oExistingItem.Width
oItem.Left = oExistingItem.Left
oItem.FromPane = "6"
oItem.ToPane = "6"
oMatrix = oItem.Specific
oMatrix.Columns.Add("Col0", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oMatrix.Columns.Item("Col0").TitleObject.Caption = "Line #"
oMatrix.Columns.Add("Col1", SAPbouiCOM.BoFormItemTypes.it_EDIT)
oMatrix.Columns.Item("Col1").TitleObject.Caption = "Name"
oMatrix.AutoResizeColumns()
Regards,
Jay -
Hi All,
Is it possible to change the name/description of system forms? For eg. I want to change the name of "Sales Order" form to "Service Order" or probably something else..can this be done?
If it is possible, can anyone please help me with a sample code? Also, if the changes are possible then will the name change also reflect in the main menu?
Thanks in advance.HI,
Write this code inside Item Event
If pVal.FormTypeEx = "139" Then
If pVal.EventType <> SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD Then
Dim oForm As SAPbouiCOM.Form
Try
oForm =SBO_Application.Forms.Item(FORMUID)
oForm.Title="Service Order"
Catch ex As Exception
End Try
End If
End If
Hope this will help you
Regards,
BBN -
Hi all,
I want to modify BP system form. The form title is in french="Fiche Partenaire" but i want to have "Fiche consignataire" if i click on my add-on submenu. And also the static text "Name" to "Nom consignataire".
Help me please.Hi,
It is forbidden to change the system form. I think you can't change the form title.
But you can change the label by press CTRL + Double Click on the label in SAP Business One.
Hope it helps
Carmine -
How can i change the title in the system form 'Sales Order Form'
hai
how can i change the title in the system form 'Sales Order Form' and then how can i call this form?Hi Sanjoy,
You find the form property like this :
SAPbouiCOM.Form oForm = null;
oForm = SBO_Application.Forms.Item(pVal.FormUID);
oForm.Title = "New Title";
Michael -
Autopopulating PER_ALL_people_f column fields(related to people DFF) depending on Job title change in assignment form.
Can you check these -
http://www.google.co.uk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&ved=0CDYQFjAB&url=http%3A%2F%2Foracle.anilpassi.com%2Ff…
Forms personalization for DFF -
Dear Expert.,
Pls tell me the method to change form title i have code as below :
If (pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD) Or (pVal.EventType = SAPbouiCOM.BoEventTypes.et_ALL_EVENTS) Then
If pVal.FormTypeEx = "149" Then
oForm.Title = "สำนักงาน"
end if
end if
but it have problem when i choose from list or I do anything on this form... it will change to the standard form title..
Do u have the method to change it forever.?
Thanks for ur help.
sivhour.do it in the eventtype et_FORM_ACTIVATE.
Regards,
Wilson -
Hiding items in system form by changing record
Hi,
I have on system form textbox binded to UDF. If user change the record, the textbox is not showing. I know about possibility to catch events like form_load, resize and data_load where I can set visible to true to this textbox, but my question is, if exists some better method how to say to SBO that this field will be always visible.
thx
PetrI found the problem, in some forms in diferent modes is set diferent panelevel...
-
How Can I change the colour in title bar of Window in Form 9i
Hello
All,
I want to change the colour of title bar in window ?
how can I ?
From
Chriag PatelChirag,
this is not in a scope of control for Forms and instead determined by the look and feel.
Frank -
How can I change the tax formula in system form ?
Hi,
Usually the tax is extra-added for 5% in calcaulating.
But now I need to change the formula of tax to be embeded.
How can I change the tax formula in system form ?
Besr regard!Great!
I suppose "Speed-button" is the same as "toolbar button", right?
To all (more or less):
It confirms that I am on the right track when I bother the participants in this forum time-after-time with remarks to train themselves - or get trained - in application + customization features (+ SDK).
Of course as developers we can use the SDK for whatever purpose and try to develop additional functionality - ... that might already be there, but we just don't know about it
In addition the power of customization features (UDFs/UDTs/queries/formatted searches (also bound to fields on SAP Business One forms)...) should not be underestimated!!!
When starting development with SDK you - or the person who writes the specifications for an Add-On must IMHO be familiar with the application + the customization features + being trained with SDK to avoid unnecessary development or getting into trouble latest when the solution is shipped to a customer...
Please again note that there's a lot of eLearning available in the education area in the SMB Portal on SAP Service Marketplace.
Regards,
Frank -
Hi,
I am trying to chagne the name of the "Sales Quotation" to something else. Pl. note I am totally new to B1 SDK's and .NET also. Any help will be appriciated.
Awaiting replies.Dear Premal Mistry,
Please try following UI API sample code
If pVal.FormTypeEx = "149" Then
If pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD And pVal.BeforeAction = False then
Dim oForm As SAPbouiCOM.Form
oForm = oApp.Forms.Item(pVal.FormUID)
oForm.Title = "new form title"
oForm = Nothing
End If
End If
Regards Regards
Jane Jing
SAP Business One Forums team -
How can i check for posted but not yet commited changes in a form
Dears
I make changes programmatically in a form then i post it using (Post built in).
If the user exits the form, i make check for any changes in the form to commit it using the system variable :system.form_status
Unfortunately the value of this system variable is 'Query' not 'Changed' because of using the post built in.
Is ther another system variable ( or any another way ) that check for posted but not yet commited changes in the form ?
Thanks a lot
Mostafa AbolaynainI had faced similar situation. Using of package variable which identifies, what is the user's latest action.
This is just a workaround.
Capture what the user has performed into a variable say, PKG_VAR.ACTION,
This will be assigned values like List L, and Create C, Update U and Saved S.
If commit is executed,assing the status S to the variable.
So while closing,
IF :system.form_status = 'CHANGED' or PKG_VAR.ACTION in ('C','U') THEN
-- validate the data, n perform commit.
else
-- just close the form.
end if;
Regards
Deepz : ) -
How to add new fields to the system form (Ex.expenses to a/r invoice form)
hi
can any one tell me how to add new fields to the system form (Ex.expenses to a/r invoice form)
i want to add expenses field to system a/r invoice form and connect data base also.
i used the code of samples\11.system form manipulation(vb.net) but i'm not able to get it....so can any one help with code or concepts.
reply soon plz..
thankQIf I understood you correctly, you are just trying to add new fields to the invoice form and then use them in your form. you should first go and add the field to your tables, which you would do by going to Tool --> User Defined Fields --> Manage User Fields. There are different documents or categories given. For ex. for invoices, Sales Orders you would add your field under the Marketing Documents. If you want the field to be just one per invoice, add it to the Title, otherwise if you want a field per invoice or Sales Order line, add it to the Rows section. Once you have done that then you can just create a edit box or drop down to represent the field and set the datasource for that to your field. If you want example code to do that, let me know.
-
Form Settings getting cleared for system form
Hi All,
I have added the code for setting editable=false for the following items in Updatemode and Ok mode.Then in add mode,i made the columns to editable = true .First time it is working fine.
the next time, I got the error message as "item is not a user defined item" on ItemCodeCol.editable = true.Then i check the form settings, the Active field for the itemcode cleared.When i set to Active as checked and run my code,it is working fine.How to solve the issue and how to avoid the setting of the fields.
This is my code :
If oSalesQuotationForm.Mode = SAPbouiCOM.BoFormMode.fm_ADD_MODE Then
oSQItemCodeCol.Editable = True
oSQItemNameCol.Editable = True
oSQQtyCol.Editable = True
oSQWhsCodeCol.Editable = True
ElseIf oSalesQuotationForm.Mode = SAPbouiCOM.BoFormMode.fm_UPDATE_MODE Or oSalesQuotationForm.Mode = SAPbouiCOM.BoFormMode.fm_OK_MODE Then
oSQItemCodeCol.Editable = False
oSQItemNameCol.Editable = False
oSQQtyCol.Editable = False
oSQWhsCodeCol.Editable = False
End If
Thanx in advance
Regards
Mohana
Edited by: Mohana Annadurai on Feb 20, 2009 5:28 AMHi,
This is not UDF in system form.That is , the itemcode,itemname,qty,warehouse field in the content tab of the sales quotation form.when i change the field to editable and noneditable,
1)it is allowing to set the editable property to false and true for the first time.
2) After adding the record,i navigate the record to check ,at that time,as per my code,in update mode,it is not allowing to edit.
3)When i click add menu,and i chose customer, at that time it is not allowing to add a itemcode,becoz the itemcode field is disabled.
4)when i check in form settings, in Table format, Active gets unchecked for the above fields.
5)I want to avoid this changing of active in form settings.How to to this...
Regards
Mohana -
System Form Manipulation under Condition
Dear All,
I want to modify a System Form like (Sales Order) in a specific way (eg add folder), when I trigger a user specific Item Menu (eg Order Requisition).
If I use _ItemEvent... (pVal.FormType = 142) everytime the System form is loaded it will change, but I want this happen ONLY WHEN IS TRIGGERED from Specific Item Menu.
I tried the following code but no luck.
Private Sub SBO_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.MenuEvent
If pVal.BeforeAction = False Then
Select Case pVal.MenuUID
Case "SM_PurReq"
DrawPurReqForm()
End Select
End If
End Sub
========
Sub DrawPurReqForm()
SBO_Application.ActivateMenuItem("2305") 'to get Sales Order form
Dim oItem As SAPbouiCOM.Item
Dim f As SAPbouiCOM.Form
f = SBO_Application.Forms.Item("142")
oItem = f.Items.Item("138")
oItem.Visible = False
End Sub
Thanks in Advance,
Vangelis
Edited by: Vangelis Kanellopoulos on Jul 12, 2008 12:54 PMHi Vangelis,
I think this would work:
1) Create a global boolean variable. Set its value to false by default.
2) Add code to the load event of the sales order form that will add your item if the global flag is true. The code should set the global flag to false after the item is added.
3) Add code to the menu event that checks for your menu activation and then sets the global flag to true and activates the sales order menu.
This will mean that the code in the sales order form load event will only be triggered if the sales order form is opened via your menu. If the user opens the sales order form by any other means (eg drag-and-relate, menu or link) then your item will not be added.
Kind Regards,
Owen
Maybe you are looking for
-
How do I back up my itunes and music library to an ext hard drive?
i need to do a system recovery and don't know what to do?
-
"returning error page for JRun too busy or out of memory"
Hello, I've got some trouble to update a ColdFusion linux based. We have already tried to update from ASPB11-04 and ASPB11-14 but we always have the folloing erreor message : "returning error page for JRun too busy or out of memory" We really need a
-
How can I search a file system and only return newer files?
Sorry the title didn't give me much room to work with. I'm writing a tool which needs to track all the files in an OS. What I'd like to do is make it so my program will only return files that have been modified/created since the last search to add to
-
Can't fetch more than 131 columns
Hi I've got table A with ~170 column of type VARCHAR(40). When I try to fetch more than 131 columns in a select statement, I get the following error: Error in TTCmd::Execute(): cannot execute unprepared statement.*** Command execution of statement <<
-
How to open CS6 in Yosemite 10.10?
I recently upgraded my Mac to OS X Yosemite version 10.10. I have Adobe CS6. When I tried to open Illustrator, I was prompted to update Java, which I did, to Java 8 version 40. However, Illustrator still won't open. Help!