cancel
Showing results for 
Search instead for 
Did you mean: 

How to get system information on a visual composer model

Former Member
0 Kudos

Hi,

We are trying to build a model that will use some images, since we can not add images to the VC library we need to call the images using an URL, but the problem is that we would like to avoid to hard code the URL, since that will create a problem when we move the models across the landscape (DEV-TST-PRD) and we were thinking to use the system information to build the URL using an expresion.

Is it possible to get the system information on VC? just to clarify if I can get the system ID (system name) that will help us to define the URL.

Is there any other best practices to handle URLs without hard coding them?

Thanks for your help,

Zareh

Edited by: Zareh Vazquez on Aug 25, 2009 11:41 AM

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member71614
Active Participant
0 Kudos

You can add images to yoru VC solution model directly by selecting from the tools menu --> Image Manager then loading yoru images.

You can now reference these images from within your model as variables. Two controls that support this directly are the command button or image control. You will see under their propoerties values the image "tab" - you can now associate images you loaded for the Image Manger dynamically.

If your images are large and you want to store items for your portal in an external reference (outside VC). E.g. KM repository. You can define a shorturl for it and set a hyperlink object using this from VC or use the PCD address where the object is stored.

If you are trying to collect the portal url from R3/BI you can use the RSPOR_T_PORTAL (Maintained by BASIS) table values by using the BAPI RSWR_PORTAL_CONFIG_GET which will allow you to establish teh portal url prefix remotely.

Trust this resolves your challenge.

former_member341000
Participant
0 Kudos

Hi Basis Team,

The Image Manager is not available in the CE version, only in 04s (7.0 version).

Best regards,

Tal.

former_member341000
Participant
0 Kudos

Hi Zareh,

If this is still relevant, plese refer to [the following document|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/a0a0afa8-85b9-2c10-f2a8-842b97273c61] for information on how to upload images to CE server.

As explained in the document, you can use a relative URL for the image URL, which means that you only have to make sure that the image is located at the same location on the CE server you run the VC model on (which can easily be accomplished by deploying the same dynamic web project that contains the image to the server in question).

Best regards,

Tal.

former_member193545
Active Participant
0 Kudos

Hi

It is not possible to get the system information for use in VC, but another idea would be to create a data source for example a webservice which could provide a url when given a certain input, your VC model could then provide the service with the image ID and then use the returned URL to display the image.

Doing it this way would mean that you only have to change the location of the webservice.

Jarrod