Skip to Content
Author's profile photo Former Member

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.

ScreenHunter_01 Oct. 30 16.40.gif

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”.

ScreenHunter_02 Oct. 30 17.05.gif

Step 3 : Change the method showURLInBrowser to a menuItemCallback method which will help you navigate to the screen you wish to go to.

ScreenHunter_03 Oct. 31 11.30.gif

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.

ScreenHunter_06 Oct. 31 12.16.gif

On Clicking on the item “James” the next screen shows up.

ScreenHunter_05 Oct. 31 12.12.gif

Assigned Tags

      8 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Jitendra Kansal
      Jitendra Kansal

      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

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      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.

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      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

      Author's profile photo Jitendra Kansal
      Jitendra Kansal

      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

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Yes thats the correct understanding

      There has to be a navigation existing in form of menu item for link to work in this fashion

      Author's profile photo Daniel Van Leeuwen
      Daniel Van Leeuwen

      You could simply set the Prefix: value to javascript:navigateForward('Screen2') if you simply wished to navigate from one screen to another. 

      Author's profile photo Jitendra Kansal
      Jitendra Kansal

      thanks Shweta and Daniel.

      Regards,

      Jitendra

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Thanks Daniel.... i wasn't aware of the same.