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] Checkbox output in Fex

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Checkbox output in Fex
 Login/Join
 
Member
posted
I am looking to add checkboxes to html output from a fex. I've searched the forum and found examples but none of them seem to work, they only print the actual html code (ie
   <input type="checkbox" name=....
) in the output and not the actual checkbox control.

Am I missing something, is there a setting in the admin console that I am not aware of?

Thanks!
Matt

This message has been edited. Last edited by: FP Mod Chuck,
 
Posts: 14 | Registered: April 27, 2012Report This Post
Virtuoso
posted Hide Post
Migraine

Adding checkbox's are not done from a fex. If a fex has a parameter in it when you add the fex to the html form a popup box will be displayed and you can choose to add a checkbox as the object used by that parameter.


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, 2005Report This Post
Member
posted Hide Post
Thanks for the feedback. Is this a new change? I know in the past you were able to add checkboxes to fex outputs via a compute/define.

Thanks!
 
Posts: 14 | Registered: April 27, 2012Report This Post
Virtuoso
posted Hide Post
Migraine

Well I learn something new everyday. I found this sample code searching the techsupport site and didn't realize it was possible.

<code>
DEFINE FILE CAR
cb/A100= IF COUNTRY EQ 'ENGLAND' THEN '<input type="CHECKBOX" id="XXX" checked="checked">' ELSE '<input type="CHECKBOX" id="XXX" >';
END
TABLE FILE CAR
PRINT cb
BY COUNTRY
END
</code>


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, 2005Report This Post
Member
posted Hide Post
Correct. And so this solution does not work for me. It just prints the html code and does not display and actual checkbox.

I'm on WebFOCUS 8201M / Windows

Matt
 
Posts: 14 | Registered: April 27, 2012Report This Post
Virtuoso
posted Hide Post
It works in 8.2.04


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, 2005Report This Post
Master
posted Hide Post
This works in my 8202M environment:
  
TABLE FILE CAR
SUM 
SALES/D12 
RETAIL_COST 
DEALER_COST 
COMPUTE LINE_NUM/P11 = LAST LINE_NUM + 1; NOPRINT
COMPUTE CHKBOX/A250V= '<input type="checkbox" name=LINE'||TRIM_(BOTH, ' ',PTOA(LINE_NUM, '(P11)', 'A11'))||' VALUE="' || CAR || '">'; AS ''
BY COUNTRY
BY CAR 
ON TABLE SET PAGE-NUM OFF
ON TABLE SET STYLE *
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,$
ENDSTYLE
END
-RUN

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


Hallway

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
 
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Report This Post
Member
posted Hide Post
Good to know. It's definitely worked in past versions as well. I'm wondering if its a bug in 8201M or I have some setting that is causing the issue.
 
Posts: 14 | Registered: April 27, 2012Report This Post
Virtuoso
posted Hide Post
No setting that I am aware of..


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, 2005Report This Post
Virtuoso
posted Hide Post
ON TABLE SET HTMLENCODE OFF

https://infocenter.information...d8-AE54-9CCE3EB4085F


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Expert
posted Hide Post
Thanks for the
quote:
ON TABLE SET HTMLENCODE OFF
I hope it works for my drop down list issue in 8204. They are now showing something that looks like it could be the ENCODED text, , from HTMLENCODE being set to ON.
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Member
posted Hide Post
quote:
Originally posted by Wep5622:
ON TABLE SET HTMLENCODE OFF

https://infocenter.information...d8-AE54-9CCE3EB4085F


This is what I needed!! Thanks!
 
Posts: 14 | Registered: April 27, 2012Report This Post
Virtuoso
posted Hide Post
That is very interesting that your code required that and mine worked without it.. Go figure...


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, 2005Report 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] Checkbox output in Fex

Copyright © 1996-2020 Information Builders