Highlighted
Super Contributor.. Super Contributor..
Super Contributor..
455 views

Customize using hypertext to open a form within SM

Jump to solution

How to customize a form using hypertext such that the link label should open another form within SM.

I mean, clicking on hyperlink on a form should reroute to another form.. Any suggestions to achieve this?

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Customize using hypertext to open a form within SM

Jump to solution

It depends what you want to achieve.

If you need to display a different format for the same file, this can be achieved easily with formatcontrol - Forms - Alternate Forms.

If you need to display another file and format you could achieve this for example this way:

I used format "contacts.g" as example.

Action 1: format "contacts.g": Add a "Link Label" with Button ID=777 for example with caption "OpenDept"

Action 2: add a displayoption

Screen ID: contacts.view

UniqueIE: contacts.view_displaydept

GUI option : 777

Text option: 777

Bank: 1

User Condition: true

Action: do nothing

Default Label: DisplayDept

RAD - Rad:

RAD Application: database

Names: name

Values: dept

 

If you search for a contacts records and click on the button  "OpenDept" this will open the database manager for file "dept".

This is only an example. If you want to display the same file with another format, usage of the formatcontrol - Alternate Forms is more comfortable and designed for that purpose. You can test it easily by adding in formatcontrol contacs - Forms - Alternate formats a customized form for contacts table. The option "Alternate Forms" allows you to switch between the available forms when you display a contacts record.

I hope that helps.

Best regards, Heike

Thank you for using the MicroFocus ServiceManager Support and News Forum. If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.

View solution in original post

3 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Customize using hypertext to open a form within SM

Jump to solution

Hi,

A link label works together with a display option so, from the DO you could call a rad or javascript to call a specifc action that opens a form. I suggest you to call a wizard from the display option to display the form you want.

Regards,

If you feel this was helpful please click the KUDOS! thumb below!
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Customize using hypertext to open a form within SM

Jump to solution

It depends what you want to achieve.

If you need to display a different format for the same file, this can be achieved easily with formatcontrol - Forms - Alternate Forms.

If you need to display another file and format you could achieve this for example this way:

I used format "contacts.g" as example.

Action 1: format "contacts.g": Add a "Link Label" with Button ID=777 for example with caption "OpenDept"

Action 2: add a displayoption

Screen ID: contacts.view

UniqueIE: contacts.view_displaydept

GUI option : 777

Text option: 777

Bank: 1

User Condition: true

Action: do nothing

Default Label: DisplayDept

RAD - Rad:

RAD Application: database

Names: name

Values: dept

 

If you search for a contacts records and click on the button  "OpenDept" this will open the database manager for file "dept".

This is only an example. If you want to display the same file with another format, usage of the formatcontrol - Alternate Forms is more comfortable and designed for that purpose. You can test it easily by adding in formatcontrol contacs - Forms - Alternate formats a customized form for contacts table. The option "Alternate Forms" allows you to switch between the available forms when you display a contacts record.

I hope that helps.

Best regards, Heike

Thank you for using the MicroFocus ServiceManager Support and News Forum. If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.

View solution in original post

Highlighted
Super Contributor.. Super Contributor..
Super Contributor..

Re: Customize using hypertext to open a form within SM

Jump to solution

Solution : added a link label  in FD, so that it call the DO.  DO in turn calls the new form.

1. Update the existing FD (say.  SD.update.interaction), with the Link Label button option, where you need to call/display another form. And input can be any variable or new field. " $formid "

2. Create a link record

Source field name - $formid , target file name - New table name, target field name - id

Query:  id#(id in $File)

inside the link line:-

Expressions:

$fill.display.add=true
$fill.replace=false;$fill.display=true

3. Create a new DO:- where we need to call the new form 

Screen ID :  SD.update.interaction, Uniqure ID:  ***_assocform

Button ID should be unique - 666

condition: as per the requirement

Pre RAD Expressions:

$L.link="";$L.link="NewformName"

$L.field="";$L.field="$formid"

 4. Create a new form "NewformName" for the new table (custome table) created.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.