# Template code not working for #AT(%BrowserMethodCodeSection ... 'TakeKey' )

**URL:** <https://clarionhub.com/t/template-code-not-working-for-at-browsermethodcodesection-takekey/7617>\
**Category:** questions\
**Tags:** c11, templates\
**Created:** [October 29, 2024, 10:53am UTC](https://clarionhub.com/t/template-code-not-working-for-at-browsermethodcodesection-takekey/7617 "2024-10-29T10:53:41Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [October 29, 2024, 9:56pm UTC](https://clarionhub.com/t/template-code-not-working-for-at-browsermethodcodesection-takekey/7617/3 "2024-10-29T21:56:19Z")

</div>

> [@Marius\_Nel](#):
>
> BUT this does not work (I think because it is derived in the browse class [TakeKey PROCEDURE(),BYTE,PROC,DERIVED])
> 
> ```auto
> #AT(%BrowserMethodCodeSection, %ActiveTemplateParentInstance, 'TakeKey', '(),BYTE'),PRIORITY(2500)
> 
> ```
> 
> Am I correct?

In Class ABC add the “Create #AT from Embed”

 ![image](https://clarionhub-uploads.s3.eu-north-1.amazonaws.com/original/2X/d/d35350bc777191d1f3e06aa8c2d25f0d994de007.png)

Then in the Embeditor you’ll see:

```Clarion
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

```auto
You: #AT(%BrowserMethodCodeSection, %ActiveTemplateParentInstance, 'TakeKey', '(),BYTE'),PRIORITY(2500)
Tpl: #AT(%BrowserMethodCodeSection, %ActiveTemplateInstance,'TakeKey','(),BYTE'),PRIORITY(5000)

```

---

_[View the full topic](https://clarionhub.com/t/template-code-not-working-for-at-browsermethodcodesection-takekey/7617)._
