cancel
Showing results for 
Search instead for 
Did you mean: 

How to read Cloud Foundry VCAP variables directly in UI5 MTA?

Shilpakrishna
Participant
0 Kudos

Hello,

Is it possible to read Cloud Foundry VCAP variables in UI5 MTA application directly? (Not via NodeJS service). Is yes, then how?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

mariusobert
Developer Advocate
Developer Advocate
0 Kudos

Hi Shilpa,

I'm afraid it's not possible. However, it is possible to leverage the Destination and Connectivity service via the app router (in case you're looking for a feature like this).

Shilpakrishna
Participant
0 Kudos

Hi Marius,

Ok, I think User Provided Service also cannot be read in UI5 MTA. right? Is there a way to access configurable parameters( not URLs) in UI5 MTA(built in feature , not custom DB tables)?

Thank you.

mariusobert
Developer Advocate
Developer Advocate
0 Kudos

Hi Shilpa,

You cannot read UPS either. Why would you like to access services from the UI5 module? Maybe there's a better way to achieve the same result.

Shilpakrishna
Participant
0 Kudos

Hi Marius,

I want to maintain global config parameters(key-value pair kinds) like admin email-id or send email=true/false which can be modified on the fly without deployment on respective environment. Ui5 reads this for application logic which is used across various applications on CloudFoundry. I assumed something like UPS would help.

What other approach(other than DB) would you propose?

Thank you.

mariusobert
Developer Advocate
Developer Advocate
0 Kudos

I'd also go for UPS in this case. I assume you have a "backend" for the UI5 app, so you could bind the USP to your backend and request the info from there.

Answers (0)