Quantcast
Channel: Active questions tagged lightning-experience - Salesforce Stack Exchange
Viewing all articles
Browse latest Browse all 3026

How to pass parameters from one lwc page to next lwc page on Salesforce1 mobile app?

$
0
0

I am trying to get lightning navigation service state parameters on next page but it is not working that way on Salesforce1 mobile app. Although it is working fine on chrome browser as web app.

@wire(CurrentPageReference) getPageRef(pageRef){ this.recordId = pageRef.state.c__rid; }

Getting following error.

Error: [LWC error]: Invalid event type "WireContextEvent" dispatched in 
element <c-lineitemdetail-header-component>. Event name must 1) Start with a 
lowercase letter 2) Contain only lowercase letters, numbers, and underscores
<c-lineitemdetail-header-component>
at Object.logError (aura_proddebug.js:4268)
at ConstructionEstimation.dispatchEvent (aura_proddebug.js:7622)
at ConstructionEstimation.wrappedMethod [as dispatchEvent] (aura_proddebug.js:12985)
at WireEventTarget.dispatchEvent (aura_proddebug.js:9501)
at d.get (contextService.js:2)
at eval (contextService.js:2)
at E (contextService.js:2)
at Object.t.getContextValue (contextService.js:2)
at c.getCurrentPageReference (pageService.js:2)
at eval (navigation.js:2)

Viewing all articles
Browse latest Browse all 3026

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>