Skip to main content
Question

Custom LinkCommand not working in Modern UI (field displayed as text only)

  • May 16, 2026
  • 1 reply
  • 13 views

Forum|alt.badge.img+1

I have an issue with a link not being displayed on a custom field in Modern UI.

#region UsrInvoiceID 
public abstract class usrInvoiceID : BqlInt.Field<usrInvoiceID> { }

[PXDBInt()]
[PXUIField(DisplayName = "Invoice ID", Enabled = false)]
[PXDefault(PersistingCheck = PXPersistingCheck.Nothing)]
public int? UsrInvoiceID { get; set; }
#endregion

I have also implemented a LinkCommand in the graph, and configured the same LinkCommand in the ASPX page.

In Classic UI, everything works correctly — the field is shown as a clickable link and it opens the expected page.

However, in Modern UI, I do not see a link on the field. It is displayed only as plain text.

I also tried adding a selector control to the field. This makes it appear like a link in Modern UI, but clicking it does not navigate to the expected screen.

Is there a different approach or additional configuration needed for this scenario?

1 reply

Forum|alt.badge.img+3

Hello ​@Marat43  You have to add lines in .ts file to expose link in MUI:
e.g.
 

export class YourViewName_Extension {
@linkCommand("YourLinkCommandName")
@columnConfig({ width: 100 })
UsrInvoiceID: PXFieldState<PXFieldOptions.Disabled>;
}

& if it is in grid then try like this:
 

@columnConfig({
editorConfig: {
linkCommand: "YourLinkCommandName"
},
width: 100
})
UsrInvoiceID: PXFieldState<PXFieldOptions.CommitChanges>;


I hope it help!