on ‎2016 Mar 03 4:58 AM
Hi experts,
I am developing a fiori master detail application,i have to pass my customer name in url as parameter,my customer name include '/' character(Eg:M/s Robin James) .So when i pass this through my url it is not working since it contain '/',My plan is encode and pass url.How can i do it with my fiori application or can you suggest any other methods to resolve this problem
Thanks
Request clarification before answering.
You can also just replace the forward slash '/' with the value %2F in the customer name and then pass it on to the URL. In case of other special characters except ~!$*()_'/\ you can use the encodeURIComponent() function.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
(8 years later 😂)
Hi,
You can use the JavaScript function encodeURIComponent() and pass the customer as parameter to this function. The result will be encoded value which you can then pass as a parameter in your URL.
For e.g.,
var encodedVal = encodeURIComponent("Your/Customer/Name"); //this will result in an encoded value like Your%2FCustomer%2FName
Use the encodedVal variable to pass the value in your URL as parameter.
Regards,
Saurabh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The example shown here converts the forward slash in the URL to its encoded value %2F
Regards,
Saurabh
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.