Changes

Jump to: navigation, search

Pandora Filter Examples

3 bytes added, 17:09, 27 November 2012
no edit summary
==Escaping Apostrophes==When searching a text field that may contain an apostrophe (') you need to add a backslash in front of the apostrophe so it is not interpreted as closing the text string:* The following filter can be used to search the company name field for the name in the '''cname''' field on the page. var filter = " name='"+frm.cname.value.replace(/'/g,"\\'")+"'";
* This filter will look for Level 3s attached to the current level 2 with a value from the variable "exType" in the custom field 1301787:
var od=grs.getfieldbyname(1,'oprid');
===Escaping Apostrophes===
When searching a text field that may contain an apostrophe (') you need to add a backslash in front of the apostrophe so it is not interpreted as closing the text string:
* The following filter can be used to search the company name field for the name in the '''cname''' field on the page.
var filter = " name='"+frm.cname.value.replace(/'/g,"\\'")+"'";
[[Category:Pandora]]
0
edits

Navigation menu