SmartView HypConnect VBA question

Hi Forum,

I created a Smartview database Excel spreadsheet that I want to connect and retrieve data using a selected macro button. I am able to successfully create a connection to the database using HypCreateConnection, but I am unable to get HypConnect to associate the sheet and connect to the database without Hardcoding the user name and the password in quotation marks in the code as below;

X = HypConnect (empty, "Admin", "Password", "EssConnect")

If I just use quotes, as below (which I think should open the connection manager and prompts the user to connect to the application), I get the message that there is no connection (error - 4) and return no connection manager opens. This is the preferred method to use security.

X = HypConnect (empty, "", "", "EssConnect")

If I use a variable, or leave the credentials without the quotes, as below, I get the same return message (error - 4). Incidentally, the documentation is in the format without the quotes.

X = HypConnect (empty, vtUserName, vtPassword, "EssConnect")

I use 11.1.2 with Excel 2003. Is this a bug or have I missed something fundamental? I have attached my complete code below for review;

Sub test().
Dim vtUserName As String
Dim vtPassWord As String
Dim X as long

vtUserName = Sheet1.Range ("B1"). Text
vtUserName = Sheet1.Range ("B2"). Text

X = HypCreateConnection (empty, vtUserName, vtPassword, HYP_ESSBASE, "[such only provided URL]", "[server as provided]", "Application", "Database", "EssConnect", "EssConnect")

X = HypConnect (empty, vtUserName, vtPassword, "EssConnect")

X = HypRetrieve (Empty)

End Sub

Please note that I used Sheet1("B2") to type the user name and Sheet1("B3") to type the password.

I'd appreciate any help that you provide.

HypConnect will never display the user interface. It is for you to build a user interface if you want this kind of interactivity with the user. That said, here are the options I think that you have.

1. build a user interface and pass the username and password correctly to the HypConnect call. If you get an error, then you must tell the user to try again.
2. use the VBA HypMenuVConnect() this will show Smart View Panel where the user can connect. Once connected, you can run the rest of your code. You can use HypConnected() to determine if they are connected.
3 3 demander ask the user to establish the connection using the SV UI, then run your code.

Hope that helps.

Tags: Business Intelligence

