Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

OBIEE 11g - How to capture HostName or Analytics URL in Presentation Variable

Received Response
96
Views
13
Comments
User_PSI4X
User_PSI4X Rank 2 - Community Beginner

Hi

Is it possible to capture the URL into a presentation variables in OBIEE 11g.

for instance, I am connected to "http://hostname:9704/analytics/saw.dll?Dashboard" I want to capture HostName or "http://hostname:9704/analytics/saw.dll" into a Presentation variable.

Is this possible ?

Any guidance or pointer would be highly appreciated.

Thanks

Andy

«1

Answers

  • [Deleted User]
    [Deleted User] Rank 2 - Community Beginner

    Most implementations just solve this by having a static repository variable representing that

  • User_PSI4X
    User_PSI4X Rank 2 - Community Beginner

    Hi Chris

    Thanks for taking time and suggesting.

    Just to be clear, I do not plan to hard code Hostname/URL into Static Repository Variable. How will it variable pick hostname/URL when connected DEV/QA/PROD?

    Can it be not implemented in Presentation Variables?

    Regards

    Andy

  • Hi,

    There are some variables giving you the hostname and few other things, but as far as I remember not the full link with http:// in front and the port number and /analytics...

    So what's your use case? (just an example of what you expect to use the variable for, in which place as ...)

  • [Deleted User]
    [Deleted User] Rank 2 - Community Beginner
    1042982 wrote:Hi ChrisThanks for taking time and suggesting.Just to be clear, I do not plan to hard code Hostname/URL into Static Repository Variable. How will it variable pick hostname/URL when connected DEV/QA/PROD? Can it be not implemented in Presentation Variables?RegardsAndy

    Not sure I get your insistence on the Presentation Variable.

    a) A repository variable can be dynamic by reading from a DB table.

    b) datamodel.sh -updaterpdvariables <--- invented for precisely that use case: updating things during the DEV/QA/PROD deployments

    c) Where would your hypothetic Presentation Variable get its value from?

  • User_PSI4X
    User_PSI4X Rank 2 - Community Beginner

    Ok, to be more precise on the requirement. I have to call the same report recursively by passing a parameters to it. I do this, using Action Link --> Navigate to Web Page". Here in Action, I want to dynamically change the URL/Hostname based on the environment on which the report is run. Hence, I was thinking to use a presentation variable here after fetching the required host with some tricks.

    pastedImage_0.png

  • [Deleted User]
    [Deleted User] Rank 2 - Community Beginner

    I know what you want to do. Why do you think a presentation variable will magically solve this? The instantiated value has to come from somewhere.

    Even SampleApp uses the approach I outlined. What don't you like about it?

    pastedImage_0.png

  • User_PSI4X
    User_PSI4X Rank 2 - Community Beginner

    OK got it, let me try what you have suggested. I was just wondering to avoid changes at RPD level as I don't have access to it.

  • [Deleted User]
    [Deleted User] Rank 2 - Community Beginner

    You're just stating "11g" so impossible say if global variables would be another vehicle for you - they're only there as of 11.1.1.9 - but that wouldn't change your basic issues:

    - Where do you expect the instantiated value come from?

    - How do you expect to keep this up-to-date?

  • User_PSI4X
    User_PSI4X Rank 2 - Community Beginner

    OBIEE version is 11.1.1.7. I was originally expecting the value to be fetched/updated from Analytics URL.

  • [Deleted User]
    [Deleted User] Rank 2 - Community Beginner

    Sorry to be obnoxious but there were literally sixteen (16) "11.1.1.7" versions  rolled out (ref. MOS Doc ID 1488475.1) so it would really help for most questions to know what you're *actually* running. Sixteen versions spanning four years of lifecycle tend to be "a bit different" as you can imagine.

    As for "expecting the value to be fetched/updated from Analytics URL": No. The system session variables and system presentation variables (ref.) give you a lot but not the host.