Alexandre Storti Posted August 2, 2023 Share Posted August 2, 2023 I tried in several ways if success but the event is not fired. What could it be ? When the record does not contain an image, I want a default image to be shown, I'm trying to do this through the event. Detail: I'm using 'function beforeInit(sender, config)' ) to format the list. Quote Link to comment Share on other sites More sharing options...
Alexandre Storti Posted August 3, 2023 Author Share Posted August 3, 2023 ? Quote Link to comment Share on other sites More sharing options...
picyka Posted August 3, 2023 Share Posted August 3, 2023 Perhaps in the field's GetText, you would validate if the blob has no data, and would place its default image Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 3, 2023 Share Posted August 3, 2023 17 hours ago, Alexandre Storti said: When the record does not contain an image, I want a default image to be shown, I'm trying to do this through the event. Detail: I'm using 'function beforeInit(sender, config)' ) to format the list. Hello, Can you make a simple testcase to check? Quote Link to comment Share on other sites More sharing options...
Alexandre Storti Posted August 3, 2023 Author Share Posted August 3, 2023 Eu tentei isso ontem, mas no gettext: eu só posso passar texto, correto? Como uma imagem iria para lá? Quote Link to comment Share on other sites More sharing options...
picyka Posted August 3, 2023 Share Posted August 3, 2023 21 minutes ago, Alexandre Storti said: Eu tentei isso ontem, mas no gettext: eu só posso passar texto, correto? Como uma imagem iria para lá? Maybe it could have a calculated field, and handle it in OnCalcFields Quote Link to comment Share on other sites More sharing options...
picyka Posted August 3, 2023 Share Posted August 3, 2023 Or, handle this in your JS code, if you don't have an image to load from the files folder... Quote Link to comment Share on other sites More sharing options...
Alexandre Storti Posted August 3, 2023 Author Share Posted August 3, 2023 I had to send everything because the images come from a firebird 4.0 database. CarSales_Unigui.rar Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 3, 2023 Share Posted August 3, 2023 Ok, we will try to check. Quote Link to comment Share on other sites More sharing options...
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.