Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 28 APR 2021 01:40:39PM BrianWick wrote:

Hi Folks -

OI 9.4.6

Because I cannot get an O4WGetValue() to work on image control like O4WImage and O4WImageButton I just keep that data (filenames) for those controls in a hidden control.

Are there any other better ways to do this or maybe there is some other call i can make ?

tx

bri


At 28 APR 2021 02:50PM bshumsky wrote:

Hi Folks -

OI 9.4.6

Because I cannot get an O4WGetValue() to work on image control like O4WImage and O4WImageButton I just keep that data (filenames) for those controls in a hidden control.

Are there any other better ways to do this or maybe there is some other call i can make ?

tx

bri

Hi, Brian. I know you are having troubles with getting the "extra parameters" that normally go along with a file upload, but those only apply to a file upload.

An O4WIMAGE is not an "input" control, it is used to display an image, so you can never call O4WGetValue on it - it will never be submitted to you. Similarly, an O4WIMAGEBUTTON isn't an input control for the IMAGE, it is designed to act like a button (so you can get a click event from it); there is no O4WGetValue() you can do on it to get hidden information (except perhaps the name of the control).

What, exactly, were you expecting to get?

Thanks,

- Bryan Shumsky

Revelation Software, Inc.


At 28 APR 2021 03:20PM BrianWick wrote:

OK tx for the clarification

O4WImage and O4WImageButton only display data - in this case an image - but they do not 'remember' the data used (i.e. URL) to display the image.

And because it is not a data entry control O4WGetValue wont work.

So as I am doing now the 'hidden' control keeps track of what image is being displayed

MYIMAGEAHIDDEN is the raw data control

MYIMAGEA is the control that displays the image

So I am doing it correctly.

As far as the file upload with OECGI4.exe with OI 9.4.6 - not delivering the file stats - I am just using OECGI3.exe for now until I switch to OI 10 in a month or so.

tx for the help

Bri

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/285caf655ee0e44ba0fcc53c92459295.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1