Suitescript url.resolveTaskLink and line breaks - netsuite

I am using url.resolveTaskLink to convert a custom record to a sales order. On the custom record there is a text area field where there a line breaks but when I convert it over to a sales order - instead of performing the line breaks I am getting a tag.
I tried using replace like this but it did not work:
var fixpuaddress = puaddress.replace(/<br>/g," ");
How can I have it do the actual carriage return?

Related

NETSUITE: Saved Search for Unapplied Payments - Need Main line filter for unapplied balance

I've created a Saved Search to show Unapplied Payments with an Amount Remaining above 0. This correctly displays everything I need however I want to use the inline editing and I'm getting the warning "Only searches filtered to the main line support editing" because of the "Amount Remaining is above 0". Is there any main line header field I can use to still achieve this? I was trying to find a mainline status but I'm not finding anything other than Deposited which doesn't help--I need unapplied/balance remaining.
Adding the following standard criteria filter should work: Filter = Main Line, and Description = is true.

Mailmerge - Percent in Excel Sheet converts to decmail in word document

I have an excel sheet that contains percentages. When doing the mail merge, it brings in the percentage as a decimal. I am sure this has been asked before which is why I have researched and tried multiple methods without success.
Currently, a field in excel that shows 60%, will display as 0.599999 in the word document:
When I use the following it rounds the field to 1%:
{MERGEFIELD Payout2 \# ##%}
When I follow the steps below:
select your mergefield, which will look something like «Percent»;
press Ctrl-F9 to wrap another field around it, thus { «Percent» };
edit the field so that you get {=«Percent»*100 \# 0.00%};
position the cursor anywhere in this field and press F9 to update it;
run your mailmerge.
It actuallys changes the field to 60.00% in the word document, which is strange. It should just display the mergefield statement. It's almost like it already picks up the first field from the linked excel document even though I have not ran the merge. Also, when I do actually run the merge, on the last row I get a 5852 error and the field that showed 60.00% now shows !Syntax Error, *
I have a code that automatically creates the documents as the excel sheet has multiple rows. If I leave the payout field as is and not try to adjust it to fix the format, I get no errors (Just the decimal that I don't want).
If its not possible to convert this to a percentage that is fine, at least to a whole number. 60% to 60, so I can add the % symbol manually at the end.
Let me know what additional information is necessary.
You're missing something in your method. Select the entire merge field before F9 to add another.
Your merge field should look like:
Note the braces around the original MERGEFIELD Payout (and you don't type those in manually
If you've done that, in order to go back to see the original merge fields after you've done a preview, you need to select toggle field codes twice. After the first, you'll see the result of the last import into the Payout field, and after the second toggle you'll see the original Payout field code.

SharePoint Multi-Line Text (Plain Text) field, how do I get a Carriage Return

I have a Sharepoint list app and I am using a multiline text (plain text) field for a history log. I use a workflow that appends the latest entry to the top of the history entries so I gte a running track record. This is done using stringbuilder...
The wuestion is how the heck do I get a blank line or carriage return to separate the entries? I have tried enevrything , physically putting a blank line in. etc...
In String Build, directly set the value like this:
It will separate the entries with the lines:

Automatic Replace Rule for Word?

I have a Word document which I use for Mailings and it is linked to an Excel file.
Lets say that this Excel file contains a Code (FA139, FA140, etc.) and I would like that the Word Document replaces the code with a string of text every time within the mailing feature. This means, that when I click next, it shall get the code from the Excel File and replace it with the text.
It is not purpose of the question to modify the excel file, but do all necessary changes (if possible) in the Word file.
All you need is a series of fields in Word coded along the lines of:
{IF{MERGEFIELD Code}= "FA139" "Green"}{IF{MERGEFIELD Code}= "FA140" "Blue"}
or:
{IF«Code»= "FA139" "Green"}{IF«Code»= "FA140" "Blue"}
where 'Code' is the field name.
Note: The field brace pairs (i.e. '{ }') for the above example are all created in the document itself, via Ctrl-F9 (Cmd-F9 on a Mac); you can't simply type them or copy & paste them from this message. Nor is it practical to add them via any of the standard Word dialogues. Likewise, the chevrons (i.e. '« »') are part of the actual mergefields - which you can insert from the 'Insert Merge Field' dropdown (i.e. you can't type or copy & paste them from this message, either). The spaces represented in the field constructions are all required.

how can I input multi line string in yii?

I want to make a yii program to add some name to my database at once.
so I need an input field that can get multi line/ multi row. so I can input some name, and then input to databases. how can I do that? how can I make text field (this is default field from yii) to get multi line input string? or do i need to use other than text field?
It is called textarea, after the appropriate HTML tag.
CActiveForm::textArea()
CHtml::textArea()

Resources