on 11-26-2014 6:40 PM
Hi,
I have a user defined grid on a custom tab on a system form (Service Call). I am fill that grid with a DataTable. I am trying to disable certain rows but I get an error. The error is -7006 The item is not a user-defined item [66000-8]. I can call the SetCellBackColor and SetRowBackColor methods and they work fine but I really need to disable my rows. Why doesn't this work? The item is a user-defined item so the error doesn't make sense.
Thanks, David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pedro,
Attached is the portions of my code that are relevant. grid2 is definitely set correctly and the settings are obtained correctly. The call to SetRowBackColor works perfectly fine and actually does change the back color for that row. The call to SetRowEditable fails with the error "The item is not a user-defined item."
Note: The first portion of the file is the XML I use to create the grid on the Service Call form. This works fine as well and I am able to refresh the datasource for it.
Thanks,
David
It was confirmed by SAP that SetRowEditable is not available on custom grids on a system form. I have had to use SetRowBackColor to make it look disabled and then am using a combination of trapping the click and gotfocus events to move the focus from a disabled row to an editable row as the user navigates via mouse our keyboard. I will add a request to have this method become available on system forms in the Idea Place.
Thanks,
David
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.