APEX-PLUGIN.COM

..the apex plugin directory

an initiative of

 

Top Rated Plugins

Add your APEX4.0 Plugin info

Describe your Plugin’s features. You can upload the Plugin’s code and documentation, or, alternatively, submit the URLs to your website or blog.

You are here:
Follow us on Twitter
Region Plugin Google Visualizations-OrgChart

Google Visualizations-OrgChart

9
Categories: Region Plugin
Author: Roel Hartman

Who's the boss?

Create a cool OrgChart with just a SQL statement. Since recently either Google changed something or 4.1.1 caused it, but now all columns need to be defined as character!

The example in the demo (and the picture below) is created with:

select to_char(emp.empno)  as primary_key

,      to_char(emp.mgr)    as parent_key

,      emp.ename

        ||'<div>

          <img width="100px" xsrc="wwv_flow_file_mgr.get_file?p_security_group_id='||

           :WORKSPACE_ID||

            '&p_flow_id='||:APP_ID||'&p_fname='||emp.empno||'.jpg">

          </div>'

              ||'<div style=''font-size:75%''>'

                 ||emp.empno

              ||'</div>'

              ||'<div style=''color:red; font-style:italic''>'

                 ||initcap(job)

              ||'</div>'                                 as display_value

,      initcap(dept.dname)||' ('||initcap(dept.loc)||')' as tooltip

,      job

,      dept.dname as department

,      dept.loc   as location

from   emp

,      dept

WHERE  emp.deptno = dept.deptno

 

Special Requirements
Fixed bug so it runs in 4.1.1

Keywords

Company:
Date added: 23.2.2012
Views: 4914
Votes: 8
Reviews: 7
Min. APEX Version:
4.0
Share on Facebook
Digg! Share on Digg
Save This Page
Link to:
Download
download apex plugin
If something is not correct please report it here: Report Listing
Do you have a question about this Plugin? Want to write a Review or Comment?
Login first.
Reviews / Questions / Comments are e-mailed to the author of the Plug-in.
10 
No chart showed, always loadind
by NGOM
on December 4, 2012
Hi Roel ,

Thx for your post. I have a problem, I can't show the chart in the region in execute mode. It is always loading. I use Apex 4.1. You could find the region source code below:

select
to_char(emp.emp_id) as primary_key
,to_char(e.emp_supervisor_id) as parent_key
,to_char(emp.last_name||', '||emp.first_name)
||'


'||'
'||emp.emp_id
||'
'
||'
'||initcap(emp.job_id)||'
' as display_value
,emp.job_id
,emp.position_id
,emp.location_id
from per_employees emp, per_employees e
where e.emp_supervisor_id = emp.emp_id(+)
and emp.emp_id is not null;

Could you help me to fix this. Thx in advance

Bart,
0 
Answer to Mike
by Roel Hartman
on October 25, 2012
You have to set the "Allow HTML" property in the Region Attributes tab to YES....
0 
Nodes render html source not html
by Mike MacMurray
on October 18, 2012
Hi
This looks like it could be really cool, only when I deploy using the select above, it get the source code in each org chart node e.g.
KING
7839
President

It there something special I have to do to get correct rendering?
Thanks
Mike
10 
by Claudiu Moldovan
on September 21, 2012
Awesome post and plugin. Does it only work with firefox? Not with Chrome? Please fill me on some info on how to make it work on Chrome as well.
0 
display leaf nodes vertically
by Jack
on August 31, 2012
Is it possible to implement the ability for the Org Chart to display leaf nodes
both horizontally and vertically.?
example http://google-visualization-api-issues.googlecode.com/issues/attachment?aid=-3655943449810417064&name=org_chart_vertical.png&token=8cLLdO2OOa1ShB_cHy3x7njwYDA%3A1345543108910&inline=1

there is a similar question on this site
http://code.google.com/p/google-visualization-api-issues/issues/detail?id=47#c16
and i have tried to implement the suggestion in comment 16 but without success

can you help me?
0 
by Roel Hartman
on July 5, 2012
Hello Mauro,

Be aware " all columns need to be defined as character". So what is your query?

Roel
0 
internet explorer issues
by Mauro Mereu
on July 5, 2012
Nice plugin, works great in firefox, pity it doesn't work in i.e.
I have tried it in i.e. 8 and 9.
How come the on line demo works in explorer too?
Has it any difference with the downloadable version ?
February 24, 2012
The Entry has been updated in the meantime!
Powered by Sigsiu.NET RSS Feeds

Disclaimer: The APEX Plugins on this site are not supported by Oracle Support Services.

If you have a question about a Plugin or need support: Login and select the plugin detail page. At the bottom you can enter your Question / Review / Remark.
Your message will be sent to the author of the plugin.