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

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

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?

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