Possible Issue in subfile changed property

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
dieter
Experienced User
Posts: 122
Joined: Tue May 22, 2012 6:45 am
First Name: Dieter
Last Name: Schröder
Company Name: Ecclesia Holding GmbH
State / Province: Outside Canada/USA
Country: Germany
Contact:

Possible Issue in subfile changed property

Post by dieter »

Hello,

we use version 4.6.6.

We tried to use the new "subfile changed" property in a grid. But it does not work. Maybe we made a mistake. We bound the property to a RPG field. In the debugger before the EXFMT the value if the field is ' ' (Blank). After the EXFMT the field remains ' '. So the field doesn't work. I am also wondering why the field is blank. It would expect that the field is '0' (or '1') because it is bound to an indicator. An indicator can never be blank.

I must say that in the subfile some fields have an separate "changed" property. Is the "global" subfile changed indicator only usable when no special indicators for fields are used? (I did not try that).

Dieter
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Possible Issue in subfile changed property

Post by Scott Klement »

The field that you bind to the "subfile changed" property will be included in the subfile record. To check whether that record has been changed, you need to use CHAIN, READ, or similar opcode to load the subfile record, then you can check your bound field. Each subfile record has it's own copy of the bound field, so you need to read/check each one separately.

We added this feature to enable compatibility during DDS conversion.

There's not much reason to use it if you're writing a new application. You can just use the RPG READC opcode instead, which is much more flexible.
dieter
Experienced User
Posts: 122
Joined: Tue May 22, 2012 6:45 am
First Name: Dieter
Last Name: Schröder
Company Name: Ecclesia Holding GmbH
State / Province: Outside Canada/USA
Country: Germany
Contact:

Re: Possible Issue in subfile changed property

Post by dieter »

Thank you, Scott.

This explains my problem.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests