In a previously created report is it possible to to edit the column title?
Namely, some of my columns have very long names, and I wouldn't like to make a column too wide, but I would like to break the title in a specific places.
Where and how can I do that?
Thanks!
A.
You could do this by turning the column title into a formula and using the char() function to introduce a carriage return.
E.g.
= "This is the first line" + char(10) + char(13) + "and this is the second line"
Related
I am creating a report in SSRS and trying to fit all the characters in one row for the column but although I have enlarged the size of the column the data does not fit in one line but the SQL query shows in one line. The sample picture is given below. Can anyone help me with this?
sql example: HYDROCARBON CONSTRUCTION CO % L H GUNN PO BOX 53495 HOUSTON TX 77052-3495
The problem is almost certainly that your data contains hidden characters, probably carriage return and/or linefeed.
To replace these values, use the follow expression.
=REPLACE(REPLACE(Fields!myFieldName.Value, Chr(13), ""), Chr(10), "")
If there are more then you can either extend the expression or better still use regex to strip out the unwanted characters.
I would like to replace the text in a google doc. At the moment I have place markers as follows
Invoice ##invoiceNumber##
I replace the invoice number with
body.replaceText('##invoiceNumber##',invoiceNumber);
Which is fine but I can only run the script once as obviously ##invoiceNumber## is no longer in the document. I was thinking I could replace the text after Invoice as this will stay the same, appendParagraph looks like it might to the trick but I can't figure it out. I think something like body.appendParagraph("Invoice") would select the area? Not sure how to append to this after that.
You could try something like this I think:
body.replaceText('InvoiceNumber \\w{1,9} ','InvoiceNumber ' + invoicenumber);
I don't know how big your invoice numbers are but that will except from 1 to 9 word characters preceeded by a space and followed by a space. That pattern might have to be modified depending upon your textual needs.
Word Characters [A-Za-z0-9_]
If your invoice numbers are unique enough perhaps you could just replace them.
Reference
Regular Expression Syntax
Note: the regex pattern is passed as a string rather than a regular expression
I am new in NetSuite Technical, I am customizing the Invoice and Our Customer is using mix language in their Data Arabic & English together in the same Field, So if I use NotoSansArabic it will not Show the English Letters and If I remove the font; The Arabic Letters will not be shown properly.
so, I want to split the String in the Field to Show Each set of Language in the Invoice/report.
I want to split the field where the Character "-" is appeared to set the font for the first Splitted String NotoSanArabic and keep the second set normal
I want to do something like this
<td>
<#assign CustName={ record.entity} ? split( "-")>
</#assign>
CustName[0]
<!--Can I read the Index of the First Splitted String-->
CustName[1]
</td>
I will set the font for the index 0 to arabic and Keep the Index 1 as normal
Like this:
<#assign CustName=record.entity?split("-")>
${CustName[0]}
${CustName[1]}
However, this only works as expected if there's always exactly one - in the name. If that's not the case (and especially if there can be 0 - in it), then do this instead:
${record.entity?keep_before('-')}
${record.entity?keep_after('-')}
Please advise how to highlight sentence (change color to red) in a cell that is bounded by $ sign? For example: some text here that needs to be $hightlighted because$ business rules
From the above sentence font for "highlighted because" must be changed to red and $ sign must be removed.
Thank you
The easiest way to do this would be to use HTML formatting in the text box. Highlight the Expression and select the Placeholder Properties.
Then set the Markup Type to HTML.
Add some logic to replace the dollar signs with HTML tags. This only works if there's one highlight per sentence, though - if there can be multiple ones, you'd need some VB for more advanced logic.
=LEFT(Parameters!TEXT.Value, InStr(Parameters!TEXT.Value, "$") - 1) &
"<font color = 'red'>" &
MID(Parameters!TEXT.Value, InStr(Parameters!TEXT.Value, "$") + 1,
InStrRev(Parameters!TEXT.Value, "$") - InStr(Parameters!TEXT.Value, "$") - 1 ) &
"</font>" &
MID(Parameters!TEXT.Value, InStrRev(Parameters!TEXT.Value, "$") + 1, LEN(Parameters!TEXT.Value) )
And the result is:
I used a parameter instead of a field, so you'd need to change the parameters to your field name.
This question is divided into two parts. I will start with the first and obvious to the title:
On the frontend I save this value:
Hello you are: HERE The page you can visite is www.test.se
In the db i am trying to write a script that will change the value between ":" and "The"
Although the value that is stored is a bit diffirent in the db...there it looks like this:
"Hello you are: <br/> <br/> <br/> HERE <br/><br/><br/><br/>The page
you can visite is" www.test.se
I want to change "HERE" to "XXXX"
My attempt so far:
I found these two soloutions that are simillar to my question
Soloution One
Soloution Two
Sadly i could not get this to work...I attempted this:
select SUBSTRING(
body,
CHARINDEX(':', body) +1 ,
CHARINDEX('The',body))
from #temp
I read up on substring and i am aware of that the last paramater is how long from the start position it should go but i want it to stopp at "The" and dont really know how to.
Second part of this question:
I only want to change the value of "HERE" how can i do that and avoid deleting the br taggs?
EDIT:
The value that i am trying to change is not always the same so a simple update statment will not work, thats why i need to find the value that i want to change
Here you go:
SELECT REPLACE(body, SUBSTRING(body, CHARINDEX(':', body) + 1, CHARINDEX('The page you can visite is', body) - (CHARINDEX(':', body) + 1)) ,' <br/> <br/> <br/> XXXX <br/><br/><br/><br/> ')
FROM #temp
Note that I used complete fragment "The page you can visit is" with the CHARINDEX to reduce the possibility of that same subs-string being present in the "HERE" section.
If your question can be answered using a regular expression replacing, which I think it can, use https://github.com/mysqludf/lib_mysqludf_preg it will provide you with functions such as PREG_REPLACE to replace content matching a regular expression with other data