I have a table that looks like this:
+-------------------+---------+
|Name |Jr |
+-------------------+---------+
|Name1 |N |
|Name2 |N |
|Name3 |N |
|Name1Jr |Y |
|Name2Jr |Y |
|Name3Jr |Y |
+-------------------+---------+
And here is what my multirow block looks like:
What I want is that when I insert for example Name2, it will automatically add under it the same name with Jr. on its end and the property of the Jr checkbox will be uneditable and checked if the Name has Jr. on its end like this:
I tried in WHEN-VALIDATE-ITEM of Name:
if :blk.name like '%Jr' then
:blk.Jr := 'Y';
set_item_property('blk.jr', enabled, PROPERTY_FALSE);
else
set_item_property('blk.jr', enabled, PROPERTY_TRUE);
end if;
But Jr becomes enabled if I enter another record that has no Jr in the end. I want it to be per row enable/disable

