I have implemented the navigation pane feature in Power BI report as shown below. I like to expand or collapse this navigation pane to utilize page for visuals.
Is there any visuals/tricks to do this?
You can save your report/page layout as a bookmark (Menue Bar > View > Bookmarks Pane) with the navigation pane visible (NavigationVisibleBookmark).
You can trigger visuals visible/invisible with the eye symbol in the selection pane (Menue Bar > Views > Selection Pane`).
Then save another bookmark with the navigation pane invisible (NavigationInvisibleBookmark).
Now you can trigger the two different bookmarks with a button for example. Add a blank button and go to the Properties > Action and choose Type = Bookmark and Bookmark = NavigationVisibleBookmark.
Related
I want to disable select on my IG when a page item P1_CONDITION meets certain criteria. I hid row action and row selector when condition is met, but if I click on any of the rows, they are still getting selected - custom delete button shows up in the toolbar. How can I disable select conditionally?
I know I can add a condition to the DA that takes care of showing or hiding the custom button but I wanted to disable select altogether. Is that possible?
You can use Javascript snippet as below to disable your grid:
var grid = apex.region("emp").call("getViews").grid;
grid.view$.grid("option", "editable", false);
grid.model.setOption("editable", false);
OR
You can also disable the column you want to disable using Execute Javascript Code action or using disable action of dynamic actions as following:
If you do not want the user to click/select the row,
Add the below code in the Execute When Page Loads section of the page.
if ($v("YOUR_ITEM") == 'YOUR_VALUE') {
$("#emp .a-GV-table tbody .a-GV-row").css('pointer-events','none');
}
Note: emp is the Static ID of the Interactive Grid.
Switch off the Select First Row property of the Interactive Grid.
I have 4 buttons that indicate different ranges and a slicer in my report. I want to change the slicer value according to the button I click.
Is it possible to change the value of the slicer on clicking the button?
You can do this in Power BI by applying bookmarks to slicer and add those bookmarks in action property of buttons. In Power BI Embed you can apply buttonClick event to the button and set the state of slicer but that event will be triggered for all the buttons in the report. Instead of having 4 buttons you can use only one button and set slicer state according to the number of times the button is clicked. To change the state of a slicer on clicking a button in an Embed report, Please find the below code snippet:
Set the Filter config:
const filter = {
$schema: "http://powerbi.com/product/schema#advanced",
target: {
table: "Table_Name",
column: "Column_Name"
},
filterType: models.FilterType.Advanced,
logicalOperator: "And",
conditions: [
// Add condition here as per your requirement
]
};
Get the current active page:
const pages = await report.getPages();
// Retrieve the active page.
let page = pages.filter(function (page) {
return page.isActive;
})[0];
Get all the visuals:
const visuals = await page.getVisuals();
Find the slicer:
let slicer = visuals.filter(function (visual) {
return visual.type === "slicer" && visual.name === "Visual_Name";
})[0];
Add the button click event and set the state of slicer:
report.on("buttonClicked", function (event) {
slicer.setSlicerState({ filters: [filter] });
});
Pleaser find references here:
https://learn.microsoft.com/javascript/api/overview/powerbi/handle-events#buttonclicked
https://learn.microsoft.com/javascript/api/overview/powerbi/control-report-slicers#set-slicer-state
Make 4 copy of slicer and select different value in each slicer. Now select the Bookmark and selection pane from ribbon and hide all 3 slicer and keep one visible. And then select the property of the button and in Action , choose Bookmark and name of bookmark created above.
Same thing you need to do for other 3 buttons. Each time selecting a new slicer.
I have an APEX page where it contains multiple regions. Each region has its own drop down list (Select list) item and a bar chart. My problem is from any particular region when I select a value from the drop down list, the whole page is refreshed as I have the option Submit page set for Page Action on Selection property.
How do I perform partial refresh so that during the selection from drop down list only the bar chart for that region should be refresh and not the entire page?
Go on your select list item and change the Page Action on Selection property from Submit Page to None. Then create a dynamic action on page with the following options:
Event=Change
Selected Type=Items
Item=Your select list item
Action=Refresh
Selection Type=Region
Region=Your bar chart
Same as answer above with one trick to make it work. The value in your select list has not been submitted so will be null and not work.
Add another Dynamic action that runs before the refresh one of type PLSQL. set the code to null; then add your select list to the "items to submit".
Should work now :)
Is there a way in any language written for OSX (Applescript, C++, etc.) where
I can access the function (adjust column width) in the context menu, when you right
click on the two lines at the bottom of the Scrollbar in Finders Column
View (AXMenu->AXMenuItem)?
Same happens if you double click on the two lines.
Because what I want to do is somehow get a shortcut on this function for "super-fast-
finder-workflows".
From the Finder Applescript Library:
column view options: the column view options
properties
text size (integer) : the size of the text displayed in the column view
shows icon (boolean) : displays an icon next to the label in column view
shows icon preview (boolean) : displays a preview of the item in column view
shows preview column (boolean) : displays the preview column in column view
discloses preview pane (boolean) : discloses the preview pane of the preview column in column view
It doesn't look like Applescript contains a way to access the settings you are looking for
How can I determine a selected or clicked sub item of a report view Clistctrl?
CListCtrl::SubItemHitTest