Hi team,
I am creating/Viewing the Parent table (Inspections), and I would like to to disable the Add button of the Child table (Inspections_defects):
based on a criteria that if the record you are viewing was created today.
The criteria I have in the Add action of the child table is this:
I have tried other formulas, but always I just get to disable the Add button regardless the formula criteria:
record created yesterday:
not add button. Seems working fine.
record created today. Should be visible the Add action. Not workin:
Solved! Go to Solution.
I had the same problem before but i ended up creating two slices of child records.
The first slice is the TODAYโs Date which is ADD, EDIT, DELETE are enabled.
Set [Parent].[Date] = TODAY()
The 2nd slice is NOT TODAYโs Date which is Read-Only or you can disable ADD only.
Set [Parent].[Date] <> TODAY()
Next step is creating two REF_ROWS(โChild Recordsโ, โParent IDโ) in Parentโs Table.
Change both the Referenced table name with those two slices created.
Last step is change the SHOW_IF of both child refs
Todayโs child records can be [Date] = TODAY()
Not Todayโs child records can be [Date] <> TODAY()
There should be a better way but this one works for me at the moment.
I believe your requirement is similar to the one in the post below. โAddโ action is not row level, so I believe row level conditions will not apply. Please explore the below approach.
thanks @Suvrutt_Gurjar!!
I had the same problem before but i ended up creating two slices of child records.
The first slice is the TODAYโs Date which is ADD, EDIT, DELETE are enabled.
Set [Parent].[Date] = TODAY()
The 2nd slice is NOT TODAYโs Date which is Read-Only or you can disable ADD only.
Set [Parent].[Date] <> TODAY()
Next step is creating two REF_ROWS(โChild Recordsโ, โParent IDโ) in Parentโs Table.
Change both the Referenced table name with those two slices created.
Last step is change the SHOW_IF of both child refs
Todayโs child records can be [Date] = TODAY()
Not Todayโs child records can be [Date] <> TODAY()
There should be a better way but this one works for me at the moment.
Thanks @Jervz very very detailed, I will definitely try thi. Thanks a lot!
User | Count |
---|---|
36 | |
33 | |
27 | |
23 | |
18 |