Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] IbComposer_enableHtmlElement - not working completely as expected
Go
New
Search
Notify
Tools
Reply
  
[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: 11 | Location: Birmingham | Registered: October 09, 2017Reply With QuoteReport 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: 2357 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Reply With QuoteReport This Post
Member
posted Hide Post
Thank you Martin,

That worked as expected.


WebFOCUS 8206.08
Windows 10
Excel, HTML, PDF, AHTML
 
Posts: 11 | Location: Birmingham | Registered: October 09, 2017Reply With QuoteReport 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: 2357 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Reply With QuoteReport This Post
  Powered by Social Strata  
 

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-2018 Information Builders, leaders in enterprise business intelligence.