Embedded List Control

mmcbride1007
Tera Contributor

I am trying to set up an embedded list and use the "Omit Insert Row Condition" property. I have tried but cannot figure out what kind of condition I need to set up so that it will work properly. What I am trying to do is whenever the state on our Story form is Closed Complete or Closed Incomplete, I do not want the Insert Row to be available. I have tried calling a function that returns a value of true when those conditions are met, setting the variable "answer" to true, and even simply typing 'return = true;' with no success. I cannot find any documentation for this on the Wiki or the forums either... Hoping someone here has done this and can help!!

Thanks,
Mike

1 ACCEPTED SOLUTION

martijn3
Mega Contributor

Finally got it to work:

I managed to do everything using ACLs:
1) create: create a script or add roles. do NOT use reference fields at this time, because they will not be populated if there is no embedded record yet
2) write: this is the rule that determines who can write OR CREATE a record. If people have create roles but no write, then they cannot write to the "new" record, hence they cannot actually save the new record and no new record will be created. This means that the create may be less restrictive than the write rule.
3) delete: (optional) if you want users to be able to delete, set this ACL.
4) list_edit: don't forget to set this one, especially if you have removed these rights to prevent little accidents.


View solution in original post

14 REPLIES 14

yogesh15dd
Tera Guru

Hi,



I have this below issue, i cant see the 'Insert a new row' on the ACL.



find_real_file.png


Hi Yogesh,



Please see the ACLs on Require role table.



Regards,


Shamma


Regards,Shamma Negi

Hi Shamma,



The issue was, somehow 'Enable list edit' button was unchecked in the gear box, i checked it to solve the issue.



find_real_file.png


Hi Yogesh,



Great way out!



I read one workaround i.e. covert the embedded list to related list and then check the insert new button checkbox as it is viisble on related list and then again convert the related list to embedded list and then it resolved the issue.



Thanks,


Shamma


Regards,Shamma Negi

cool ok.