Portlet Factory, Version 6.1.2


 

Domino View & Form builder LJO helper methods available

This topic describes the Domino View & Form builder helper LJO methods.

Note: Other methods are not intended to be called.

void cleanup

Closes connections to the Domino server.

String createDocument(IXml documentData, String formName)

Returns the UNID of the created document.

Boolean deleteDocument(String unid)

Deletes specified document in the current database, given the Universal ID of the document.

String evaluateFormula(String formulaText, String UNID)

Evaluates a Notes formula and returns a String of the result. The UNID argument is optional and is used only if the specified formula accesses a document. For example, you can use this method to get the Common Name format of the current user name. This can be used to automatically select a category for a view which is categorized by User. The following formula is used for this:
@Name([CN]; @UserName)

The UNID argument is not needed in this case.

List getCategoryNames

Returns a List of the available categories in the view.

String getDatabaseName

Returns Database name.

IXml getDocumentData(String unid)

Returns the Domino Document object with the specified UNID. Obtain the UNID for any row in a view by looking at the UNID column.

Database getDominoDatabase

Returns the Domino Database Java object.

Session getDominoSession

Returns the Domino Session Java object.

View getDominoView

Returns the Domino View Java object.

Object getViewData

Fetches view data and stores it in the buildername_results variable.

IXml getViewDataInternal

(Cannot be called directly.) Can be used with the Cache Control builder to cache results across users.

String getViewName

Returns view name.

Void runAgent(String agentName,String UNID)

Invokes named agent on document defined by UNID.

String setItemValueSeparator(String separator)

Changes default value separator character.

void setDatabaseName(String databaseName)

Changes the database at runtime. (This can only be done if all the items used within the database (such as view and form) have the exact same name and structure as in the original database. )

void setItemValueSeparator(String)

Changes separator used for multiple valued document items.

boolean updateDocument(IXml documentData, String unid)

Updates an existing Domino document from XML data, given documents UNID.

public String sendDocument(WebAppAccess app, IXml documentData, boolean saveOnSend, boolean attachForm)

Sends a Domino document as an e-mail.

public void setComputeWithFormEnabled(boolean set)

Allows user to control whether the Domino computeWithForm method is called when a document is created or updated. By default, this functionality is enabled and computeWithForm is called.

String getServerName

Returns the Domino server name.

Parent topic: Domino View & Form builder


Library | Support |