Author |
Message |
26/04/2023 11:03:04
|
kklasen
Power User
Joined: 19/11/2020 08:33:30
Messages: 66
Offline
|
Hello Björn,
I have a question is it possible to set the IFRAMINCLUDE die auto zoom? Because I us it to display different formats. Like PDf, image & text.
Something like cover/ contain in t:image tool or is the a tool how fits better?
Thank you for your expertise!
Best regards
Klas
|
Filename |
FireFoxPictureZoom 2023-04-26 111622.jpg |
Download
|
Description |
as it should be |
Filesize |
60 Kbytes
|
Downloaded: |
88 time(s) |
|
Filename |
EdgePictureNOZoom 2023-04-26 111511.jpg |
Download
|
Description |
without zoom, you can't see the whole picture |
Filesize |
80 Kbytes
|
Downloaded: |
74 time(s) |
|
|
|
26/04/2023 11:48:08
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5510
Offline
|
Hi Klas,
of course you can set the BROWSER component (this is the iframe-opener) into a SCALEPANE and then zoom it.
Buit auto-zoom is not possible because the iframe does not tell about the actual sized of its content.
Kind regards! Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
26/04/2023 12:29:50
|
kklasen
Power User
Joined: 19/11/2020 08:33:30
Messages: 66
Offline
|
Thank you! But it didn’t solve my problem. I will look for a work around.
Best regards
Klas
|
|
|
28/04/2023 11:14:15
|
kklasen
Power User
Joined: 19/11/2020 08:33:30
Messages: 66
Offline
|
Hello Björn,
Me again 😉
Does the fileuploadbutton give out information about data type? Because I want to make something like an everything reader, Which the tool changes when file type change. It should be a replacement for the browser tool.
Best regards
Klas
|
|
|
28/04/2023 11:40:45
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5510
Offline
|
Hi Klas,
me again ;-)
Yes the BaseActionEventUpload contains a property getClientFileName() - and you can then interpret the extension of the file name.
Kind regards! Björn
PS: please not: FILEUPLOADBUTTON only should be used for "small" files. "Small" meaning < 1MB. Otherwise use the FILEUPLOADBUTTONASYNCHRONOUS component, which does not embed the upload the file into the normal CC-roundtrip data exchange but which opens up a parallel connection to transfer the file - and significantly reduces the amount of memory during upload processing. Please check: https://www.captaincasa.com/docu/eclnt_risc_developersguide/all.html#fileupload
|
Björn Müller, CaptainCasa GmbH |
|
|
28/04/2023 12:04:01
|
kklasen
Power User
Joined: 19/11/2020 08:33:30
Messages: 66
Offline
|
Thank you!
I’ll give it a try
|
|
|
02/05/2023 07:46:46
|
kklasen
Power User
Joined: 19/11/2020 08:33:30
Messages: 66
Offline
|
hi,
a new week a new Question.
Is the BaseActionEventUpload.getClientFileName() also available for the FILEUPLOADBUTTONASYNCHRONOUS component or is there a different class for asynchronous upload?
thanks
Best regards
Klas
|
|
|
02/05/2023 10:15:11
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5510
Offline
|
Hi,
the information comes through the UploadContent implementation.
Code:
public class MyUploadContent extends DefaultUploadContent
{
public void beginPassing()
{
m_content = "Upload started.\n";
}
public void passClientFile(String fileName, byte[] bytes)
{
m_content += "File was passed: client name " + fileName + ", length " + bytes.length +"\n";
}
public void endPassing()
{
m_content += "Upload ended.";
}
}
Demo in Demo Workplace: Components => File up/download => Asynchronous Upload
Kind regards! Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
|