YellowFin integration in ASP.NET

Ahmad shared this question 4 years ago
Answered

Hello,

i have been trying to intergrate YellowFin in a sprate ASP.NET project, iam using the Javascript API V3

and exactly this;

yellowfin.init().then(() => {
yellowfin.loadDashboard({
dashboardUUID: '71858adf-3816-42e9-87cd-79f1bb2be637', 
element: document.querySelector('div#reportDiv'),
});
});


but then the login window always pops up and the user wont be able to see the dashboard without logging in,


/59483497c8b1fb1f8c3b88b24d656790


My question:

i want the user to be logged in already and able to see the Dashboard right away and dose not have to log in everytime when starts the webapp, how do i make a user login using Code? i tried almost everything so far, nothing worked for me

Replies (4)

photo
2

Hi Ahmad,

Thanks for reaching out.

I believe there to be two main options here:

-create a Guest Account enabled so that a login is not required. You can read more about this on the relevant Wiki entry here.

-input user details in your load dashboard API call. For example:

window.yellowfin.loadDashboardAPI().then(() => { 
    window.yellowfin.dashboards.loadDashboard({ 
        dashboardUUID: "c520108f-7635-4cf8-b055-a69e4bc16b83",
        element:  document.querySelector('#testDiv'),
        username: 'admin@yellowfin.com.au',
        password: 'test'
You may also get it to work with making your script src something like <script type="text/javascript" src="http://localhost:9292/JsAPI/v3?token=<%=rs.getLoginSessionId()%"></script>; and the call:
window.yellowfin.loadDashboardAPI().then(() => { 
    window.yellowfin.dashboards.loadDashboard({ 
        dashboardUUID: "c520108f-7635-4cf8-b055-a69e4bc16b83",
        element:  document.querySelector('#testDiv'),
        token: '<%=rs.getLoginSessionId()%>'

Please give one of these options a try and let me know how goes.

Regards,

Mike

photo
1

Hi Mike

thanks for your answer and sorry it took a bit to replay.

i tried both of the solutions but sadly didnt work for me iam still getting the Login window, i tried

    <script src="http://vm-yfb3at-1:9050/JsAPI/v3"></script>;
    <script src="https://code.jquery.com/jquery-3.5.1.js"></script>;

    <script>
        window.yellowfin.loadDashboardAPI().then(() => {
            window.yellowfin.dashboards.loadDashboard({
                dashboardUUID: '71858adf-3816-42e9-87cd-79f1bb2be637',
                element: document.querySelector('#reportDiv'),
                username: 'admin@yellowfin.com.au',
                password: 'test'
            });
        });
    </script>
and for the other method, i used postman to get the SSO token and hardcoded it there just for testing

using the SSO would be the best way for me if i can only get it to work, tho i did try some of these ways with the normal javascript API and most of them worked but with the Version 3 i'm always having trouble logging into YellowFin with code in a 3rd party webapp.


iam also using ASP.NET i dont know if that would change something.

also importent to mention that i have 3 different organisations, could it be a problem that the API dosent know on which organisation he should logon ? because its not given in the code.

is there a way in the API to define on which org should be logon ?

and also Yellowfin instance is on a sparte Server but its local Thanks again !

photo
1

Hi Ahmad,

I'm not sure whether this has something to do with the ASP.NET integration itself - I believing Consulting would be better situated to assist with something like this. That said, I'm not able to find csg-ms in our client information. Can you please supply your info.jsp file? This can be accessed by appending '/info.jsp' to your login URL. For example, localhost:8080/info.jsp.

Thanks,

Mike

photo
1

Hi Ahmad,

I just wanted to check in and see if I could receive feedback on the above request.

Regards,

Mike

photo
1

Hi Ahmad,

I'm going to go ahead and mark this one as Answered since I haven't heard back from you, but if you have further questions or concerns on this, if you respond (along with your info.jsp page), it will re-open the case and put it back in my queue and I'll be happy to help.

Regards,

Mike

photo
1

Hello Mike,

sorry about the late replay holidays times were a bit hard in here,

here is the Licence section from our JSP file

Licence Valid:Yes
Licenced To:CSG
Products:N/A
FeatureLicenceCurrent
Server Name:localhostlocalhost
Licenced Type:DEVELOPMENTFULLVERSION (or DEVELOPMENT)
Licence Issue Date:2020-11-122021-01-06
Expiration Date:2021-02-1136 Days Left
Data Sources:99993
Client Data Sources:99993
Consumers:9999 (19968)7
Writers:999930
Dashboard:999937
Server Cores:99992
Multicast:99992 (Enabled)
Clients:99992
Concurrent Users:9999
Concurrent Named Users:9999-
Concurrent User Mode:DISABLED
Signals Consumers:999937
REST Access for User Licence:--
Restricted Functions:
photo
1

Hi Ahmad,

Thanks for providing this. Someone in your region should be reaching out shortly to discuss this further. I hope to have something further for you soon.

Regards,

Mike

photo
1

Hello Mike,

thanks i really hope we can solve this problem

Kind Regards

Ahmad

photo
1

Hi Ahmad,

I'm sure we'll be able to get this sorted!

Regards,

Mike

photo
1

Really enjoyed reading your article, the information you delivered in this post was damn good. Keep sharing your post with efficient news.


https://espirittech.com/laravel-development-services/

photo
1

Nice blog. I finally found great post here Very interesting to read this article and very pleased to find this site. Great work!


https://espirittech.com/dot-net-application-development-company/

photo
photo
2

Hi Ahmad,

I just wanted to check in and see how things are going with this.

Regards,

Mike

photo
1

Hi Ahmad,

I see this is currently being discussed with your Account Manager and I believe Vienna Advantage as well. Regardless, this will be continued by someone outside of Support.

As such, I'm going to go ahead and close out this support case, but if you have any further questions or concerns (or don't hear back from anyone else in the next day or two), you can respond here and I will continue trying to facilitate this conversation for you.

Regards,

Mike

photo
1

The excellent post gained so much information, Keep posting like this.


https://espirittech.com/dot-net-application-development-company/

Leave a Comment
 
Attach a file