cancel
Showing results for 
Search instead for 
Did you mean: 

JavaScript is not executing in iViews created with PDK.NET 2.0

Former Member
0 Kudos

Hi, All

We have created an application in Microsoft Visual Studio 2003 with SAP Portal Development Kit 2.0 and published on SAP Netweaver 2004s Portal.

There are some iViews are containg JavaScript in it, which works a toggle switch for display/hide for some of the infomration on the iViews.

This toggle switch works fine with iViews if we execute the same as Preview from Content Administration.

As soon as we attach these iViews into another iViews/Page, which inturn attached to a role.

Now when these iViews are executed, the toggle switch throws an error ( Error: Object required )

How it is possible that it works fine with preview option from Content Administration and throws an error while attaching it to the iView/Page to role.

Have anybody come accross this type of errors ?

Pl. Help.

Regards

Dilip Vyas

+919867553344

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi, Rima

As you are aware of the problem, thru OSS Query as well as sdn thread,

that JavaScript is not getting executed in iViews created with PDK.NET.

As I have mentioned that portal attach 10 characters id to custom objects randomly, which was the root cause of the problem.

We have handled the same by ignoring the first 10 characters in Client Side JavaScript.

And it Works !!!

Anyway, Thanks for your support and help.

Regards

Dilip Vyas

+919867553344

rima-sirich
Advisor
Advisor
0 Kudos

Hi,

PDK for .NET supports working with NW04s starting from SP9. In order to get full support you need:

1. To install [Hotfix 1|https://www.sdn.sap.com/irj/sdn/softwaredownload&download=/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/business_packages/a1-8-4/dotNET/Version20_Hotfix_1.zip] above PDK 2.0 for .NET ( don't forget to stop Portal Runtime for .NET service before applying the hotfix and start it again after applying the hotfix )

2. To upgrade to SP16 ( if you are interested to work with SAPRequiredValidator control )

Regards,

Rima.

Former Member
0 Kudos

Hi, Rima

Thanks for reply,

We have SP14 on our portal at present, and not using SAP Validator control, so I will try with HotFix and get back to you for help required, if any.

Regards

Dilip

Former Member
0 Kudos

Hi, Rima

We are using SAP Portal Runtime for .Net having 2.5, not 2.0, so I am not able to apply the hot fix on the same.

We have installed SAP Portal Runtime 2.0 on different machine with hotfix, but the problem remains as it is.

We will appreciate, if you can throw some light on this issue.

Thanks in Advance

Regards

Dilip Vyas

+919867553344

rima-sirich
Advisor
Advisor
0 Kudos

Hi,

In general, all installations, hotfixes and documentation are available in [.NET Interoperability Development Center|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/3ecbe347-0a01-0010-5897-dc8f159ae3de]. Particularly, Hotfix 1 for PDK 2.5 for .NET can be downloaded from [here.|https://www.sdn.sap.com/irj/sdn/softwaredownload?download=/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/business_packages/a1-8-4/dotnet/version25_hotfix_1.zip] As I already mentioned in my previous reply, don't forget to stop Portal Runtime for .NET service before applying the hotfix and start it again after applying the hotfix.

In case you have more then 1 Portal Runtime for .NET node, after applying the hotfix, you need to remove an additional Portal Runtime for .NET nodes that you have defined via epmmc.msc and define them again.

The problem that you described could persist because the Portal is still using PDK 2.5 for .NET runtime even if it was re-configured to work with PDK 2.0 for .NET runtime. You can check this by stopping PDK 2.5 for .NET runtime. If the Portal is using PDK 2.0 for .NET runtime then stopping PDK 2.5 for .NET runtime will not change anything. If the Portal is still using PDK 2.5 for .NET runtime then you will not be able to process .Net Portal Components.

Regards,

Rima.