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
Related
Whan I created a column in an interactive report that display a checkbox.
The header of that column is also a HTML code
But when I go in the "interative report "Action" menu and choose the column I what to display, the escaped HTML code is displayed.
There's a way to display another string instead of the HTML code ?
If I add a Measure to a Text Box that simply calls the TODAY() function, the date becomes a hyperlink on the Report Tab.
How do I disable this hyperlink? I simply want to show today's date.
The steps that I used to add a Measure to the text box are below.
In the Data Page, create a Measure named Report Date = TODAY().
On the Visuals Page, click Text box in the Insert group of the Home tab of the ribbon bar.
Click + Value
In the text box labeled How would you calculate this value, type Report Date.
Click Save.
The text box now shows todays date. However, it is also a hyperlink with nowhere to go.
The only alternative is a Card or a Table.
I was able to produce a nice business card by using a calculated column like:
CardText = [clientdescription] & UNICHAR(10) & [ServiceContactName] & UNICHAR(10) & [ServiceAddress1] & UNICHAR(10) & [ServiceCity] & ", " & [ServiceState] & " " & [ServiceZipCode]
and set the Text box to CardText.
The UNICHAR(10) function embeds a line break in the CardText string.
This is nice because you can left-align the text (which you cannot do with a Card Visual).
This also updates when aligned with a Slicer.
However, the Text box shows the CardText as a hyperlink. There is no hyperlink address, and therefore, nothing to remove.
A text box that simply allows us to set text, alignment and all font properties (color, weight, font, size, italics, underline, bold, etc.) would be a godsend.
When the report is published, there will be no hyperlink behaviour on the date in the text box. The hyperlink behaviour is only present in Power BI desktop. Clicking on the hyperlink will open up the settings for the value, so you can edit them.
And you can totally control the font, size, color, etc of that text. Just select the date as it shows in the text box and use the formatting tools. Like with Constantia font in 16 pt and pink.
If you don't want the hyperlink behaviour, consider using the measure in the Title of the text box instead of the body. You can also add the measure to the title of any other visual. To do that, you first need a measure that returns text, since the Title of a visual cannot show dates.
ReportDateText = format(TODAY(),"dddd, dd MMM YYYY")
Now you can edit the title property of a visual.
Turn the title on
Click the formula button to open the dialog
Select the measure with the text version of the date
The result shows in the visual's title.
I understand that the default behavior of LOVs is the following:
SELECT business_desc as display_val,
business_id as return_val
FROM businesses
This attached to a select type page item P1_BUSINESS will display a list and when a list row is selected, then assign the business_id value to the page item P1_BUSINESS.
Is there a way to build a list of values to set the value of more than one page item that are not displayed? Using the below SQL:
SELECT business_desc as display_val,
business_id as return_val,
form_type,
individual_flag
FROM businesses
Where now when a user selects something from P1_BUSINESS it sets the values of that row/record as follows:
P1_BUSINESS = business_id (like it does by default)
P1_FORM_TYPE = form_type (P1_FORM_TYPE is a hidden page item)
P1_IND_FLAG = individual_flag (P1_IND_FLAG is a hidden page item)
I know I can do this with an onchange dynamic action, but just curious if can do inside the LOV or select page item (P1_BUSINESS) declaratively.
In Shared Components > List Of Values, there is an attribute "Additional Display Columns". The help text on that screen says it all Additional display columns can be defined for item types that support multiple display columns, for example the Popup LOV. For item types that do not support multiple columns, these will be ignored. If adding additional display columns ensure that the return column is included in the column list. The return column can be set to Visible No and Searchable No if you do not want it displayed to users.
Example using emp/dept sample data:
Create a list of values on table emp with return empno and display ename. Save.
Edit the LOV and click Additional Display Columns > Select Columns. Select job as additional column.
In the IG, set Visible and Searchable to "No" and Apply Changes.
On the page, create 2 page items: P1_EMPNO (type popup LOV) and P1_JOB (type Text Field)
For P1_EMPNO, pick the LOV created above as shared component > List Of Values and add JOB:P2_JOB under Settings > Additional Output. JOB is the additional column name/alias and P2_JOB is the item it should map to.
Now when you run the page, observe that P1_JOB is populated when you select a value for P1_EMPNO
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.
I have an interactive report apex5.0 which contains several fields.
Would like to disable 'edit' pencil option link where payment_date & code is populated.
Link is to be enabled only where payment_date & code is null.
Disable the edit button for a particular row, based on a specific value in its column.
For ex. If a grid has 3 columns A,B,C and if B contains "Apple", and '01-jan-17', the edit button for that row must be disabled.
What are the different options to do this kind of functionality in apex5.0, enable & disable "EDIT" based on certain criteria?
You could also add a case statement to your report's query.
E.g.
(Case when [some logic] then
--display link
'<img src="#IMAGE_PREFIX#menu/pencil16x16.gif" alt="" />'
End) as col_link
The above example will only display a link if the case statement is met. The link will point to page 47 and we will pass the query's Id column to page 47's item P47_ID
In order to treat this new column as a link you must change the "display as text" property to "standard report column"; you can achieve this when editing the report attributes.
One way is to use JavaScript on page load:
Let's asume that first column is with ID and used to show edit link. Second column is your product name like Apple. Just disable click on this element(cell with ID) or change link, img etc.
var table = $(".a-IRR-table tbody");
table.find('tr').each(function (i, el) {
var $tds = $(this).find('td'),
productId = $tds.eq(0).text(), //first column with ID and edit link
product = $tds.eq(1).text(), //second column
Quantity = $tds.eq(2).text(); //third column
if (product == 'Apple'){
$tds.eq(0).click(false);
$tds.eq(0).replaceWith('');
}
});
Thanks to this answer for JavaScript: Loop Through Each HTML Table Column and Get the Data using jQuery
EDIT:
To hide value based on your Query use CASE. For example:
SELECT
CASE
WHEN B = 'Apple' THEN
'<img src="#IMAGE_PREFIX#edit.gif" alt="">'
ELSE ''
END edit_link,
A,B,C
FROM TABLE_NAME
Click on column edit_link and make it of type Link
Choose your target to edit page
For link text select #EDIT_LINK#
Escape special characters must be set to NO
On Report Atributes set **Link Column** to **Exclude Link Column** (you have custom link column so don't display original link)
*Check your online workspace, page 3*