Jump to content

adamw

Former Frog Staff
  • Posts

    515
  • Joined

  • Last visited

Posts posted by adamw

  1. On 02/02/2019 at 20:36, pconkie said:

    @adamw @Graham Quince I've had a problem reported to be by a parent regarding the Linked Document widget (mine not yours).  When using the MyFrog app, when a parent clicks to open a pdf, it opens, but can not be closed. You can not return to the dashboard either.  Only choice is to close the app and re-open.  The pdf either sits on top of the dashboard in a new transparent window or replaces the dashboard, but there in no back button or back gesture. The official widget opens the pdf in the frog document preview app. I was keen to see how other file downloads are handled by the app, so linked to an excel file using a text widget.  This open the file in a new window AND has a back button!  Please can you share how i could do one of the following: a) open the pdf in the frog document preview app; b) open the pdf the same way the cke editor does within the MyFrog app; c) send the pdf to open in the default browser e.g. safari for iOS.  Just to reiterate all works fine on desktop and mobile platforms, this is just an issue for users of the app.  I have tried variations of the target attribute with no effect.  I've tried the new html5 download attribute again with no effect.  For some reason the return key has stopped working for me on this forum, so sorry if this is hard to read!  Thanks Paul

    Sounds like it needs a quick re-visit to see what's going on. @Matt 

  2. Just a couple of brackets in the wrong place:

    FrogOS.fdp({
        path: Frog.Utilities.getBaseUrl() +'/api/2/',
        url: '',
        data: { 
          method: 'users.getChildren' 
        }
    }).done(function(response) {
      	var count = response.data.length;
      	if (count == 0) {
        	var result = "no children found";
        }
      	//loop over all returned children here:
      	for (var i = 0; i < response.data.length; i++) {
        	var user = response.data[i];
          var result = user.username;
        }
      }.bind(this));

     

    • Thanks 1
  3. 3 hours ago, mnicholson said:

    thanks - I had created my own bit of code (see below)...

     

    the issue im having is once i have the child's data in the array I need to draw out the username of said child, thats the error im getting...any help?

    
    <script>
    var target = ""; 
    FrogOS.fdp({
        path: Frog.Utilities.getBaseUrl() +'/api/2/',
        url: '',
        data: { method: 'users.getChildren' }
    }).done(function(response) {
        if (response.status.message == 'OK' && response.data.length > 0) {
            //found some children, let's log them:
            console.log(response.data);
            //var target = users.getChildren(username);
            var user = FrogOS.users.getChildren().username;
            document.getElementById("demo").innerHTML = user;
        }
        else {
            var target = "no children found";
            //no children attached to this account or some kind of error, do something?
        }
    });
    document.getElementById("demo").innerHTML = target;   
    </script>

     

    Try something like this:

    FrogOS.fdp({
        path: Frog.Utilities.getBaseUrl() +'/api/2/',
        url: '',
        data: { method: 'users.getChildren' }
    }.bind(this).done(function(response) {
      	var count = response.data.length;
      	if (count == 0) {
        	//handle no results here - for example a 'no children found' message
        }
      	//loop over all returned children here:
      	for (var i = 0; i < response.data.length; i++) {
        	var user = response.data[i];
          //you can then use it like this:
          // var display_name = user.display_name;
          // var username = user.username;
          // etc...	
        }
    }.bind(this));

     

  4. 1 hour ago, ADT said:

    See thats why i was hoping the extractor could do it.....  the data is there...  it just needs bringing into Frog in a way it can be used by a widget!!

    Just FYI, we've not forgotten about this. I'll keep pushing for it.

  5. 34 minutes ago, mnicholson said:

    thanks - but I might need some more help with this!

    what i need is a list of the children of that parent.  How can I use that code for this?  Can you point me to any example code?

    thanks

    Yes you can use the same API - all you need to do is send another param along with it that identifies the parent user: 'uuid'

    e.g. (untested but should be something like the below)

    var parent_users_uuid = "[some uuid goes here]";
    
    var request_data = {
        url: 'user/getChildren',
        path: '../api/fdp/2/',
        dataType: 'json user',
        converters: {
            'json user': function(data) {
                return data.response;
            }.bind(this)
        },
        data: {
            'user' : parent_users_uuid
        }
    }
    
    
    Frog.Model.fdpapi(request_data).done(function(response_data){
        // response_data should contain the children of that user
    }.bind(this)).error(function(err){
        //error handling here
    });

     

    Note that you can only get the data for other users children if you have the correct role in Frog. Admins will probably already have this role by default, other users won't. If you want staff to use this widget then you'll have to find and activate the 'Get user data for all users' role which is in:

    Groups and policies -> [some group] -> Frog Developer Platform -> Users -> Get user data for all users.

    Hope that helps.

  6. 6 minutes ago, ADT said:

    By the way....  yep that looks like the one i used!! :P

    If you want, I can request a copy of your DB and try it here. May be a couple of days before I get chance though. Or, we can wait and see how it looks after the next update?

  7. 5 minutes ago, ADT said:

    Nope no more...... no scrolling..... O.o

    Ah, okay - I've seen this bug before. If you don't have the mark scheme manager expanded to fill the full screen then you will see the scroll bars appear. The infinite-scroller won't kick in unless the scroll-bars show.

    I'll make a note to get it fixed.

  8. @ADT

    I replicated the data shown on my local development copy of Frog and this is what I got:

    grades.PNG

     

    I used the following grades in the markscheme:

    ms.PNG

    Can you confirm that is the same as the one you're using? It's possible that there was a bug that we've since fixed (I'll check into that). If not, then I could do with getting a copy of you're Frog DB so I can try and replicate the issue here.

  9. 3 minutes ago, ADT said:

    Colours which make no sense.... (by the way i changed the colours in system preferences)

    Bound.png

    Not sure how it works out if a kid is on target based on a percentage.....  when the grade is L1D*....  or how 60 & 26 is white and 54 is yellow!!

    Markbook.png

    I'd have to look at how you're markscheme is set up to be able to see what's going on. Is that markscheme one brought over from SIMS or one you've made yourself?

     

    Just now, ADT said:

    The other question you have got to ask is will @pconkie's assignment lookup be affected when its removed?

    Shouldn't be, as the api's won't be changing.

  10. 4 minutes ago, gbligh said:

    Is there a set date/release for when assignment manager will be going? Staff like it as it's a simple one to use, Markbook will look scary to them! :P

    I'm not sure. Most likely, It'll still be accessible for a while, during which time we hope people will switch over to using Markbook. The new assignments list works in much the same way as the old one, just with a bit more information and some new shiny colours :)

  11. 1 minute ago, ADT said:

    Most of our staff are creatures of habit..  anything new scares them!!! 

    I mentioned this morning in our Briefing that Assignments button has changed to Markbook and for further info check the  release notes attached on Frog notices.......  you'd think i had told them Ofsted were coming in 10 mins!!

    I'm sure once they see how much better it is, they'll adapt pretty quickly :)

  12. 14 minutes ago, ADT said:

    Just to keep staff clam here....  you aren't planning on getting rid of the current Assignment Manager app.........

    @Matt @Graham Quince @whowever reads this....

    Eventually - but the new section in Markbook Manager should do everything and more that assignment manager used to do. If there's something that it looks like we've missed, then let us know!

  13. 17 hours ago, mnicholson said:

    Hi

     

    I have used the getuser part of the API a few times to obtain such things as a logged in user's username etc.

    I am wondering - is it possible to use the API to obtain the names/id's of the children of a parent when they are logged in?

    any help much appreciated!

    Certainly:

    fdp/2/user/getChildren

    That should do the trick. I don't think you need to pass any params as it will use the logged in users credentials.

  14. The extractor will pull aspects and results from SIMS, which I think is a part of PEP. You then use the Frog Parent manager to configure them all and the various attainment widgets to show them.

    The other things (except for the exam timetables) I don't know about I'm afraid.

  15. 47 minutes ago, ADT said:

    Yep they are in per subject...  yep aspects!! :D

    Ah cool, I'll have a think about that, may be worth investigation. As a side note, do you export your aspects to Frog and display the results anywhere?

     

  16. 1 minute ago, ADT said:

    Sorry Adam...  TMG Target Minimum Grade....  so in the Markbook you have T/G Target Grade!!!

    Is that set on a per subject basis? Are these related to aspects in SIMS somehow?

  17. On 16/01/2019 at 11:39, ADT said:

    Who has it..  what do you think about it??

    On first glance i see its potential....  couple of bugs which i've flagged...  

    Would be instantly improved if you could pull in TMG's from SIMs???

    @pconkie @gbligh

    I'm not up on my SIMS lingo - TMG's?

  18. Just a quick update - I did a bit more testing and it seems that admins can delete anything via this widget - which is nice. Other users can see all the events, but only delete their own. If they press the delete button on one they don't own then it does nothing.

  19. Okay,

    So I spent some time at lunch creating a basic 'delete booking calendar event' widget. It's very bare-bones, but should serve as a good start for anyone to tweak to their own requirements.

    Booking Calendar.PNG

     

    It'll only show you booking calendars which you have access to AND have events that you have created on. You can't delete other peoples events from here (including admins, sorry) - this is mainly due to how the back-end works (it's fairly old code).

    I've put the widget on the FrogCode repo - so @Graham Quince should be able to sort people out.

    Just to reitterate, I've not fully tested this, so use it at your own risk and feel free to use it as a base for a more comprehensive widget.

     

    • Like 1
  20. 20 minutes ago, ADT said:

    Erm so i was editing some rules and i went to change a date...  erm but it wont let me select a date earlier than the date i selected the first time??

    That's got to be a bug right???

    Issue.png

    Does sound like a bug - what happens if you remove the rule and recreate it?

  21. 1 hour ago, Sean_M said:

    What about publisher files not being supported at all? (Maybe it's been explained and I missed it) Just need a little old download :( NOT PREVIEW (Network Files widget and in FrogDrive)

    Happy New Year! :P

    In system preferences -> file types -> select the profile you want to allow to use a new file type -> expand 'custom types' -> enter:

    vnd.ms-publisher

    then press add.

    You'll need to do this for all the profiles you want to enable publisher files for. As for why you need to do this - I suspect that it was probably missed when we created the original list, I'll see if we can get this added by default in future. @Matt

    Any problems, give the service desk a call - They'll be able to sort you out :)

     

    • Thanks 2
×
×
  • Create New...