9.5

Table Of Contents
HTTP Error #500This layer does not
exist. Please verify
the layer name.
Alerts
This alert displays if you specify an invalid layer name with the layer,
layerattribute, or deletelayer parameter.
HTTP Error #500Specify a layer name.
This alert displays if you do not specify a layer name with the layer,
layerattribute, addlayer, or deletelayer parameter.
HTTP Error #500A layer with the
same name already
exists.
This alert displays if you try to add a layer that already exists or change the
name of a layer to a name is already used in the project.
HTTP Error #500Cannot change the
name of the default
layer.
This alert displays if you try to change the name of the default layer.
HTTP Error #500Cannot delete the
default layer.
This alert displays if you try to delete the default layer.
HTTP Error #500Invalid parameter
value.
This alert displays if you do not specify additional attributes or specify
attributes with invalid values in an addlayer or layerattribute request.
HTTP Error #500This layer has been
locked and cannot be
modified.
This alert displays if you try to add or modify an item on a locked layer.
See Understanding loggingLogs
To render a single layer, use a URL like the following:
http://localhost:8080/doc.qxp?layer=layer1
Example GET
URL
To add a layer, use a URL like the following:
http://localhost:8080/qxpdoc/doc.qxp?addlayer=
NewLayer&visible=yes&suppressoutput=yes&locked=no
To delete a layer, use a URL like the following:
http://localhost:8080/qxpdoc/doc.qxp?deletelayer=Layer1
To render all layers in a project, use a URL like the following:
http://localhost:8080/qxpdoc/doc.qxp?alllayers=true
To set layer attributes, use a URL like the following:
http://localhost:8080/qxpdoc/doc.qxp?layerattribute=
Layer1&name=Layer2&visible=true&keeprunaround=true
To add a new layer to a project, use code like the following:
Layer layer = new Layer();
layer.name = "New Layer";
Example, object
model
layer.operation = "CREATE";
RGBColor rgbcolor = new RGBColor();
layer.RGBColor = rgbcolor;
layout.layer = new Layer[]{layer};
To edit the properties of an existing layer, use the following object hierarchy:
ModifierRequest < Project < Layout < Layer
To delete a layer, set its operation attribute to "DELETE".
You cannot add, modify, or delete multiple layers in a single request.Notes
82 | A GUIDE TO QUARKXPRESS SERVER 9.5
USING QUARKXPRESS SERVER