Develop > Tailoring > Form creation > Forms Designer > Creating and editing forms > Functions and displayevent definitions for actions in the graph diagram

Functions and displayevent definitions for actions in the graph diagram

These functions enable users to interact with a graph that represents a network of interrelated objects. Both RAD and JavaScript functions are supported.

Graph event

The following are the functions and displayevent definition that are required to get and display more information in a graph diagram. When a user requests more information in the graph diagram, the applications generate additional XML that is routed through the server to the client for re-rendering.

Displayevent

OnGraphEvent (32105)

RAD functions

get.graph.id()
get.graphnode.id()
add.graphnodes(xml)

JavaScript functions

get_graph_id()
get_graphnode_id()
add_graphnodes(String strXML)

Graph action

The following are the functions and displayevent definition that are required to activate an action that is defined for a node. When a user selects an action from the pop-up menu for a node, the application can access the Graph ID, Action, and Target by using the functions below. This information can be used in the displayevent to call additional application logic.

Displayevent

OnGraphAction (32100)

RAD functions

get.graph.action()
get.graph.target()

JavaScript functions

get_graph_action()
get_graph_target()