The CreatorCon Call for Content is officially open! Get started here.

How to make an embedded list read only

brown9394
Tera Expert

Hello Experts,

I have a requirement to make an embedded list read only on a form. The list control of the embedded list does not have options to make it read only. And cannot use ACLs on the table b/c it is suppose to be just for viewing purpose.

I have a UI policy that show/hides the list, is it possible to modify this code to make it read only when it is visible at specified states?

function onCondition() {

var list = $$('div[tab_caption="Processes"]')[0];

if(list.hasClassName('embedded')){

  list.hide();

}

}

function onCondition() {

  var list = $$('div[tab_caption="Processes]')[0];

  if(list.hasClassName('embedded')){

  list.show();

  }

}

5 REPLIES 5

Nitin_NOW
Tera Guru

Hi 

 

I have come across the same issue. I'm unable to make the embedded list (on the catalog item form) read only. Did you find any solution to this? If so, please try to share it here. 

Thanks in Advance!