What?
This is an article to document how I got a client's eBay to notify the seller every time a buyer bought a fixed price item. This uses the Trading API even though I'm aiming for the Platform Notifications ...
... to yyyy-MM-dd
v_RegexdDate = v_TestDate.replaceAll("(\\d)/(\\d)/(\\d)","$3-$2-$1", false);
info v_RegexdDate;
info v_RegexdDate.toDate();
info v_RegexdDate.toString("E, d MMM yyyy");
info "*********************";
//
// ...
... = r_Data.replaceAll("(\"[^\",]+)[,]([^\"]+\")","$1|mySpecialComma|$2",false);
The slightly longer answer to describe this might be better explained if you consider the following snippet of code:
// ...
... = l_Data.toString();
info v_Data;
// yields
// ,
Some formatting and a lot of replaceAll:
l_Keys = List();
l_Keys = v_Data.toMap().keys();
v_DataHtml = v_Data.replaceAll("},{", true);
v_DataHtml ...
What?
So this is an article to document the methods I use to get an image uploaded in a form to display in a report or on another page.
Why?
There might be different articles out there and discussion ...
...
So going through the forums you may find the following example:
string padWithLeadingZeros(int finalStringLength, int startingNumber)
{
return leftpad(toString(input.startingNumber), input.finalStringLength).replaceAll(" ...
What?
An article on setting a date field to either the first Monday of the next month or to the last Tuesday of the current/next month. What I mean by the last Tuesday is if the last Tuesday of the ...
... = v_MyString.replaceAll("[^0-9]","");
// yields 123
The following is used in searches to escape special characters with a backslash:
v_MyString = "Joe's \"Amazing\" Skill & Sidekick (1)";
v_FormattedString ...
... regular expression (match all characters not from 0 to 9) in a Zoho Deluge script:
v_PaymentTermsNumber = v_PaymentTerms.replaceAll("[^0-9]","");
// yields 30
And if working with money/currencies, ...
What?
This code snippet took me a while to do and the documentation is flaky so I thought I'd make a note here just in case I need to refer to it again.
Why?
I want to modify a picklist and fill ...
We use cookies to improve your experience on our website. By browsing this website, you agree to our use of cookies. Read more about our Privacy Policy.