Redirect to a record view  in php-logichook

Hi All,

                How can we redirect to the record view of another record(sidecar) using the after save logichook(php)

Regards André Lopes Francesca Shiekh hats

Sidhu

Parents
  • Hi All,

                    I have tried this in my after save logichook.

     $script = navigateToSidecar(
                    buildSidecarRoute("Calls","0ef6a492-72ae-11e7-819d-fa163e8c8e90", translateToSidecarAction("edit"))
                );
    _ppl("<script>$script</script>");
    echo "<script>$script</script>"

    But i am getting an error.

    What can be the solution for this

    Tevfik Tümer 

    i am getting this when i log  in the above code but i am unable to redirect in after save logichook.

     <script>parent.SUGAR.App.router.navigate('Calls/0ef6a492-72ae-11e7-819d-fa163e8c8e90/edit', {trigger: true});</script>

    Regards

    Sidhu

Reply
  • Hi All,

                    I have tried this in my after save logichook.

     $script = navigateToSidecar(
                    buildSidecarRoute("Calls","0ef6a492-72ae-11e7-819d-fa163e8c8e90", translateToSidecarAction("edit"))
                );
    _ppl("<script>$script</script>");
    echo "<script>$script</script>"

    But i am getting an error.

    What can be the solution for this

    Tevfik Tümer 

    i am getting this when i log  in the above code but i am unable to redirect in after save logichook.

     <script>parent.SUGAR.App.router.navigate('Calls/0ef6a492-72ae-11e7-819d-fa163e8c8e90/edit', {trigger: true});</script>

    Regards

    Sidhu

Children