|
als_insert_block_def.cgi |
Top Previous Next |
|
Description The als_insert_block_def.cgi interface inserts a new block. Upon a successful execution of this method the block definition will be returned using the format of als_get_block_defs.cgi and will contain the new block:Integer that can be used to update the definition using als_update_block_def.cgi.
Note:This is a powerful call with little or no error checking so it is up to you to make sure that you understand the ways blocks work in AL-Desk and the data you are inserting makes sense for your application.
As is normal for all Put calls a valid webusercode is required along with the following fields:
The following fields have the default value of Boolean = true if no optional values are passed to the method.
active,sun,mon,tue,wed,thu,fri,sat
The following fields have the default values of Boolean= False if no optional values are passed to the method autofax , autoemail
Example Usage
http://host/als_insert_block_def.cgi?product=1565&startdate=2005-12-01&enddate=2005-12-31&quantity=2&blocktime=10:00&webusercode=1
Inputs
Returned Fields
XML Example Upon a successful insert a call to als_get_block_defs.cgi is executed that includes the newly created block identifier.
<?xml version="1.0" encoding="utf-8" ?> - <root> - <blockdefs> <row block="33" vendor="2" product="1565" startdate="12/1/2005" enddate="12/31/2005" sun="True" mon="True" tue="True" wed="True" thu="True" fri="True" sat="True" quantity="2" active="True" releasedays="" releasetime="" autofax="False" faxno="" blocktime="10:00:00 AM" notes="" problock="False" email="" autoemail="False" lastemailsent="" emailccto="" sequenceorder="" lastupdatedon="11/18/2005 8:32:07 AM" /> </blockdefs> </root>
|