# How to open another form from current form when there is no relation with primary index

**URL:** <https://www.dynamicsuser.net/t/how-to-open-another-form-from-current-form-when-there-is-no-relation-with-primary-index/76196>\
**Category:** Developer Forum\
**Created:** [April 19, 2022, 5:58am UTC](https://www.dynamicsuser.net/t/how-to-open-another-form-from-current-form-when-there-is-no-relation-with-primary-index/76196 "2022-04-19T05:58:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Haribabu\_Annangi](https://avatars.discourse-cdn.com/v4/letter/h/a587f6/32.png) [@Haribabu\_Annangi](https://www.dynamicsuser.net/u/Haribabu_Annangi)\
**Post date:** [April 19, 2022, 5:58am UTC](https://www.dynamicsuser.net/t/how-to-open-another-form-from-current-form-when-there-is-no-relation-with-primary-index/76196/1 "2022-04-19T05:58:12Z")

</div>

Hello Team,

I have requirement that I have custom form with custom data source.

I need to open this custom form at Modules → Fixed assets --\>all Fixed assets → Select one FA → on action I have menu item button to open custom form.

Now the requirement is that when we click on custom menu item button it should open the records only related to selected Fixed asset

There are two fields that are having relation between Fixed asset and my custom data source , based on these two fields I have to show the corresponding records

Please suggest if any sample code

---

<div class="post-metadata">

**Author:** ![MartinDrab](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@MartinDrab](https://www.dynamicsuser.net/u/MartinDrab)\
**Post date:** [April 19, 2022, 6:25am UTC](https://www.dynamicsuser.net/t/how-to-open-another-form-from-current-form-when-there-is-no-relation-with-primary-index/76196/2 "2022-04-19T06:25:23Z")

</div>

You shouldn’t need any code - a dynalink is created automatically if there is a table relation.  
Have you created a relation from your custom table to AssetTable?

---

<div class="post-metadata">

**Author:** ![Haribabu\_Annangi](https://avatars.discourse-cdn.com/v4/letter/h/a587f6/32.png) [@Haribabu\_Annangi](https://www.dynamicsuser.net/u/Haribabu_Annangi)\
**Post date:** [April 19, 2022, 11:49am UTC](https://www.dynamicsuser.net/t/how-to-open-another-form-from-current-form-when-there-is-no-relation-with-primary-index/76196/3 "2022-04-19T11:49:22Z")

</div>

Thank you very much Martin…issue got resolved after adding relation
