Difference between revisions of "Orgsearch"

From SmartWiki
Jump to: navigation, search
m
(Redirected page to Irs and cra lookup)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Orgsearch is a system page where users can lookup organizations in multiple databases such as IRS, CRA, OFAC, or UK Charities. Up to now, implementation practice is to give users a button on the registration page that will open this page on a different window. The reason for that is there's a built-in function on orgsearch page which lets users to click on the organization name and it will pass information to the opener page (where you launched the new window).
+
#REDIRECT [[Irs_and_cra_lookup]]
 
 
Since occasionally there is a need for making modifications to this system page, parameters can be passed in the link on the opener page.
 
To do that, you will need a script which is called onclick on a button.
 
<pre><script>
 
function opencra(){
 
alert('Search your organization CRA number or name on the page that will open, then find and click on your organization name.');
 
window.open('/Apps/Bridge/os_orgsearch.jsp?&database=50&namefield=cname&ctlid=cf_1335588&addressfield=address&cityfield=city&statefield=state&zipfield=postalcode&
 
closeonclick=1&typeallow=,50,&rootcid=430452 &instructiondivid=instructiondivid' ,'srh_win',  'menubar=no,scrollbars=yes,
 
status=no,resizable=yes,top=10,left=10,dependent=yes,alwaysRaised=yes')
 
}
 
</script></pre>
 
 
 
'''Default and/or limit the option on the database type drop down'''
 
 
 
Use following for database (default option selected) and typeallow (options visible on the dropdown) parameters
 
:{| border="1" cellpadding="5" cellspacing="0"
 
! ID
 
! Name
 
|-
 
|align="center"|0||IRS
 
|-
 
|align="center"|1||Schools
 
|-
 
|align="center"|2||Schools Agency
 
|-
 
|align="center"|20||OFAC
 
|-
 
|align="center"|40||UK Charities
 
|-
 
|align="center"|50||Canadian Charities
 
|-
 
|align="center"|60||Canadian Charities (inactive)
 
|}
 
 
 
 
 
'''Put instructions on the page'''
 
 
 
To put custom instructions on this page, you need to create a hidden div on the registration page and pass the div id in the URL.
 
 
 
<pre><div id=instructiondivid style="display:none"><br>NOTE: <ul><li>When searching for your charity's name, a keyword search is sufficient. Example:
 
"Lawson" instead of "The Lawson Foundation"</li>
 
<li>When searching for your CRA number, do not include spaces or dashes. Example: 119241727RR0001 </ul></div>
 
</pre>
 
 
 
'''Map fields to registration page fields'''
 
 
 
When clicked on the organization link, function will pass the details to the main registration page. The mapping is done on the link.
 
 
 
<pre>
 
namefield=cname&ctlid=cf_1335588&addressfield=address&cityfield=city&statefield=state&zipfield=postalcode
 
</pre>
 
 
 
'''Note:''' ctlid will pass the CRA or EIN number of the organization and should be mapped to the custom field where you want to store the CRA or EIN number on the organization record.
 
 
 
'''Formatting of the page'''
 
 
 
Pass rootcompanyid in the URL for colours.
 
 
 
Pass lang for language
 

Latest revision as of 09:57, 24 June 2013

Redirect to: