in LR, the NotFound parameter of the correlation function Web_reg_save_param has two options, meaning the following: error: When the correlation function fails to find a matching value, LR throws an error message; EMPTY: When the correlation function fails to find a matching value, LR assigns a null value to the associated parameter value. By default, this value is error, and in most cases this can be met. At some point, however, we may need to use correlation values to make some conditional judgments, such as setting when the associated value is empty.
Let the script do some special processing, this time if the default option is not appropriate, because when LR recognizes that the association value is empty, an error message is thrown that indicates that the associated record was not found. What do we do?
At this point, you can use another option for NotFound, set the NotFound parameter value to empty, for example: Web_reg_save_param ("Customer","lb=name=\ "classiassetsselected\" value=\ "","rb=\ "","Notfound=empty"(last ); let LR assign null values to the customer parameter, and then combine the judging condition statements in the following script, such as:if(strcmp ("", Lr_eval_string ("{Customer}")) !=0), the script can be controlled according to the judging conditions.
Correlation function A useful option