Dmytro Pastovenskyi commented on Jul 20, 2012

Re: Dynamically rendering elements on XPages

what if I need to hide a row in table? how should I do that?

Robert F Harwood commented on Jan 13, 2012

Re: Dynamically rendering elements on XPages

checked

Els Brussee commented on Jul 11, 2011

Re: Dynamically rendering elements on XPages

I have to show\hide fields if user selects a value, it does a lookup to a paramprofiles view which holds the configuration to hide or show fields (and sometimes with values in it) (Yes&&No&&Blue&&No&&No)

Can't get it to work using the visible comp of the fields,I used your code, guess this is the best way to do it!

code is as follows:

var comboVal = getComponent('product1');

var key = comboVal.getValue();

var param = @DbLookup(@DbName(),"vluProducts", key, 3);

if (param != "" && param !=null)

//getComponent("inputText1").setValue(param);

var edit = getComponent('onderzoeksProject1');

// ...should do a split etc, just presume param is only Yes or No...

if (param == "Yes" )

edit.setRendered(true);

else

edit.setRendered(false);

Mark Maden commented on Mar 7, 2011

Re: Dynamically rendering elements on XPages

Why would one not just use the 'computed Visible' option?