ZoomApps / Liveapp

Liveapp Framework :rocket:
https://www.liveapp.com.au
2 stars 1 forks source link

Image column in progress note is cutting off for CIMSXpress #33

Closed jaffars closed 6 years ago

jaffars commented 7 years ago

Hi Paul,

I did some debugging and identified the scenario.

-AdditionalStaffField contains an HTML value, It works fine in desktop

Code causing the Issue:- Grid.js - Mobile in function - Add Columns in the below highlighted lines

m_cols.push({ name: field.Name, onformat: function (val) { if (val == null || val == "null") { return ""; } else { if(val.toString().length > 100) val = val.toString().substr(0,100)+"..."; if(field.CustomControl == "NotesBox") val = val.replace(/\<br>/g, '\r\n'); return val; } } });

The Val is getting stripped to 100 character so the HTML value is cutting off and causing the Issue.Attached the screenshot of the issue

image

paulfisher53 commented 6 years ago

Thanks Jaffar. We already fixed this in v5 by removing these 2 lines of code:

MobileControls/Grid.js

if(val.toString().length > 100) val = val.toString().substr(0,100)+"...";

Please do that and see if it fixes the issue in v4

jaffars commented 6 years ago

Tested in CU9 and its working as expected