# Correct position to Insert template code into browse

**URL:** <https://clarionhub.com/t/correct-position-to-insert-template-code-into-browse/7988>\
**Category:** questions\
**Tags:** browse, templates\
**Created:** [March 7, 2025, 5:30am UTC](https://clarionhub.com/t/correct-position-to-insert-template-code-into-browse/7988 "2025-03-07T05:30:56Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![CarlBarnes](https://clarionhub.com/user_avatar/clarionhub.com/carlbarnes/32/1859_2.png) [@CarlBarnes](https://clarionhub.com/u/CarlBarnes)\
**Post date:** [March 7, 2025, 7:35pm UTC](https://clarionhub.com/t/correct-position-to-insert-template-code-into-browse/7988/4 "2025-03-07T19:35:49Z")

</div>

> [@Jeff.Mason](#):
>
> ```auto
> #AT(%BrowserMethodCodeSection,%ActiveTemplateParentInstance),'ResetQueue','(BYTE Force=0),LONG'),PRIORITY(5500)
> ! ========= TEST =========
> #ENDAT
> 
> ```

There is a “Create #AT from Embed” CODE Template you can drop into an Embed and it will give you the #AT parameters.

> [@Template code not working for #AT(%BrowserMethodCodeSection ... 'TakeKey' )](https://clarionhub.com/t/template-code-not-working-for-at-browsermethodcodesection-takekey/7617/3):
>
> In Class ABC add the “Create #AT from Embed” Then in the Embeditor you’ll see: BRW1.TakeKey PROCEDURE ReturnValue BYTE,AUTO CODE ! Start of "Browser Method Code Section" ! [Priority 1300] !HELP EMBED : 6 Hub Question !Description: Browser Method Code Section !EmbedParameters:\*1, TakeKey, (),BYTE\* !#AT(%BrowserMethodCodeSection,%ActiveTemplateInstance,'TakeKey','(),BYTE'),PRIORITY(5000) !#ENDAT So You: #AT(%BrowserMethodCodeSection, %ActiveTemplateParen…

---

_[View the full topic](https://clarionhub.com/t/correct-position-to-insert-template-code-into-browse/7988)._
