cancel
Showing results for 
Search instead for 
Did you mean: 

User Grid on System Form: SetCellEditable and SetRowEditable Don't Work?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

pedro_magueija
Active Contributor
0 Kudos

Hi David,

That should work. Are you sure you're using the correct grid id's to identify the grid?

Can you post the code you're using?

Cheers.


Best regards,

Pedro Magueija


View Pedro Magueija's profile on LinkedIn

Former Member
0 Kudos

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

pedro_magueija
Active Contributor
0 Kudos

Hi David,

This seems like a bug in the SDK (I've reproduced it). It should allow you to set the row editable state to false.

You should report this to SAP Support.

Let us know if/when you get some feedback.


Best regards,

Pedro Magueija


View Pedro Magueija's profile on LinkedIn

Former Member
0 Kudos

Thanks, Pedro. I have created an incident to report this error. I will post the solution once I hear back from SAP.

David

Former Member
0 Kudos

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

Answers (0)