How to Hide Interactive Report Setting Area in Oracle Apex - oracle-apex

I want to hide Interactive Report Setting/Filters Area.
I found to hide Interactive Grid's Report setting area in Interactive Grid Cookbook
function(config) {
config.reportSettingsArea = false;
// may want to disable the highlights feature. Comment out this code to make initial highlight settings
apex.util.getNestedObject(config, "views.grid.features").highlight = false;
return config;}

To remove completely the settings regions of an interactive report you can do as follows:
Give your Interactive Report region an static id (under your regions attributes scroll over "Advanced" and then "static id");
Under your page properties (first tab on the left on page designer mode) :
Go to CSS section and then paste the following code in the attribute "In line" (I'm assuming your static id is "IR_ORDERS":
#IR_ORDERS_control_panel{
display:none;
}

(if you are using ver 18.1 up)
GO to Attributes then under Search Bar find Finder Drop down and set to No.

To remove completely the settings regions of an interactive Grid you can do
past the below code in PAGE>>CSS>>inline .a-IG-controlsContainer { display:none; }

Related

Is this possible when Secure Embeding a Power BI report into an html page?

Looking to Secure Embed a bunch of reports into a html webpage/portal.
Does anyone know if it is possible to completely remove/hide the filter pane on the right as well as the tab bar along the bottom? (the bits highlighted below).
Thanks.
You can achieve this in PBI service also. Follow the Below steps:
Open the report in Edit mode. Expand the filters pane. You can see hide/view icon and select it to hide.
Right click on the Page name and you can see Hide Page Select it.
Save Your report and Go to File and then from Embed get your iframe link.
When you paste iframe in your HTML you can see that Filter Pane and Pages below are hidden
Yes, this is possible.
At the time of embedding report, Update the embedConfig settings like below.
Or use Api 'updateSettings` to update the settings after you embedded the report.
// The new settings that you want to apply to the report.
const newSettings = {
panes: {
filters: {
visible: false,
},
pageNavigation: {
visible: false
},
}
};
// Update the settings by passing in the new settings you have configured.
try {
await report.updateSettings(newSettings);
}
catch (error) {
console.log(error);
}
References:
https://learn.microsoft.com/javascript/api/overview/powerbi/configure-report-settings#panes
https://learn.microsoft.com/javascript/api/overview/powerbi/update-settings

What is the purpose of Tooltip section in the Visualization pane?

Link: https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-tooltips?tabs=powerbi-desktop#configure-your-tooltip-report-page
I am experimenting with creating a tooltip page by following the above article for a categorical value column. It is working fine.
However, it continues working even if I remove the categorical column from the Visualization pane's Tooltip section.
So I want to ask - What is the purpose of Tooltip section in the Visualization pane?
The purpose of the field(s) used in that Drag tooltip fields here section is for the default setting of every visual on your source pages (that shows Tooltips properties).
By default on each visual (e.g. a table), if the Tooltips property section is turned on, a default setting is Page = Auto. In that scenario, Power BI uses the fields loaded into the Drag tooltip fields here section for every Tooltip page, to find candidate tooltip pages to show.
For your scenario to be still working, you must have specified the Tooltip / Page on your source visual.
FWIW I prefer to make those specifications on each source visual, to be explicit about what tooltip they should show. To leave Page = Auto invites any future Tooltip page to start appearing as an option, which might confuse the audience.

Oracle Apex IG modify Action Menu

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.

Removing Saved Reports from Interactive Grid in Oracle APEX 5.1

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,...

how to set the rights for placeholder ribbon

beginner question for sitecore about settings the right.
So I have an item is open in the page editor.
The renderings on the page has bunch of icons on the ribbon. One of them called 'select the parent element (element name)'.
In my case when I click on it, I am presented with the placeholder with button 'add here' and the ribbon with some component buttons that a user can use to add the controls.
So, QUESTION:
"how I add access to the button on that ribbon for certain role? Where do I set it up? "
For some certain role that placeholder's ribbon is completely empty, including there is no button 'select the parent element' even though
i know there is a parent element.
thank you very much for help,
HF
Here are the screenshots (no icons on the placeholder ribbon, and the user's rights:
enter image description here
And here is how that looks for the admin:
All the settings for the Page Editor are held in the Core database. So in the Sitecore Desktop, switch to the core database and open up the Content Editor.
Navigate to : /sitecore/content/Applications/WebEdit
This item holds the items that make up the page editor. To edit the ribbon menues, go to:
/sitecore/content/Applications/WebEdit/Ribbons
I don't remember seeing that particular button in the Core database, so this is likely a built-in feature that requires the user to have one of the built-in permissions.
The first thing I would check is that Designing is turned on. Have the user go to the 'View' tab in Page Editor and make sure they have checked the 'Designing' checkbox.
If that doesn't work, it sounds like the user you have does not have design access to the page. I would examine the inherited roles using the User Manager and check if they have the Sitecore Designer role inherited.
It is possible they just need to be provided the correct role in the system so that they can access the buttons.
Have you tried the "Sitecore Client developing role"?
Also, for the blue arrow drop list location, in order for the rendering button to show up in that location, you have to check whether the button in the webedit folder under core database(/sitecore/content/Applications/WebEdit/Default Rendering Buttons). The Type field needs to be "Common" in order to show up in the blue arrow droplist.
Example can be the "Edit related item" (/sitecore/content/Applications/WebEdit/Default Rendering Buttons/Edit related item) shows up in the blue arrow droplist.