View source | Discuss this page | Page history | Printable version   
Toolbox
Main Page
Upload file
What links here
Recent changes
Help

PDF Books
Show collection (0 pages)
Collections help

Search

ERP 2.50:Developers Guide/Concepts/Deep linking

ERP 2.50:Developers Guide

Index


Contents

Overview

According to Wikipedia "Deep linking, on the World Wide Web, is making a hyperlink that points to a specific page or image on a website, instead of that website's main or home page. Such links are called deep links"[1], in the case of Openbravo ERP is the way to link with a URL directly to an specific functionality, e.g. a Window/Tab, a Manual Form, etc. This link can be built and attach it in a email, or copy/paste it in a IM window, etc.

Important Notes:

Building a link

Structure of the URL

http://server:port/obcontext/security/Menu.html?params

More information of the structure of an URL[2]

Linking to Generated Windows

Structure of a link to a generated window

http://localhost/openbravo/security/Menu.html?Command=SomeCommand&tabId=220[&recordId=SomeUUID]

The URL structure remains the same, the parameters are the following:

Example of a link to Business Partner tab, to edit an specific record:

http://localhost/openbravo/security/Menu.html?Command=EDIT&tabId=220&recordId=DACA01A101E6461C8CD7D0F9C61A97D9

Notes about available commands

Bulbgraph.png   You can only link to top level tabs, not to child tabs

Linking to Manual Form

With a link to a manual URL, you can link to a manual form, a process, or any manual code. Structure of a link to a manual form

http://localhost/openbravo/security/Menu.html?url=/someMappingUrl.html[&more-params]

Example (link to a report parameter window):

http://localhost/openbravo/security/Menu.html?url=/ad_reports/ReportInvoiceCustomerDimensionalAnalysesJREdition.html
Bulbgraph.png   The url must start with a slash

Linking to child tabs (advanced)

This way of accessing child tabs should only be used if you have deep understanding of Openbravo architecture. As stated in a previous section, you can access only top level tabs using the generated windows approach. You can workaround this limitation using the Manual Form approach for child tabs.

Example of accessing a child tab (Lines) of the Sales Order window:

http://localhost/openbravo/security/Menu.html?url=/SalesOrder/Lines_Edition.html&Command=DIRECT&inpcOrderlineId=1C9A00630E7E4ED7B5922E1A0404409B

Notes

  1. http://en.wikipedia.org/wiki/Deep_linking
  2. http://www.skorks.com/2010/05/what-every-developer-should-know-about-urls/



ERP 2.50:Developers Guide/Concepts/Model Object Mapping | ERP 2.50:Developers Guide/Concepts/Application Dictionary Components

Retrieved from "http://wiki.openbravo.com/wiki/ERP_2.50:Developers_Guide/Concepts/Deep_linking"

This page has been accessed 4,614 times. This page was last modified on 14 June 2011, at 11:03. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.