Choosfromlist in UDF fields
Hi All,
I have added some User Defined Fields to Sales Order window. Can I place a choose fromlist in one of these UDF fields. If can, please give the code.
Hi Jisha,
Vasu is right, but you can update the Sales Orders form with a new tab that contains your user fields. And in these fields you can add the CFL has you would do in a standard user form (you can even add the CFL in the XML form).
Example of the user form:
<?xml version="1.0" encoding="UTF-16" ?>
<Application>
<forms>
<action type="update">
<form FormType="139" uid="">
<items>
<action type="add">
<item uid="_Family01" type="8" left="25" tab_order="0" width="80" top="160" height="14" visible="1" enabled="1" from_pane="99" to_pane="99" disp_desc="0" right_just="0" description="" linkto="Family01" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
<AutoManagedAttribute></AutoManagedAttribute>
<specific caption="Familia 1"></specific>
</item>
<item uid="Family01" type="16" left="110" tab_order="0" width="150" top="160" height="14" visible="1" enabled="1" from_pane="99" to_pane="99" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
<AutoManagedAttribute></AutoManagedAttribute>
<specific TabOrder="0">
<databind databound="1" table="OITM" alias="U_Family01"></databind>
</specific>
</item>
<item uid="_Family02" type="8" left="25" tab_order="0" width="80" top="175" height="14" visible="1" enabled="1" from_pane="99" to_pane="99" disp_desc="0" right_just="0" description="" linkto="Family02" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
<AutoManagedAttribute></AutoManagedAttribute>
<specific caption="Familia 2"></specific>
</item>
<item uid="Family02" type="16" left="110" tab_order="0" width="150" top="175" height="14" visible="1" enabled="1" from_pane="99" to_pane="99" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
<AutoManagedAttribute></AutoManagedAttribute>
<specific TabOrder="0">
<databind databound="1" table="OITM" alias="U_Family02"></databind>
</specific>
</item>
<item uid="_Family12" type="8" left="25" tab_order="0" width="80" top="325" height="14" visible="1" enabled="1" from_pane="99" to_pane="99" disp_desc="0" right_just="0" description="" linkto="Family12" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
<AutoManagedAttribute></AutoManagedAttribute>
<specific caption="Familia 12"></specific>
</item>
<item uid="Family12" type="16" left="110" tab_order="0" width="150" top="325" height="14" visible="1" enabled="1" from_pane="99" to_pane="99" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
<AutoManagedAttribute></AutoManagedAttribute>
<specific TabOrder="0">
<databind databound="1" table="OITM" alias="U_Family12"></databind>
</specific>
</item>
</action>
</items>
</form>
</action>
</forms>
</Application>
Than you catch the Sales Order form Load and you load the above form:
1. Catch the Sales Order form load
2. Add the new folder by code and update the Sales Order form
Try
oForm.Freeze(True)
oForm.Resize(740, 480)
Dim PaneLevel As Integer = oForm.PaneLevel
Dim oNewItem As SAPbouiCOM.Item = oForm.Items.Add("FldFam", BoFormItemTypes.it_FOLDER)
Dim oItem As SAPbouiCOM.Item = oForm.Items.Item("3") '// 3 = Id of an existing folder in the form
oNewItem.Top = oItem.Top
oNewItem.Height = oItem.Height
oNewItem.Width = oItem.Width
oNewItem.Left = oItem.Left + oItem.Width
oNewItem.AffectsFormMode = False
Dim oFolderItem As SAPbouiCOM.Folder = oNewItem.Specific
oFolderItem.Caption = "NEW FOLDER"
oFolderItem.GroupWith("3")
'// Carregar o ficheiro XML com as modificações ao formulário normal.
UpdateFormByXML(oCompany, oApplication, pFILES & " rm150_" & GetLanguageCode(oApplication) & ".srf", oForm.UniqueID)
oForm.Items.Item("FldFam").Visible = True
oForm.PaneLevel = PaneLevel
AddFamilyFolder = True
Catch ex As Exception
oApplication.MessageBox("AddFamilyFolder(): " & oCompany.GetLastErrorCode.ToString & ", " & ex.Message)
End Try
End Function
Function to update a form
Public Sub UpdateFormByXML(ByRef oCompany As SAPbobsCOM.Company, ByRef oApplication As SAPbouiCOM.Application, _
ByRef FileName As String, ByRef FormUID As String)
Try
Dim xDoc As Xml.XmlDocument = New Xml.XmlDocument
xDoc.Load(sPath & FileName)
xDoc.SelectSingleNode("Application/forms/action/form/@uid").Value = FormUID
oApplication.LoadBatchActions(xDoc.InnerXml)
Catch ex As Exception
oApplication.MessageBox("UpdateFormByXML(): ", oCompany.GetLastErrorCode.ToString & ", " & ex.Message)
End Try
End Sub
Regards,
Vítor Vieira
Similar Messages
-
UDF field in Crystal in Sales Order Layout
Hi,
I want to Include UDF field in sales order layout, when i open default layout it shows only standard in RDR1(UDF for rowlevel ) it doesn't shows UDF fields. Now i connected database and re-established OLE DB connection and pulled the RDR1 table, here i can get those UDF created by me. but if i use this UDF field in report details area and this results no values in the layout while preview the report in SAP B1.
Anyone guide me on this....
Regards
sreeHi Ivan,
If you want to populate UDF fields into crystal reports layout then you have to do wat i mentioned earlier.
1. Go to Menu
2. choose Database
3. choose verify database
4.enter Object Id and Document Number as a input
5.system will retrieve the values from database and pull all the fields including UDF
but this doesn't change field length of UDF you have to change it on UDF fields management in SAP by updating the field properties.
Note: later you can't reduce the length
Regards
Sree -
OIM 11g r2 User UDF fields Updation based on AD ID
Hi,
We have to update the UDF fields created for the users in OIM using the data from a table.
This table contains the AD ID, and other fields.
OIM User (already available) will be updated based on AD ID ….i;e AD ID column will be used to find the user in OIM and then his UDF will be updated based on the respective data from other columns in the table .
Please can you help me on this task?
Thanks,Your requirement doesn't tell much like when you want to update your user. If it would be on daily basis then go for Schedule Task, if you want to at the time of provisioning then you can have one task and attach your code to bring AD ID in OIM..
You may leverage Event Handlers as well if your use case requires that. -
UDF fields missing in Deployment Manager User Metadata export wizzard
Hi,
When I try to export UDF-s using Deployment Manager, not all UDF-s appear in the Deployment Manager wizard step1 Search list for User Metadata type.
It seems that UDF Lookup type-s are not included.
Also, some text type UDF-s are missing as well, while the rest of the text type UDF-s are in the list.
I wonder if someone has encountered the issue? Is there any solution for this?
Thanks in advance.Hi,
I have tried your suggestion, exported sandbox, than published the sandbox. The UDF-s are included in the UserEO.xml.xml file, but are still cannot be retrieved in Deployment Manager wizard step1 Search list.
Even if I enter the exact name of the attribute (USR_UDF_DEPT_NO) it is not found.
The problem is even more severe:
- the UDF missing from the export, which is a lookup type field, cannot be mapped in a GTC connector.
- this UDF field is NOT CREATED in the DATABASE.
Error message:
<Error> <oracle.iam.configservice.impl> <BEA-000000> <The attribute DEPT_NO does not exist!>
<Error> <oracle.iam.ui.formservice.model.modeler.FormService> <BEA-000000> <Updating User field DEPT_NO with params....failed>
OIM version: 11.1.2.1.0
Can someone confirm if this a bug? Is there a workaround?
Best regards. -
Not able to keep defualt value in UDF Field
Hello Frnds,
I have one question to you, I want to keep default value in one of the UDF field which is ContNo which is exist in A/R invoice.
I want to keep default value =9999999
So to do this I have followed the following process:-
First I went to ToolsUser-Defined FieldsManage User FieldsMarketing DocumentsTitleContNo
then pressing update button there is an option to enter Default value and press OK button.
After that its taking some 30 mins and giving error of "SEWSY"
Please help me to let me know the solution.
Regards,Hello Gordon,
Please note that as per your suggestion now im not updating the udf by the sql query.
As i was already trying to update it from as a exclusive user of B1, but its not updating.
Its always give the error of SEWSY. At the time of updating there is not user logged on SAP also im updating with the adminstrator role.
Please suggest me. -
I designed the Sales Order and Sales BOL form in Crystal Reports. I am looking to capture and update an UDF field every time I'm printing the one of those reports in SAP B1 2005 A. The reason for doing this is to display on the report "Original" when printed for the first time, "Duplicate" when printed for the second time and so forth. Is this possible? Thank you.
You could do a Formatted search on the UDF to change to a value when the Field "Printed" is changed.
You might want to do "Refresh Regularly" option in Formatted Search.
Krishnan -
UDO's And UDF field in XL Reporter
Dear Experts,
How to get UDO's And UDF field in XL Reporter Report Organiser.
An early response would be highly appreciated.
Thanks and Regards,
KawishPlease read the following two threads
XL Reporter- Use of UDF's
UDF's in XL Reporter -
Hi there,
I created a UDF for handling the batch of the item, this UDF is the gross weight of the goods.
Now what I want to do is when the user pick-up the goods from the Batch form at the bottom there is the sum of the quantity I would have the same information for my UDF field, that means the sum of my UDF
Is that possible? I mean is possible to get a sum of an UDF field
Right now the user have to calculate the gross weight with a calculator, and this is pretty absurd
Any suggestion
Thx in advance, RobertoHi Frank,
the UDF was created and used in the "Batch Number Selection" under "Available Batches". When I choose 2 batches in the "Available Batches" there is automatic a sum of the quantity, I would have the sum as well of my UDF I don't care exactely where, of course the best is close to the field that make the sum of the quantity.
Im pretty sure, as Vanessa say, that is possible just via Addone.
Cheers
Roberto -
Using SDK to wrtie data to Batch UDF fields
Hello All,
Since the Batch Number object does not have a "UserFields" member, I am unable to write data to the UDF fields I've created for batch through the SDK DI. Does anyone know how to do it? Thanks a lot!
DanielDear,
As the udf property is not exposed in Batch object. It's not possible implement it in DI API.
A workaround is to set this settings manually in SAP Business One,
or to develop a UI AddOn which do this steps automatically for you,
but this needs a lot of development effort.
Best Regards,
xiaodan AN
SAP Business One Forums Team -
Limit UDF field to returns window
I created a udf field for use in the sales returns rows window. However, in the User-defined fields - Management window there doesn't appear to be a way to link the udf to only the returns window. Obviously I don't want a field called "Returns Reason" showing in my sales order or invoice window rows.
what we have done is added a udf title. by default this added the udf to all sales and purchasing documents. i then went to each sales and purchasing document and changed the udf settings -> unchecked visible and active for this specific udf.
i did not like the behavior of the mandatory field since i wanted the user to pick the value (not a default value). edit the sbo_sp_transactionnotification to trigger an error if the field is null. applicable to returns document only (object type 16 for 2007a). -
<p><font face="Trebuchet MS">Hi there,</p>
<p>I created a UDF for handling the batch of the item, this UDF is the gross weight of the goods.</p>
<p>Now what I want to do is when the user pick-up the goods from the Batch form at the bottom there is the sum of the quantity I would have the same information for my UDF field, that means the sum of my UDF</p>
<p>Is that possible? I mean is possible to get a sum of an UDF field</p>
<p>Right now the user have to calculate the gross weight with a calculator, and this is pretty absurd</p>
<p></p>
<p>Any suggestion</p>
<p></p>
<p>Thx in advance, Roberto</font></p>Roberto,
If you use the "Search" feature of this forum and search on "Sum Field", you should find many posts that should help you such as ...
Matrix - Sum Field item
Eddy -
UDF fields from Active to not Active suddenly
Hi everyone,
a customer has submitted a problem which is quite strange. For one of the users, about once a month UDF fields in Item Master Data that are set to Visible and Active suddenly are not Active anymore. The user has no permission to change these settings. But there is something even more strange than that: at the same time, the master data for two items are displayed. For one item, the UDF are active, and for the second one they are not ! I have not yet created a message with the support because I don't have enough clues at what is taking place.
Has someone already seen that ? Does anyone as a clue at what I should look at ?
Thanks
Gilles PlanteHi
Since there is a duplication of data , I would suggest you to log support to SAP.
Please check also if change log is activated on Item master which you can see from Menubar - Tools --change log
If regarding UDF concern ,
You could check --go to tools --customisation tools --setting (or CtrlShiftB)
Check what it up there .
I guess it is too hard for troubleshooting because we don't know what exactly trigger your problem.
If you can get more details like user 1 was doing ...,then... we can probably look more in detail .
So far i will first, I would suggest you to log support to SAP because your data is duplicated and also check how many data are duplicated also ..
Thank you
Bishal -
DTW - Error occurs when updating UDF field
Error occurs when updating UDF field:"bank does not exist in the company Application-defined or
object-defined error65171"
What is the meaning of this message?
thanks
Edited by: Nadav Greifman on Oct 11, 2009 12:39 PMYou may check these threads forst:
Invalid valid value '0003' Error 65171
bank account is missing application -define or object define Error 65171
Re: Journal entries
Re: Error importing Incoming Payments using the Data Transfer Workbench
Thanks,
Gordon -
Item Code Auto generation in item master UDF field
Dear Expert,
I want to Generate automatic item code in the item master U_STY UDF field . the number start with 'SL' prefix
like this 'SL000001' and continue when i generate next item master.
for example 'SL000001' for X item . when add next item Y then item nuber will be 'SL000002'. kindly help me.
thanks.
sridharan
Edited by: Sridharan.R on Oct 28, 2011 10:02 AMHi!
Try this
declare @temp as char(15)
IF (Select max(Itemcode) from OITM ) IS Null
BEGIN
set @temp = 'SL000001'
select cast(@temp as char(15))
END
set @temp=(select max(right(ItemCode,6)) + 1 from OITM )
set @temp='SL'+isnull(replicate(0,6-len(@temp)),'')+@temp
select cast(@temp as char(15))
END
Regards,
[Thanga Raj K|Q3 Wrap-Up: What happened in the third quarter of 2009 in the SAP Business One Community] -
Copy UDF fields from one user to another user with similar authorizations.
Hi,
Is there a way to copy UDF fields viewable to one user to another user wihtout manually checking the boxes in Form Manage User Fields?
if so how can it be done?
JyotiFor copying Form settings, user field settings, read the following 2 threads for complete details
Replicate User Defined Field settings
Form Settings
Maybe you are looking for
-
Internet recovery gets stuck on the spinning globe with the progress bar below.
Hello Everybody! I'm trying to fix the iMac (27-inch, Mid 2010) of my friend. He said it doesn't boot anymore and just gets stuck on the grey screen with the Apple logo and the spinning wheel below. So my first step was to go into the Startup Manager
-
Error 3131 when trying to view purchased items in iTunes store
Is anyone else seeing a 3131 error when attempting to view purchased items in iTunes store?
-
How to output any text to appointed place?
I want to output some text from JTextField to one text field in browser.How to do it? Thanks for any suggestion.
-
Capturing 720p to mac from JVC GY-111
Hey I have been working with a JVC GY-111 camera and FCP5. When I go to capture the footage I have the problem of the camera being recognised etc. etc. and I have been using DVHScap to capture it and then Mpeg streamclip to bring it into FCP as a qui
-
Configuration Problem Oracle Enterprise Manager 9i
Hello Friends, I have installed oracle 9i on windows 2000 server, But when I run oracle enterprise manager it asks me the userid and password. Anyone could tell me what is the userid and password i should provide, and any other necessary configuratio