Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Tweeted twitter.com/StackSalesforce/status/956344061044150272
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
    Bumped by Community user
4 added 26 characters in body
source | link

Please note that this is about Lightning Experience (with actions overridden), not Classic. So, getParameters() doesn't work here. Here is the output if someone needs to see it's output.

{id=XXXXX, isdtp=p1, nonce=XXXXX, sfdc.override=1, sfdcIFrameHost=web, sfdcIFrameOrigin=https://cs31.lightning.force.com}

I'm using Visualforce page in Lightning experience. The page is used to override edit/view pages.

In that page, there is button to open edit page which is binded to following function.

public PageReference customEdit() {

    PageReference viewPage = new ApexPages.StandardController(customer).edit();
    viewPage.setRedirect(true); 

    return viewPage;
}

When that button is clicked. URL is getting changed to .../edit

But how can i determine whether the page is in edit or view mode in the apex controller ?

View page URL -

https://cs31.lightning.force.com/one/one.app#/sObject/XXXXX/view

Edit page URL -

https://cs31.lightning.force.com/one/one.app#/sObject/XXXXX/edit

Please note that this is about Lightning Experience, not Classic. So, getParameters() doesn't work here. Here is the output if someone needs to see it's output.

{id=XXXXX, isdtp=p1, nonce=XXXXX, sfdc.override=1, sfdcIFrameHost=web, sfdcIFrameOrigin=https://cs31.lightning.force.com}

I'm using Visualforce page in Lightning experience. The page is used to override edit/view pages.

In that page, there is button to open edit page which is binded to following function.

public PageReference customEdit() {

    PageReference viewPage = new ApexPages.StandardController(customer).edit();
    viewPage.setRedirect(true); 

    return viewPage;
}

When that button is clicked. URL is getting changed to .../edit

But how can i determine whether the page is in edit or view mode in the apex controller ?

View page URL -

https://cs31.lightning.force.com/one/one.app#/sObject/XXXXX/view

Edit page URL -

https://cs31.lightning.force.com/one/one.app#/sObject/XXXXX/edit

Please note that this is about Lightning Experience (with actions overridden), not Classic. So, getParameters() doesn't work here. Here is the output if someone needs to see it's output.

{id=XXXXX, isdtp=p1, nonce=XXXXX, sfdc.override=1, sfdcIFrameHost=web, sfdcIFrameOrigin=https://cs31.lightning.force.com}

I'm using Visualforce page in Lightning experience. The page is used to override edit/view pages.

In that page, there is button to open edit page which is binded to following function.

public PageReference customEdit() {

    PageReference viewPage = new ApexPages.StandardController(customer).edit();
    viewPage.setRedirect(true); 

    return viewPage;
}

When that button is clicked. URL is getting changed to .../edit

But how can i determine whether the page is in edit or view mode in the apex controller ?

View page URL -

https://cs31.lightning.force.com/one/one.app#/sObject/XXXXX/view

Edit page URL -

https://cs31.lightning.force.com/one/one.app#/sObject/XXXXX/edit

3 added 54 characters in body
source | link

Please note that this is about Lightning Experience, not Classic. So, getParameters() doesn't work here. Here is the output if someone needs to see it's output.

{id=XXXXX, isdtp=p1, nonce=XXXXX, sfdc.override=1, sfdcIFrameHost=web, sfdcIFrameOrigin=https://cs31.lightning.force.com}

I'm using Visualforce page in Lightning experience. The page is used to override edit/view pages.

In that page, there is button to open edit page which is binded to following function.

public PageReference customEdit() {

    PageReference viewPage = new ApexPages.StandardController(customer).edit();
    viewPage.setRedirect(true); 

    return viewPage;
}

When that button is clicked. URL is getting changed to .../edit

But how can i determine whether the page is in edit or view mode in the apex controller ?

View page URL -

https://cs31.lightning.force.com/one/one.app#/sObject/XXXXX/view

Edit page URL -

https://cs31.lightning.force.com/one/one.app#/sObject/XXXXX/edit

Please note that this is about Lightning Experience, not Classic. So, getParameters() doesn't work here. Here is the output if someone needs to see it's output.

{id=XXXXX, isdtp=p1, nonce=XXXXX, sfdc.override=1, sfdcIFrameHost=web, sfdcIFrameOrigin=https://cs31.lightning.force.com}

I'm using Visualforce page in Lightning experience. In that, there is button to open edit page which is binded to following function.

public PageReference customEdit() {

    PageReference viewPage = new ApexPages.StandardController(customer).edit();
    viewPage.setRedirect(true); 

    return viewPage;
}

When that button is clicked. URL is getting changed to .../edit

But how can i determine whether the page is in edit or view mode in the controller ?

View page URL -

https://cs31.lightning.force.com/one/one.app#/sObject/XXXXX/view

Edit page URL -

https://cs31.lightning.force.com/one/one.app#/sObject/XXXXX/edit

Please note that this is about Lightning Experience, not Classic. So, getParameters() doesn't work here. Here is the output if someone needs to see it's output.

{id=XXXXX, isdtp=p1, nonce=XXXXX, sfdc.override=1, sfdcIFrameHost=web, sfdcIFrameOrigin=https://cs31.lightning.force.com}

I'm using Visualforce page in Lightning experience. The page is used to override edit/view pages.

In that page, there is button to open edit page which is binded to following function.

public PageReference customEdit() {

    PageReference viewPage = new ApexPages.StandardController(customer).edit();
    viewPage.setRedirect(true); 

    return viewPage;
}

When that button is clicked. URL is getting changed to .../edit

But how can i determine whether the page is in edit or view mode in the apex controller ?

View page URL -

https://cs31.lightning.force.com/one/one.app#/sObject/XXXXX/view

Edit page URL -

https://cs31.lightning.force.com/one/one.app#/sObject/XXXXX/edit

2 this is not a duplicate issue
source | link

Please note that this is about Lightning Experience, not Classic. So, getParameters() doesn't work here. Here is the output if someone needs to see it's output.

{id=XXXXX, isdtp=p1, nonce=XXXXX, sfdc.override=1, sfdcIFrameHost=web, sfdcIFrameOrigin=https://cs31.lightning.force.com}

I'm using Visualforce page in Lightning experience. In that, there is button to open edit page which is binded to following function.

public PageReference customEdit() {

    PageReference viewPage = new ApexPages.StandardController(customer).edit();
    viewPage.setRedirect(true); 

    return viewPage;
}

When that button is clicked. URL is getting changed to .../edit

But how can i determine whether the page is in edit or view mode in the controller ?

View page URL -

https://cs31.lightning.force.com/one/one.app#/sObject/XXXXX/view

Edit page URL -

https://cs31.lightning.force.com/one/one.app#/sObject/XXXXX/edit

I'm using Visualforce page in Lightning experience. In that, there is button to open edit page which is binded to following function.

public PageReference customEdit() {

    PageReference viewPage = new ApexPages.StandardController(customer).edit();
    viewPage.setRedirect(true); 

    return viewPage;
}

When that button is clicked. URL is getting changed to .../edit

But how can i determine whether the page is in edit or view mode in the controller ?

View page URL -

https://cs31.lightning.force.com/one/one.app#/sObject/XXXXX/view

Edit page URL -

https://cs31.lightning.force.com/one/one.app#/sObject/XXXXX/edit

Please note that this is about Lightning Experience, not Classic. So, getParameters() doesn't work here. Here is the output if someone needs to see it's output.

{id=XXXXX, isdtp=p1, nonce=XXXXX, sfdc.override=1, sfdcIFrameHost=web, sfdcIFrameOrigin=https://cs31.lightning.force.com}

I'm using Visualforce page in Lightning experience. In that, there is button to open edit page which is binded to following function.

public PageReference customEdit() {

    PageReference viewPage = new ApexPages.StandardController(customer).edit();
    viewPage.setRedirect(true); 

    return viewPage;
}

When that button is clicked. URL is getting changed to .../edit

But how can i determine whether the page is in edit or view mode in the controller ?

View page URL -

https://cs31.lightning.force.com/one/one.app#/sObject/XXXXX/view

Edit page URL -

https://cs31.lightning.force.com/one/one.app#/sObject/XXXXX/edit

1
source | link