Guest Posted February 9, 2011 Share Posted February 9, 2011 Message from: "zilav" Hi Farshad! I need your wise advice. I'm processing uploaded files, it can take some time, and I want to mask interface while its busy. if I attach unimask directly to uniupload, the mask stays under upload window. So I tried to use runounce unitimer, in uploadcomplete event I copy stream to memory stream and start timer, in ontimer event I start processing, but I can't attach mask to timer event. Can I manually trigger unimask, or perhaps make it attachable to timer directly? And also can you please add string properties to upload component for localization of "Upload" and "Cancel" buttons? . Link to comment Share on other sites More sharing options...
Guest Posted February 9, 2011 Author Share Posted February 9, 2011 Message from: "Farshad Mohajeri" "zilav" wrote in message news:awHxPbGyLHA.2720@anaxagvs227... > Hi Farshad! > > I need your wise advice. I'm processing uploaded files, it can take some > time, and I want to mask interface while its busy. if I attach unimask > directly to uniupload, the mask stays under upload window. So I tried to > use runounce unitimer, in uploadcomplete event I copy stream to memory > stream and start timer, in ontimer event I start processing, but I can't > attach mask to timer event. Can I manually trigger unimask, or perhaps > make it attachable to timer directly? Upload already masks the interface until it is done. Why do you need anothet Mask? > And also can you please add string properties to upload component for > localization of "Upload" and "Cancel" buttons? > Logged. . Link to comment Share on other sites More sharing options...
Guest Posted February 9, 2011 Author Share Posted February 9, 2011 Message from: "zilav" > Upload already masks the interface until it is done. Why do you need > anothet Mask? Sigh, because ordinary users are dumb, they chose file, click upload button and from their point of view nothing happens (processing of uploaded file in my app may take considerable time), so they try to click upload again and again. Showing a spinning wheel with "Loading..." text is way more logical, if only I could attach unimask to runonce unitimer. Btw, do you have plans for dbdatepicker? . Link to comment Share on other sites More sharing options...
Guest Posted February 10, 2011 Author Share Posted February 10, 2011 Message from: "Farshad Mohajeri" "zilav" wrote in message news:cgioZqJyLHA.2164@anaxagvs227... >> Upload already masks the interface until it is done. Why do you need >> anothet Mask? > > Sigh, because ordinary users are dumb, they chose file, click upload > button and from their point of view nothing happens (processing of > uploaded file in my app may take considerable time), While uploading Screen is masked isn't it? >so they try to click upload again and again. Showing a spinning wheel with >"Loading..." text is way more logical, if only I could attach unimask to >runonce unitimer. They can't press Upload again, if they can there must be something wrong there. > Btw, do you have plans for dbdatepicker? > Yes, it is in issue tracker. . Link to comment Share on other sites More sharing options...
Guest Posted February 10, 2011 Author Share Posted February 10, 2011 Message from: "Farshad Mohajeri" "zilav" wrote in message news:cgioZqJyLHA.2164@anaxagvs227... >> Upload already masks the interface until it is done. Why do you need >> anothet Mask? > > Sigh, because ordinary users are dumb, they chose file, click upload > button and from their point of view nothing happens (processing of > uploaded file in my app may take considerable time), Do you mean post-upload process takes time? . Link to comment Share on other sites More sharing options...
Guest Posted February 10, 2011 Author Share Posted February 10, 2011 Message from: "Farshad Mohajeri" "Farshad Mohajeri" wrote in message news:OWp1y3JyLHA.2164@anaxagvs227... > > "zilav" wrote in message > news:cgioZqJyLHA.2164@anaxagvs227... >>> Upload already masks the interface until it is done. Why do you need >>> anothet Mask? >> >> Sigh, because ordinary users are dumb, they chose file, click upload >> button and from their point of view nothing happens (processing of >> uploaded file in my app may take considerable time), > > Do you mean post-upload process takes time? I found another solution. I disabled all buttons after a successful upload so user can not interact again. I will also look for screen mask in future. . Link to comment Share on other sites More sharing options...
Guest Posted February 10, 2011 Author Share Posted February 10, 2011 Message from: "zilav" > I found another solution. I disabled all buttons after a successful upload > so user can not interact again. I will also look for screen mask in > future. Thanks. Want to ask one more thing. I have an external report builder, which takes parameters through url and generates pdf. UniURLframe and UniHTMLFrame is not the best solution, because I want to do printing more like desktop apps - push "print" button (on toolbar for example) to open pdf in a new browser window. So is it possible to add an URL property to all kinds of unibuttons, and if it assigned, button won't send ajax request, but just try to open this url in a new browser window? The only way I see to implement this now is to create link "a href=... target=_blank" or html button with javascript "window.open" inside unihtmlframe. If it is hard to implement, then not a big deal really. And a question about "download". As far as I know, I need to create a temp file in \files (or cache?) subfolder, and provide a link to it. Is it possible to send a stream directly to user? Perhaps add some event to MainModule on url pattern, where I can set mime type and provide TStream with data. Or create a download button component with mime and stream properties. Actually, such download button will be handy in case of internal pdf/xls report generators. . Link to comment Share on other sites More sharing options...
Guest Posted February 10, 2011 Author Share Posted February 10, 2011 Message from: "Farshad Mohajeri" "zilav" wrote in message news:wgfbaFPyLHA.2160@anaxagvs227... >> I found another solution. I disabled all buttons after a successful >> upload so user can not interact again. I will also look for screen mask >> in future. > > Thanks. > Want to ask one more thing. I have an external report builder, which takes > parameters through url and generates pdf. UniURLframe and UniHTMLFrame is > not the best solution, because I want to do printing more like desktop > apps - push "print" button (on toolbar for example) to open pdf in a new > browser window. So is it possible to add an URL property to all kinds of > unibuttons, and if it assigned, button won't send ajax request, but just > try to open this url in a new browser window? TUniURLButton request logged #825 > And a question about "download". As far as I know, I need to create a temp > file in \files (or cache?) subfolder, and provide a link to it. Is it > possible to send a stream directly to user? > Perhaps add some event to MainModule on url pattern, where I can set mime > type and provide TStream with data. Or create a download button component > with mime and stream properties. Actually, such download button will be > handy in case of internal pdf/xls report generators. Issue is already logged: #640 . Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now