Skip to Content

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

To report this post you need to login first.

8 Comments

You must be Logged on to comment or reply to a post.

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

    (0) 
    1. shweta kapil 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.

      (0) 
      1. shweta kapil 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

        (0) 
      2. 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

        (0) 

Leave a Reply