cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1046
Views
0
Helpful
4
Replies

How Can I replace newScale Text Strings with Custom Values?

Jim Tabasz
Level 1
Level 1

How Can I replace newScale Text Strings with Custom Values?

How can I replace newScale text strings with custom values?

All  newScale text is customizable. Follow the procedure below to change the  value of any text string that appears in RequestCenter online pages.

Procedure

1. Find out the String ID of the text string you would like to overwrite by turning on the String ID display:

a) Navigate to the RequestCenter.ear/config directory.

b) Open the newscale.properties file and add the following name-value pair at the end of the file:res.format=2

c) Save the file.

d) Repeat steps b and c for the RmiConfig.prop and RequestCenter.prop files.

e) Stop and restart the RequestCenter service.

f) Log  in to RequestCenter and browse to the page that has the text you want  to overwrite. In front of the text you will now see the String ID.

g) Note down the String ID's you want to change.

2. Navigate to the directory: /RequestCenter.ear/RequestCenter.war/WEB-INF/classes/com/newscale/bfw.

3. Create the following sub-directory: res/resources

4. Create the following empty text files in the directory you just created:

  • RequestCenter_0.properties
  • RequestCenter_1.properties
  • RequestCenter_2.properties
  • RequestCenter_3.properties
  • RequestCenter_4.properties
  • RequestCenter_5.properties
  • RequestCenter_6.properties
  • RequestCenter_7.properties

5. Add the custom text strings to the appropriate  RequestCenter_<Number>.properties file in the following manner  (name-value pair) StringID=YourCustomTextString

Example: The StringID for "Available Work" in ServiceManager is 699.

If you wanted to change "Available Work" to "General Inbox", you  would add the following line to the RequestCenter_0.properties file

     699=General Inbox

Strings are divided into the following files, based on their numeric ID:

Strings are divided into the following files, based on their numeric ID:

String ID  File Name

0 to 999 -> RequestCenter_0.properties

1000 to 1999 -> RequestCenter_1.properties

2000 to 2999 -> RequestCenter_2.properties

3000 to 3999 -> RequestCenter_3.properties

4000 to 4999 -> RequestCenter_4.properties

5000 to 5999 -> RequestCenter_5.properties

6000 to 6999 -> RequestCenter_6.properties

7000 to 7999 -> RequestCenter_7.properties

6. Turn off the String ID display by removing (or commenting out) the line "res.format=2" from the newscale.properties, RequestCenter.prop and RmiConfig.prop files

7. Restart RequestCenter.

Your customized text should be displayed.

4 Replies 4

Jeffrey Wood
Level 1
Level 1

I've recently come across this information and it was very helpful in changing some of the inline text.

However, one place that seemed out of reach with this method was the three main buttons on an "Order" page.  Specifically the "Add & Review Order" button was confusing some of our users.

Through the use of JavaScript we were able to modify the label of this button.  We placed JS in the footer.html file that changes the value of the butt

James Fuller
Level 1
Level 1

Sudeep Jain,

We have a disable script we use.  You could modify this to hide/disable/change the "submit" buttons as you see fit.  Check this function:

/**
 *  Function to disable a service from being ordered.  Used to stop
 *  an order when specific conditions have been met.  Typically called
 *  from another function or event.  Loops through the form to find all
 *  "submit&am

Jim / Jeffrey,

 The buttons on the order form "Add & Review Order" and "Submit Order" do not have any numeric ID specified. Please see the attachment. I have following questions.

1. How do we change the caption of these buttons on the order form. ?

2.  Moreover we would also like to know if there is a way we can hide some buttons on the order form. We don't want people to use "Add & Review Order" button, and theref

Emir E
Level 1
Level 1

Sudeep, plese keep in mind if you need ot support multiple languages, your override script needs to reflect the users language selection (if your RC is global)