Skip to Content
author's profile photo
Former Member

Uneditable Table Control

Hello people.

I have a table control, wherein the fields included came from my internal table. It accepts input from the user, validates, then passes it to a customized table. Everything seems to be working well with the validation and passing, but the problem is, everytime the user inputs a wrong value (error message appears), the entire <b>table control grays out, and can no longer be edited</b>.

I really need help on this one. Thanks in advance :-D

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • author's profile photo
    Former Member
    Posted on Jun 02, 2004 at 03:31 AM

    You will have to do the validations inside the

    CHAIN ... ENDCHAIN statement. Then these fields would be enabled.

    And this CHAIN ... ENDCHAIN should be inside the LOOP...ENDLOOP in the PAI.

    Pavan

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Vanessa the code looks fine.

      I am not sure what the problem is, but the flow logic you have placed should work for all rows that exist on the screen.

      Maybe I will not be able to help much unless i have a look at the program.

      But if it might help you, make use of the following concepts.

      CHAIN...ENDCHAIN is used to group processing statements.

      FIELD specifies the field list the belongs to this chain.

      MODULE, when a module is used in the chain it means to say that you are processing these fields in the module and in case of an error message make all the fields between chain...endchain editable.

      Now when processing tablecontrols, we need to have this functionality inside the loop...endloop, so that we might process the rows independently.

      Hope this info helps.

      Pavan

  • author's profile photo
    Former Member
    Posted on Jun 02, 2004 at 11:38 AM

    Once the user is able to correct the fields in error the table should "Un grey" itself. If this is not good enough you could always try to issue an "Information" message instead of an error message but not let the user continue with the processing.

    Add comment
    10|10000 characters needed characters exceeded