Progress
AppBuilder
Developer’s Guide
SmartLinks Editor
![]()
The button shown here is available in the Procedure Settings dialog box.SmartLinks are the well-defined ADM communication pathways between SmartObjects. Although AppBuilder provides Advisor dialog boxes to semiautomatically create links between SmartObjects when you add them to a SmartContainer, there will be times when you will find it desirable or necessary to edit links by hand. The SmartLinks editor shown in Figure A–6 helps you with this task.
Figure A–6: SmartLinks Editor Dialog Box
![]()
You can open this editor in either of these ways:
Regardless of where you start when you open the editor dialog box, it always displays links from the standpoint of the current SmartContainer. Any references to THIS–PROCEDURE are always references to that current SmartContainer, not to any other SmartObject that might be selected:
![]()
The SmartLinks editor dialog box provides extensive filtering capabilities. By default, the editor displays all current links. If the list is confusingly large, you can subset it by filtering on a particular source, link type, or destination, or any combination. You can also choose to sort the list by source, link type, or destination.
To add a new SmartLink, follow these steps:
- Choose the Add button. The Add a SmartLink dialog box opens:
![]()
- All SmartObjects local to the current SmartContainer, including the SmartContainer itself (THIS–PROCEDURE), are listed as possible sources and targets. Select one of them to be the source of the new SmartLink.
If you are not sure what types of SmartLink are supported by the selected object, choose the Info on Source button. The SmartInfo dialog box opens. See the "SmartInfo" section in this appendix for more information.
- Selecting the source of the new SmartLink displays in the LinkType field the SmartLink types for which the selected object can act as source. Choose the type of SmartLink to add.
If you choose New, a dialog box opens and requires you to type in the identifier for the new type of SmartLink. You must be prepared to write code to manage such application-specific link types yourself. See the Progress ADM 2 Guide for information about creating and managing new types of SmartLinks.
- Choose the target for the new link.
If the target you choose cannot deal with links of the type you selected, an Advisor appears asking that you confirm your choice or elect not to create the link:
![]()
You can modify an existing link by selecting it and choosing the Modify button. The process is otherwise the same. When you dismiss the Modify dialog box, the link you selected will reflect the changes you made.
To delete a SmartLink, select it and choose the Remove button.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |