Reading from other formats

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
robhathome2
Profound User
Posts: 42
Joined: Mon Jun 27, 2011 9:11 am
First Name: Rob
Last Name: Horton
Company Name: Design Group Plc
Contact:

Reading from other formats

Post by robhathome2 »

Hi all

I'm hoping it's me having a brain-freeze but is there any way to get the following:

write hdrfmt
exfmt mainfmt (with a grid)


now the user presses a bound image on the hdrfmt but I can see in the code that the only field moves from the pui ds's are for the mainfmt as that's the one that is read.

How can I detect the fact it was an image/icon in the hdrfmt that was clicked? I've debugged to confirm I'm seeing a blank in the pseudo indicator/bound variable.

Regards

Rob.
User avatar
David
Profound Logic Staff Member
Posts: 690
Joined: Fri Jan 04, 2008 12:11 pm
First Name: David
Last Name: Russo
Company Name: Profound Logic Software
Contact:

Re: Reading from other formats

Post by David »

You'll just need to READ the HDRFMT record if you want to retrieve its input.

Try this:
RPG CODE
write hdrfmt
exfmt mainfmt
read hdrfmt
The READ on 'hdrfmt' will occur without it going back to the display (meaning immediately) since the record was already sent/received from the browser by the preceeding EXFMT operation.

It is, however, necessary to perform that opertion to copy the received information into the record buffer for 'hdrfmt'.
robhathome2
Profound User
Posts: 42
Joined: Mon Jun 27, 2011 9:11 am
First Name: Rob
Last Name: Horton
Company Name: Design Group Plc
Contact:

Re: Reading from other formats

Post by robhathome2 »

Thanks David

That's the problem with brain freezes - you never know you're having one.

Regards

Rob.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 0 guests