External Tool return url

221 views
Skip to first unread message

shraddha...@gmail.com

unread,
Apr 8, 2015, 7:55:34 AM4/8/15
to canvas-l...@googlegroups.com
Hi,
    I have created app in canvas, and i have added that app as a external tool in module section. I have selected my resources now the problem is after selecting resources i m unable to get return url. Can anyone please help me how do i get return url for my external tool in canvas?



Thanks,
Shraddha Raul

Becky Kinney

unread,
Apr 8, 2015, 8:06:13 AM4/8/15
to canvas-l...@googlegroups.com
If you are talking about the return url used to pass a grade back, you need to deploy your tool as an assignment. Otherwise, please let us know which url you need.

Becky Kinney
Academic Technology Services

--

---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Becky Kinney

unread,
Apr 8, 2015, 8:08:11 AM4/8/15
to canvas-l...@googlegroups.com
You also need to visit the assignment as a student. The grade passback url is specific to the student/assignment combination. You can think of it as pointing to a cell in the gradebook table.

Becky Kinney
Academic Technology Services

shraddha...@gmail.com

unread,
Apr 8, 2015, 8:10:27 AM4/8/15
to canvas-l...@googlegroups.com
Hi,
    Thanks for reply.
    I am asking about how to set  'launch_presentation_return_url' after selecting particular resource from the external tool.

Becky Kinney

unread,
Apr 8, 2015, 8:19:20 AM4/8/15
to canvas-l...@googlegroups.com
Ah, different thing. If you aren't seeing the launch_presentation_return_url, check your configuration xml. It needs to specify that you are using the resource selection extension.

<blti:extensions platform="canvas.instructure.com">

      <lticm:options name="resource_selection">
        <lticm:property name="url">[pathtoyour tool]</lticm:property>
        <lticm:property name="text">lesson-picker</lticm:property>
        <lticm:property name="selection_width">800</lticm:property>
        <lticm:property name="selection_height">600</lticm:property>
        <lticm:property name="enabled">true</lticm:property>
      </lticm:options>
    </blti:extensions>

Becky Kinney
Academic Technology Services

shraddha...@gmail.com

unread,
Apr 9, 2015, 2:59:22 AM4/9/15
to canvas-l...@googlegroups.com

Hi,

    If I set some url in this parameter, then that page is displayed directly on the pop-up.  I want to know how the URL is displayed automatically on the text box of 'Add Item to..' pop-up after selecting the resource.

Thanks,
Shraddha Raul

Brad Humphrey

unread,
Apr 9, 2015, 11:19:07 AM4/9/15
to canvas-l...@googlegroups.com
The LTI tool redirects to a canvas page with params indicating the location of the resource.  The canvas page loads in the popup iframe and runs some javascript which sends the information to the top canvas page and closes the popup.  

Becky Kinney

unread,
Apr 9, 2015, 11:19:36 AM4/9/15
to canvas-l...@googlegroups.com
I'm confused about what you are trying to do. When an instructor adds an external tool to a module, he should see a list of all available LTI tools. If he chooses a tool that supports resource selection, the tool itself opens up in a pop-up. The tool will must provide some mechanism that allows the instructor to select one of many possible resources. Once they select what they want, the tool must redirect to the launch_presentation_return_url with a get string containing the url of the selected resource [see docs]. At that point, the url field of the module item will contain the correct link. If your tool does not support resource selection, the url from the tool configuration will appear directly, and there is no pop-up. All this happens on the instructor side. When a student hits the module page, he will be taken directly to the url created by the instructor in the resource selection interface.

This works for me exactly as advertised. I'm happy to help you sort it out, but you will need to ask a more detailed question.

Becky Kinney
Academic Technology Services

Message has been deleted

Becky Kinney

unread,
Apr 15, 2015, 7:48:56 AM4/15/15
to canvas-l...@googlegroups.com
You don't need curl for the resource selection. Just redirect your page to the url provided in launch_presentation_return_url with the get parameters. That will get you back to Canvas, and enter the selected url into the content url field for that item in your module. So, closer to solution 2, except redirect the page instead of curl.

Becky Kinney
Academic Technology Services

On Wed, Apr 15, 2015 at 6:30 AM, Shraddha Raul <shraddha...@gmail.com> wrote:
Hi,

   Thanks for your support.
  1. Created one Instructor Account.
  2. In that created one new course.
  3. From 'Settings' tab, created one app through XML url and then saved it.
  4. From 'Modules' tab, created one module and in that tried to add a content.
  5. At that time I selected the 'External Tool' option and all the available external apps and also my newly created app is visible in that list.
  6. I selected my app and it is redirected to my courses which is showed in pop-up and  from that i can able to select the resources.
  7. My problem comes after this step. After the resources are selected and saved, i can't able to return back to canvas.

 

To solve this, i tried two solutions

Solution 1:
   

I tried to pass the url in my xml  as resource selection property,

 i.e

<lticm:options name="resource_selection">

<lticm:property name="url">......</lticm:property>


Status: No Success


Solution 2:

 

Using Curl I call  "launch_presentation_return_url" with following parameter
return_type='lti_launch_url'
url='path of my site'

Status: No Success



Thanks,
Shraddha Raul


--

---
You received this message because you are subscribed to a topic in the Google Groups "Canvas LMS Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/canvas-lms-users/_3QM3eo37A0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to canvas-lms-use...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Shraddha Raul

unread,
Apr 15, 2015, 8:10:11 AM4/15/15
to canvas-l...@googlegroups.com
Hi,

   Yes I got it.  Thanks a lot for ur timely help.

Thanks,
Shraddha Raul

Shraddha Raul

unread,
Apr 16, 2015, 6:40:54 AM4/16/15
to canvas-l...@googlegroups.com
Hi,

    I have one more doubt.  Is it possible to add multiple resource on single 'External Tool' launch.  If possible means just guide me how to add..

Thanks,
Shraddha Raul

Becky Kinney

unread,
Apr 16, 2015, 7:00:47 AM4/16/15
to canvas-l...@googlegroups.com
No, you can only send one url, but the landing page students end up at can contain links to as many pages as you want. 

Maybe you should not be using resource selection at all? The idea behind resource selection is that the professor can choose from a collection of resources each time they deploy the tool. Then the student only sees the resource selected. If you want students to see the resource options directly, maybe you should just disable resource selection, and display the list of links to the students.

Becky Kinney
Academic Technology Services

Shraddha Raul

unread,
Apr 16, 2015, 7:33:01 AM4/16/15
to canvas-l...@googlegroups.com
Hi,

    I wants to show it in the instructor side itself.  For example if I selected two resources, i.e., 1 Assignment and 1 Quiz from a course I want to display individual url for those resources.

Thanks,
Shraddha Raul

Becky Kinney

unread,
Apr 16, 2015, 7:34:44 AM4/16/15
to canvas-l...@googlegroups.com
Ah, I think I see. You can't do that in a single visit to the tool, but in a Module, you can add the same tool twice, selecting a different resource each time.

Becky Kinney
Academic Technology Services

Reply all
Reply to author
Forward
0 new messages