Adding Default Form while Registrasion of UDO
Hi....
I am facing problem while registering UDO using some VB.Net code.
the SAP shows object registed successfully.but
it doesn't create the default form.
Sample Code....
oUserObjectMD.Code = "AssetType"
oUserObjectMD.Name = "ASSET TYPE UDO"
oUserObjectMD.ObjectType = SAPbobsCOM.BoUDOObjType.boud_MasterData
oUserObjectMD.TableName ="AssetTable"
oUserObjectMD.CanCancel = SAPbobsCOM.BoYesNoEnum.tYES
oUserObjectMD.CanClose = SAPbobsCOM.BoYesNoEnum.tYES
oUserObjectMD.CanDelete = SAPbobsCOM.BoYesNoEnum.tYES
oUserObjectMD.CanFind = SAPbobsCOM.BoYesNoEnum.tYES
oUserObjectMD.ManageSeries = SAPbobsCOM.BoYesNoEnum.tYES
oUserObjectMD.CanLog = SAPbobsCOM.BoYesNoEnum.tYES
oUserObjectMD.CanYearTransfer = SAPbobsCOM.BoYesNoEnum.tYES
oUserObjectMD.CanCreateDefaultForm = SAPbobsCOM.BoYesNoEnum.tYES
oUserObjectMD.FindColumns.ColumnAlias = "Code"
oUserObjectMD.FindColumns.Add()
oUserObjectMD.FormColumns.FormColumnAlias = "Code"
oUserObjectMD.FormColumns.FormColumnDescription = "Code"
oUserObjectMD.FormColumns.Add()
oUserObjectMD.FormColumns.FormColumnAlias = "U_AssType" oUserObjectMD.FormColumns.FormColumnDescription = "Asset Type"
oUserObjectMD.FormColumns.Add()
oUserObjectMD.FormColumns.FormColumnAlias = "U_AssName" oUserObjectMD.FormColumns.FormColumnDescription = "Asset Name"
oUserObjectMD.FormColumns.Add()
If oUserObjectMD.Add() <> 0 Then
Dim ErrMsg As String
Dim ErrCode As Long
muc_ParentAddon.SBO_Company.GetLastError(ErrCode, ErrMsg)
muc_ParentAddon.SBO_Application.MessageBox("Error Adding UDO's - " & mst_ErrNumber & ErrMsg) ', SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
System.Runtime.InteropServices.Marshal.ReleaseComObject(oUserObjectMD)
oUserObjectMD = Nothing
Return False
End If
End If
UDO is Adding But I Am not getting Default Form.
Please Help....
Dear Nageswar Venkat,
It seems like a sdk bug.
You could update the UDO in B1 client then the Default Form will appear.
Best Regards
Jane Jing
SAP Business One forums team
Similar Messages
-
Default columns in default form
Hi,
I want to add default fields to default form while creating UDO by code. I can add only one column i.e. "Code" to default form.
I want to add multiple fields on it.
Can anybody help me for this on priority basis?Hi Praveen,
You have a code sample in the Help file -> DI API -> UserObjectMD_FormColumns object.
There is also a sample in the UDO sample given with the SDK.
You have to use the SDK Help file and samples to search for information, in this forum we help you to identify which objects-methods you have to use.
Regards
Trinidad. -
Problem with UDO Registration through SDK (Default Form Option)
Hello All,
I am trying to create a UDO Registration through SDK which is done easily but the udo contain default form option.
But after creating the udo , the defualt form option is clicked in the wizard but the system is not showing that default form in SAP.
Please suggest if i am missing something for making this udo a default form .
Code which i have written is following :-
Dim oUserObjectMD1 As SAPbobsCOM.UserObjectsMD
oUserObjectMD1 = Class_Law_Main.ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserObjectsMD)
If oUserObjectMD1.GetByKey("OSL_LawStage_Master") = False Then
oUserObjectMD1.CanCancel = SAPbobsCOM.BoYesNoEnum.tNO
oUserObjectMD1.CanClose = SAPbobsCOM.BoYesNoEnum.tNO
oUserObjectMD1.CanCreateDefaultForm = SAPbobsCOM.BoYesNoEnum.tYES
oUserObjectMD1.FindColumns.ColumnAlias = "Code"
oUserObjectMD1.FindColumns.ColumnDescription = "Code"
oUserObjectMD1.FindColumns.Add()
oUserObjectMD1.FindColumns.ColumnAlias = "Name"
oUserObjectMD1.FindColumns.ColumnDescription = "Name"
oUserObjectMD1.FindColumns.Add()
oUserObjectMD1.FindColumns.ColumnAlias = "DocEntry"
oUserObjectMD1.FindColumns.ColumnDescription = "DocEntry"
oUserObjectMD1.FindColumns.Add()
oUserObjectMD1.FindColumns.ColumnAlias = "U_StgName"
oUserObjectMD1.FindColumns.ColumnDescription = "Stage Description"
oUserObjectMD1.FindColumns.Add()
oUserObjectMD1.FindColumns.ColumnAlias = "U_StgSeq"
oUserObjectMD1.FindColumns.ColumnDescription = "Stage Sequence"
oUserObjectMD1.FindColumns.Add()
oUserObjectMD1.FormColumns.FormColumnAlias = "Code"
oUserObjectMD1.FormColumns.FormColumnDescription = "Code"
oUserObjectMD1.FormColumns.Add()
oUserObjectMD1.FormColumns.FormColumnAlias = "U_StgName"
oUserObjectMD1.FormColumns.FormColumnDescription = "Stage Description"
oUserObjectMD1.FormColumns.Add()
oUserObjectMD1.FormColumns.FormColumnAlias = "U_StgSeq"
oUserObjectMD1.FormColumns.FormColumnDescription = "Stage Sequence"
oUserObjectMD1.FormColumns.Add()
oUserObjectMD1.CanDelete = SAPbobsCOM.BoYesNoEnum.tNO
oUserObjectMD1.CanFind = SAPbobsCOM.BoYesNoEnum.tYES
oUserObjectMD1.CanLog = SAPbobsCOM.BoYesNoEnum.tNO
oUserObjectMD1.CanYearTransfer = SAPbobsCOM.BoYesNoEnum.tNO
'oUserObjectMD1.ChildTables.TableName =
oUserObjectMD1.Code = "OSL_LawStage_Master"
oUserObjectMD1.ManageSeries = SAPbobsCOM.BoYesNoEnum.tNO
oUserObjectMD1.Name = "Law Stages Master"
oUserObjectMD1.ObjectType = SAPbobsCOM.BoUDOObjType.boud_MasterData
oUserObjectMD1.TableName = "OSL_OLSG"
lRetCode = oUserObjectMD1.Add()
'// check for errors in the process
If lRetCode <> 0 Then
Class_Law_Main.ocompany.GetLastError(lRetCode, sErrMsg)
MsgBox(sErrMsg)
End If
End If
System.Runtime.InteropServices.Marshal.ReleaseComObject(oUserObjectMD1)
oUserObjectMD1 = NothingHi Robert,
I recommend you do your changes in your file/XML file before you load your form. It's much quicker and easier this way
e.g
//make your changes in your xml form
SBO_Application.LoadBatchActions(ref YourXMLFileString);
Cheers, Lita -
How To Add ChooseFromList to UDO Default Form
Dear All,
I have one problem in UDO's (Master Data Type). I created one default form it's working fine but i want to add choosefrom list to this form how to add it is system created form.Please give me you suggestions.
thanks
MadhuGanjiC:\Program Files\SAP\SAP Business One SDK\Samples\COM UI\VB.NET\17.ChooseFromList
-
Hi All,
I'm newbie to SDK. I've created an UDO for a user table of object type master data and Default form is created. now i want to enter data into that by using SDK. How can this be done.
Thanks in advance
jaideep
Edited by: jaideep amuloju on Apr 20, 2009 12:55 PM
Edited by: jaideep amuloju on Apr 20, 2009 12:56 PMIt's not clear to me what's you need to do.
If you want to use UDO, for simple data editing, you doesn't need to use SDK.
If your needs are more complex, I suggest you to build your own form with screen painter and with SDK write the necessary code for the addon.
I can send you some example if you need.
Bye.
Diego -
Problem in Creating Default Form Through DI API
Hi All,
I am using the below code to create UDO and make it as Default Form through DI API. But the Default Form property is not getting set, that is the Default Form is not being created. The UDO is getting created. Any help is appreciated.
// Verify that UDO is defined
if (!(oCreateUDO.UDOExist(oCompany, "WEB_USER")))
SAPbobsCOM.UserObjectsMD MyUDO = (SAPbobsCOM.UserObjectsMD)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserObjectsMD);
//Set Services
MyUDO.CanCancel = SAPbobsCOM.BoYesNoEnum.tYES;
MyUDO.CanCreateDefaultForm = SAPbobsCOM.BoYesNoEnum.tYES;
MyUDO.CanDelete = SAPbobsCOM.BoYesNoEnum.tYES;
MyUDO.CanFind = SAPbobsCOM.BoYesNoEnum.tYES;
MyUDO.CanClose = SAPbobsCOM.BoYesNoEnum.tYES;
MyUDO.CanLog = SAPbobsCOM.BoYesNoEnum.tYES;
MyUDO.CanYearTransfer = SAPbobsCOM.BoYesNoEnum.tNO;
//MyUDO.ManageSeries = SAPbobsCOM.BoYesNoEnum.tYES;
MyUDO.Code = "WEB_USER";
MyUDO.Name = "Define Portal User";
MyUDO.ObjectType = SAPbobsCOM.BoUDOObjType.boud_MasterData;
MyUDO.TableName = "PORUSR";
MyUDO.FindColumns.ColumnAlias = "Code";
MyUDO.FindColumns.ColumnDescription = "Code";
MyUDO.FindColumns.Add();
MyUDO.FindColumns.ColumnAlias = "Name";
MyUDO.FindColumns.ColumnDescription = "Name";
MyUDO.FindColumns.Add();
MyUDO.FindColumns.ColumnAlias = "U_name";
MyUDO.FindColumns.ColumnDescription = "Name";
MyUDO.FindColumns.Add();
MyUDO.FindColumns.ColumnAlias = "U_Email";
MyUDO.FindColumns.ColumnDescription = "Email";
MyUDO.FindColumns.Add();
MyUDO.FindColumns.ColumnAlias = "U_Status";
MyUDO.FindColumns.ColumnDescription = "Status";
MyUDO.FindColumns.Add();
MyUDO.FindColumns.ColumnAlias = "U_TAG";
MyUDO.FindColumns.ColumnDescription = "TAG";
MyUDO.FindColumns.Add();
MyUDO.FindColumns.ColumnAlias = "U_bp";
MyUDO.FindColumns.ColumnDescription = "BP Code";
MyUDO.FindColumns.Add();
MyUDO.FindColumns.ColumnAlias = "U_password";
MyUDO.FindColumns.ColumnDescription = "Password";
MyUDO.FindColumns.Add();
if (MyUDO.Add() != 0)
MessageBox.Show("Failed to add UDO");
Thanks and Regards,
Noor HussainDear All,
Thanks a lot. I had forgot to add the form columns to the UDO object while creating UDO.
Regards,
Noor Hussain
Edited by: noor_023 on Mar 1, 2012 11:54 AM -
Hi,
Would it be possible while creating a project to default some forms in the Forms tab of project module than adding or importing them from library? In Document setup-> Project Types i dont see any features that would let me default the forms, Would this be possible by any other means?Try creating a project template and import forms. This should set default forms for all projects created throug this template.
Good Luck -
Hello,
I want to use the user tables default forms (after adding the user table in Uer Tables menu, it's generated a form to view that table: add, delete, update info).
I'd like to lauch this form from my add-on menu. I know how to do that, but I wonder if that MenuID of the menu depends on the SBO installation (on what other tables were added before in SBO). Also, I'd like to put Choose from list capabilities in that form. I know also how to do this (just like a system form), but I also don't now if the FormID is the same on each installation.
Thank you for your answer.
I hope I made myself clear.
Irina StancaYou may try this to find the MenuUID of your UDT:
Start Saved Query through menuitem
Have you checked Application.ResourceData? I'm not sure whether UDT forms are considered system forms, though. Anyway, you should be able to get the FormID of your UDT form on the fly by iterating the Application.Forms collection and checking the Title property, which equals the UDT Description.
HTH
Juha -
Search Facility in User Defined Object (Default Forms)
Hi,
I have created a User Defined Object in the Default Forms section and chose the 'Find' tickbox when registering the UDT. Now I have populated the data into the UDO but I can't search for data in columns.
Am I doing something wrong please? Can this be done?
Thanks.Hi Vankri,
Check the thread
UDO Default form "find" function
Regards
Jambulingam.P -
F-27 customer statement For progremme the default form set is missing
Hi all,
Can anybody solve me the error while running customer statement F-27 iam getting the error is for "program default form set is missing".I have checked all the configuration settings in correspondence,But i am able to identify the error.We are using SAP standard program (RFKORD10) and form also (Z140-ACC_STAT_01).For company code we have assigned program and form also.
If anybody can solve the issue really i appreciate them.
Thanks & Regards,
Vasu.Hi,
Here are answers of your questions:-
Questions:
1. How to convert PDF file per customer .
A. Get spool id per customer and use FM CONVERT_OTF_2_PDF or CONVERT_OTFSPOOLJOB_2_PDF or 'CONVERT_ABAPSPOOLJOB_2_PDF' SAPSCRIPT to PDF for conversion.
2. How to split the spool request for per customer .
A. This you have to design in your driver program and club your spools for particular customer.
3. Script converted PDF file how to place in application server.
A. You have to use destination for PDF as file name and then use Open dataset for output to keep it on application server.
Regards,
Gaurav -
How i will modified default form.
eg. i want to add a link button in existing default form colum.
Any idea.....
Regards,
avijitHi Avijit,
You may want to consider using something other than Default Form as it is meant for quick testing and may not fit the business requirements. Create your own form or use UDO Form Generator (if applicable) etc.
Regards
Aravind -
URGENT!!! Create a user form like SBO Default Form
Hi every one,
I would like to create a user form like the SBO Default Form, from an UDO.
A form only with a Matrix, that I can Add, Delete e Update information from the matrix.
I have tried the UDO Form Generator, but it didn't work.
I'm desperate...
Thanks.
Fran.Hi Fran,
Its quite simple, all you have to do is, to create a form using Screen Painter, the columns should be db data source bound and then, assign UDO for the same. It will work fine.
Satish. -
Assign new default forms to list causes other content types forms to fail.
I have a list with multiple content types and I want to modify the forms. I've created new forms but when I assign them as default and go back to the new item menu, no matter which item I select I get the new default form. If I set the
NewForm.aspx back as default everything works.
How can I modify for one content type and ensure the forms are not affected?
By modify I mean I want to put a hyperlink on one of the forms but not the other.Form libraries can be very painful if you can't foresee the direction that the form will be evolving over time. I've run into times when users have been using a form for months - years, and then a sudden change is needed (such as a change in calculations)
that they want to show ONLY in new forms, and the old calculations (for the same calculated fields) to show up in the old form, and you can't have 2 different versions of the same form working on a library unless you use content types.
You also, however, need to plan for columns and column types because of limitations around the number of Int columns or date/time columns, etc... that are allowed in a list. If you plan on using content types, I would say use a base content type (if
the content types will have the same fields) and then the fewer fields are different, the fewer columns are required on the library. In different content types, you can use different forms, and then you can make different calculations within the forms
for the same field (if that is ever a requirement).
Its best to plan this out ahead of time, because switching strategy after running for a while can create monstrous headaches. -
Error : default form set missing
Hi,
An error message is coming while trying to print a form ,it says ." for company code .... in program... the default form set is missing.
Please help.Hello Experts
For my case also it is showing same problem. I have created the script and driver program . Now I try to execute it but it is giving the same error message. it is customized program and script. During debugging I have checked, data not get filled from T001F and T001G table.
It is urgent , please try to give your valuable suggestions.
Thanks
Pravasini -
How to get default values while using the transaction "BP"
Hi Group,
I have a query on how to get default values while using the transaction <b>BP</b>?
The thing is:
when I enter into the transaction "BP", I need to see some default values to some of the input fields in the screen.
how can I achieve this?
So please kindly let me know the procedure to achieve this.
Thanks & Regards,
Vishnu.Hi,
The events of BDT can be used to default some fields on creating a partner.
For this create a function module for ISDAT. attach that event in BUS7.
In the ISDAT funtion modulethe following code should be used.
For example to set the nationality:
I_BUSDEFAULT-NATIO = 'DE.
CALL FUNCTION 'BUP_BUPA_FIELDVALUES_SET'
EXPORTING
i_busdefault = I_BUSDEFAULT
Regards, Smita.
Maybe you are looking for
-
How does CS5 handle HD preview on an external monitor? Say one has the GTX 285 with two jacks...would you use a "y" adapter for two computer monitors and the other jack for HDTV? Will CS5 know to send the signal out to the HDTV?
-
hi friends, could u plz send me some links where we get the objects related to ABAP-HR? ie.infotype objects, report objects, etc. otherwise if u have any objects means plz send me ???? its very urgent........ thanks in advance. regards, priya
-
Why do the latest versions of Indesign and Photoshop not work on my computer?
I own a Toshiba Satellite L675 and when I was using photoshop cs5 extended it worked fine. However I recently purchased Photoshop cs6 extended and after trying to install it i recieved an error:213:10. After that i tried downloading Indesign CS6 to s
-
What happened to the multi-vlan feature?
I've read cisco documentation that discusses the multi-vlan feature on the 2900 XL series, but not for the 2950s. Is this functionality provided in a different way on the 2950s?
-
CREATIVE CENTRALE, PLEASE, I REALLY DON'T UNDERSTAND
HELP!!!! I really don't understand. I always buy creative, they sound awesome, I hate ipod, I have several players, I tell people about the hardware, but, WHY, WHY, WHY? such unimaginably amazingly good hardware and abso-lutely appalling and useless