How can I limit values?

Here in this photo, by clicking on the add button, I can add as many data as possible.
I want to make it limited. I want to limit it 7. (1st photo)

In system-generated add button, I have given a query (2nd photo)
COUNT(Product[Related Photos]) <= 7

Whatโ€™s wrong?

3X_f_c_fcaae914cb6d75231aeb536967a485f67a27a306.png

0 7 447
7 REPLIES 7

You have to include the key in your formula. It should look like this.

Sorry, this is not working. (screenshot -1)
I have tested in several ways.(screenshot -2,3)

Anyway, my Product table has no โ€œKeyโ€ column, โ€œItem codeโ€ is working as the primary key.

3X_7_5_75978c212019570c9fb55123f50bdccabdcac5b4.png 3X_d_3_d3fe3bcaf5e49cfae84421821d01d3412c508b05.png 3X_8_c_8c10263e4d2d79f7a6ba5db35d4a7b7f10cc03eb.png

COUNT(
      SELECT(
        Product[Related Photos], 
        [Item code] = [_THISROW].[Item code]
      )
    ) <= 7

Sorry, itโ€™s also not working. Itโ€™s still adding elements.

Actually, I have added this condition on Behavior -> Actions-> Product -> Add (Sys. generated) -> behavior -> Only if this condition is true

3X_e_1_e1a5b1ee8e6660e52c9f7925feab8d48bd698c3e.png 3X_2_c_2cc801440cf10666f36e7445bb169ab8d36b2927.png

Your expression wont work to achieve what you want.
Refer to my old post here.

Hi,

I have applied all the suggestions that you wrote on your post.
In screenshot 1, I set parent table update/ delete only
in screenshot 2, a virtual column to the parent table
in 3, made an action attached to the parent table
in 4, made action button visible for condition N <= 7

But I got some output like (screenshot-5, 6)
The action is not visible here (not showing).
And No of Child row is inside the page.

Are my actions wrong? Please see.

3X_e_8_e880f0ca2284607fa299b6bde665a0634c7019a2.png 3X_1_2_1236ed3c47a335b1d7bbfb753aa5e486714137f9.png

Not sure your exact data schema, but it appears to me you are adding new row to own parent rather than child table.
See my post I shared with you to construct the process.

Top Labels in this Space