Commands

Build 1501 on 14/Nov/2017  This topic last edited on: 28/Oct/2016, at 11:48

CreatePagesInEdition

This command creates the InDesign pages documents in an edition from the Fred pages in that edition. Parameters:

editionId – edition id to create the InDesign documents

templateId – the id of the template edition to use for the InDesign documents

CreatePage

This command creates the InDesign page document from the Fred page. Parameters:

pageId – page id to create the InDesign document from

templateId – the id of the template edition to use for the InDesign document

UpdatePage

This command updates the InDesign page document, it opens the page which updates all links, then saves and closes the page which updates GN4. Parameters:

extDocId – extDoc id of the page to update

OpenPage

This command opens the InDesign page document. Parameters:

extDocId – extDoc id of the page to open

checkOut – set to true to check out the item, otherwise it does not check out the item.

Login

This command logs in a user to GN4. Parameters:

server – server to use i.e. 'http://localhost/gn4/'

name – user name

pwd – password for the user

language – language to use

Tzofs – time off set

PlaceURI

This places the URI in the selected box. Parameters:

uri – URI of item to place

GetURI

This gets the URI for the given id if it is an article then gets all the URI’s of the items in the article. Parameters:

id – id of item to get the URI for result

<result name=”GetURI” errorCode=”0” errorMessage=”success”>

<uri id=”123”>gn4://txt/1234</uri>

</ result>

DocumentComplete

This runs the document complete function on the current document.

Parameters:

• checkPreflight – Will check the preflight for errors