Jump to content

adamw

Former Frog Staff
  • Posts

    515
  • Joined

  • Last visited

Posts posted by adamw

  1. I put your question to the experts here at Frog and this is what they have suggested should work!

    c.trigger('os.internal.launchapp', {
        data: {
            name: appID,
            appModel: new Com.Frog.Model({
                'uuid' : appID,
                'role_name': Object.values(_Roles.serialize()).filter(function(role) {
                  return /app\.frogplay$/gim.test(role);
                })[0],
                'extended_data' : {
                  'from_package' : true
                }
              })
        }
    });

     

    • Thanks 1
  2. Hmm, I would expect the app name to be the same as it appears in your manifest - so probably something like the second example you showed.

    Is the app deployed? Also, I'll need to check that we can open Frogcode apps in that way, I never thought about that before!

  3. On 26/04/2020 at 01:05, pconkie said:

    Can anyone stop me from wasting any more time on this? @adamw Please!

    I need to open an app from a html widget (because I need to send the app an assignment uuid)

    I have code that does this from inside a frogcode widget, but it doesn't work in a html widget :( 

    I was getting: error trigger is not a function. Implying this.trigger wasn't the way to go.

    I got a little closer by using $('div.os_core:first') to trigger from, but still got an error about an undefined name.

    
    var c = $('div.os_core:first');
    var appID = "0597421320048F43D12ECF7C62B12F01382427CCB9FE4A12";
    
    c.trigger('os.internal.launchapp', {
      name: appID,
      assignment_uuid: "any assignment uuid",
      appModel: new Com.Frog.Model({
        'uuid' : appID,
        'role_name': Object.values(_Roles.serialize()).filter(function(role) {
          return /app\.frogplay$/gim.test(role);
        })[0],
        'extended_data' : {
          'from_package' : true
        }
      })
    });   

    Here is my code - you can see that i'm sending option data (assignment_uuid) and using my frogplay role to authorise (I can't figure out the roles but i'm sure this works as it worked in frogcode).

    Any ideas?

    Thanks

    Paul

     

    Try:

    FrogOS.openApp(
        'yourappnamehere',
        {
          assignment_uuid: "any assignment uuid",
        }
    );

    You have to open it with the app name, not the uuid (I think)

    • Thanks 1
  4. 41 minutes ago, ADT said:

    Not now...  But still shows everything!!

     

    image.png

    I told you there'd be bugs ?

    If you feel like being a test subject, see an updated version of the widget below:

    0EB62D3F2001B1EC1AA79F98DF136A0FC39DA43CF271E66D.tgz

     

    I put in some loaders and a preference that allows you to select only your own markbooks. After setting the preference and saving the widget you might have to refresh to get it to show. It's a bit odd for some reason ?

  5. 42 minutes ago, ADT said:

    So i logged in a my staff account...  chose Year 9....  and got this...  The ICT i get....  the other stuff i dont??

    Screen Shot 2020-04-27 at 10.50.18.png

     

    That is because you have the "view all markbooks" role, so when you select year 9 - you are seeing all year 9 markbooks that everyone has made - not just you.  We could probably add a preference that limits it to only markbooks  you've created - that can be in version 2 ?

    • Haha 1
  6. Yup - so the code is this:

    1. Get the current academic year

    2. Get all markbooks that the current user has access for this academic year

    3. Get all the tags (i.e. group names / year groups etc) from those markbooks and put them in a nice drop down at the top

    4. After selecting a tag, show all markbooks for that tag

    5. After selecting a markbook -draw the table

     

    Edit: So your HOD could create a new markbook that encompasses the data they want to see and it should show in the widget as something they can select.

  7. 8 hours ago, ADT said:

    By manually counting... yep!!!  But what we have done is have one person setting core work for a subject...  so say 370+ Yr 9's get an IT assignment set by this "gate keeper" !! Obviously through Markbooks we can mark our own class etc!!  But they are keen to find out how many of the 370+ kids have actually opened the assigment to check engagement...  without having ot look down the list and manually count!!

    @Graham Quince recons the data is there it just needs some cleaver person to make something to show it!! ?

    Okay, so I've put together a quick widget that might help out here. The assignment Engagement widget:

    It works off of the markbooks you have created in the system, and thus, shows only the markbooks you have access to see - which for most staff is probably all of them anyway.

    The first step is to select a "tag" - this will be in the drop down list at the top and will be basically things like "Year 2", "Year 4", "Reception" etc... Note that only tags that are used in markbooks show here.

    When you've selected a tag you get all the markbooks for that tag (for this academic year) below.

    Clicking on a markbook lists all the assignments in that markbook and the "Viewed" and "Unviewed" count.

    Clicking details will show you the display names of the users for each category.

    I'll give the widget to @Graham Quince on Monday, so if anyone wants it, please let him know.

    MASSIVE DISCLAIMER:

    I've only tested this on a very limited number of fake things I've created in my test environment, and I have no idea how well it will work on an actual production server. It's possible that it'll just melt, or die or have some otherwise previously unseen bugs - so don't plan to depend on it until you've tested it for yourself.

    There will probably be bugs, and I'll try and fix them as we find them (or just throw it at Quincy and run away ? )

     

    Now, if you don't mind, I have a large bottle of black spiced rum that isn't going to drink itself.

     

     

    ae1.PNGae2.PNG

    • Thanks 1
  8. 5 minutes ago, ADT said:

    By manually counting... yep!!!  But what we have done is have one person setting core work for a subject...  so say 370+ Yr 9's get an IT assignment set by this "gate keeper" !! Obviously through Markbooks we can mark our own class etc!!  But they are keen to find out how many of the 370+ kids have actually opened the assigment to check engagement...  without having ot look down the list and manually count!!

    @Graham Quince recons the data is there it just needs some cleaver person to make something to show it!! ?

    ah, I see!

    Perhaps some kind of filter, to filter out those that have/haven't opened the assignment (along with a count for each one) would be helpful? Something to suggest for future improvements I guess.

    Regarding the data being available, it will be somewhere - I'll have a look at how we bring that back.

    • Thanks 1
  9. 42 minutes ago, ADT said:

    Ive just been asked by another HOD...  at the moment they want to know how many kids are actually engaging with the work that is being set....  granted we can see how many have handed it in.... or have just hit hand in to get it off there lists....  but they are wanting to know how many havent even bothered to open the work at all!!

    Its something i think our Head is interesting in knowing as well!!

    So if anyone fancies putting down their playstation controller and playing with the API!!! ?

    @Graham Quince

    Isn't this something the HOD can get from the markbook?

    markbook.PNG

  10. 3 hours ago, S Marcham said:

    Thanks Graham, I understand what you are saying, I will relay this back to the teachers. I'm not sure why they want to know who has or hasn't opened the assignments but this information might be enough anyway - thanks

     

    Wanting to know who had / hadn't opened an assignment was a very requested feature (which is why we added it ? ) - I guess there's a difference between someone opening the work and not doing it, and someone who simply doesn't bother to even log in. I imagine it's the same as having a child in the class that just sits at the back with their arms folded, doing nothing, vs not showing up to class at all.

     

    • Like 1
  11. On 14/04/2020 at 17:31, emoseley said:

    Is anyone else having a problem with due date changing to the day before they were set.  In other words if I set a due dat for a Friday, once I click save the due date is then Thursday. I have several teachers reporting this.

    If I had to guess, it will be because it will be 'due' on midnight of the day you select - and perhaps there are some odd timezone issues that are causing it to convert the time to one a few hours before - making it due the day before....

    I'd raise a support ticket - see if we can get this ironed out.

×
×
  • Create New...