Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Getting the Description Value from Listbox

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Getting the Description Value from Listbox
 Login/Join
 
Gold member
posted
Hi

I have a Listbox having vehicle names and is bound to a Variable namely &vehicle.

'Vehicle_ID' is being passed to the &Vehicle but the Display Value is Coming from 'Vehicle_desc'.

In WF7 Switching ON 'Send Display value' gave us a Variable &vehicle_text which had the Display Value of option selected in the listbox but still passes the Vehcile_ID value to the &Vehicle.

IN WF8, switching on 'Send display value' is sending 'Vehicle_desc' to the &vehicle hence the SQL Pass through is not getting the correct filter.

The Idea is to Use Vehicle_ID(&Vehicle) in the SQL Pass through and but also fetch the Display value to show in report footer.

Need Help!!

Example:

Vehicle_id - 5 has vehicle_desc - BC403 MAX

I need to use 5 in the SQL but display BC403 MAX in the report footer.

This message has been edited. Last edited by: Tamra,


Webfocus 8105,8808,7703,7611, EXL2K,HTML,PDF,COMT,AHTML Info Assist+ , Reportcaster
 
Posts: 64 | Location: Toronto, Ontario | Registered: May 15, 2014Report This Post
Platinum Member
posted Hide Post
quote:
The Idea is to Use Vehicle_ID(&Vehicle) in the SQL Pass through and but also fetch the Display value to show in report footer


Use Hold file and -READFILE Concept to read value in a variable and use it in footer.


Thanks!
@vi

WebFOCUS 8105, Dev Studio 8105, Windows 7, ALL Outputs
 
Posts: 103 | Registered: July 08, 2013Report This Post
Gold member
posted Hide Post
How would this give the Description of the Value Selected in the Listbox?


Webfocus 8105,8808,7703,7611, EXL2K,HTML,PDF,COMT,AHTML Info Assist+ , Reportcaster
 
Posts: 64 | Location: Toronto, Ontario | Registered: May 15, 2014Report This Post
Master
posted Hide Post
There was a lengthy discussion on this forum about "Send Display value" a few months ago... the following might be useful for you:

[NO LONGER WORKS] HTML Canvas: How to send both the return & display value? (8105m)


App Studio
WebFOCUS 8.1.05M
Windows, All Outputs
 
Posts: 594 | Location: Michigan | Registered: September 04, 2015Report This Post
Gold member
posted Hide Post
I am using below Javascript Function which i wrote as workaround, use it with the ValueChanged Event of the Listbox and then bind the value to a Variable, use the Variable in the report filter section, we can mark this thread as closed.

function listbox_subengine()
{
var list_v = document.getElementById('listsubeng')
var list_vLength = list_v.options.length;
var strfinal1 = "";
for (var j = 0; j < list_vLength; j++)
{
if (list_v.options[j].selected)
{
var str2 = list_v.options[j].text;
strfinal1 = strfinal1 + str2+",";
}
}
strfinal1 = strfinal1.substr(0,strfinal1.length-1);
document.getElementById('edit5').value = strfinal1;
return strfinal1;
}


Webfocus 8105,8808,7703,7611, EXL2K,HTML,PDF,COMT,AHTML Info Assist+ , Reportcaster
 
Posts: 64 | Location: Toronto, Ontario | Registered: May 15, 2014Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Getting the Description Value from Listbox

Copyright © 1996-2020 Information Builders