Skip to main content
Solved

How to remove/replace link command in modern ui

  • Oct 6, 2026 5:08 PM UTC
  • 3 replies
  • 56 views
  • Translate All

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")

 

View original

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;
}

 

Translate

Forum|alt.badge.img
  • Author
  • Varsity I
  • Oct 6, 2026 6:31 PM UTC

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.

Translate

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

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")

 

Translate