We created a custom object. (For reference purposes, let's call it ObjectA)
We included that Custom object on the Purchase Orders (as a grid) but when including the Key(OrderNbr) on the grid itself, it only appears as a plain text field.
I'm a little ignorant as to what to include (just because I don't know what dictates the link being created.) For starters, I'm going to include the field itself.
#region OrderNbr
public abstract class orderNbr : IBqlField { }
protected string _OrderNbr;
[PXDBString(15, IsKey = true, IsUnicode = true, InputMask = ">CCCCCCCCCCCCCCC")]
[PXDefault()]
[ObjectA(typeof(Search<ObjectA.orderNbr,
Where<ObjectA.orderNbr, Equal<Optional<ObjectA.orderNbr>>>>), Filterable = true)]
[PXUIField(DisplayName = "ObjectA Nbr.", Visibility = PXUIVisibility.SelectorVisible)]
[PXSelector(
typeof(Search<ObjectA.orderNbr>),
typeof(ObjectA.orderNbr),
typeof(ObjectA.createdDateTime),
typeof(ObjectA.status), Filterable = true)]
[AutoNumber(typeof(IOOASetup.objectnumseqid), typeof(ObjectA.createdDateTime))]
public virtual string OrderNbr
{
get
{
return this._OrderNbr;
}
set
{
this._OrderNbr = value;
}
}
#endregion
We ultimately want the OrderNbr to be a clickable link to a Graph.
I created, also, a custom Attribute for ObjectA with the extension of PXSelectorAttribute