Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ExactOnline for coreBOS
#32
(12-21-2015, 10:55 AM)Guido1982 Wrote: So basically every record in the system has to have an assigned user? That means I have to create this field, always for every custom module?

Yes. There are 4 fields that should almost always be created on all modules although they are really in the vtiger_crmentity table. You can see these four in the default manifest.xml file:

https://github.com/tsolucio/corebos/blob/master/vtlib/ModuleDir/manifest.xml#L65

assigned user, created time, modified time and description


(12-21-2015, 10:55 AM)Guido1982 Wrote: I see you use REQUEST in your example. Since this is a collection of all the superglobals, I guess this is a post variable?

It is a POST variable when creating records using the application. If you are creating them by code, you have to "artificially" fill in the variable so the save process thinks it is being called from the web interface.


(12-21-2015, 10:55 AM)Guido1982 Wrote: I see you have made a custom Save.php file here (mine, from the Payslip tutorial just contains an inclusion of the stock vTiger Save.php file). If I understand correctly, the 'focus' object is a temporary representation of the entity you are saving right?

Note that the code I linked is just an example, your code will be different and has nothing to do with the Save.php file. The Save.php file is called ONLY from the application web interface, if you are creating records with your own code it will NOT get called.
$focus is the object you are saving.



(12-21-2015, 10:55 AM)Guido1982 Wrote: Will everything in the module's Save.php file be executed before the system actually saves the record?

Absolutely not. When your code calls the save() method, there will be no reference to the Save.php file.
Joe
TSolucio
Reply


Messages In This Thread
ExactOnline for coreBOS - Guido1982 - 11-28-2015, 04:12 PM
RE: ExactOnline for coreBOS - joebordes - 11-28-2015, 06:05 PM
RE: ExactOnline for coreBOS - Guido1982 - 11-28-2015, 09:11 PM
RE: ExactOnline for coreBOS - joebordes - 11-29-2015, 05:15 PM
RE: ExactOnline for coreBOS - Guido1982 - 11-30-2015, 12:14 PM
RE: ExactOnline for coreBOS - Guido1982 - 11-30-2015, 09:55 PM
RE: ExactOnline for coreBOS - joebordes - 11-30-2015, 10:10 PM
RE: ExactOnline for coreBOS - Guido1982 - 12-01-2015, 03:00 PM
RE: ExactOnline for coreBOS - joebordes - 12-01-2015, 10:01 PM
RE: ExactOnline for coreBOS - Guido1982 - 12-02-2015, 08:37 PM
RE: ExactOnline for coreBOS - Guido1982 - 12-03-2015, 03:21 PM
RE: ExactOnline for coreBOS - joebordes - 12-03-2015, 05:11 PM
RE: ExactOnline for coreBOS - joebordes - 12-03-2015, 05:14 PM
RE: ExactOnline for coreBOS - joebordes - 12-03-2015, 05:17 PM
RE: ExactOnline for coreBOS - Guido1982 - 12-08-2015, 10:18 AM
RE: ExactOnline for coreBOS - joebordes - 12-08-2015, 10:24 AM
RE: ExactOnline for coreBOS - Guido1982 - 12-08-2015, 10:29 AM
RE: ExactOnline for coreBOS - joebordes - 12-08-2015, 10:35 AM
RE: ExactOnline for coreBOS - joebordes - 12-08-2015, 10:36 AM
RE: ExactOnline for coreBOS - Guido1982 - 12-15-2015, 12:55 PM
RE: ExactOnline for coreBOS - Guido1982 - 12-16-2015, 10:24 AM
RE: ExactOnline for coreBOS - joebordes - 12-16-2015, 12:28 PM
RE: ExactOnline for coreBOS - Guido1982 - 12-16-2015, 02:21 PM
RE: ExactOnline for coreBOS - joebordes - 12-16-2015, 05:29 PM
RE: ExactOnline for coreBOS - Guido1982 - 12-17-2015, 11:31 AM
RE: ExactOnline for coreBOS - joebordes - 12-17-2015, 09:51 PM
RE: ExactOnline for coreBOS - Guido1982 - 12-18-2015, 11:17 AM
RE: ExactOnline for coreBOS - joebordes - 12-18-2015, 12:01 PM
RE: ExactOnline for coreBOS - Guido1982 - 12-19-2015, 07:12 PM
RE: ExactOnline for coreBOS - joebordes - 12-20-2015, 10:38 AM
RE: ExactOnline for coreBOS - Guido1982 - 12-21-2015, 10:55 AM
RE: ExactOnline for coreBOS - joebordes - 12-21-2015, 11:50 AM
RE: ExactOnline for coreBOS - Guido1982 - 12-28-2015, 04:11 PM
RE: ExactOnline for coreBOS - joebordes - 12-28-2015, 11:23 PM
RE: ExactOnline for coreBOS - Guido1982 - 12-29-2015, 11:01 AM
RE: ExactOnline for coreBOS - joebordes - 12-29-2015, 12:54 PM
RE: ExactOnline for coreBOS - Guido1982 - 12-30-2015, 11:08 AM
RE: ExactOnline for coreBOS - joebordes - 12-30-2015, 12:15 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)