Similar Questions

  • SmartView Excel VBA and HypCell

    Hello, I'm trying to create a VBA function that takes a string as input and returns the SV data via the HypCell method.

    All three initially appear to derive the correct value.  However, change the string input or copy to another cell that refers to another channel continues to pull the original value.  In other words, regardless of the input string, each cell contains the same value.  Can anyone help solve this puzzle?

    Public Sub test().
    ActiveCell = HypCell (void, "#Expenses measures", "script #Actual")
    End Sub

    Public Function test2()
    Test2 = HypCell (empty, "Costs of measures #Operating", "#Actual script")
    End Function

    Public Function test3 (String str)

    Str = "measures fresh #Operating; Scenario #Actual.
    ' Application.Volatile
    test3 = HypCell (empty, str)
    End Function

    Thanks in advance

    Thank you for your help.  The problem is that capitalizaton.  'Measures' must be 'MEASURES' in our system.  Another point to note is that the SERVER "#" must precede the server while HSGETVALUE server is usually separated with nothing that precedes.

  • SmartView shared connections Question

    Where do you control which Essbase servers appear in the menu users when they choose the option 'Shared connections' and then choose Essbase? For new installations of customer our production and development server is being listed. The user can choose "Delete server" and get rid of it, but I would delete the development server from the original list that they see.

    What is an administrative option that I can control? Our services shared URL points to our production server http://server:19000 workspace / working/SmartViewProviders space. I have examined the APS configuration and workspace options but do not seem to find anything on this. FYI, we are on the latest version of Smartview/APS/Essbase 11.1.2.1.102.

    Thanks for any help on this.

    To remove a shared SmartView connection follow these steps:

    1: connect to the interop url: http://: 19000/interop

    2: expand Group Application-> Foundation-> metadata deployment-> shared-> Essbase Services registry-> and locate APS LWA.

    3: right click on the file 'datasources.xml' and select 'export to Edit.

    4: make a backup of the file.

    5: change the file - remove unwanted under type of Essbase server.

    6: right-click on datasource.xml and select "Import after Edit" and import the file back.

    7: restart the server of analytic provider Services.

    HTH-
    Jasmine.

  • Smart view Ribbon not displayed when Excel is called using VBA

    Hyperion dear gurus,.

    I am in need to call refresh smartview by calling excel with VBA from excel module in another sheet (master). But when I invloke Excel using VBA, smartview Ribbon not be enabled, because of which the HypConnect, HypVMenuRefresh command does not work. If I open excel directly and run the module, it connects very well and did the update with no problems. I tried to activate and deactivate the smartview using VBA, but it does not work either. If I call excel directly using a batch by using the call command, then it works fine, but the batch file does not close as if I use the ThisWorkbook.Close command, then it does not completely close Excel, the instance is running, and if I try to close it using Application.Quit, then it closes Excel completely. Any help would be much appreciated.

    Thank you and best regards,

    SiddN.

    Hello

    I was able to achieve this goal by using batch files by calling a excel models.

    Thank you

    SiddN.

  • Get "Dirty" to SmartView cells

    Hello

    I would like to know if it is possible to get the list of cells 'Sales' (modified but not yet submitted an online form) of Smartview via VBA, could someone means help me?

    Thank you

    DD

    Webforms so it's planning can be addressed to this group: planning and budgeting

    Looking for a list of Sales cells.  I don't see this in VBA SV orders.  You may be able to use Excel VBA to save the spreadsheet and compare cell values (dirty change color) may write them to a file as well.

  • Functions of SmartView VBA (connection to the APS and automate ad hoc retrieves)

    I tried a number of functions, all proved that it works?

    I can't successfully connect to the APS and launch ad hoc recovery on a new worksheet with a definite POV/content.

    Thoughts?

    I tried 100 permutations of the following:

    m = HypCreateConnection (void _
    "admin" _
    "password" _
    HYP_ESSBASE _
    "http://localhost: # / smartview/SmartView", _
    'localhost' _
    "App" _
    "BD1" _
    "TestConnect" _
    "Analytic Provider Services")

    I tried HYP_ANALYTIC_SERVICES instead of HYP_ESSBASE (or its value appropriate - I think that it is wrong), I tried many permutations and APS/SmartView also)

    If someone got it works? Just thought I would throw this out there.

    -Matt

    Published by: MattRollings on July 27, 2010 14:11

    Matt,

    I could operate in 11.1.1.3. I kept getting an error 4. As a last resort, I did some research. It seems that Mr. Goodwin has preveiously slayed the dragon.

    SmartView VBA - HypCreateConnection and HypConnect controls

    This code worked for me.
    Dave

  • Question of SmartView

    Hello

    I have two questions in my smartview.

    1. While looking for members of the selection of members, responsible of the search with a wildcard works some time and not in other times.

    2. in the cell style, I chose yellow color to shared members and green color to parent members.  But when refreshing, in some places, even for members of parent level it showing yellow instead of green.

    Help, please.

    example, here you can see my cell styles, "BOLD" for parent, yellow for shared, in this common case is actually a shared implicit member (parent of an only child) and gets the two formatting options applied.

  • SmartView VBA - can't set "Width of the column updated"

    Hi people,

    I am updating a series of workbooks based on the API VBA Essbase v9 on SmartView 11.1.2.1 and touched a problem - I am new to VBA SV commands, and I hope that it is something obvious that I'm missing.

    One of the functions which is essential to ensure recovery of data does not affect the layout of spreadsheets is the parameter 'Adjust the column widths', which, in the VBA Essbase API, could be managed by using the EssVSetSheetOption function, but neither HypSetGlobalOption nor HypSetSheetOption appear to have such a capability. The only option I have is to run get followed by some reformatting of the column widths, which seems rather ineligant for me.

    Any ideas?

    Thank you very much

    Dave

    research in the .bas file (and what needs to be included in your project that I find HSV_ADJUSTCOLUMNWIDTH in the definitions of the index count options to use for HypGetOption/HypSetOption

    Note, I'm looking at the 11.1.2.2 version, your mileage may vary depending on your version

  • Error VBA Hypretreive SmartView

    Hi all

    I am uisng 11.1.2 SmartView VBAs to retrieve values for 7 excel sheets in a workbook

    Sheet6.activate
    m = HypSetActiveConnection (connectionname)
    'Retrieve data for each sheet.
    X = ActiveSheet.Name
    Application.DisplayStatusBar = True
    STS4 = HypRetrieve (Sheet6)
    m = HypDisconnect (Feuil6, True)
    Application.StatusBar = "data recovery for" & X & "..." »
    Application.Wait Now + TimeValue("00:00:02")

    Here is given is the piece of code (macro, I am reproducing the same code for all 7 sheets)

    But every time that I run the macro... some of the leaves is not cooling properly. (this is random... sometimes first 3 gets refreshed... sometimes 4,5, 7)...

    The return status is always 4.

    Can anyone throw some light on this... what I have to wait longer before the next update.

    I tried to use HypMenuVRefresh and then it will fail with the following error message.

    "Can not interview members of the plug. Essbase Error (1290002): network error [10061]: unable to connect to [server: 32776]. The client has timed out waiting to connect to the server Essbase using the TCP/IP protocol. Make sure that the client computer has a sufficient number of available ports. »

    I tried to add MaxUserPort and TcpTimedWaitDelay and MaxFreeTcbs, but which did not help.

    I can be linked to an issue of timeout IE. http://support.Microsoft.com/kb/813827 try to increase the expiration time and see if that helps. Also, try a connection that is explicit in the code instead of simply set the active connection and see if that helps.

  • Question of SmartView - members and POV are not displayed through the Ad-Hoc analysis

    All,

    I see a problem with a SmartView users where it connects to an Essbase database it creates multiple sessions under his user name. The first session is active against the App/Db, it is connected to. The second session is empty display for the App/Db. While trying to make a function of Ad Hoc analysis, none of the members appear on the worksheet, and the POV is grayed out. I can't say I've never seen this problem before. I did a complete uninstall of SmartView and installed again without success. I also assured there is no other 'rogue' didn't excel open instances and yes 'Navigate without data' is not checked.  Everyone is in a similar situation?

    The current version of SV is 11.1.2.5.400

    Thank you

    JRG

    Looks like he was using the Smart View functions.  If you installed to a different location, I think that the links can get broken - I've never seen, but it is referenced in the docs: links of attachment in the functions

  • SmartView VBA with HypExecuteCalcScriptEx

    We have a function vba (click the button) that connects to the planning and uses application.sendkey (Alt + 1 + Y + D + C + B) to call the dialog box business rules with guests. But the application shortcut key doesn't always work. Therefore, we want to use the HypExecuteCalcScriptEx instead. Could someone tell how it works as it it comes to table settings.

    Take a look at the link https://docs.oracle.com/cd/E38438_01/epm.111223/sv_developer/ch10s05.html

    There explanation of each argument and it also has an example

    HTH

    Amarnath

    ORACLE | Essbase

  • Questions of SmartView

    Good afternoon

    just installed the latest version of Smart software view (Essbase) (server and user) and while the tests have noticed a few things that I hope someone can explain to me

    (1) it seems that once you access a spreadsheet using SV (Essbase), once registered, the worksheet remembers the connection even when closed.  (I noticed this trying to edit a spreadsheet already registered using databases to another.) Am I wrong?

    (2) I also noticed (we use Office 2010) that excel appears to hang much more now that the OAS is fixed.  Is this a known issue?

    (3) for sending an ASO cube data, when you change the numbers in the spreadsheet, the data grid becomes orange - why?

    (4) previous ASO cubic queue to users when they were questioning or sending data.  The latest ASO also tail?  or does allow simultaneous applications such as architecture of the OSB.

    (5) when sending data to a cube ASO, it seems that now it sends that any net change you've made, data presented previously sent ASO, the entire sheet of data that it had changed or not - is that correct?

    Hope someone can help me here

    Thanks as always

    You don't mention what version of Smart View you're on, because the answers could change based version see my answers below

    user3055639 wrote:

    Good afternoon

    just installed the latest version of Smart software view (Essbase) (server and user) and while the tests have noticed a few things that I hope someone can explain to me

    (1) it seems that once you access a spreadsheet using SV (Essbase), once registered, the worksheet remembers the connection even when closed.  (I noticed this trying to edit a spreadsheet already registered using databases to another.) Am I wrong?
    Yes you are right. He remembers the connection, if you want to remove the connection of the sheet on the Ribbon of Smart View, select the info sheet icon on it, you can remove connections for a sheet or the entire workbook

    (2) I also noticed (we use Office 2010) that excel appears to hang much more now that the OAS is fixed.  Is this a known issue?
    I didn't meet, my S mart point of view seems to be fairly stable. I get questions with Power point and privileges automation

    (3) for sending an ASO cube data, when you change the numbers in the spreadsheet, the data grid becomes orange - why?
    To tell you the data in the cells changed. It is similar to what planning does

    (4) previous ASO cubic queue to users when they were questioning or sending data.  The latest ASO also tail?  or does allow simultaneous applications such as architecture of the OSB.
    As much as I know there is no difference in works of the sending of the ASO. Since it sends chunks of data, it seems to be slower that submits BSO

    (5) when sending data to a cube ASO, it seems that now it sends that any net change you've made, data presented previously sent ASO, the entire sheet of data that it had changed or not - is that correct?
    I don't think that is correct. The that ASO submitted the working way is to create slices of data containing the differences between the original data and new data. It wouldn't make sense to create a slice with the value 0. When sending data to the cubes ASO, you should merge the slices when you can.

    Hope someone can help me here

    Thanks as always

  • SmartView 11.1.2.2 install Question

    I try to install SmartView 11.1.2.2 on Win 7. I have Office 2003 installed. I get an error: you need to install Microsoft Office 2003 or later before installing Smart View.

    Do not know what to do here as I already have Office 2010...

    What version of Smart View? (32 or 64 bit)? Is 32-bit or 64-bit Office?
    Smart View 64-bit is for the 64-bit version of Office (not for the 64 bit OS)
    Concerning

    Celvin
    http://www.orahyplabs.com

  • JavaScript and VBA: the Saga continues - a Question of JSObject.

    In concjunction with code VBA, JavaScript code below, applies an image of PDF417 barcode up to the upper right of a PDF document. Smart suggestions given by George Johnson and Gilad D I'm adding a button field to the document first and then add an icon for this button. the icon in flattened PDF format that contains the barcode image. The creation of the barcode PDF image is another story, that I can put if anyone cares.

    The JS code works well when I run with a document PDF is open and I select 'Apply the codes bar' of the newly created menu item. Either way, it also works when I run it from the console. In addition, based on what I've read (thanks Karl Kremer), you cannot call the "InsertPDF417Barcode" function directly from VBA, where creating a new menu item and the reference to the intermediary function "myAdd417Barcode".

    So, what I'm working to do is to run this sub VBA script, which is also listed below. But, when the "jso.myAdd417Barcode" line (in the VBA code) runs (or doesn't) I get an error - "doc is not defined", which is clearly an error being thrown Acrobat.

    Isn't 'doc' is 'defined' by 'This' in my line of 'app.addMenuItem '? Suggestions?

    Any help will be greatly appreciated.

    Thank you.

    My JS Code (in a script to the folder level):

    var InsertPDF417Barcode = app.trustedFunction (function (doc)

    {

    app.beginPriv ();

    var bcIconFileName = "/ C/Temp/bcTmpImage.pdf";

    var t = doc.addField ("bcFormID", "button", 0, [396, 756, 576, 720]);

    t.Display = display.visible;

    t.buttonPosition = position.iconOnly;

    t.buttonScaleHow = scaleHow.proportional;

    t.buttonScaleWhen = scaleWhen.always;

    t.buttonFitBounds = true;

    t.setButtonIcon

    var x = doc.importIcon ("myIcon", bcIconFileName, 0);

    var f = doc.getField ("bcFormID");

    var i = doc.getIcon ("myIcon")

    var y = f.buttonSetIcon (i);

    app.endPriv ();

    });

    function myAdd417Barcode (doc)

    {

    InsertPDF417Barcode (doc);

    }

    var menuParent = (app.viewerVersion < 10)? 'DocumentProcessing': 'change '.

    app.addSubMenu({)

    cName: "myTools."

    cUser: "my custom tools.

    cParent:menuParent,

    nPos:((app.viewerVersion<10)?) 0:7)

    });

    app.addMenuItem({)

    cName: "myPDF417Barcode."

    cUser: "barcode apply."

    cParent: "myTools."

    cExec: "myAdd417Barcode (this);", "

    nPos:1

    });

    My VBA Code:

    Void BarcodeDoc_PDF417 (String pdfFileName)

    Dim AVDoc As Acrobat.CAcroAVDoc

    Dim PDDoc As Acrobat.CAcroPDDoc

    Dim myApp as Acrobat.CAcroApp

    Jso As Object Dim

    Dim bcTmpFile As String

    bcTmpFile = "C:\Temp\bcTmpFile.pdf".

    Set myApp = CreateObject ("AcroExch.App")

    Set AVDoc = CreateObject ("AcroExch.AVDoc")

    If AVDoc.Open(pdfFileName, "") then

    Set PDDoc = AVDoc.GetPDDoc

    Define the jso = PDDoc.GetJSObject

    jso.myAdd417Barcode

    PDFSave PDDoc, bcTmpFile

    myApp.CloseAllDocs

    myApp.Exit

    Set AVDoc = Nothing

    Define the jso = Nothing

    Set PDDoc = Nothing

    Set myApp = Nothing

    On the other

    MsgBox "Document not found:" & vbCrLf & pdfFileName

    End If

    End Sub

    Let's take a look at your code:

    Define the jso = PDDoc.GetJSObject

    jso.myAdd417Barcode

    PDFSave PDDoc, bcTmpFile

    Your myAdd417Barcode function definition requires the doc variable passed. You don't do that, then this is perhaps the reason for your error message. In the next line, you call PDFSave, which is not part of the service API IAC, I assume you mean PDDoc.Save

    From my experience, you don't have to pass the 'this' pointer to a function that you call via the jso. This means that you can rewrite your JS code like this:

    function myAdd417Barcode()

    {

    InsertPDF417Barcode (this);

    }

    It should then work with VBA code to call myAdd417Barcode.

  • question of smartview Hyperion

    Hello
    I'm not able to display smart connection hyp, every time I try to put the username and password, it throws me error like "user credentials not valid Please enter correct user name and password" so that the user name and password are correct



    Please help me



    Thank you
    Paul

    1. log in to the console Essbase Administration Services (EAS).
    2. go to the Essbase server.
    3. right-click Security, and then select "refresh security of Shared Services.

    Try to access OAS and check.

    Please check the document below:

    Essbase Smartview error 'invalid user credentials. Please enter the right username and password to connect. "When you connect (Doc ID 1091351.1)

    Kind regards
    Priya

Maybe you are looking for