Hello all, this worked fine until today, and no change to app or server in the last few months. The problem: when I upload an image the progress bar over the thumbnail do not change to the checkmark. Tried various image formats but no change. Then I changed the image size and then it worked. Is there any limitation to image upload (except the size you specify when building the app)? TIA tony
//Custom controller created $cModel= new ChartController(); //Get the value of function status chart $chartdata = $cModel->StatusChart(); //Supply the return value to the backgroundColor property. backgroundColor:[ <?php echo json_encode($chartdata['colors']); ?>, ]
P.S. sorry for my english
Sorry to be late, but now I badly need colors in charts. Where have I to put the second block code ("you have to supply the code...")? TIA tony
Hello all, one of my customer asked me to make the application interface multilanguage. But how does the multilanguage option work in the project settings? Or, is there a way to make a copy of a page (example: "copy of list page") and link it to another page (example: "copy of edit page")? Or have I to create a new whole project and publish it somewhere else? TIA tony
@cnmycrl please use the Action Before Add in Page Event to query the record using the id from that select field, and then, use the result to assign to the name and city field, and it will be inserted to your database table.
Hi Willvin, have you got an example for this? Ho w can I use the resulting fields in the email? TIA tony
Hello all, I need to send an emal after the user add a record to the application. Actually I use the "Mail Actions Settings" to send the email. I know how to reference the current record fields using the $modeldata[my_field] variable. But how can I reference a value that is related to another table?
I.E.: In my form I have a select field that gets values from another table. So, my select looks like: OPTION 1 (value: 1) OPTION 2 (value: 2) ... and so on.
How can I reference the "OPTION 1" value instead of the "1" value in the email? Is there a way to query the related table and get all fields from it? TIA tony
INSERT RECORD: If you check: field1: check1.3 field2: check2.3 the record is inserted
UPDATE RECORD: If you update the record, even without changing the already checked checkboxes you cannot update it since it asks for you to check the requied checkboxes (bug: all unchecked checkboxes are set to required). The only way to fix this is check-unckeck at least one option for every field (time consuming and really bad for customers that will use the application).
THE PROBLEM: In the UPDATE page all checkboxes that are not checked are set to required. Even if you have already checked one of them.
hello all, actually, related records are displayed (inline) under the current master record (see this picture: https://imgur.com/a/FIMJ25s). Is there a way to display details record on a larger column (12) instead of the actual 6-col column? TIA tony
Hi willvin, your query display the same results. After some other researches I found another way (subquery) to display the correct data. Here is my updated query for anyone having my problem:
SELECT * FROM ( SELECT COUNT(privacy_reg) AS registrati, DATE_FORMAT(data_registrazione_reg,'%Y/%m/%d') AS datareg, DATE_FORMAT(data_registrazione_reg,'%d/%m/%Y') AS datavis
FROM registrazioni GROUP BY datareg ORDER BY datareg DESC LIMIT 15 ) as reg ORDER BY datareg ASC
Hello all, I need to display registered users by day on a bar chart. I can get the chart done, but the sorting is wrong. I need to display the last 10 days in descendend order but the Mysql LIMIT function displays only the FIRST 10 records See image:
"SELECT COUNT(r.privacy_reg) AS registrati, DATE_FORMAT(r.data_registrazione_reg, '%d/%m/%Y') AS data FROM registrazioni AS r GROUP BY data ORDER BY r.data_registrazione_reg DESC limit 10"
Hello all, I know there is a bug with RandomColors in charts. I'm creating a pie chart with a single color but my customer asks for different slice colors. Is there a workaround to make this work? TIA tony
@sweetman The best solution to avoid any error is to set the database column to varchar. but from the SQL error you posted, it seems the database field is set to DateTime.
Hello Willvin, in the db the field is set to INT, actually. Changing the fieldtype to varchar seems to solve the problem. Thanks for your help. Tony