Jump to content

pconkie

Frog Community Genius
  • Posts

    598
  • Joined

  • Last visited

Posts posted by pconkie

  1. Looking for best practice advice.

    If i create a new application and create some additional object and array variables like this:

    Com.Frog.Utils.require(
        '//package/applications/C0295B45200484DAA47C7F2BECF1800B961701CC47C32B14/assets/styles/main.css',
        '//package/applications/C0295B45200484DAA47C7F2BECF1800B961701CC47C32B14/assets/views/record.ejs',
        '//package/applications/C0295B45200484DAA47C7F2BECF1800B961701CC47C32B14/assets/views/main.ejs'
    ).then(function() {
        Com.Frog.Controllers.Application.extend('C0295B45200484DAA47C7F2BECF1800B961701CC47C32B14.Controllers.Core', {
            defaults: {}
        }, {
            packageID: 'C0295B45200484DAA47C7F2BECF1800B961701CC47C32B14',
            user_data: {},
            sanction_data: {},
            sorted_data: [],
            search_data: {subject:'all',year:'all',house:'all',reg:'all'},
            acyear: {},
            xhr: {readyState: 4},
          init: function() { },
          
          etc..

    Why can i only access some of them from a view when calling this.app?

    Capture.PNG.1eb253deaa1e4c22aae8e982353895b8.PNG

    How come user_data, sanction_data and sorted_data made it, but xhr, acyear and search_data didn't?

    How reliable is it that (say for example) my user_data object is available from the view by calling this.app.user_data? Or do I really need to supply it to the view explicitly when loading the view from production.js?

     To summarise, I seem to have two choices to access the user_data object from the view::

    this.element.find(".info").append(
      this.view('record.ejs', {
        user_data:user_data
      })
    );
    
    ////in the view use/////////
    <% user_data %>

    or

    this.element.find(".info-panel").append(
      this.view('record.ejs');
    );
    
    /////in the view use/////
    <% this.app.user_data %>

    Is one more efficient?  Why can't i take the second approach with e.g. search_data?

    I take it that it is better to work with views? As opposed to doing everything in the production.js file?  

    Thanks

    Paul

  2. Do the options (border, background, title, padding etc) only appear when you select custom? 

    Have you considered showing these for the pre-determined styles too (so those styles can be tinkered with?) This way you wouldn’t need ‘custom’ as an option at all.

  3. Why does the FrogCode App take so long to load?  7-12 minutes?!!

    This has been the case consistently over the last few months regardless of:

    • which computer I use
    • whether I am at school or home (different networks / internet providers)
    • time of day

    At least you can fast forward to the end of the video!

     

     

     

  4. Maybe I’ve missed something, but can I offer an option C? 

    If there is a mark (including zero) count it in the average. If there is no mark (-) don’t.

    Absent should definitely not count as zero. But if kid retrospectively does it, I’d like to leave the absent flag but enter a mark and have it count in the average.

    • Thanks 1
  5. Came across this old post again today: 

     

     

    It includes avatars like this :

     41CAA2D520030AC47386EF22BF76740FF54BB32C

     

    and like this :

    41CAA2EB20030F33930FAFBC7701300370C8617C

    and about 14 others that have no link.

    Are these images from frog or by the post owner ( @Phil Stiles )?  If they are available to download from frog, could somebody send me the link...

    Thanks

  6. Is there a way to filter by creation date when getting entries?

    FrogOS.fdp({
                    url: 'datastore/get',
                    path: '/api/fdp/2/',
                    type: 'GET',
                    data: {
                        target_uuid: myid,
                        created_on: {from: '1557579988', until: '1557589988'}
                    }

    Something like the above returns entries without error but only entries created on 1557579988 NOT between those two date-times. Similarly leaving out the 'until' portion altogether.

    Thanks

  7. @Matt

    @adamw

    With the (relatively) new Markbook app comes the fantastic feature of being able to see if a student has even bothered to open/read an assignment.

    I'd like frog to flag up for me all students who are (typically) not opening/reading assignments.

    Does the markbook expose an api which when provided with a student uuid (and maybe a date range too) returns a list of all assignments for that student including the flags for viewed/not viewed/completed-on time/completed-late/absent etc. A bit like what Assignment Monitor does when you search for a user, but with the new Markbook flags.

    This could be really powerful.

    Thanks

    • Like 1
  8. On 05/04/2019 at 14:23, ADT said:

    Ahhhhhhh formatting.......Its took me blinking ages to manually delete the stupid extra lines...  but i've uploaded Year 11 exam timetables.......  now just counting down the days till they get revised........................................ :S

    I’d write a strongly worded letter to Capita if I were you! Clearly there is a way for companies to pay money to capita and use an api to get this information out of Sims cleanly. Schools have to spen hours reformatting....

  9. I’ve got a site (site A) set to presentation mode.

    On another site (site B) I want to use the embed page widget to embed a single page from site A.

    The page picker used to select the page from site A from within the embed page widget on site B doesn’t work.  It renders site A in presentation mode within the page picker. Using the forward and back buttons closes the page picker rather than changing pages.

    I had to go to site A and change from presentation to site mode. Save and close. Go to site B, back onto the embed page widget to correctly select the page. Save and close. Then finally back into site A to switch back to presentation mode. Save and close.

    Please could the page picker widget preference ignore presentation mode!

    Thanks

  10. 2 hours ago, ADT said:

    Erm....  sorry to be a pain  again.......

    Anyone else had issues with putting this summers exams in.....  some of our kids have two pages worth of exam entries...  and it doesnt like it!!!

    And its messed up with kids with Special Requirements!!!


    Why does nothing work for us out of the box :$

    @pconkie

     

    Update....  looks like they are one in the same issue.....  when it goes over to another page it knacks!!! 

    Basically some kids second sheets start with a random Component Title -  P2f (some science exam) over hanging from the first page or Room - only (which we use for the special arrangements)

    Hmmmmmmmmm

    Make sure you have the latest version of the widget as I made some changes for George to fix the "more than one page" problem.

    As for the other issue, your format must have changed since your mock exams!!!  Why would that be?  I take it you used the *special* version of the macro i sent you?  Don't suppose the original version of the macro now works for you?!

  11. On 26/03/2019 at 09:03, Graham Quince said:

    Hi Paul

    Sorry, I'm not in the office today (or yesterday).   I have messaged the Design Team to see if they can figure out what's going on.   They're looking into it

    I know everyone is busy, but did anyone get to the bottom of this @Graham Quince?

  12. 3 minutes ago, ADT said:

    Folder.....

     

    When you say site?  Ive added an external link to the dashboard!!  got the file from reference from frog dive...

    I don't think you can do that! Well clearly it hasn't worked, but....

    if you add the folder on a blank site and use the site link or the site widget to put in on the dashboard then it should work.

    Alternatively I have a widget that works just like the good old web files brick in frog3 - upload whatever straight into it and whoever the site is shared with can view // contribute can add etc

  13. It uses the same code as the ‘menu’ frog code widget. Do you have this one downloaded? Just wondering if you added this to that page - do you get the same delay?  Second thought is perhaps it’s something about the new crystal theme - try changing theme for a minute and see if the delay persists.  I’ll look at the code again tomorrow to see if anything else comes to light 

×
×
  • Create New...