Creating Links for Sage X3 Functions in Visual Processes
The visual process editor is a flash component that can be used:
You can also create links to other functions (administration functions, classes and representations, queries, and statistic pages) by using the URL link. However, you need to follow some rules to create the relevant URL according to the type of link you want to create.
This document explains how to code these links.
{$baseUrl}/CLASS?representation=REPRESENTATION.$facet
{$baseUrl}/CLASS('key_value')?representation=REPRESENTATION.$facet
The URL is formatted as follows:{$baseUrl}/QUERY('query_code')?representation=QUERY~query_code~level.$facet
With "QUERY~query_code~level" being the break level used to define the columns that appear. The facet is "$query".
Additional parameters can be added with syntax ¶meter=value
. The level is usually 1, meaning it displays the first level of grouping. The level where the data is read is &level=x
. It might be different from the level used to define the columns to display.
&displayLineNum=true
and &forcedExecution=true
are examples of parameters that can be used.
If "~1" is omitted in the "representation=QUERY~MYREQ~1" syntax, the graph does not display. &cube=false
must be added to the request URL to have a “flat mode” for statistics. It can be useful if you want to export all the lines to Excel.
Refer to this page to see all the options.
The URL is formatted as follows:{$baseUrl}/STATS('stat_code')?representation=STATS~stat_code.$facet
With "STATS~stat_code" being the code of the statistic defined by "stat_code". The facet is "$cube".
Additional parameters can be added with syntax ¶meter=value
.
Refer to this page to see all the options.
When the key is not specified, the URL is formatted as follows:{$baseUrl}/PROCESS('PROCESS_CODE')?representation=PROCESS~PROCESS_CODE.$facet
With "$facet" being the facet ("$details"). If the process code depends on the legislation, "PROCESS_CODE" can be "PROCESS_CODE~LEGISLATION_CODE".
/sdata/syracuse/collaboration/syracuse/CLASS?representation=REPRESENTATION.$facet
/sdata/syracuse/collaboration/syracuse/CLASS('key_value')?representation=REPRESENTATION.$facet
Note: Keys are always UUIDs for administration functions. If you want to create such links, you have to go to the page, copy the URL from your browser, and paste the portion of the URL that starts with "/stdata". If you have direct access to some pages, you can also add option "&where=(property like 'xxx')", where xxx is a pattern that usually includes % as a wildcard. Make sure you escape % by writing it "%25".
Example:/sdata/syracuse/collaboration/syracuse/menuItems?representation=menuItem.$query&where=(statName like 'VEN%25')
displays the list of menu items associated with a statistical code starting with "VEN".
Links to "classic" page functions can also be defined as URL. In this case, the syntax is the following:
{$baseTrans}/$sessions?f=object_function/2//M/key_value
for an object typed function.{$baseTrans}/$sessions?f=function
for a function that does not require an additional value.{$baseUrl}/ITMMASTER?representation=ITMMASTER.$query
{$baseUrl}/ATABLE('BPCUSTOMER')?representation=ATABLE.$details
{$baseUrl}/CACCE('CCT~COMM-001')?representation=CACCE.$summary
{$baseUrl}/QUERY('MYREQ')?representation=QUERY~MYREQ~1.$query&count=20&level=1&cube=true
{$baseUrl}/STATS('MYSTAT')?representation=STATS~MYSTAT.$cube&COMPANY=SAGE
{$baseUrl}/PROCESS('SALES')?representation=PROCESS~SALES.$details
{$baseUrl}/PROCESS(' ACCOUNT~USA ')?representation=PROCESS~ACCOUNT~USA.$details
/sdata/syracuse/collaboration/syracuse/users?representation=user.$query
/sdata/syracuse/collaboration/syracuse/users('858cd6ac-558f-436a-b8ae-8884c1f44492')?representation=user.$details
/sdata/syracuse/collaboration/syracuse/users?representation=user.$query&where=(lastName like '%25MARTIN%25')
{$baseTrans}/$sessions?f=GEBPC/2//M/MARTIN
{$baseTrans}/$sessions?f=EXETRT