cancel
Showing results for 
Search instead for 
Did you mean: 

HTML View using an iView dynamically

JUNG
Participant
0 Kudos

Hello Visual Composer experts,

I want to use a SAP Enterprise Portal iView in a VC Model.

For that I use VC HTML View.

In the URL I put SAP EP IView reference, for instance :

http://<xxx>:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fevery_user!2f...

<xxx> stands for development portal.

When I transport my VC model to quality portal I need to manually replace <xxx> by <yyy>.

How can I avoid this ? How can I dynamically address the portal ?

I found something about using "portal:" that will replace http://<server>:<port>/irj/servlet/prt/portal/prtroot/  but did not succeed to make it works.

In the VC HTML view I tried to used "pcd" instead of "http" but again did not make it.

Can someone give me a clue ?

Rgds

Gilles

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Gilles,

Did you solve this issue?

Kind Regards,

Gilson

JUNG
Participant
0 Kudos

Hi Gilson,

Unfortunatly no.

Rgds

Gilles

former_member202465
Contributor
0 Kudos

Hello Jilles,

I hope this is relevant -

Option 1 (I'm not sure this is valid for your scenario)

It's possible to pass parameters to VC Start Point through the Query String. So I could model this way to open "nwa" on an "unknown" system (the field name in the Start Point is "URL_"):

Running it in the browser looks like this (notice the URL_ parameter):

Another option:

Execute a data service to get the basic URL. In each system this query returns a different result, so the modeling could remain general and unaware of this.

Then concatenate the post fix of the link and map into the HTML View element.

Thanks,

Udi

JUNG
Participant
0 Kudos

Hello Udi,

Thansk for your answer. Let me try to clarify my need.

I would like, for instance, to execute "My home" page in SAP EP using a VC HTML view.

I want this to work in all my SAP EP systems (Development, Quality and Production).

My current solution is :

  • a VC model with an HTML view, a variable where URL is hardcoded @URL and passed to this HTML view (similar as what you describe)
  • to import the VC model in each EP environment
  • change the URL to address the EP
  • deploy the model

I'm looking for a way to achieve this without modifying my VC model (@URL ) in each environnement.

So I'm looking for a way to address dynamically the system.

As explained I did try, without succes, with :

1) Using "portal:"  in the variable @URL

2) using pcd parameter in the VC HTML view (I did not understand how to use it)

I was expecting a dynamic way without calling a service.

Kind Regards

Gilles

former_member202465
Contributor
0 Kudos

Hello Gilles,

I don't know how to achieve this without passing the URL to VC, or calling a service from VC. I found the following documentation about PCD:

Portal URLs

Portal Content Directory (PCD) Overview

But I don't know if it helps your case.

Sorry!

Udi



JUNG
Participant
0 Kudos

Thanks Udi for your help.

PCD is the place where SAP EP objects like iViews are stored.

In the VC HTML view dialog box there are severall options and I cannot find documentation how to use them.

One of them is pcd and I would think it is a way to integrate SAP EP iView.

Other one is http  and I already used it successfully including passing parameters.

Rgds

Gilles

former_member202465
Contributor
0 Kudos

Hello Gilles,

I'll try to find the way to use it with the help of the team.

Thank you,

Udi

former_member202465
Contributor
0 Kudos

Hello Gilles,

I have checked this - the pcd functionality is currently not supported, sorry. You could open a ticket / it could be added as a feature request.

Thanks,

Udi

JUNG
Participant
0 Kudos

Thanks Udi for your investigation.

I will open an incident ticket as this provided option does not work.

Rgds

Gilles