Getting data from offline published title

lby
lby Community Member Posts: 21
I want to run a title in a Win-10 tablet offline and want to store/read variables to/from database (e.g. score, progress, last location) so that a report can be generated. I have read that this can be done via 'cgi script' and Put and Get  but I am kind of confused. I think (?) this is done inside the title in some script.

There will be an app that registers users in the db and when user login he/she can launch the title and that's the data I want to store in the db. The app is being written but the guys don't know anything about Lectora and I want to know what can I do an/or tell them to get the info.

Does anyone has any suggestions please?

Thanks,
Louie
Lectora Inspire 18

Comments

  • wheels
    wheels Community Member, Administrator, Moderator, Rockstar Manager Posts: 685 eLearning ROCKSTAR Admin Team
    So this is a pretty involved topic, and you'd be better off if you can get down to some specifics.

    For now maybe try these examples for a leader board, it shows how to interact with variables and putting in scripting to do two way server communication.

    https://elearningbrothers.com/blog/how-to-create-a-leaderboard-elearning-google/

    https://elearningbrothers.com/blog/how-to-create-a-leaderboard-elearning-google-part-2/
  • lby
    lby Community Member Posts: 21
    Thanks Joe.

    I am a taking a look at this now. I hope it guides me in the right direction.

    The samples you sent me deal with  writing/reading data to Google which I imagine is similar to a database through cgi script, correct?

    Thanks again for your help.

    Luis
  • wheels
    wheels Community Member, Administrator, Moderator, Rockstar Manager Posts: 685 eLearning ROCKSTAR Admin Team
    Hi @LBY,

    I picked the example because it shows the necessary client side pieces that you need to do Lectora to Server communication. For your server side situation you might search for specific information on that, this isn't probably the best place to get server side scripting information, unless it is specific to a supported feature in Lectora. But that being said there are a lot of very smart people in our forums who might jump at a challenge.

    Always glad to help (or try to help)!

    - Joe
  • carlfink
    carlfink Community Member Posts: 1,099 ✭ Legend ✭
    Joe, I don't know if you noticed, but LBY wants to interact with the database "offline". Perhaps via an EXE file? That takes the "server side" out of the equation, yes?

    I have never really used Lectora executables--do they start a local web server, the way previewing HTML does? Is that local server capable of database interactions?
  • wheels
    wheels Community Member, Administrator, Moderator, Rockstar Manager Posts: 685 eLearning ROCKSTAR Admin Team
    Hi @LBY,

    @CarlFink is right, I totally missed your use case of being in an offline environment. It would depend on what you have available on the Windows tablet, and if you plan to use published offline executables, or a HTTP server to run the courses. It would be helpful to expand on how you intend to launch the courses, if you still need help.

    - Joe