cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

How to get display label value when creating new action model

Divyanshi
7-Bedrock

How to get display label value when creating new action model

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

 

ACCEPTED SOLUTION

Accepted Solutions

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

 

View solution in original post

2 REPLIES 2
avillanueva
22-Sapphire II
(To:Divyanshi)

Is this a duplicate thread?

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

 

Announcements

Top Tags