I want to change the Table of Contents' name into my own language, as now it appears as Contents.
So far, I did change the caption for figures as follows:
\renewcommand{\figurename}{Figura}
But this command is not working for Contents, \renewcommand{\contentsname}{Taula de continguts}
Related
im trying to minimize the words appear in my pbi table.
for eg: i have one of my columns shows
name
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
and i want to format this column to look like this
name
aaa...
i have tried reduce the size of this column but instead it shows
name
aaaa
aaaa
aaaa
once my mouse move on it it will appear the whole content
how could i format this?
Add this calculated column to your table:
short name = RIGHT('Table'[name], 3) & "..."
The result will look like this:
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 want to display a link in a data grid, only when a certain condition is met for that record. I also want that link to be dynamic, based on the data in the data grid. Lastly, the data grid is linked to a header record displayed above the data grid region.
Create a hidden field that will be used for the Link Text. Column Name = HIDDEN_LINK_TEXT. Type = Hidden. This field will have a source type of SQL Expression. Q in this example query represents the data grid's source select statement. Parenthesis are required in the SQL Expression text box for the hidden field.
(SELECT '[Static link text]' FROM TABLE B WHERE B.RECORD_ID =
Q.RECORD_ID AND B.FIELD_1 = Q.FIELD_1 AND B.FIELD_2 = Q.FIELD_2)
Create a displayed field for the link. Column Name = DISPLAYED_LINK Type = Link.
Link Text should reference the hidden field we created in step 1. Link Text = &"HIDDEN_LINK_TEXT". Include the ampersand and double quotes.
Set the link target to what your target page. Include any variables or "Set Items" which you want to set when linking to the page.
I have a date field and a interactive grid. I am trying to generate the Interactive grid based on the value inputted in the date field.
I am trying to write the query as below :
select pap.effective_start_date , pap.effective_end_date
from per_all_people_f pap
where :SELECT_DATE between pap.effective_start_date and
pap.effective_end_date
Here, SELECT_DATE is the name of the Date field (datatype Date picker). I am writing a dynamic action on Change of Date field, and refreshing the interactive grid region.
But when I change the value in Date field, it doesn't return any rows.
I have done a similar change where my interactive grid was based on a dropdown. There I had to set the "page action on selection" to Submit, and it worked. But here, since it is a Date field, the "Page Action on selection" property doesn't appear on the page .
Can somebody please suggest, how can I achieve this.
You need to explicitly convert your bind variables, which are treated as strings, to dates.
to_date(:SELECT_DATE)
The format mask will come from the application properties, or you can be explicit with that, too.
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*