Whats is the Advantage of using a Field Control versus a Region Control in Text Adapter?

Hi,

I have an automation that utilizes a text adapter. I am just wondering if there is any advantage in using a field control over a region control? Aside from isProtected property of a field control, the properties and methods of the two controls are similar? Mostly I have used only regions even for parts that can be interrogated as a field.

Regards,

May

@MayAnnTenorio There really isn’t that much of a difference. If the developer of the text application has defined a place where text can be entered, then Pega Robotics can detect that as a field and tell you if it is available for text entry (IsProtected). That is the only difference. In some cases, you simply want to know the value of the text at a specific location on screen that was not defined by the developer as a field, so you must use a region there to get the text. If there are no places in the text application where text can only be entered sometimes (and you need to detect that programmatically), then you may define everything as regions. I generally use regions unless I have to detect whether they are available or not.

Short answer; you’ve really identified the difference and are fine to use regions for most things.

Hi @ThomasSasnett,

Thank you so much for the detailed explanation! I will take note of this in my implementations.

Regards,

May