The field I have it in list page(ReqPoTransListPage) and the EDT of the filed is InventTransRefId, becuase I am populating this filed from ReqPo Table and the filed if RefId.
Now my custom filed can have sales order Id or planned order or Production order.
And my client asking to make this field as hyper link so that it can open the source form of value in the filed.
Then you may also need Type of the order (Example - InventRefType) and then you need a filed fixed relation at table level. Have a look at \Data Dictionary\Tables\SalesLine\Relations\ProdTableRef
I have a custom field in ReqPo table which contains either Sales order or Planned order as a value.
To make the field as hyperlink, I have given a relation with salesTable like “RefType” value is sales and custom field value is equal to salestable.salesId and
Relation with ReqPo Table like …“RefType” value is Planned Order and custom field value is equal to ReqPo.RefId.
The field converted as Hyperlink but if custom field value is Planned order then it is working fine, in the case of sales order also it is opening the default planned order form.
Then your relation may not work. You relation will work if the RefType = sales.
For reference see, \Data Dictionary\Tables\PurchLine\Relations\SalesTableRef
I have created new field(type) to distinguish between sales order and planned order…and I have given relation as you suggested above (\Data Dictionary\Tables\PurchLine\Relations\SalesTableRef) with sales table(Salesorder) and reqPo (Planned Order)Table …but still I am getting the sales order form when click on planned order hyperlink.