How to enable a hyperlink on text using Link control in SUP Hybrid workflow application
Overview
This document will focus on using the control “Link” from the palette in a Sybase Hybrid workflow application.This functionality will come handy when the user has to click on a certain text and then navigate to a different screen after clicking on the hyperlink.
The document will walk you through some customization achieved on a Sybase HWC application.
I am taking into consideration here the MBO which is created by using the BAPI from SAP system.
I shall be skipping the basic steps for creating a MBO by using a RFC from SAP system and the subsequent creation of a workflow from it.
Steps to configure a hyperlink on a text to open a navigation screen :
The link control in the palette can be used to make a phone number or an email id.It can also be used to call an external URL.
In this particular document i shall show you how to open a different screen on the click of a text item.
Step 1 : Create a link on the screen by dragging the control Link from the palette.
Step 2 : Other than email and telephone number there is an option of choosing “open external URL”.
Step 3 : Change the method showURLInBrowser to a menuItemCallback method which will help you navigate to the screen you wish to go to.
Step 4: The method menuItemCallback will trigger a new screen on the click of the text and will help you go to a different screen.
On Clicking on the item “James” the next screen shows up.
Hi Shweta,
i could nt understnd how to go with control LINK.
i want to use this control for navigation from Start screen to next screen.
let me share how i am proceeding:
1.drag nd drop a control LINK from Right hand side.
2. create a new key for the same.
3. in HREF settings:
i m selecting:
logical type: custom
prefix: javascript:menuItemCallbackStartOpennext();
suffix: empty
where i am doing wrong in the code?
please help.
Regards,
Jitendra
Hello Jitendra
Please make sure that the menu item name is correct.that could be the only possible error,To make sure you using the right one search in workflow.xml for the same.
Also make sure you create a menu item in the start screen which takes you from start to next and then you call the same menuItemCallback method in your ahref
Hi Shweta,
i got the result. and do confirm me again:
so we cant navigate to othr screen w/o existing navigation between two.?
i mean,
suppose i hv 2 screens... screen1 and screen2.. but there is no menu item on screen1 to navigate to 2nd screen.
in this case, LINK control wont work ? correect?
LINK control will work iff there is an existing navigation.
Regards,
Jitendra
Yes thats the correct understanding
There has to be a navigation existing in form of menu item for link to work in this fashion
You could simply set the Prefix: value to javascript:navigateForward('Screen2') if you simply wished to navigate from one screen to another.
thanks Shweta and Daniel.
Regards,
Jitendra
Thanks Daniel.... i wasn't aware of the same.