Displaying jpg in forms
7 posts
• Page 1 of 1
HI folks, only 'discovered' dataface on Friday of last week... have set it up and linked it into existing mySQL databases. Still very much 'playing around' with it during the learning curve. But, I have a question...
I have an inhouse EPOS running off mySQL and I have been using this as the basis of my playtime. Although the previous PHP scripted forms that we used as the interface for the epos displayed stored jpg images (extracting the file locations from the database fields) and displaying them to the users, I don't seem to be able to work out how to do such with dataface (I am trying to use just the ini and php files rather than ripping into the html .. to keep it simple for the users later), but I don't seem to be able to find anything in the documentation that refers to this. And trying various options for the config files doesn't appear to work. Sorry for the long intro... but the basic question is ... can the dataface forms be made to display graphic images stored on the server and addressed via the database fields? It's probably obvious and simple... (hopefully). Thanks Ian
Check out http://framework.weblite.ca/documentation/how-to/how-to-handle-file-uploads I believe that setting your field to a Container field (as described in that tutorial) will yield the desired results. -Steve
Thanks for that Steve. OK rattled it in... and Yep, did the trick..... well almost.. the 'old' system displayed the jpg's as the users browsed the detail without having to open them in another window. But, I must say that I have accomplished more with Dataface in less than 3 days (and that includes installing it) than any other 'new' (new to me that is) App I have come across in years. I love the fact that most aspects are configurable from the 'ini' files. I'll certainly be using this a lot in the future. The EPOS system I am using as my learning tool took me about 16 weeks to create.... I believe that if I had used dataface originally that time would have been about 3-4 weeks. Thank you for sharing Dataface ... Ian
Is Ian talking about thumbnail images that show up in a field in the details page, without having to click on a link?
I don't think is an option yet, is it? Personally I could use it, eventually. Lot of work to get done before that though. Gord H
Actually you can have thumbnail images show up as a field already. Just follow method 2 of the link http://framework.weblite.ca/documentation/how-to/how-to-handle-file-uploads
This is strange.Ê If you have a field to record the mimetype i.e. image_mimetype , and it is an image, it should just show the image inline. In any case, you can override the details view for that field using the fieldname__htmlValue() method in the delegate class. e.g.: function myimagefield__htmlValue(&$record){ Best regards STeve
7 posts
• Page 1 of 1
Who is onlineUsers browsing this forum: No registered users and 21 guests |