DI - Setting UDF values
(PL4, SP01)
A couple of questions -
1) Is there example code for working with UDFs through the DI?
2) Does anyone have code for working with UDF enumerations? (I prefer vb.net but will take anything!)
(example of what I want to do...)
Dim en As IEnumerator = myItem.UserFields.Fields.GetEnumerator
While en.MoveNext
Console.WriteLine(en.Current.name)
Console.WriteLine(en.Current.description)
Console.WriteLine(en.Current.value)
End While
3) I am having all sorts of trouble working with UDF values on PL4 SP01. I have tried working with both "named" values and "index" numbers.
myItem.UserFields.Fields.Item(4).Value
myItem.UserFields.Fields.Item("U_toBasePart").Value
I want to try working with the enumerations to help debug my problems.
Any help would be appreciated.
Thanks!
TB
Thanks very much Adele.
Your code is almost exactly what I am doing.
Here is the difference -
I am setting 4 UDF values.
If I ADD a part, sometimes the values get set and sometimes they do not. If I follow up with an immediate update, all values are set OK.
I have checked the fields in OITM and the values that aren't set contain <NULL>
It is making me a little crazy.
If you could possibly find the time, I would appreciate it if you could do a little further testing with your app.
Perhaps 4 UDFs. My UDFS are AlphaNumeric 10. They DO have lists of valid values setup for each field as well.
If you could do that, it would help me a lot. I hate to be a pessimist, but I really hope your code fails then I would not feel so crazy!
I am using PL4, SP01. My sbobobscom2005.dll version is 6.80.317.0
I am using VS 2003 for this one.
Cheers!
The actual code for the entire sub follows
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim myItem As SAPbobsCOM.Items
myItem = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems)
Dim UpdateMode As Boolean
UpdateMode = myItem.GetByKey(TextBox1.Text.Trim)
TextBox8.Clear()
If UpdateMode Then
TextBox8.Text = "Part " + TextBox1.Text + " already in database." + vbCrLf
Else
TextBox8.Text = "Part " + TextBox1.Text + " not in database." + vbCrLf
End If
With myItem
.ItemCode = TextBox1.Text.Trim
.ItemName = TextBox2.Text.Trim
.BarCode = TextBox3.Text.Trim
.ItemType = SAPbobsCOM.ItemTypeEnum.itItems
.ItemsGroupCode = ComboBox1.SelectedValue
.InventoryItem = SAPbobsCOM.BoYesNoEnum.tYES
.SalesItem = SAPbobsCOM.BoYesNoEnum.tYES
.PurchaseItem = SAPbobsCOM.BoYesNoEnum.tNO
.ProcurementMethod = SAPbobsCOM.BoProcurementMethod.bom_Make
.Manufacturer = TextBox15.Text
.AssetItem = SAPbobsCOM.BoYesNoEnum.tNO
.TaxType = SAPbobsCOM.BoTaxTypes.tt_Yes
.ManageBatchNumbers = SAPbobsCOM.BoYesNoEnum.tNO
.ManageSerialNumbers = SAPbobsCOM.BoYesNoEnum.tNO
.PurchaseUnit = TextBox10.Text
.PurchaseItemsPerUnit = TextBox9.Text
.PurchasePackagingUnit = TextBox32.Text
.PurchaseQtyPerPackUnit = TextBox31.Text
.SalesUnit = TextBox30.Text
.SalesItemsPerUnit = TextBox29.Text
.SalesPackagingUnit = TextBox28.Text
.SalesQtyPerPackUnit = TextBox27.Text
.GLMethod = SAPbobsCOM.BoGLMethods.glm_ItemClass
.CostAccountingMethod = SAPbobsCOM.BoInventorySystem.bis_FIFO
.DefaultWarehouse = TextBox24.Text
.ManageStockByWarehouse = SAPbobsCOM.BoYesNoEnum.tYES
.InventoryUOM = TextBox22.Text
.WhsInfo.WarehouseCode = TextBox21.Text
myItem.WhsInfo.Add()
.PlanningSystem = SAPbobsCOM.BoPlanningSystem.bop_MRP
.PriceList.SetCurrentLine(CInt(TextBox19.Text))
.PriceList.Price = CDbl(TextBox18.Text)
.UserFields.Fields.Item("U_toPrimaryDept").Value = TextBox17.Text
.UserFields.Fields.Item("U_toItemSecondDept").Value = TextBox36.Text
.UserFields.Fields.Item("U_toItemType").Value = TextBox35.Text
.UserFields.Fields.Item("U_toBasePart").Value = TextBox34.Text
End With
Try
If UpdateMode Then
lRetCode = myItem.Update
Else
lRetCode = myItem.Add
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
If lRetCode <> 0 Then
oCompany.GetLastError(lErrCode, sErrMsg)
TextBox8.Text = TextBox8.Text + ("ERROR!" + lErrCode.ToString & " " & sErrMsg) ' Display error message
Else
TextBox8.Text = TextBox8.Text + "Success!"
End If
End Sub
Similar Messages
-
Error while setting a value into an UDF of type date
Hello,
i get the following error while trying to set a value to an udf with the type "date":
Exception from Server: RPC_E_SERVERFAULT
This code is used:
objDate = CDate(objLineRecordSet.Fields.Item("U_TESTDATE").Value)
objDocument.Lines.UserFields.Fields.Item("U_ACTDATE").Value = objDate '### Here comes the error
The application is in PL 29Christian,
If you search this forum on "date UDF" you will find many posts that may assist you such as this one ...
Format of string passed to Date/Time Hour UDF
HTH,
Eddy -
Exception on read or set UDF document lines value
Hi All,
have a big problem...
I'm creating invoice documents from many and many delivery documents via DI API.
In some cases, my addon gives an exception reading or setting UDF line fields.
Here is the exception message:
System.Runtime.InteropServices.COMException (0x80010105): The server has rise an exception. (Eccezione da HRESULT: 0x80010105(RPC_E_SERVERFAULT))
in SAPbobsCOM.FieldClass.get_Value() in Morato.CreaDocFatturazioneMassiva.CopyUDFLineFields(String)
or
System.Runtime.InteropServices.COMException (0x80010105): The server has rise an exception. (Eccezione da HRESULT: 0x80010105(RPC_E_SERVERFAULT))
in SAPbobsCOM.FieldClass.set_Value() in Morato.CreaDocFatturazioneMassiva.CopyUDFLineFields(String)
The strange thing is that if I create an invoices from a little quantity of deliveries, there is no problem. The error seems to rise when I create an invoice from a huge quantity of deliveries.
The code is:
Private Function CopyUDFLineFields(ByVal oLineNum As String) As Boolean
Dim i As Integer
oDocFrom.Lines.SetCurrentLine(oLineNum)
Try
With oDocFrom.Lines.UserFields
For i = 0 To .Fields.Count - 1
Select Case .Fields.Item(i).Type
Case SAPbobsCOM.BoFieldTypes.db_Date
'// campi di tipo data
Select Case .Fields.Item(i).SubType
Case SAPbobsCOM.BoFldSubTypes.st_Time
'// campi di tipo ora
If Hour(.Fields.Item(i).Value) <> "0" Or Minute(.Fields.Item(i).Value) <> "0" Then
oDocTo.Lines.UserFields.Fields.Item(i).Value = .Fields.Item(i).Value
End If
Case Else
If Year(oDocFrom.Lines.UserFields.Fields.Item(i).Value) <> "1899" And Year(.Fields.Item(i).Value) <> "1999" Then
oDocTo.Lines.UserFields.Fields.Item(i).Value = .Fields.Item(i).Value
End If
End Select
Case SAPbobsCOM.BoFieldTypes.db_Float
'// campi di tipo unità e totale
If .Fields.Item(i).SubType = SAPbobsCOM.BoFldSubTypes.st_Measurement Or .Fields.Item(i).SubType = SAPbobsCOM.BoFldSubTypes.st_Percentage Or .Fields.Item(i).SubType = SAPbobsCOM.BoFldSubTypes.st_Price Or .Fields.Item(i).SubType = SAPbobsCOM.BoFldSubTypes.st_Quantity Then
oDocTo.Lines.UserFields.Fields.Item(i).Value = CDbl(.Fields.Item(i).Value)
End If
Case SAPbobsCOM.BoFieldTypes.db_Alpha
'// campi di tipo stringa
If Not String.IsNullOrEmpty(oDocFrom.Lines.UserFields.Fields.Item(i).Value) Then
oDocTo.Lines.UserFields.Fields.Item(i).Value = .Fields.Item(i).Value.ToString
End If
Case SAPbobsCOM.BoFieldTypes.db_Numeric
oDocTo.Lines.UserFields.Fields.Item(i).Value = Val(.Fields.Item(i).Value)
Case SAPbobsCOM.BoFieldTypes.db_Memo
oDocTo.Lines.UserFields.Fields.Item(i).Value = .Fields.Item(i).Value.ToString
Case Else
'// altri tipi stringa
If Not String.IsNullOrEmpty(oDocFrom.Lines.UserFields.Fields.Item(i).Value) Then
oDocTo.Lines.UserFields.Fields.Item(i).Value = .Fields.Item(i).Value.ToString
End If
End Select
Next i
End With
Return True
Catch ex As Exception
SBO_Application.MessageBox(ex.ToString & " - " & oDocFrom.Lines.UserFields.Fields.Item(i).Name.ToString)
Return False
End Try
End Function
Anyone have experienced something similar?
Kind Regards,
Paolo Caricasole.
Edited by: Rui Pereira on Dec 23, 2008 4:26 PMPlease refer to note#1235603
SAP Notes: [http://service.sap.com/notes|http://service.sap.com/notes]
Replace:
oDocTo.Lines.UserFields.Fields.Item(i).Value
with:
Document_Lines oLines = oDocTo.Lines
oLines.UserFields.Fields.Item(i).Value
Regards, Yatsea -
How to set the value to non enabled UDF fields
Dear All,
I created a UDF at titile level of PO and that UDF item always disabled (i.e oItem.Enabled=false). Now how can set a value through coding.
I wrote like this:
oForm = SBO_Application.Forms.GetFormByTypeAndCount(-142, 1);
oItem = oForm.Items.Item("U_Poap");
if (oItem.Enabled == false) { oItem.Enabled = true; }
oEdit = ((SAPbouiCOM.EditText)(oItem.Specific));
oEdit.Value = "1";
oItem.Enabled = false;
But system throws an error at : oItem.Enabled=true statement.
How to solve issue.
Thanks in advance
Suresh YerraHi,
You can set the values using datasource object
oDBs_Head = objForm.DataSources.DBDataSources.Item("@TableName")
oDBs_Head.SetValue("U_FieldName", 0, "Value")
regards:
SANDY
Sandeep Saini | Roorkee | India on Dec 26, 2008 11:01 AM -
UDF - Set Valid Values for Field
I have a UDF created in Marketing Docs / row level called UOM_Ordered (alphanumeric, length 2) using Set Valid Values for Field. Values are:
CS
IN
DZ
PC
Above are CS abrev for Case, IN abrev for Inner, DZ abrev for Dozen .................
If possible could I have say for example "IN" not to appear in the drop down if the value in OITM (UDF called U_Inner_Qty) is either NULL or a Zero? It's would be a way to stop mistakes when orders are inputted.
Any help on this would be appreciated.
Thks - ScottHello
You could try the following:
Insert a formatted search on the field, which contain conditions, ie whether the condition that the value is 0 or null, then bring the required data, while if it is not the case, applies the search formatted with the available data.
On the other hand, leave the form with all the options for disabled users. The latter through additional authorizations for users
I hope it will help
Best regards, -
How to change UDF value in system form if its invisible or inactive?
Hi all,
I need to compute some document total values and save them on UDFs defined on Sales Order Header document, when the user adds a new order line.
However I must not allow the user to change them (or see them). Also, there are other UDFs on the Sales Order Header that the user must be allowed to change...
Is there any way to control this? If I set a UDF as not 'Active', I cannot change its value with programming.
I'm using the following command to change a UDF value on the Sales Order form:
Form form = B1Connections.theAppl.Forms.GetForm("-139", pVal.FormTypeCount);
EditText et = (EditText)form2.Items.Item("U_TotalTax1").Specific;
et.Value = "10"; // this raises an exception "Form item is not editable"
Is there any other way to change this UDF contents (maybe with datasources? etc)
Thanks all,
Manuel DiasHi You can Enable/Disable the item after your transaction. follows the code
oForm.Items.Item("U_TotalTax1").Enabled = True
oEdit.value=10
oForm.Items.Item("U_TotalTax1").Enabled = False
Try this
Manmath -
FMS to Display Item group UDF value
Hi,
I have created Title level udf named U_WP in the item group table. Each group wise i have entered diferent values in this field.
I have created one more title level UDF in item master by same name U_WP.
I want FMS to select the UDF value from U_WP in OITB to be displayed in U_WP in OITM when when ever user select the
respective item group in item master while adding new code.
swapHi Swap,
I've tested the query below and it should give you what you need:
SELECT T0.\[U_WP\] FROM OITB T0 WHERE T0.\[ItmsGrpCod\] = $\[$-39.0\]
A couple of things, make sure both the Item Group UDF and Item UDF are setup as the same structure (type and length).
Set the formatted search on the Item UDF so that it refreshes when the Item Group changes.
That should give you what you need.
Regards,
Adrian -
Set cell value performance...
Hi,
I'm trying to find out if any of you have a faster way of setting values in Matrix as for any System cell value like ItemCode, not just UDF's
My actual code looks like that but I'm wondering if there's a faster way as right now, it is slow and having to set multiple values in matrix makes the addon very slow and unacceptable by customers
public static object SetCellValue(SAPbouiCOM.Matrix Matrix, object ColumnUID, int Row, object Value)
SAPbouiCOM.Column Column = Matrix.Columns.Item(ColumnUID);
SAPError = "";
object Cell = null;
switch (Column.Type)
case (SAPbouiCOM.BoFormItemTypes.it_EDIT):
case (SAPbouiCOM.BoFormItemTypes.it_EXTEDIT):
case (SAPbouiCOM.BoFormItemTypes.it_LINKED_BUTTON):
SAPbouiCOM.EditText Editor = (SAPbouiCOM.EditText)Column.Cells.Item(Row).Specific;
Cell = Editor;
Editor.Value = Value.ToString();
break;
case (SAPbouiCOM.BoFormItemTypes.it_COMBO_BOX):
SAPbouiCOM.ComboBox ComboBox = (SAPbouiCOM.ComboBox)Column.Cells.Item(Row).Specific;
Cell = ComboBox;
ComboBox.Select(Value, SAPbouiCOM.BoSearchKey.psk_ByDescription);
break;
case (SAPbouiCOM.BoFormItemTypes.it_CHECK_BOX):
SAPbouiCOM.CheckBox chk = (SAPbouiCOM.CheckBox)Column.Cells.Item(Row).Specific;
Cell = chk;
chk.Checked = bool.Parse(Value.ToString());
break;
return Cell;Hi Marc,
The new method GetCellSpecific of the matrix object is much faster than casting a cell to a particular control type using its Specific property:
SAPbouiCOM.EditText Editor = (SAPbouiCOM.EditText)Matrix.GetCellSpecific(ColumnUID, Row);
This should be noticeably faster than the older method and works for system matrices as well as user-defined ones.
Kind Regards,
Owen -
Problem setting initial value for LOV
Hello, everyone. This seems like it should be simple, but it's giving me lots of problems. I am trying to create my first LOV. I have a messageLovInput item called PFedFilingStatus. From the Property Inspector, I can set an Initial Value of "02", which displays when I run the page, and lets me change it and validate it using the associated LOV.
What I would rather do is set the initial value programmatically, but here are my problems:
If I set the value like this:
OAMessageLovInputBean lovText = (OAMessageLovInputBean)pageLayout.findIndexedChildRecursive("PFedFilingStatus");
lovText.setText("02");
then the field displays properly at run time, but can't be changed. The LOV runs, but any value I select flips back to "02"
If I set the value like this:
lovText.setDefaultValue("02");
then nothing seems to happen at run time. The value is not displayed at all.
Can anyone tell me what I am doing wrong? Thanks for your help.
--DaveYes, that helps a bunch. Now can you tell me where that is set?
Thanks so much.
--Dave -
Setting the value of a single attribute for multiple line items
Hi all,
I am working on a Web Dynpro application, I have created this applicaion for an accounting document so it has header data and multiple line item data. As per the requirement I have to put the following logic:
1. When a user enters a value in the field KBLNR on the line item, all the other fields like cost centerm fund, functional area should populate from a database table based on the value of the KBLNR. to get this I have put the following code:
TYPES: BEGIN OF t_kblp,
fipos TYPE kblp-fipos,
kostl TYPE kostl,
END OF t_kblp.
DATA lv_kblnr TYPE wd_this->element_t_bseg-kblnr.
DATA: lt_kblp TYPE STANDARD TABLE OF t_kblp,
wa_kblp LIKE LINE OF lt_kblp,
lt_bseg TYPE STANDARD TABLE OF bseg,
wa_bseg TYPE bseg.
DATA lo_nd_t_bseg TYPE REF TO if_wd_context_node.
DATA lo_el_t_bseg TYPE REF TO if_wd_context_element.
DATA: ls_t_bseg TYPE wd_this->element_t_bseg,
lo_api_controller TYPE REF TO if_wd_controller,
lo_message_manager TYPE REF TO if_wd_message_manager,
lo_nd_tbseg TYPE REF TO if_wd_context_node,
lo_el_tbseg TYPE REF TO if_wd_context_element,
lt_el_tbseg TYPE wdr_context_element_set,
lv_bseg TYPE bseg.
lo_nd_t_bseg = wd_context->path_get_node( path = `ZDATA.CHANGING.T_BSEG` ).
lo_api_controller ?= wd_this->wd_get_api( ).
CALL METHOD lo_api_controller->get_message_manager
RECEIVING
message_manager = lo_message_manager.
lo_nd_tbseg = wd_context->path_get_node( path = `ZDATA.CHANGING.T_BSEG` ).
lt_el_tbseg = lo_nd_tbseg->get_elements( ).
LOOP AT lt_el_tbseg INTO lo_el_tbseg.
lo_el_tbseg->get_static_attributes(
IMPORTING static_attributes = lv_bseg ).
IF lv_bseg-kblnr NE ' '.
SELECT belnr
fipos
kostl
PSPNR
geber
saknr
fkber
grant_nbr
gsber
FROM kblp
inTO corresponding fields of wa_kblp
WHERE belnr = lv_bseg-kblnr and
saknr = lv_bseg-saknr.
ENDSELECT.
lo_nd_t_bseg = wd_context->path_get_node( path = `ZPRELIMINARY_POSTING.CHANGING.T_BSEG` ).
* get element via lead selection
lo_el_t_bseg = lo_nd_t_bseg->get_element( ).
lo_el_tbseg->set_static_attributes(
EXPORTING static_attributes = wa_kblp ).
CLEAR: lv_bseg, wa_kblp.
ENDLOOP.
everything is working fine but now the problem is couple of fields that I have in wa_kblp are with different names in bseg table and hence they are not updating... I tried putting the following logic within the loop :
lo_el_t_bseg->set_attribute(
name = `PROJK`
value = wa_kblp-pspnr ).
but it's only setting the value of the first line item and not working for the multiple line items, can you please tell me how can do this?
Thanks,
Rajat Garg
Edited by: rajatg on Jun 24, 2011 5:09 PMHi Chris,
I tried your code and it worked fine but after I put this code I am getting another issue. within the loop I had a code to make the fields non modifiable on the screen and was working fine but now what's happening is it's making the all the lines uneditable except the one with data on it (which is completely opposite), this is what I have coded:
LOOP AT lt_el_tbseg INTO lo_el_tbseg.
lo_el_tbseg->get_static_attributes(
IMPORTING static_attributes = lv_bseg ).
IF lv_bseg-kblnr NE ' '.
SELECT belnr
fipos
kostl
PSPNR
geber
saknr
fkber
grant_nbr
gsber
FROM kblp
inTO corresponding fields of wa_kblp
WHERE belnr = lv_bseg-kblnr and
saknr = lv_bseg-saknr.
ENDSELECT.
move: wa_kblp-belnr to wa_bseg-kblnr,
wa_kblp-fipos to wa_bseg-fipos,
wa_kblp-kostl to wa_bseg-kostl,
wa_kblp-pspnr to wa_bseg-projk,
wa_kblp-geber to wa_bseg-geber,
wa_kblp-saknr to wa_bseg-saknr,
wa_kblp-fkber to wa_bseg-fkber,
wa_kblp-grant_nbr to wa_bseg-grant_nbr,
wa_kblp-gsber to wa_bseg-gsber,
lv_bseg-dmbtr to wa_bseg-dmbtr.
append wa_bseg to lt_bseg.
lo_nd_edit_property = wd_context->path_get_node( path = `ZPRELIMINARY_POSTING.CHANGING.T_BSEG.EDIT_PROPERTY` ).
get element via lead selection
lo_el_edit_property = lo_nd_edit_property->get_element( ).
lo_el_edit_property->set_attribute(
name = `EDIT_FIELD`
value = 'ABAP_TRUE' ).
lo_el_edit_property->set_attribute(
name = `EDIT_WBS`
value = 'ABAP_TRUE' ).
endif.
endloop.
o_nd_t_bseg = wd_context->path_get_node( path = `ZPRELIMINARY_POSTING.CHANGING.T_BSEG` ).
get element via lead selection
lo_el_t_bseg = lo_nd_t_bseg->get_element( ).
CALL METHOD lo_nd_t_bseg->bind_table
EXPORTING
new_items = lt_bseg.
Can you please see what I am doing it wrong here.... -
Need help in Setting a value of an attribute
Hi,
I have a requirement where i need to set a value for an attribute in duplicate popup.
I am able to retrieve the current values with the method
o_partner->get_properties( IMPORTING es_attributes = x_attributes ).
After fetching the value, i am programatically setting
x_attributes-Soldto = 'X'.
o_partner->set_properties( exPORTING is_attributes = x_attributes ).
lv_collection1->add( o_partner ).
lr_core = cl_crm_bol_core=>get_instance( ).
lr_core->modify( ).
I am not sure, what is missed out in my logic but the value is not shown on WEB UI.
Any pointers will b of gr8 help.
Thanks,
UdayaGot the solution from other source
-
Set Default Value of Multi-select list item
I have a multi-select list item I want to default the value of to '%' (which is really '%null%') and have it selected. I tried setting default value of item, but it doesn't take '%null%'. I also tried a computation with a static of
:P507_ITEM := '%null%'; How do you get the default value set and selected?Hi
Shijesh is right, you need to change your null return value and use that return value as your default. Try and use something of the same datatype as your real return values if you plan to use '%' to display all as it will make your queries simpler. eg.
Company A returns 1
Company B return 2
% returns 0
Then your query would be...
SELECT ...
FROM ...
WHERE company_id = DECODE(:P_COMPANY,1,1,2,2,0,company_id)
Hope this makes sense.
Cheers
Ben -
Can af:selectOneRadio initial selection be set to values from view object?
Using JDeveloper 11.1.1.4
Hi all. I have a selectOneRadio on a data entry page which works well. Now I want to (if possible) use the selectOneRadio on an edit page--setting the choice initially to the values that were stored in a database table's record (from the data entry page). I am able to retrieve the data selected in the data entry page, but I can't find anything referencing what I want to do on the edit page. Note that my selectOneRadio objects are actually on jsff's in a region on a page. I've supplied how I designed selectOneRadio on the data entry page in hopes that someone can gleen from it and tell me how to set one up on the edit page and set its initial value to the value combination stored.
There are two columns in the data displayed (example):
Short Format / Text
Short Format / Comma Delimited
Long Format / Text
<af:selectOneRadio value="#{bindings.Pay_File_Data_FmtVO1.inputValue}"
shortDesc="#{bindings.Pay_File_Data_FmtVO1.hints.tooltip}" id="sor1"
inlineStyle="text-align:left; font-size:2.0em;"
autoSubmit="true" showRequired="false" label="File Format">
<f:selectItems value="#{bindings.Pay_File_Data_FmtVO1.items}" id="si111"/>
</af:selectOneRadio>
public class FileTypesBean {
String fileFormat = null;
String dataFormat = null;
public BindingContainer getBindings() {
return BindingContext.getCurrent().getCurrentBindingsEntry();
public void getFileTypesSelection(ActionEvent actionEvent) {
fileFormat =
(String)resolveExpression("#{bindings.Pay_File_Data_FmtVO1.attributeValue}");
dataFormat =
(String)resolveExpression("#{bindings.Pay_File_Data_FmtVO1.attributeValues[1]}");
//System.out.println("dataFormat = " + dataFormat);
// now put in ParamsBean for use
AdfFacesContext afci = AdfFacesContext.getCurrentInstance();
ParamsBean params =(ParamsBean)afci.getPageFlowScope().get("paramsBean") ;
params.setFileTypeParam(fileFormat);
params.setFileDataTypeParam(dataFormat);
public Object resolveExpression(String el) {
FacesContext facesContext = FacesContext.getCurrentInstance();
ELContext elContext = facesContext.getELContext();
ExpressionFactory expressionFactory =
facesContext.getApplication().getExpressionFactory();
ValueExpression valueExp =
expressionFactory.createValueExpression(elContext, el,
Object.class);
return valueExp.getValue(elContext);
}Thanks in advance,
Troy
Edited by: Hoopestr on Apr 18, 2012 10:54 AMin the amimpl have an edit method, get the value you want to set and set that value for your af:selectOneRadio, row.setAttribute(PayFileDataFmtVO1, value);
-
UDF Value is not coming in the query report
Hi all,
i have designed query report based on AR Invoice which has some UDF .
all udf have FMS applied and all these udf has values.
when i run report some times udf values are coming in the report and somtimes not even if udf contains values.
if i open perticular invoice and again update that udf and again run report now udf value will come in the report.
every time i need to manualy update the udf even if that udf contain value.
how to avoide this problem.
Pls suggest solution.
Regards,
ChetanHi Chetan,
Try this,
-> Open the require document(module).
Assign this procedure and then ADD the document
and Run the Query Report.
1. Goto the UDF and Click (ShiftAltF2).
2. Select the SEARCH BY SAVED QUERY.
3. Assign the FMS Query in UDF.
4. Select the AUTO REFRESH WHEN FIELD CHENGES.
5. Select the Auto Refresh Field (for example CardCode (or) Remarks).
6. Check the Display Saved Values.
OR
-> Open the require document(module).
1. Goto the UDF and Click (ShiftAltF2).
2. When will you add the document at that time
you can Click the SHIFT + F2 and than ADD the document.
and than Run the Query Report.
Regards,
Madhan. -
To set a value in matrix cell which is linked
In sales order if I enter form no of TAX TAB as "form c" , each cell of the TAX Code column of the matrix of contents tab should be set the value as "CST". I have tried to set the value, but it is showing "Form item not editable". I have tried to make the cell as editable but still the error message is coming and it is not setting the defined value. How can this be solved?
Thankx in advanceHi Priya Manoj
Some notes you can find on this [Thread: Set Value in Itemcode in Purchase Order Form|Set Value in Itemcode in Purchase Order Form;.
There are I has posted some examples in vbcode.
Hope the notes can help you.
Regards
Sierdna S.
Edited by: Sierdna S on Oct 22, 2008 9:45 AM
Maybe you are looking for
-
Please help me!
-
How do I select a black and white sketch from a white background and keep the filled in area of the sketch? I want to copy it to a colored background. I am using elements 12.
-
I have nine, 1-page PDF files that are accessible and need to combine into 1 PDF file. I have tried appending, adding and the combine PDFs process. The file created is not keeping my changes. The created file is partially accessible but I have to re
-
Free memory on Retina 2013 at startup
Hi, I'm not sure if this is the first time I post for a qustion for this issue. If not, I apologise. The matter is: also with a fresh install of Maverick, on my Retina Display 15,4" mid 2013 with 8 gbyte of RAM, the free memory is around 4 Gbyte
-
Hi all, Im wrking on an IDOC to EDIFACT format scenario. The reciever adapter is a SEEBURGER's VAN adapter.Can anyone pls help me with some documents on this? Thanks in Advance.