Focal Point
[SOLVED] IbComposer_enableHtmlElement - not working completely as expected

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1817066396

June 16, 2020, 11:41 AM
thinkWF
[SOLVED] IbComposer_enableHtmlElement - not working completely as expected
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
June 16, 2020, 04:31 PM
MartinY
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
June 16, 2020, 04:41 PM
thinkWF
Thank you Martin,

That worked as expected.


WebFOCUS 8206.08
Windows 10
Excel, HTML, PDF, AHTML
June 17, 2020, 07:19 AM
MartinY
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