I have used vTiger WebForms module to insert new leads inside the vTiger system,
now I need to perform an update for these leads - is there any to do this operation?
I did not find any reference for this operation...
Look at Web services documentation.
May be you have to change index file in webforms folder and call appropriate api's over there.
Before that take up of your files and i think you need to register an that operation before you do any CRUD operations.
You must download and read documentation to make connection via web services with vtiger crm to perform update/delete/insert download from here:
http://forge.vtiger.com/frs/?group_id=181
Related
I'm building DMS (Document management system) using PHP framework Laravel.
One of the requirements is allowing users to version control files, close to what google docs does.
I've been searching for days without any clue, I don't want to re-impalement the wheel, there's a lot of really good VCS already including git which I'm thinking of utilizing it using php to implement the versioning features.
I just don't know how to start or even my way of thinking is valid!
What you need is real-time system (achieved via socket programming) so that everyone is updated about the contents in realtime; also who is doing what: Like if there are two users A and B and they have opened the same file then A should know what the B is doing and vice versa; you would use client events for that. Have a look here:
https://laracasts.com/series/get-real-with-laravel-echo
Or
Look into Web RTC: https://webrtc.org/
GIT is a different thing given your requirements what I understood.
I'm trying to create a php script and add it with vTiger crm, this script will add to vTiger the functionality to add a single csv file to a multiple database tables.
I don't know how can i add this script to vTiger
Any suggestions, Documentation, Help ?
I am working with Vtiger CRM version 6.0
There are a lot of ways to accomplish this.
The first one is register a new module in your CRM, (searching google for the Payslip example module).
Broadly, a vtiger Module is structured in two parts, the first in PHP that you using to process all your data, your functions, the second is passing what you had processed into the Smarty Template engine.
About the main methods, consider that vtiger generally pass 2 URL parameters:
"module", is used to retrive the module name -> directory -> privileges and all the rest
"action", is used to call a specific php file into the module.
In all this you should consider the implementation of the all the basic vtiger framework, controls, privileges, ecc.
About the database, Vtiger use the adb method.
Take a look to the include/database/PearDatabase.php for a comprehensive overview of all the database functions.
A second way, highly raccomended, is process your CSV file using the vtiger Webservice https://wiki.vtiger.com/index.php/Webservices_tutorials
and so, use an external PHP file.
This way is more less flexibile, but you can workaround all the basic implementation and focus on the data.
I've designed my database diagram(11 entites) for my prototype application. I need to have an REST API on top of this that will allow me to build a prototype android tablet application that talks to it.
Considering this is only for prototype purposes. What would be the quickest way to get a API up and running that would allow me to get, put, delete etc..
Security at this point isn't an issue so even if all add edit delete were open that would be fine.
My initial idea is to build this with PHP and MySQL maybe using the Yii framework to help but I feel there might be something that might be faster for my purpose.
Any thoughts or recommendations or advice?
It is worth looking into API rapid-prototyping tools like Apify (tutorial) since you're starting from scratch. If you're planning to have both an API and a Web site accessing the same data, consider using one framework for both as it helps prevent duplicating logic. CakePHP and Yii are good examples of multipurpose frameworks that are suited for this type of development.
If Python is an option, it is trivial to use a light-weight http framework to build a REST API that accesses a database.
Here's a snippet for a fully functioning http server using the itty framework: https://github.com/toastdriven/itty/blob/master/examples/web_service.py and https://github.com/toastdriven/itty/blob/master/examples/posting_data.py
Look at this project which allows you to create an API REST in seconds.
https://github.com/GeekyTheory/Automatic-API-REST
Features
Creation a powerful API REST of your MySQL Data Base in Seconds.
Management of the API in situ, it is not neccesary an extra data base.
Private tables and fields.
Custom queries.
Installation
Clone the repo.
git clone https://github.com/GeekyTheory/Automatic-API-REST/
Place it in your web folder /var/www/YourWebPage/
Open the file config.php and complete all the fields with the server credencials.
Go to domain.com/AutomaticaApiRest
I have a PHP-mysql application which is running by portable server (i.e.XAMPP). The client buy additional functions (like Chart, report) after using the gerneral app.
However, for example, there are some links need to be linked from general app to additional function after installing. Those links will be disabled when the addtional function hasn't been installed.
My question is how to solve the above scenario? Really appreciate for any help and Thanks in advance.
A simple solution would be to define a constant, for example PLUGIN_CHART, in the plugin and in the main app just check if the constant exists and is true.
If the plugins are actual functions, another way is to use function_exists() to check if it's available.
There are several ways of going about it, here is a simple way:
Have a directory called plugins. Within that directory create a folder for each plugin you have. For each of your client, put only the plugins they will be using.
Now, instead of linking each possible plugin, check to see if the plugin is loaded (or at least if the directory exists), if it does, create a link!
I am using PHP and Mysql
I have PHP script in which I rollback all the data in the database such data all the old value be reset to the database if update is done, and all new value gets deleted if new insert has been done.
Now my goal is to perform the same process with files/folders associated with the changes done, I am not able to create an idea for doing the rollback job with the files/folders associated with the Changes.. So can anyone of u help me or direct me to get the best idea?????
EDITED
I want this functionality in one of my Joomla Component.. I have to it all through scripting
When it comes to managing histories and providing the functionality to "rollback" to a specific site-wide snapshot, you are probably well-advised to be looking into Source Code Management systems/techniques such as GIT, Subversion, etc.
These systems seem to be the industry standard for managing source code development, and should provide the functionality of which you speak.
If you are looking to create a self-contained Version Control system for these files and folders, then you will either need to custom create one, whereby any change to a file also records the contents of that file (and the change date/time) into a MySQL Table, or you may need to look at adapting an existing PHP/MySQL Version Control system as a component of your product (respecting, of course, their licensing terms).
I would recommend performing a Google Search for "php version control", and then looking through the results for an option which best suits your needs.
May be you should try to use the native api of the host operating system