Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

APEX Trees or jsTrees in APEX 5 with checkboxes

Daljit ROct 13 2016

Hi, I'm struggling a bit with this one...

I'm building a generic approach to custom authentication and have defined the data-model for user roles etc. which is working as needed. I am also aiming to link this to a dynamic navigation menu and hope to reuse this in any applications I build in future. To aid this I also require the ability to administrate the menu options available to a role from within the application user interface.

The most natural mechanism for displaying the hierarcical menu structure I have found is a tree. Specifically those which allow checkbox selection of nodes. I have read the following blog Notes on Oracle: APEX: Tree with Checkboxes and this is the functionality I desire. I think I have a couple of options so I'll happily take advice on any:

  • Get new APEX 5 Tree to provide the functionality? If this is possible, I would prefer to use APEX Tree as I'm on APEX 5 but this appears to have lost the functionality illustrated using the blog (which uses jsTree). I followed the suggestion by John Snyders Checkboxes in APEX Tree (not jsTree) but it's not quite intuitive enough and on Internet Explorer I get jQuery errors when rendering the page (treeView related) meaning the multi selection don't work.
  • Get jsTree to provide the functionality in APEX 5. I can work with this and hope it doesn't break in future versions for now. I have followed the blog but I can't get the checkboxes to appear, further down in the comments there is a suggestion of upgrading jsTree to v1.0 in order to get it working - How can I do this so the Tree region I am using utilises the new jsTree libraries once I've placed them on the server instead of the provided v0.9.9a2.

This is what my Tree currently looks like, I'm using the sample query from the component help just to test and get things up and running without distractions of the data-model for now. There is no 'Checkbox' option in the theme template attribute and the theme_name: "checkbox" doesn't appear to have any affect.

PastedGraphic-1.png

My environment details:

  • APEX 5.0.4.00.12
  • Oracle 11g (11.2.0.1), CentOS 5
  • EPG
  • Internet Explorer 11 (Windows 7)
  • Universal Theme
  • Tree region (jsTree)

Thanks,

Daljit

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Nov 10 2016
Added on Oct 13 2016
0 comments
387 views