Skip to main content
7-Bedrock
January 9, 2024
Solved

How to get display label value when creating new action model

  • January 9, 2024
  • 1 reply
  • 1445 views

I have created a new submodel under "New" menu and want to give it a display label.

Written a resource bundle class like this:-

package actionFramework;

 

import wt.util.resource.*;

 

@RBUUID("actionFramework.CustomAction")

public class CustomAction extends WTListResourceBundle {

 

@RBEntry("Custom Third Level")

public static final String PRIVATE_CONSTANT_1 = "object.custom_third_level.description";

 

}

 

objecty.custom_third_level.description:- Can you tell from where does it fetch the value of description..so that that value appears as label in an action model..?

Do I need to define that somewhere? My label looks empty-

 

Divyanshi_0-1704836203841.png

 

Best answer by HelesicPetr

Hi @avillanueva  

Yes it is.

 

Resolution 

The rbInfo class has to have string "RB" in the end of the file name.

HelesicPetr_0-1704896156912.pngHelesicPetr_2-1704876442369.png

After compilation and restart the name is shown. 

I also define the resourceBundle in the custom-actionModel.xml

HelesicPetr_1-1704876427377.png

HelesicPetr_0-1704876360973.png

PetrH

 

1 reply

avillanueva
23-Emerald I
23-Emerald I
January 10, 2024

Is this a duplicate thread?

HelesicPetr
22-Sapphire II
22-Sapphire II
January 10, 2024

Hi @avillanueva  

Yes it is.

 

Resolution 

The rbInfo class has to have string "RB" in the end of the file name.

HelesicPetr_0-1704896156912.pngHelesicPetr_2-1704876442369.png

After compilation and restart the name is shown. 

I also define the resourceBundle in the custom-actionModel.xml

HelesicPetr_1-1704876427377.png

HelesicPetr_0-1704876360973.png

PetrH