Skip to main content
Solved

Using unicode characters in FSM Mobile

  • November 28, 2022
  • 12 replies
  • 114 views

Forum|alt.badge.img+3

How can we display Unicode characters on FSM Mobile joblist? 

Best answer by Shneor Cheshin

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!

12 replies

Shneor Cheshin
Superhero (Employee)
Forum|alt.badge.img+28
  • Superhero (Employee)
  • November 28, 2022

@SuryaSen 

What characters do you need to show?

What is the issue you encounter?

Please elaborate.

Cheers!


Forum|alt.badge.img+3
  • Author
  • Sidekick (Partner)
  • November 29, 2022

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?


Shneor Cheshin
Superhero (Employee)
Forum|alt.badge.img+28
  • Superhero (Employee)
  • November 29, 2022

Hey @SuryaSen 

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

Cheers!


Forum|alt.badge.img+3
  • Author
  • Sidekick (Partner)
  • November 30, 2022

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


Shneor Cheshin
Superhero (Employee)
Forum|alt.badge.img+28
  • Superhero (Employee)
  • November 30, 2022

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!


Forum|alt.badge.img+3
  • Author
  • Sidekick (Partner)
  • November 30, 2022

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


Forum|alt.badge.img+3
  • Author
  • Sidekick (Partner)
  • November 30, 2022

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.


Shneor Cheshin
Superhero (Employee)
Forum|alt.badge.img+28
  • Superhero (Employee)
  • Answer
  • November 30, 2022

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!


Forum|alt.badge.img+3
  • Author
  • Sidekick (Partner)
  • November 30, 2022

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


Shneor Cheshin
Superhero (Employee)
Forum|alt.badge.img+28
  • Superhero (Employee)
  • November 30, 2022

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!


Shneor Cheshin
Superhero (Employee)
Forum|alt.badge.img+28
  • Superhero (Employee)
  • November 30, 2022

This is the android view

 


Forum|alt.badge.img+3
  • Author
  • Sidekick (Partner)
  • November 30, 2022

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