Skip to main content
Solved

How to remove/replace link command in modern ui

  • October 6, 2026
  • 3 replies
  • 39 views

Forum|alt.badge.img
export class TimecardWithTotals_Custom {

//@linkCommand("ViewTimecard")
//@removeDecorator("linkCommand")
@columnConfig({
editorConfig: {
linkCommand: "ViewTimecard"
}
})
TimeCardCD: PXFieldState;

}

I tried all to remove the link command, nothing works

Best answer by darylbowman

I have that in my code

Are you sure? You need the whole thing.

You should be able to update with this:

@updateDecorator("linkCommand", "MyCustomAction")

 

3 replies

darylbowman
Captain II
Forum|alt.badge.img+17

Try this:

import { TimecardWithTotals } from "src/screens/EP/EP406000/views";
import { EP406000 } from "src/screens/EP/EP406000/EP406000";
import { PXFieldState, removeDecorator } from "client-controls";

export interface EP406000_Test extends EP406000 { }
export class EP406000_Test { } // Needed in extensions to manipulate decorators

export interface TimecardWithTotals_Test extends TimecardWithTotals { }
export class TimecardWithTotals_Test {

@removeDecorator("linkCommand")
TimeCardCD: PXFieldState;
}

 


Forum|alt.badge.img
  • Author
  • Varsity I
  • October 6, 2026

Try this:

import { TimecardWithTotals } from "src/screens/EP/EP406000/views";
import { EP406000 } from "src/screens/EP/EP406000/EP406000";
import { PXFieldState, removeDecorator } from "client-controls";

export interface EP406000_Test extends EP406000 { }
export class EP406000_Test { } // Needed in extensions to manipulate decorators

export interface TimecardWithTotals_Test extends TimecardWithTotals { }
export class TimecardWithTotals_Test {

@removeDecorator("linkCommand")
TimeCardCD: PXFieldState;
}

 

I have that in my code, I forgot to add in the snipped but apart from remove is there a way to update? I want to use my custom action here.


darylbowman
Captain II
Forum|alt.badge.img+17
  • Answer
  • October 6, 2026

I have that in my code

Are you sure? You need the whole thing.

You should be able to update with this:

@updateDecorator("linkCommand", "MyCustomAction")