Skip to Content
author's profile photo Former Member
Former Member

Use of chain and Endchain

Hi,

Iam having 3 fields on my input screen. My doubt is If i enter any one of the field value incorrectly then all the three fields will be input enabled if i use the following code.

chain.

field f1 , f2 , f3.

module validate.

endchain.

the chain and endchain will automatically take care of enabling the three input fields or we have to explicitly write code for input enabling by using the module validate.

Thanks...

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 12:06 PM

    Hi,

    Inside the module validate, write the code as to how you want to validate the 3 fields. Whatever logic is written, it has to correspond to all the 3 fields.

    Sharin.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 12:07 PM

    in form validate one needs to write appropriate code for all the 3 fields on how each one should be handled based on various conditions.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 12:08 PM

    Hi,

    chain and endchain are used for validations in the flowlogic itself.

    chain and end chain are used for multipe validation on

    module pool programing and for saingl we use the below

    syntax feild feild feild name module module name

    module keyword give the place where you write your opiece of code

    If you want to ensure that more than one field is ready for input following an error dialog, you must list all

    of the relevant fields in the FIELD statement, and include both that and the MODULE statement in a

    CHAIN … ENDCHAIN block.

    You can include individual fields in more than one CHAIN … ENDCHAIN block.

    Note that the FIELD statement does not only make the field ready for input again; it also means that field

    contents changed during the current PAI processing are only visible if the field in question was also included in the FIELD statement of the current CHAIN block.

    PROCESS AFTER INPUT.

    FIELD A MODULE check_A.

    FIELD B MODULE check_B.

    CHAIN.

    FIELD: C,D.

    MODULE check_CD.

    ENDCHAIN.

    CHAIN.

    FIELD: C,B.

    MODULE check_CB.

    ENDCHAIN.

    If the system sends an error or warning message, the current screen is sent again, but the PBO is not

    processed again.

    Only the fields to which the module is assigned are ready for input again.

    After the user has entered new values, the PROCESS AFTER INPUT module is not completely

    reprocessed, but restarted somewhere within the processing block.

    The system finds out which field the user changed and resumes processing at the first corresponding

    FIELD statement.

    If the user merely confirms a warning message (without changing the field’s contents), the system

    restarts the PAI processing after the MESSAGE statement where the error was triggered.

    chain-and-end-chain

    Regards.

    Eshwar.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 12:14 PM

    Hi,

    Chain and Endchain is used to validate a group of fields, if you enter one field incorrectly all the three will be enabled. To validate the fileds individually then don't use the chain and endchain method. So that incorrect field will be enabled..

    Regards,

    Satish Reddy.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 12:20 PM

    Hi,

    Chain..endchain is used to validate a group of fields where as field <f1> module <mod1> is use to validate single field in module pool programming.

    if any of the field in chain..endchain is not validated correctly..then all the fields in chain..endchain will remain input enabled till correct value is entered....whereas in field <f1> module <mod1> only specified field will remain input enabled

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 13, 2008 at 07:48 AM

    Hi,

    After PAI event write Chain and Endchain statments......

    process after input.

    chain.

    field: f1,f2,f3.

    module ********* (any name) on chain-request.

    endchain.

    Regards,

    kavitha

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.