Page 2 of 2

Visibility of component

Posted: Tue Oct 21, 2014 12:02 am
by Yurii Orishchuk

Hi Joe,

Thanks for your detailed problem explanation.

The culprit of your problem is - when there is no response parameter - link will not execute.

Here is what you should to do.

1 Delete current link to your "visible" property.

2 Make link from "$" to "GRID".

3 Click "JS" and populate it with following code:

pre

//Print current "ContactNumber" to console(debug reasons).
console.log("ContactNumber = " + value.ContactNumber);

//Condition that is "ContactNumber" is exists.
if(value.ContactNumber){
//Show grid if ContactNumber is here.
Apperyio("GRID").show()
}
else{
//Hide grid if ContactNumber is not here.
Apperyio("GRID").hide();
}

/pre

That's all.

Regards.


Visibility of component

Posted: Tue Oct 28, 2014 1:18 pm
by Joe Sharples

Thank you Yurii!

This worked! I've been trying to get this working for so long now, thank you very very much!

PS: there is a semi-colon missing after '.show()'