Filling Java Form Dynamically

Hello everyone,

I have a ui automation that fetches queue items from Orchestrator.
Opens a Java form, types into the header details, and navigates to the next tab and the bot writes additional results.

Bot navigates back to the first tab and enters additional header details should the client have more.
The bot successfully enters data for the first details but overwrites the first row’s data when processing subsequent details, instead of moving to the next empty row.

Hi @Daniel_Oisebe

  • Maintain a RowIndex counter variable (e.g., currentRow).
  • Increment it after each detail is processed.
  • Use **dynamic selectors
<webctrl tag='TR' idx='" + currentRow.ToString + "' />

or for Java:

<java role='row' idx='" + currentRow.ToString + "' />
  • Or use Find Children / Get Table to detect the next empty row before typing.

I’ve used the Find Children activity, but the overwriting still occurs.

I’m giving a counter variable a shot.

@Gokul001

Here’s one of the type into strict selector elements:
SyntaxEditor Code Snippet

Which fields can be used for dynamic selectors

Hi @Daniel_Oisebe

Could you share the selector element

Check out this video for reference

Unfortunately, having posted the elements in text format is not getting displayed.