# Select Browse Row after Inserting

**URL:** <https://clarionhub.com/t/select-browse-row-after-inserting/7042>\
**Category:** questions\
**Tags:** browse\
**Created:** [March 19, 2024, 6:10pm UTC](https://clarionhub.com/t/select-browse-row-after-inserting/7042 "2024-03-19T18:10:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tosho](https://clarionhub.com/letter_avatar_proxy/v4/letter/t/43a26b/32.png) [@Tosho](https://clarionhub.com/u/Tosho)\
**Post date:** [March 19, 2024, 6:10pm UTC](https://clarionhub.com/t/select-browse-row-after-inserting/7042/1 "2024-03-19T18:10:41Z")

</div>

Hi

I have a window with browse on it /Clients bills/.  
To insert a new record I call another Window procedure where after a click on the button /number of a  
free table in the restaurant/  
I insert a new record in Clients bills and return to calling procedure.  
Then after:

```auto
BRW4.ResetFromBuffer()
BRW4.ResetFromView()

```

the new record is displayed in the browse.  
How can I force the new record be selected. I know the Id of that record which is in the queue and in the view.

Thanks

Tosho Tonchev

---

<div class="post-metadata">

**Author:** ![Tosho](https://clarionhub.com/letter_avatar_proxy/v4/letter/t/43a26b/32.png) [@Tosho](https://clarionhub.com/u/Tosho)\
**Post date:** [March 19, 2024, 7:37pm UTC](https://clarionhub.com/t/select-browse-row-after-inserting/7042/2 "2024-03-19T19:37:22Z")

</div>

I do a manual call the procedure and after return BRW4.ResetFromFile() instead of ThisWindow.Reset() and now works.

---

<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 20, 2024, 4:53pm UTC](https://clarionhub.com/t/select-browse-row-after-inserting/7042/3 "2024-03-20T16:53:43Z")

</div>

> [@Tosho](#):
>
> I insert a new record in Clients bills and return to calling procedure …  
> How can I force the new record be selected.

Locating to the last added record is done by the Browse Template after using the Insert button. So the way I would solve this is look at what that Insert button code does. That would likely be InsertRecord logic in ABBrowse.clw in LibSrc.

The code calls .Ask(InsertRecord) …  
that calls .ResetFromAsk() …  
that calls .ResetFromFile().

Which I see you figured out, suggest you look at that code to see if there’s anything else.
