on 04-15-2019 12:05 PM
Hello,
I created CDS Views and Fiori element app.
Everything is working fine, except one thing.
I have a field with a url and I put the annotation
#WITH_URL
I can see the field as a url and if I click on it is going to my address but in the same page.
How to do that it is opening a new tab in my Browser?
As a precision, the format of my URL is "http;//www.mywebsite.com?id=abc".
Is there something to put before ?
Thanks for any help,
Luc
Hello,
I solved my issue by adding a window.open
CONCAT('javascript:window.open( "https://wwwdev2.xxx.fr/FRBFiche.action?ficheId=', CONCAT(zfrb_fiche.numfrb, '")')) as custoUrl,
I though #WITH_URL will do it alone !
Fiori Elements and CDS Views are full of surprise 🙂
Luc
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aziz,
Thanks for your answer. Yes I followed this documentation.
But perhaps the building of my url is not good?
In the CDS_I_View, I put
concat('https://wwwdev2.xxx.fr/FRBFiche.action?ficheId=', zfrb_fiche.idsite) as custoUrl,
And in the CDS_C_View, I wrote
@UI.lineItem: {position: 20, importance: #HIGH, label: 'N° FRB', type: #WITH_URL, url: 'custoUrl' } //Table column 2
ZFRB_I_EMBARQT.numfrb,
ZFRB_I_EMBARQT.custoUrl,
Should I add something to my concat in the I_View ?
Thanks,
Luc
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.