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] IbComposer_enableHtmlElement - not working completely as expected

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] IbComposer_enableHtmlElement - not working completely as expected
 Login/Join
 
Member
posted
Hello,

I am trying to utilize the IbComposer function to enable and disable the HTML elements.

Below is from the documentation.
IbComposer_enableHtmlElement(elementID,bEnable);
where:

elementID
Alphanumeric

Is the unique identifier of the element which is enabled or disabled.

bEnable
Boolean

Is an operator that can be set to true to enable the element and false to disable it.

Example: Enabling or Disabling Elements
function checkbox2_onclick(event) {
IbComposer_enableHtmlElement('listbox1', IbComposer_isSelected('checkbox2','country'));
IbComposer_enableHtmlElement('combobox1', IbComposer_isSelected('checkbox2','car'));
IbComposer_enableHtmlElement('listbox2', IbComposer_isSelected('checkbox2','model'));
IbComposer_enableHtmlElement('combobox2', IbComposer_isSelected('checkbox2','dcost'));
}

In my case, the enable functionality works fine but disabling is not working as expected.

Enable - IbComposer_enableHtmlElement('radio1','true');

Disable - IbComposer_enableHtmlElement('radio1','false');

Appreciate any suggestions on this.

Thank you.

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


WebFOCUS 8206.08
Windows 10
Excel, HTML, PDF, AHTML
 
Posts: 10 | Location: Birmingham | Registered: October 09, 2017Report This Post
Virtuoso
posted Hide Post
Try with
Enable - IbComposer_enableHtmlElement('radio1', 1);

Disable - IbComposer_enableHtmlElement('radio1', 0);


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Member
posted Hide Post
Thank you Martin,

That worked as expected.


WebFOCUS 8206.08
Windows 10
Excel, HTML, PDF, AHTML
 
Posts: 10 | Location: Birmingham | Registered: October 09, 2017Report This Post
Virtuoso
posted Hide Post
My pleasure

Please update your first post then add [SOLVED] at the beginning of the subject


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report 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] IbComposer_enableHtmlElement - not working completely as expected

Copyright © 1996-2020 Information Builders