Skip to Content
0
Former Member
Dec 18, 2008 at 07:02 AM

Form Item NotEditable

32 Views

Hi All,

For A/R Invoice form's Item grid added Dimension1 to the grid.I need to set the Dimension1 to a default value .But I am getting the error as "Form Item Not editable" .So Updated the Table CPRF with the query

"UPDATE CPRF SET EDITINFORM = 'Y' WHERE FormId=133 and ItemID=38 and ColId=2004"

After this also i am getting the same error.

My code is :

if (pVal.FormType == 133 )

{

if ( pVal .ItemUID =="38" & pVal .ColUID =="1" & pVal.EventType == SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST & pVal.Before_Action == false)

{

try

{

oForm = SBO_Application.Forms.Item(pVal.FormUID);

SAPbouiCOM.ComboBox ddlBranch = (SAPbouiCOM.ComboBox)oForm.Items .Item ("ddlBranch").Specific ;

SAPbouiCOM.Matrix omatrix = (SAPbouiCOM.Matrix)oForm.Items.Item("38").Specific;

SAPbouiCOM.EditText txtCostCenter = (SAPbouiCOM.EditText)omatrix.Columns.Item("2004").Cells.Item(omatrix.RowCount).Specific;

txtCostCenter.Value = ddlBranch.Selected.Description ;

}

catch (Exception e)

{

SBO_Application.MessageBox(e.Message, 1, "Ok", "", "");

}

}

}

Please give me a solution.

Regards,

Susan