Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Visibility of component

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.

Joe Sharples
Posts: 0
Joined: Mon Aug 18, 2014 1:31 pm

Visibility of component

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()'

Return to “Issues”