gerardocrisci Posted April 19, 2020 Posted April 19, 2020 For a better management of the string format of the field .. I ask you if it is possible to have this modification function TUniCustomDBGrid.GetCellData(const ColNo: Integer; var HasAttr: Boolean): TUniCellRecord; ... else begin // if Assigned(AField.OnGetText) then if wColumn.ForceStringFormat then begin if RawData then rValue := StrToJS(AField.DisplayText) else S := StrToJS(AField.DisplayText); end else begin to change " if Assigned(AField.OnGetText) then" in " if wColumn.ForceStringFormat then " for me it's important Grazie Quote
Sherzod Posted April 19, 2020 Posted April 19, 2020 4 minutes ago, gerardocrisci said: For a better management of the string format of the field .. I ask you if it is possible to have this modification Hello, You should send a request to the support portal... Quote
gerardocrisci Posted April 19, 2020 Author Posted April 19, 2020 3 minutes ago, Sherzod said: You should send a request to the support portal... this is an old discourse: http://jira.fmsoft.net/servicedesk/customer/portal/4/FSD-568 however I added this post ... but ... give me an answer ... I hope not to wait ... two years .. since 2018 has been reopened and I have not had an answer. Quote
Administrators Farshad Mohajeri Posted April 19, 2020 Administrators Posted April 19, 2020 6 minutes ago, gerardocrisci said: this is an old discourse: http://jira.fmsoft.net/servicedesk/customer/portal/4/FSD-568 however I added this post ... but ... give me an answer ... I hope not to wait ... two years .. since 2018 has been reopened and I have not had an answer. This ticket is already reviewed and replied. I think we have a disagreement regarding how OnGetText() works. Quote
gerardocrisci Posted April 19, 2020 Author Posted April 19, 2020 19 minutes ago, Farshad Mohajeri said: This ticket is already reviewed and replied. Initially I asked to consider OnGetText () for cell formatting ... later .. you created the ForceStringFormat property .. Now I don't understand why at that point .. there is a check on OnGetText and not on ForceStringFormat. The right check would be to check if the Field has a DisplayFormat set ... but I can do this with an override for GetForceStringFormat. I would like to give suggestions ... if you don't want them ... thanks anyway. Quote
Administrators Farshad Mohajeri Posted April 19, 2020 Administrators Posted April 19, 2020 OK I will try to understand your suggestion. Let's see. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.