cancel
Showing results for 
Search instead for 
Did you mean: 

URL Encoding in fiori master detail application

former_member187272
Participant
0 Kudos

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

View Entire Topic
saurabh_vakil
Active Contributor

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.

RubenButurca
Explorer
0 Kudos

This is still not working for me:
this.getView().byId("textfieldid").getValue().encodeURIComponent();
is giving me
Uncaught TypeError: this.getView(...).byId(...).getValue(...).encodeURIComponent is not a function

RubenButurca
Explorer
0 Kudos

(8 years later 😂)