Skip to Content
0
Former Member
Jan 14, 2013 at 07:47 AM

htmlb is undefined in Netweaver Portal 7.31

41 Views

Hi All,

I have few pdk applications created in NWDS 7.0 , Now our portal is upgraded to 7.31.

In new NWDS 7.31 imported the Project , added the required jar files and updated the JDK version to jdk 6 and deployed it.

I am getting the java script error in few places like reading the index of "dropdown"

var funcName = htmlb_formid+"_getHtmlbElementId";

func = window[funcName];

var var1 = eval(func("Test_DD"));

alert("var1"+var1);

At times eval function works , sometimes it doesnt display this alert.

var prof_Index = var1.getIndex();

It gives me error at the above line saying

-----------------------------------------------------------------------------------------------

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; MS-RTC LM 8)
Timestamp: Thu, 10 Jan 2013 11:49:16 UTC


Message: 'htmlb_3592_htmlb_1505_1' is undefined
Line: 226
Char: 3
Code: 0

----------------------------------------------------------------

I tried changing .getIndex() to .getSelected() and .selectedIndex.

It works perfectly fine with Google Chrome browser.I am facing these problem only with Internet Explorer.

For some of the functiopnality it gives me Portal Runtime Exception saying "

com.sapportals.portal.prt.runtime.PortalRuntimeException: Could not create a context for: PortalAnywhere.default

at com.sap.portal.prt.component.PortalComponentContextFactory.createPortalComponentContext(PortalComponentContextFactory.java:182)

".

Could you please help me in resolving the issue.

Thanks in advance.

Regards

Akshaya