# Setting focus for a dialog element automatically ?

**URL:** <https://techcommunity.softwareag.com/t/setting-focus-for-a-dialog-element-automatically/178652>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-Single-Point-of-Development-SPoD\
**Created:** [September 24, 2014, 9:28am UTC](https://techcommunity.softwareag.com/t/setting-focus-for-a-dialog-element-automatically/178652 "2014-09-24T09:28:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ronald\_Wijchers](https://avatars.discourse-cdn.com/v4/letter/r/e5b9ba/32.png) [@Ronald\_Wijchers](https://techcommunity.softwareag.com/u/Ronald_Wijchers)\
**Post date:** [September 24, 2014, 9:28am UTC](https://techcommunity.softwareag.com/t/setting-focus-for-a-dialog-element-automatically/178652/1 "2014-09-24T09:28:26Z")

</div>

Hi,

Does anybody know how to give a certain dialog element the focus automatically ? I cannot find anything about this in any documentation. Am I missing something really obvious maybe?

thanks,  
Ronald

---

<div class="post-metadata">

**Author:** ![Finn\_the\_Dane1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/finn_the_dane1/32/132_2.png) [@Finn\_the\_Dane1](https://techcommunity.softwareag.com/u/Finn_the_Dane1)\
**Post date:** [September 24, 2014, 9:38am UTC](https://techcommunity.softwareag.com/t/setting-focus-for-a-dialog-element-automatically/178652/2 "2014-09-24T09:38:25Z")

</div>

Is this what you were thinking of Ronald ?

#INPUT := #IF-1  
PROCESS GUI ACTION SET-FOCUS WITH #INPUT  
GIVING #RESPONSE  
[http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat6314win/dcm\_win/procgui\_set\_foc.htm#d0e76454](http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat6314win/dcm_win/procgui_set_foc.htm#d0e76454)

---

<div class="post-metadata">

**Author:** ![Ronald\_Wijchers](https://avatars.discourse-cdn.com/v4/letter/r/e5b9ba/32.png) [@Ronald\_Wijchers](https://techcommunity.softwareag.com/u/Ronald_Wijchers)\
**Post date:** [September 24, 2014, 12:26pm UTC](https://techcommunity.softwareag.com/t/setting-focus-for-a-dialog-element-automatically/178652/3 "2014-09-24T12:26:16Z")

</div>

Well you answered my second question as well, it seems. I WAS missing something obvious.

thanks Finn.

remind me to buy you a beer on the next get-together…

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:32pm UTC](https://techcommunity.softwareag.com/t/setting-focus-for-a-dialog-element-automatically/178652/4 "2021-04-02T15:32:06Z")

</div>


