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.
Hey everyone, first official post here on the forum. I've been working on updating an existing BI portal that was created with the AppStudio HTML composer tool and we've encountered a problem with getting both the return and display values from a multi-select list box in the HTML form. We want to pass the return value through and have the display value appear in the header information for tables that viewers will see when querying information in the portal but it seems that the HTML composer/form will only let us send either the return or the display value, not both. Is there a way to send both in 8.2.02?This message has been edited. Last edited by: FP Mod Chuck,
Welcome to Focal Point! I think you will find it a great place to get answers to your development questions.
I am not aware of a way to pass both but in the fex that runs you should be able to use dialog manager -SET commands to evaluate what was sent and then set another variable accordingly.
Like the following example...
-SET &DISPLAY_VALUE = IF &RETURN_VALUE EQ 'Something' THEN 'Something Else' ELSE IF &RETURN_VALUE EQ 'This' THEN 'That' ELSE 'Whatever'; >
Thank you for using Focal Point!
Chuck Wolff - Focal Point Moderator WebFOCUS 7x and 8x, Windows, Linux All output Formats
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005
Thanks for responding! We've actually already used the -SET commands in the fex like you've described, but we're still having issues getting the display entry to appear in the header info and while having the return value pass through. We're hoping we don't have to, but we may need to use a DECODE statement to loop through the multi-select valuesThis message has been edited. Last edited by: tcwillden,
I was able to pass both parameters with a little javascript. I just added an onClick event to the submit button then used jQuery to get the display value of each item in the multiselect and store it in a javaScript variable. Then passed that variable value to a hidden control that I added, and bound it to the amper variable in the report.
var eventObject = event ? event : window.event;
var ctrl = eventObject.target ? eventObject.target : eventObject.srcElement;
// TODO: Add your event handler code here
var ctrlDisplay = '';
var customselect1_selectto_ID = document.getElementById("customselect1_selectto");
var inputhidden1_ID = document.getElementById("inputhidden1");
var optn = '#' + $(customselect1_selectto_ID).attr('id') + ' option'
$.each( $( optn ), function( key, value) {
ctrlDisplay = ctrlDisplay + $(value).html() + ', ';
} );
ctrlDisplay = ctrlDisplay.slice(0, -2);
console.log('Display: ' + ctrlDisplay );
$(inputhidden1_ID).val(ctrlDisplay);
}
//End function Submit_onclick
Hallway
Prod: 8202M1
Test: 8202M4
Repository:
OS:
Outputs:
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015
HTML Composer allows the "text" of a selected value in a select list to be passed to a fex.
There is a setting called Send Display Value, under settings for the selected control.
Note: In 8.1.04 (not sure what other releases had the issue) , the parameter name was currupted, and when it tried to send {parmname}_TEXT it send _TEXT instead.
In 8.2.02M, we will only ever get back either a return value or a display value. Can't have both unless you employ some convoluted workaround, per standard practices...lol