Is there any way I can remove the saved Reports drop down from an Interactive Grid?
I have tried adding this JavaScript code, but this leads to removal of Edit and Save buttons as well.
function(options) {
var toolbarData = $.apex.interactiveGrid.copyDefaultToolbar();
options.toolbar = toolbarData;
options.toolbar.savedReports = false;
return options;
}
I'm using Oracle APEX 5.1, and unfortunately can't upgrade to newer versions of Oracle APEX.
This shows up if you have saved reports. So just remove the non primary reports.
If you select the report and then go under Actions-Reports-Delete report.
That should remove the currently selected report. If there are no extra reports, only the primary one, then this shouldnt show up.
If you really only just want to hide this one field. Play around in the console and once you have it set you can have the code run sometime after load, maybe add in a wait or something so you can be sure the IG has already loaded.
I did the following(emp is the IG static ID):
var ig$ = apex.region("emp").widget();
var temp = ig$.interactiveGrid("getToolbar")[0]
temp.children[0].children[1].hidden = true
If you play around in the console with this you will see what is selected each time as you go a layer deeper. Then finaly we get just to the select list of the Reports, we get its property hidden which is false by default, we change it to true.
So now its hidden.
This methodology works for damn near everything. In the console you find a way to select the region or something inside it that includes whatever it is you want. Then go deeper and deeper until you are only selecting the specific thing you want. Then you can hide it, change it, get its value, id,...
Related
I'm using REDMINE.
I have a list of projects on the screen.
Is it possible to add details of the ticket content to this screen?
I'd like to look over the screen at once instead of clicking with the mouse, how do I do that?
Also, if you have any plugins or useful tips and so on, please let me know.
Tamazawa, I believe you might be referring to "My Page" of Redmine where you could use widgets to decide what you see on that dashboard - keep in mind that such dashboard s project independent, so it can display issues from many projects that you are a member of on 1 screen.
For instance from My Page, you should be able to select an "Issues" widget to Add and set it up to pull a list of items to display using a saved custom query.
That should give you a snapshot of tasks at hand, without the need to click around the screen too much.
You may need to set up your saved query such that:
Description and / or
Last notes
are checked (if you want to see issues at a glance, without the need to open each one separately).
Alternatively, you can skip that "My Page" idea altogether, if you're ok with just opening a saved query with Description and / or Last notes selected.
I want to hide some specific features from IG's Action Menu.
I know how to to do it for example for highlight and stretch option
function(config){
apex.util.getNestedObject(config, "views.grid.features").highlight = false;
apex.util.getNestedObject(config, "views.grid.features").stretchColumns = false;
return config;
}
I can't find list of all features in that Menu. I want to keep only "Filtter", "Download" and "Help". Rest shouldn't be available.
And also how to hide column features with that configuration (I must do it here becouse it will be dynamic, depending on item). I want to keep only filter feature on columns.
When the page has been loaded, run apex.region("regionStaticId").call("option","config") in Browsers Developer Tools, to get the config object.
Now you can view and navigate through all options that has been currently set for the current Interactive Grid. This should give you an overview of all the other options you want to differentiate from.
The options you already found, views.grid.features.highlight and views.grid.features.strechColumns, are also in there.
For more information, see https://github.com/mgoricki/orclapex-ig-cheat-sheet
There are lots of examples and links to other blogs, on how to customize your Interactive Grid. Including the must read to John Snyders (member of the APEX Team) blog series about the Interactive Grid.
i am new to oracle apex and i am using oracle apex 5.1
i am trying the copy the selected records from an interactive grid in a modal page to another interactive grid in the main page (page calling the modal page).
i have tried many method like getSelectedRecords and setSelectedRecords, model.fetchRecords and many more but with no luck. The below method was the closest one to what i wanted to achive:
var labTemplateData = apex.region("modalInteractiveGrid").widget().interactiveGrid("getViews","grid").model._data;
parent.apex.region("parentInteractiveGrid").widget().interactiveGrid("getViews","grid").model._data = labTemplateData;
the data in parentInteractiveGrid was update (i checked it in chrome developer tools) but it was not shown in the grid. am i missing a refresh or update? Or is there a better way to do it?
thank you.
Google showed a good explanation of how to get the results of an Interactive Grid into a Collection. From there, you could save the collection to your table, then refresh your main page once you've closed the modal page.
The way that Page Editor handles versions has been causing issues for in one of our Sitecore solutions for a client. I've posted about them here:
Sitecore instance showing incorrect workflow state in Page Editor
Expected usage of Page Editor's Experience date
I didn't get much response on those and so far I've surmised that this is just how Sitecore works. This is less than ideal for our instance, as when publishing restrictions are set, authors don't know which version they're editing which is causing various issues for them.
I'd like to implement a solution(s) to improve the experience provide the following functionality:
Something in the Experience tab that shows the number of the version being viewed.
A button on the Experience tab that resets the Date to the default (this is not simply setting the date to the current date/time, but resetting it to act as it did before a date was manually set).
A custom button in Content Editor which allows an author to open a specific version in Page Editor...set the date automatically when it opens, I guess.
An any one give me some clues on how much of this is possible and where to start?
Thanks.
For the first bullet "Something in the Experience tab that shows the number of the version being viewed", you can add version item in Core database.
Move to "Core" DB in Desktop Mode
Navigate to "/sitecore/content/Applications/WebEdit/Ribbons/WebEdit/Experience/"
Create "Versions" item like this, http://imgur.com/bPEDm7R
Create "Compare" item under "Versions" like this, http://imgur.com/dG8dz2M
The result like this, http://imgur.com/HPu3XAL
The content author can see which version they are using and they can also compare with previous versions.
My requirements are to create two buttons. One button that will download all of the data in an interactive report (Select * from DB_TABLE). The other button will download the interactive report data based on filter items (Select * from DB_TABLE where Name = :P1_Name)
I thought about utilizing javascript:gReport.controls.download(); but that didn't seem to work.
Any ideas or sites you can point me to? Many thanks in advance.
And no, I don't know why they want two separate buttons to download the report instead of using the 'Download' button in the interactive report menu.
Set the Request value of the button to CSV, so your link looks like f?p=181:9:3839908094418724:CSV::::
This will only perform the default CSV download though. There is however no built-in way to get the query from an IR. What i mean by that is that an IR which has filters applied.
If you only want to download results which are filtered through page items in the where clause, and don't bother with any IR filters or such, you could set up a report on another page, and have your link for a second button target that page (with CSV in request, but do use a redirect). The browser will prompt you with a save dialog, but you'll not end up on the page.