2

i am using following code snippet for createRecord. Question is it works great but as Popup div-layer modal window and I do not want to have Popup window.

Question Is it possible to override navigation behavior not to use popup but navigate to and open page similar to event 'e.force:navigateToRelatedList'

createRecord : function (component) {
    var createRecordEvent = $A.get("e.force:createRecord");
    createRecordEvent.setParams({
        "entityApiName": "Event__c"
    });
    createRecordEvent.fire();
} 
  • One way to handle this scenario is to adding a ui:spinner to your ui component and display message like "in process". – naruto-sfdc Feb 26 '17 at 3:33
  • question is about not displaying as popup window. I need to display it as Page. – dev.sforce Feb 26 '17 at 4:07
  • Sorry for the late response. Did you figure this out? – naruto-sfdc Feb 27 '17 at 18:39
  • It looks like it cannot be done. Since listviews are predefined queries, there is no way to add filter. Let me know if you have more info. – dev.sforce Feb 28 '17 at 2:31
  • I thought you created a component and implementing force:lightningQuickAction or force:lightningQuickActionWithoutHeader interface. and i was going to say to remove these and it should work fine. If that was a wrong assumption then it is fine. – naruto-sfdc Feb 28 '17 at 2:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.