Focal Point
[CLOSED] RIA Theme in HTML Composer won't allow you to disable an element?

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

July 12, 2012, 10:12 AM
kfreers
[CLOSED] RIA Theme in HTML Composer won't allow you to disable an element?
Good Morning Focal Point,

I converted a GUI page in HTML composer to the 'Clean' RIA Theme. The page looks much better and overall I'm very happy with the change. One thing I noticed though is that now, I can't disable the calendar control. I did this so I could control how far back the user could choose a date on the GUI page. If I disabled the calendar Control, it would still let the user pick a date but they couldn't type a date in manually? This is necessary because of the amount of data that might be pulled back if they put in a date more than one year ago.


Before RIA, there was an option under the properties section that was called 'disabled' and you could just choose 'Disabled' and any text in the calendar control would be greyed out. Once I converted, the 'Disabled' properity is no longer an option. Is there any way to get that functionality back on the calendar controls using RIA?

Thanks,

Keith

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


WebFOCUS 8.104
Windows, All Outputs
July 12, 2012, 03:20 PM
rfbowley
Well, my current client is at 7.6.10, so RIA is not available here. However, I have used the javascript:

 
    a=document.getElementById("calendar1");
	a.disabled=true;
 


in a lot of versions. I generally put that in the onInitialUpdate() function in the java script section of the page.


Robert F. Bowley Jr.
Owner
TaRa Solutions, LLC

In WebFOCUS since 2001
February 19, 2013, 10:08 AM
MAdams1
This code will stand up to product upgrades;

enable;
 IbComposer_enableHtmlElement('calendar1', true);  

disable:
 IbComposer_enableHtmlElement('calendar1', false); 



WebFOCUS Server 8.1.05
Windows 2008 Server
WebFOCUS AppStudio 8.1.05
Windows 7 Professional
IE 11 and Chrome Version 43.0.2357.124 m.
Mostly HTML, PDF, Excel, and AHTML