Solved

Using unicode characters in FSM Mobile


Badge +3

How can we display Unicode characters on FSM Mobile joblist? 

icon

Best answer by Shneor Cheshin 30 November 2022, 07:48

View original

12 replies

Userlevel 6
Badge +26

@SuryaSen 

What characters do you need to show?

What is the issue you encounter?

Please elaborate.

Cheers!

Badge +3

Hi Shneor,

We are looking to show a special character on JobList screen, on each row of task. We added a custom field but how to display a special character on the List sceens?

Userlevel 6
Badge +26

Hey @SuryaSen 

Can you please give examples? What is a special character?

Cheers!

Badge +3

We want to introduce a unicode character, for the exclamation mark, (U+26A0) on the joblist screen.

Userlevel 6
Badge +26

Hey @SuryaSen 

I added the sign to the ‘Place’ name, just for testing. This is how it looks

 

So I am not sure what you are asking or what issues you encounter.

Cheers!

Badge +3

Yes, this is what we need, can you help me to achieve this on the Android mobile?

Badge +3

Also, is there a way to have the character as a standalone in a custom field, just the exclamation sign as a custom field value.

Userlevel 6
Badge +26

Hey @SuryaSen 

You can have the sign in a custom field, as far as I understand.

But again, what is the issue? What have you tried? 

This is the Android view

 

 

Cheers!

Badge +3

I tried passing the unicode character through a client script using SQLite function but it didn’t work. How should I configure?

Userlevel 6
Badge +26

Hi @SuryaSen 

I added a custom field (again, just for testing) named ‘c_test_ex’

This is how it looks

 

The populate script I have on the job list is as following

var listData = getCurrentListData();
var listLength = listData.length;
if (listLength > 0) {
for (var i = 0; i < listLength; i++) {
var row = getRowFromListData(listData, i);
var priority = getValueFromListDataRow(row, "task", "priority");
//var taskEscStatus = getValueFromListDataRow(row, "task", "user_def7");
var color = "";
if (priority == "P1_URG_1H_4H") {
color = "c00100";
} else if (priority == "P2_HIGH_6H_1D") {
color = "fe3c05";
} else if (priority == "P3_MED_2D_5D") {
color = "1e0baa";
} else if (priority == "P4_PLAN_10D") {
color = "0073e5";
} else if (priority == "P5_PLAN_1M") {
color = "1abfd6";
} else if (priority == "P6_PLAN_3M") {
color = "1abfd6";
} else if (priority == "P7_PLAN_6M") {
color = "1abfd6";
} else if (priority == "P8_PLAN_12M") {
color = "1abfd6";
}
row = setValueOnListDataRow(row, "custom", "sliver_color", color);

listData = setRowOnListData(listData, row, i);
//test test test
row = setValueOnListDataRow(row, "custom", "c_test_ex", "⚠ - " + i);
listData = setRowOnListData(listData, row, i);
//test test test
}
}
return listData;

So to every row I added the character ⚠ + row number. Again, doesnt make sense, but just for testing.

Let me know if that helps.

Cheers!

Userlevel 6
Badge +26

This is the android view

 

Badge +3

Thank You for the help. This was the solution I was looking for. Let me try it out.

Reply