Cloud-based Universe tool

Collapse

Recommended Videos

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ddurrrr
    Rookie
    • Apr 2013
    • 97

    #76
    Re: Cloud-based Universe tool

    Originally posted by ChaelMir
    ok I get you

    this is what i can see
    I managed to fix my event page.

    When you go to create a new Lightning record page for Event you get options to create App, Home and Record page. Select the Record page.
    Then you type the label (doesn't matter what) and Object. For object select Event (when you type it in it should pop up).
    Now when you drag and drop the visualforce it should show the Event graphics like in the Readme.

    For Fighter page I still get the same error for Rankings:
    List has no rows for assignment to SObject
    An unexpected error has occurred. Your development organization has been notified.

    I created a event with 2 fights and assigned rankings to all 4 fighters.

    Also @Lars what setup you have for Lightning record pages? What template and components? For Event and Fighter. Because I need to create a new one, there is no default one like in the Readme.

    Comment

    • LarsP
      Pro
      • Mar 2016
      • 720

      #77
      Re: Cloud-based Universe tool

      @ddurrrr, you tried to put the RankingsOverview on the Fighter record page right, not on the Event page?
      I can't think of something that would cause the error you got, if you put the Rankings Overview on the right page. The code that gives an error is this:

      Code:
      Fighter__c currentFighter = [SELECT Id, Name, Weightclass__c FROM Fighter__c WHERE Id =:currentRecord.id];
      Which means it can't find the fighter from the page you are currently viewing, which imo can only happen if you put the Rankings visualforce component on another page that is not the Fighter Record Page.

      For the Lightning Record Pages setup I use 'record page' and 'Clone Salesforce default'.

      Comment

      • ChaelMir
        Rookie
        • Jul 2017
        • 80

        #78
        Re: Cloud-based Universe tool

        Hi, this is what I can now see on the screenshot, page has been activated
        Attached Files

        Comment

        • LarsP
          Pro
          • Mar 2016
          • 720

          #79
          Re: Cloud-based Universe tool

          And how does it look when you're not editing the page?

          Comment

          • ddurrrr
            Rookie
            • Apr 2013
            • 97

            #80
            Re: Cloud-based Universe tool

            Originally posted by LarsP
            @ddurrrr, you tried to put the RankingsOverview on the Fighter record page right, not on the Event page?
            I can't think of something that would cause the error you got, if you put the Rankings Overview on the right page. The code that gives an error is this:

            Code:
            Fighter__c currentFighter = [SELECT Id, Name, Weightclass__c FROM Fighter__c WHERE Id =:currentRecord.id];
            Which means it can't find the fighter from the page you are currently viewing, which imo can only happen if you put the Rankings visualforce component on another page that is not the Fighter Record Page.

            For the Lightning Record Pages setup I use 'record page' and 'Clone Salesforce default'.
            So I deleted the Fighter page and tried again. Same thing happens.
            When I start the app and go to the Fighter tab I can see the list of fighters. Then when I click on a fighter I see the Lightning record page. Should be like that right? On that page I see the fighter info but in the Rankings Overview window I get that same error message.

            Comment

            • LarsP
              Pro
              • Mar 2016
              • 720

              #81
              Re: Cloud-based Universe tool

              If you want, you can PM me your login credentials for Salesforce and I will take a look.

              Comment

              • LarsP
                Pro
                • Mar 2016
                • 720

                #82
                Re: Cloud-based Universe tool

                Allright, I hadn't account for the fact that there might not be a champion (yet), I've updated both RankingOverviewController.apxc and RankingsOverview.vfp in github.

                Comment

                • ChaelMir
                  Rookie
                  • Jul 2017
                  • 80

                  #83
                  Re: Cloud-based Universe tool

                  Just tried to update with the new settings but saw these error messages on the developer console
                  Attached Files

                  Comment

                  • LarsP
                    Pro
                    • Mar 2016
                    • 720

                    #84
                    Re: Cloud-based Universe tool

                    The errors you see are with the EventOverview, I havent updated this.

                    Comment

                    • ChaelMir
                      Rookie
                      • Jul 2017
                      • 80

                      #85
                      Re: Cloud-based Universe tool

                      So once I have a champion the event overview should be alright?

                      Comment

                      • TheRizzzle
                        MVP
                        • Apr 2016
                        • 1443

                        #86
                        Re: Cloud-based Universe tool

                        I haven't even begun to set this up yet but is it possible to customize the ranking guiding principles ourselves after we have it all set up?

                        Sent from my SM-N975U using Tapatalk

                        Comment

                        • LarsP
                          Pro
                          • Mar 2016
                          • 720

                          #87
                          Re: Cloud-based Universe tool

                          Originally posted by TheRizzzle
                          I haven't even begun to set this up yet but is it possible to customize the ranking guiding principles ourselves after we have it all set up?

                          Sent from my SM-N975U using Tapatalk
                          Yes it is possible to manually edit the rankings, if that is what you mean.

                          Comment

                          • PleasantFinn
                            Just started!
                            • Sep 2021
                            • 1

                            #88
                            Re: Cloud-based Universe tool

                            Hello! I am running into this error when trying to complete an event:


                            Event: execution of AfterUpdate caused by: System.SObjectException: SObject row was retrieved via SOQL without querying the requested field: Fighter__c.Champion__c Class.EventTriggerHandler.sync: line 83, column 1 Class.EventTriggerHandler.OnAfterUpdate: line 12, column 1 Trigger.Event: line 15, column 1


                            Any idea of what is wrong?

                            Comment

                            Working...