コミュニティ

How to detect database checks

Hi

How can I detect database checks result  by using scripts?

The database check is going well. I want to change the value of the field according to the result of the database check 

The script that does not work is as follows:

If context.field("aaa").HasRuleError = True then

context.Field("errorcheck") = ("success")

else

context.Field("errorcheck") = ("error")

End if

Thank you for your cooporation

 

この記事は役に立ちましたか?

0人中0人がこの記事が役に立ったと言っています

コメント

1件のコメント

  • Avatar
    Permanently deleted user

    Hello,

     Please try altering your script as follows:

    If context.field("aaa").HasRuleError = True then

    context.Field("errorcheck").Text = "success" 

    else

    context.Field("errorcheck").Text = "error"

    End if

    This code snippet fills "errorcheck" field with the following text: "success" if field "aaa" has rule errors or "error" if field "aaa" does not have rule errors. To set or alter field text or value (for non-text fields) please address to corresponding field property ("Text" or "Value" respectively). Please find more information in ABBYY Online help article "IField" available by link: http://help.abbyy.com/en-us/flexicapture/12/distributed_administrator/ifield

    0

サインインしてコメントを残してください。