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.

gReport.data.view('DETAIL');

IvanBolcinaMay 1 2015 — edited May 12 2015

What is equivalent of javascript call "gReport.data.view('DETAIL');" in version 5.0?

BR,ivan

Comments

Scott Wesley

Bumping because I'm curious myself. This presentation from Karen seems to mention everything but.

https://thtech.files.wordpress.com/2015/03/apex5_ir_features.pdf

Tom Petrus

This functionality has been made private with the move to a jQuery UI widget. That whole paper's part on JS can actually simply be disregarded. The only public functionality is "refresh" and reading  some (useless to us) options. And well, these last 2 sentences actually:

Developers that have customizations that rely on the old IR JavaScript must review and update their code.

Well, not much to review since it'd all be broken and near unfixable anyway.

Again, it is not expected that customized use of the IR JavaScript functions will be supported. Developer beware …

Yeah, well. I don't think anybody expected wild things anyway.

------

This happened to most other functionality which you could previously access through gReport. And there is no 'clean' way to fix this right now (call a method on the widget). Much like "paginate":  https://community.oracle.com/message/13017402#13017402

You can actually do the same as I did there bar some changes. See here ==> https://apex.oracle.com/pls/apex/f?p=90922:9:0::::: (set ir view mode)

The other thing you can do:

1) make sure the detail button is visible (option set to yes in the designer)

2) emulate a click on it, along the lines of

apex.jQuery("#YOUR_IR_SELECTOR button.a-IRR-button--views[data-view=details]").click()

I'd really like to lament not having more public functions available but that's where it stands right now. I understand how gReport was probably used all over the place and how some things were exposed that maybe shouldn't have, but right now I feel we've lost some power. I don't see how having to do these click events is in any way more safe than having used gReport. I actually feel disappointed. I'd not expect to have everything opened up publicly, though here was a chance to do so properly and in a controlled way instead of boxing everything in. Oh well, must be me.

1 - 2
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jun 9 2015
Added on May 1 2015
2 comments
1,636 views