Run program to validate user input

Answered

Comments

1 comment

  • Avatar
    juanjo

    What error are you receiving? With the current code, the validation will never trigger because the action is set to <abortonerror>0</abortonerror>. You could use:

    <stringParameter>
        <name>address</name>
        ...
        <width>40</width>
        <validationActionList>
            <runProgram>
                <customErrorMessage>The provided address is not accessible</customErrorMessage>
                <program>${windows_folder_system}\ping</program>
                <programArguments>-n 1 ${gw_address}</programArguments>
                 <ruleList>
                      <platformTest type="windows"/>
                 </ruleList>
            </runProgram>
        </validationActionList>
    </stringParameter>
    

Please sign in to leave a comment.