Enabling and disabling fields in a repeater

Enabling and disabling fields in a repeater

Is there a way to enable and disable fields inside a repeater display depending on the values of fields on the master form?I have tried it various ways (on the master form, on the repeater) but I have got the always present “Repeater controls can oly be used with agregation functions.”

Ah yes, the old ‘can’t access individual repeater fields’ issue. I haveaddressed this in a separate answer, under the title Set focus inthis repeater grouping.

You can use a similar method to get the handles of each of the objects in arepeater, probably by using a global array. [This would be ideal for arecordset, but I don’t believe you can store object handles in arecordset.] You would then have to keep track of when the rows in arepeater scrolled. You can do this by turning off the scroll bar for therepeater and adding a scroll bar as a separate object next to the repeaterthat would control the movement through the repeater. Or, you could use upand down push buttons, as described under the title Pushbuttons forrepeater movement in this grouping of questions.

Once you can track changes in the repeater, you can design a function towalk through the individual objects in the repeater and enable or disablethem, depending on the values in the underlying row of the recordset.

I haven’t actually tried to code this all myself, but it makes sensethat it would work.

Share the Post:
Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved

AI is revolutionizing fraud detection

How AI is Revolutionizing Fraud Detection

Artificial intelligence – commonly known as AI – means a form of technology with multiple uses. As a result, it has become extremely valuable to a number of businesses across

AI innovation

Companies Leading AI Innovation in 2023

Artificial intelligence (AI) has been transforming industries and revolutionizing business operations. AI’s potential to enhance efficiency and productivity has become crucial to many businesses. As we move into 2023, several

©2023 Copyright DevX - All Rights Reserved. Registration or use of this site constitutes acceptance of our Terms of Service and Privacy Policy.