Forum Discussion

Ty_K's avatar
Ty_K
New Contributor
4 hours ago

Copy Text into a Search Field

I have an application that creates Works Orders, that all have unique numbers

I can open the Work Order and Copy the number into the list of Orders on the orders main screen to search for it, but it pastes the exact text node into the field every time and stores that value in the keyword test. I want the keyword test to just paste the last number copied, and not store it as fixed value

3 Replies

  • rraghvani's avatar
    rraghvani
    Icon for Champion Level 3 rankChampion Level 3

    When pasting the value, what property value are you using?

    • Ty_K's avatar
      Ty_K
      New Contributor

       

      I copy the text from the header of the job and then paste it into the list of jobs screen

      I just really need to know what I'd put in the set text field, so that it pastes the text I've copied, which can be different every time as every order has a unique number

      • rraghvani's avatar
        rraghvani
        Icon for Champion Level 3 rankChampion Level 3

        I can now see, that you are doing a Ctrl+C, to copy the selected text, followed by a Ctrl+V to paste the text. What is the SetText used for?

        You need to mimic user behaviour i.e. highlight the text; press ctrl+c to copy the highlighted text; navigate to the desired text control and click it; then press ctrl+v to paste the text.