cancel
Showing results for 
Search instead for 
Did you mean: 

Server Details at runtime in VC

Former Member
0 Kudos

Hi All,

I have a hyperlink wherein the url would differ based on the sytem it is running.

eg on development system, it would be http://<development>:<port>/.

on test system, it would be http://<test>:<port>/.

on production system, it would be http://<production>:<port>/.

Is there a way in VC to get the server name dynamically based on the system on which the application is running.?

Regards,

Murtuza

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Murtuza,

If "http://<server>:<port>/<something0>/<something1>/<etc>" is the URL, then did you try giving

hyperlink address as just "/<something0>/<something1>/<etc>" ?

Let me know if it helps.

Regards,

Vani

Former Member
0 Kudos

Hi,

You can pass flag to VC model as parameter (for example, env=dev/test/prod).

[This doument |https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2090414b-cd20-2a10-d594-8de9d146044a]will explain how to do it.

And the next step is to declare 3 variables in Data Store : dev_path="http://<development>:<port>/" etc.

When you build the hyperlink get it's first part from Data Store appropriate to parameter passed to model.

Good luck,

Ola