[Portfolio] FW: getting current user's userId

Ackerman, Erica ericaack at umich.edu
Thu May 12 11:34:12 PDT 2011


Just some final follow-up for anyone curious about the metadata I had recommended that David McPherson try to access -- it's only available once you have saved the form.

Erica

-----Original Message-----
From: David McPherson [mailto:dmcphers at vt.edu] 
Sent: Thursday, May 12, 2011 12:56 PM
To: Ackerman, Erica
Subject: Re: [Portfolio] getting current user's userId

That does make sense.  The problem then is that I need the user ID before the form is saved.  I need to be able to browse their My Workspace resources.  I suppose I may have to ask them to look for it or give me the url to it.

Thanks again,
Dave
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
David McPherson
Assistant Director, ePortfolio Initiatives
2210A Torgersen Hall
Learning Technologies
dmcphers at vt.edu
540-231-8993









On May 12, 2011, at 12:28 PM, Ackerman, Erica wrote:

> David,
> 
> For a form, you have to have saved the form once before the metadata is available. I think it will be in the passthrough of a presentation portfolio as long as you are using real data - that is, you are viewing a presentation that contains pages.
> 
> Does this help?
> 
> Erica
> 
> -----Original Message-----
> From: David McPherson [mailto:dmcphers at vt.edu] 
> Sent: Thursday, May 12, 2011 11:42 AM
> To: Ackerman, Erica
> Cc: portfolio at collab.sakaiproject.org
> Subject: Re: [Portfolio] getting current user's userId
> 
> Hi Erica,
> 
> Hmm...that would be good, but I'm not finding that in my form data.  I've attached a form to a passthrough renderer and captured that with out finding the id.  I've also hooked the form up to a portfolio template and run that through a passthrough with no luck again.  
> 
> I'm looking for the id at the point where the user is filling out the form to create the portfolio.  Is there something I should be putting in my xsd to capture that?  I may have left out something in that case.
> 
> Thanks,
> Dave
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> David McPherson
> Assistant Director, ePortfolio Initiatives
> 2210A Torgersen Hall
> Learning Technologies
> dmcphers at vt.edu
> 540-231-8993
> 
> 
> 
> 
> 
> 
> 
> 
> 
> On May 12, 2011, at 11:31 AM, Ackerman, Erica wrote:
> 
>> It sounds like what you are looking for is present in the metadata of each form and viewed portfolio. In forms you want:
>> 
>> /formView/formData/artifact/metadata/repositoryNode/owner/id or eid
>> 
>> In a completed portfolio, you are looking for:
>> 
>> /ospiPresentation//artifact/metadata/repositoryNode/owner/id or eid
>> 
>> In a completed portfolio, the metadata will be available for each artifact, rather than once for the portfolio as a whole.
>> 
>> Let me know if you are really looking for something else.
>> 
>> Erica
>> 
>> -----Original Message-----
>> From: portfolio-bounces at collab.sakaiproject.org [mailto:portfolio-bounces at collab.sakaiproject.org] On Behalf Of David McPherson
>> Sent: Thursday, May 12, 2011 11:23 AM
>> To: portfolio at collab.sakaiproject.org
>> Subject: [Portfolio] getting current user's userId
>> 
>> Hi All,
>> 
>> I'm attempting to develop a new gallery rendering page and I find that I need to be able to access the current user's my workspace.  I think I can do this if I can know their user id.  Does any one know of a way to get this without having to ask the user for their id?
>> 
>> Thanks,
>> Dave 
>> --
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> David McPherson
>> Assistant Director, ePortfolio Initiatives
>> 2210A Torgersen Hall
>> Learning Technologies
>> dmcphers at vt.edu
>> 540-231-8993
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> portfolio mailing list
>> portfolio at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/portfolio
>> 
>> TO UNSUBSCRIBE: send email to portfolio-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
> 



More information about the portfolio mailing list