Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Allan Bowe
    @allanbowe
    cors IS the problem
    can you try serving from the web server instead?
    do you have access?
    cpagrawal
    @cpagrawal
    you mean localhost ?
    I do not have chrome there .
    Allan Bowe
    @allanbowe
    you don't need a browser there, just to save the .html and .js files into the root
    cpagrawal
    @cpagrawal
    XMLHttpRequest cannot load http://vm00002596:8080/SASLogon/Logon.do. Redirect from 'http://vm00002596:8080/SASLogon/Logon.do' to 'http://vm00002596.solon.prd/SASLogon/login' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://vm00002596' is therefore not allowed access.
    Allan Bowe
    @allanbowe
    use the fully quaified domain in your hostUrl parameter
    {hostUrl: 'http://vm00002596.solon.prd:8080/'}
    cpagrawal
    @cpagrawal
    getting same error
    I need to leave. I will continue the work at home on my vmware machine.
    Thank You for support.
    Allan Bowe
    @allanbowe
    Allan Bowe
    @allanbowe
    Hey guys - are there any plans to host a CDN for the h54s .js library? Perhaps with copy-paste SRI ?
    Nikola Markovic
    @boemska-nik
    @rawfocus one would assume you'd have heard of rawgit :smile:
    if you haven't, check it out
    Nikola Markovic
    @boemska-nik
    I found where we know @cpagrawal from!!!
    good to meet you in person CP
    cpagrawal
    @cpagrawal
    It was nice meeting. 😀
    pmc129
    @pmc129
    Hello, I am trying to build a Web App on a customer's SAS Infrastructure. I copied h54s.js, h54s.min.js and your example index.html file to same directory on the SAS Web Server. Via the Chrome console I tried execute a stored process and got the error message "Unable to parse response json". I defined the adapter as var adapter=new h54s({hostUrl: 'https://stuff.company.net/',maxXhrRetries: 0, debug: false}); and executed the call function as adapter.call('/Metadata_Directory/Program',null,function(err, res) {
    if(err) {
    //Houston we have a problem
    console.log(err);
    } else {
    //res is an object returned from the server
    console.log(res);
    }
    });
    It appears the stored Process does not get executed. Do have any idea, what the problem could be? Sadly I have no experience in web developing.
    pmc129
    @pmc129
    the full Error Message is
    "h54sError: Unable to parse response json
    at new h54sError (SERVER/h54s.js:12:11)
    at Object.success (SERVER/h54s.js:575:24)
    at XMLHttpRequest.request.onreadystatechange (SERVER/h54s.js:391:27)"
    Nikola Markovic
    @boemska-nik
    hey @pmc129 - noooo idea why we didn't get alerted on this ^^
    next time drop us a line or raise an issue
    the adapter is really designed to be used by developers with some front-end / javascript experience, but you can possibly make some progress if you're keen to do it yourself
    you'll need to have a look at the network tab in the chrome console to see what's going on and what's being returned by your SAS server when the function fires
    marouanegana
    @marouanegana

    Hello , EveryBody I need a general Advice ! So here is the situation :

    We have already a Java web application developped on SAS portal. ( Architecture : SAS - Oracle - Java ( with private frameworks for front end )
    A new version will be developed and we have to change the architecture so that front end developers can Use Angluar and drop Java .
    My question is , do you think that this migration can be tottaly handled with h54S as using SAS as a Backend for the App ?
    Second , the app features will be kind of complicated since we're dealing about Acturial Analysis , so is it worth it if you talk about performances and lot of users ?

    Finallly wich solution will be more efficient :
    1- SAS + H54s ==> Angular
    2-SAS <==> Java back end ==> Angular front

    Thanks for any Help and have a nice Day !

    Allan Bowe
    @allanbowe
    @marouanegana - great choice! We use Angular + H54s + SAS for all of our apps, it's efficient / scalable / secure. As your developers are probably aware, the Angular framework is built to handle complex applications (even actuarial ones!) with it's component based architecture and type safety (typescript), not to mention '00s of other good reasons.

    You're also in luck, as we literally just published the latest version of our seed app (not announced yet as I need to update the README): https://github.com/Boemska/clarity-h54s-seed-app.

    Using the clarity framework (based on bootstrap) you can have good looking apps in minutes, with all the Boemska 'app factory' good bits (logon redirect handling, log capture, h54s, 'batteries included').

    It would be great to discuss more, to understand your architecture and needs in more detail, before making a strong recommendation though. My email is allan@boemskats.com - lets have a proper chat.

    Nassim Niclas Youssef
    @nassimniclasyoussef_gitlab
    Hello i have used the npm installing of h54s whenever i try to create an h54s instance it give the error of h54s is undefiened
    i'm using Angular 5 and i created the instance inside java script located in assests folder
    Nassim Niclas Youssef
    @nassimniclasyoussef_gitlab
    i'm using Angular 5 and i created the instance inside java script located in assests folder
    Allan Bowe
    @allanbowe
    Hi Nassim - can you reproduce your issue, in a jsfiddle perhaps? In any case if you are using Angular, we recommend the seed app: https://github.com/Boemska/clarity-h54s-seed-app
    Nassim Niclas Youssef
    @nassimniclasyoussef_gitlab
    Hello Mr. Bowe
    Thank you for your input
    Nassim Niclas Youssef
    @nassimniclasyoussef_gitlab
    image.png
    image.png

    Hello
    I'm having some errors while run the above snippet anything wrong , is there any additional configuration,initialization to make ? I'm running angular 7 with sas driven by SAS university edition

    Thank your for your time,

    Regards,

    BarryCowie
    @BarryCowie
    @allanbowe - I was wondering if it is possible to use the data connector to download & upload binary files. We have a typical 3 server setup (Meta, App, Mid), with some CSV files sitting on the App server, which I would like to share via a website on the Midtier. I have managed to get the h54s adapter working (Still need to do a login for it), now just looking for a way to call a back end STP with a file I wish to download or upload.
    Allan Bowe
    @allanbowe
    Hi Barry - for file upload / download, you can handle this without the adapter. You just need to set the http header, and stream the file to _webout. Here is a code snipped:
    t
    data _null_; rc = stpsrv_header('Content-type',"application/&mimetype"); rc = stpsrv_header('Content-disposition',"attachment; filename=&table..&ext"); run; %mp_binarycopy(inloc="&outfile" ,outref=_webout);
    BarryCowie
    @BarryCowie
    @allanbowe - Thanks, much appreciated, the web side of SAS has always been my stumbling block, I rarely get the chance to do any of the stuff, thank you again, will try it out tomorrow
    Allan Bowe
    @allanbowe
    happy to jump on a video call and talk through it
    BarryCowie
    @BarryCowie
    @allanbowe - Thanks, will see how I get on, quite enjoy playing around with all this to be honest, good to learn something new.....I ended up using DataTables.js with the h54s adaptor, due to HandsonTables now charging for commercial use, so that was a good task trying to figure that out......will update how I get on with it
    Allan Bowe
    @allanbowe
    Please do! Also (fyi) we recently made our Angular Seed App available on github - it uses v2 of the adapter, and provides the logon redirect as well as log handling etc. https://github.com/Boemska/clarity-h54s-seed-app
    BarryCowie
    @BarryCowie
    Ahh, thanks, did not dive too far in, will have a look at that tomorrow as well, will save a bit fo work, and can I say they data adapter is fab!, makes it so much easier to make pretty HTML from ends that play nice with SAS :)
    Allan Bowe
    @allanbowe
    Glad to hear it! File upload / downloads is a common use case, here's an example in action: https://vimeo.com/329213766