newUrl = window.location.href + ‘?/toggle=enprimeur’;window.history.pushState({ path: newUrl }, ”, newUrl); This code replaces the last segment of the current URL with the string ‘retail’ and updates the browser’s history state with the new URL. Thus it will not cause any issues in the current working. Otherwise we will get “page not found” error after adding… Continue reading How to add a new parameter to the URL without affecting the current working
Tag: url
Java Script – encodeURI() & decodeURI()
encodeURI():This function encodes a URI by replacing each instance of certain characters by one, two, three, or four escape sequences representing the UTF-8 encoding of the character. It returns a new string representing the provided string encoded as a URI. This method does not encode characters like: , / ? : @ & = + $ * #Use the encodeURIComponent() method instead. decodeURI():This function… Continue reading Java Script – encodeURI() & decodeURI()
How to find Custom Record Link
Finding the Record link of a Custom Record with Id customrecord_vbn_vendor_billing_notes
External url for the script record created
To get the script url to use in the code. In script record check the checkbox available without login and then save. Then the external available link will be available there. To enable or disable web store triggers for a user event script deployment: Open the script deployment record, for a user event script, for… Continue reading External url for the script record created
Adding invoice download link in suitelet
Requirement We need to add a download link for each invoices or credit memo displayed in the suitlet page. When clicked on the invoice download link, user should be able to navigate to the page from which invoice or credit memo can be downloaded or printed. Solution The download url can be provided as the… Continue reading Adding invoice download link in suitelet