You need to sign in to do that
Don't have an account?
Adnan Sunelwala
I have a requirement to invoke an existing VF page (displaying list of records using StandardSetController) from my lightning component. In my JS i have constructed the URL as suggested here (https://community.skuid.com/skuid/topics/passing-selected-id-to-apex-class-using-standard-set-controller?topic-reply-list%5Bsettings%5D%5Bfilter_by%5D=all&topic-reply-list%5Bsettings%5D%5Bpage%5D=1#reply_20531756) but the VF is only displaying the record corresponding to 1st Id passed in the URL.
JS code snippet:
URL generated when it navigates to VF page is
https://sample--devas.lightning.force.com/lightning/webpage/%2Fapex%2FVisualForcePage%3Fids%3Da1D3L0000000OE4UAM%26ids%3Da1D3L0000000DsRUAU
Is there something wrong with this url?
passing set of Ids to standardsetcontroller of visualforce page
I have a requirement to invoke an existing VF page (displaying list of records using StandardSetController) from my lightning component. In my JS i have constructed the URL as suggested here (https://community.skuid.com/skuid/topics/passing-selected-id-to-apex-class-using-standard-set-controller?topic-reply-list%5Bsettings%5D%5Bfilter_by%5D=all&topic-reply-list%5Bsettings%5D%5Bpage%5D=1#reply_20531756) but the VF is only displaying the record corresponding to 1st Id passed in the URL.
JS code snippet:
var el = this.template.querySelector('lightning-datatable'); var selected = el.getSelectedRows(); var arrayOfIds = []; for(let request of selected){ arrayOfIdsIds.push(request.Id); } this[NavigationMixin.GenerateUrl]( { type: 'standard__webPage', attributes: { url: '/apex/VisualForcePage?ids='+ arrayOfIds.join('&ids=') } }).then(generatedUrl => { window.open(generatedUrl); });
URL generated when it navigates to VF page is
https://sample--devas.lightning.force.com/lightning/webpage/%2Fapex%2FVisualForcePage%3Fids%3Da1D3L0000000OE4UAM%26ids%3Da1D3L0000000DsRUAU
Is there something wrong with this url?