Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can we change the return screen after creating an entity?
#4
Of course! That would be wonderful.

The thing is that this is more complex than it seems, which is why it isn't already there. The limitation we have with GVs is that they only consider one module, but this functionality needs to consider two. For example, we could want to return to the Account when creating an Invoice, but not when creating a Quote, or not return to the account when creating an invoice but return to the contact when creating an invoice. In short, we need to be able to decide where to go depending on what we are creating and where we came from. This cannot be done with a GV.

We could create a GV for an all or nothing setting. We activate the GV so that we always stay on the Invoice, no matter where we are creating from. That would be better than having to code it as we do now, but, with coding, it is very easy to add an "if" condition to apply the logic only on certain "from" modules.

I think I would do something like this:

- create a global variable called: Application_Return_toCreatedFrom_Module: boolean 0 | 1 default 1, which is what the application does now
- that has to be done in DefineGlobalVariables changeset and in the language files en_us.gvdefs.php at least
- change module/Vtiger/Save.php by adding the call to the globalvariable and modifying the input $_REQUEST accordingly

start asking...
Joe
TSolucio
Reply


Messages In This Thread
RE: Can we change the return screen after creating an entity? - joebordes - 07-26-2017, 08:32 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)