Stránka 11

Reference to OG in an email

PříspěvekNapsal: ned 06. pro 2015 11:32:24
od andesys
(Translated from another language)
I would like to add a link to OG to an email in such a way, that it opens a form with new record and inserts values from url. Is that possible?

Re: Reference to OG in an email

PříspěvekNapsal: ned 06. pro 2015 11:33:05
od andesys
Create url (e.g. "___server__/DataDetail.aspx?Id=xy-0" where you will replace xy by ID of the requested class). Further, add variables with values, that you want to pass to the form, at the end of url.
You can name them as you want, but it would be best to use names corresponding to the target columns which will be more transparent. After that create a rule in the class "Before displaying a new record ", which will put the values in the form.
These steps are described in the documentation: http://doc.objectgears.cz/Help.aspx?H=a_data_formfill
and in the example: http://doc.objectgears.cz/Help.aspx?H=a_og_examples_data_transfer_via_url

If you create URL from script, than we do not recommend defining the server name in a fixed way, but using function OG.GetWebURL() instead.
See the documentation: http://doc50.objectgears.cz.maroon.globenet.cz/Help.aspx?H=e_script_og