Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Sharing documents between users
ankita
#1 Posted : Monday, 13 September 2010 4:57:07 PM(UTC)
Rank: Member

Joined: 13/07/2010(UTC)
Posts: 8
Location: India

Hi Roger,

I want to modify the source of GSP for implementing new feature called Share Documents between users.

Can you please guide me regarding that direction?

I am known to System.IO.File namespace but it gives us Move, Copy, Open, Read, Write, and other methods to use it.
But how can I share the physical path of a media object between different selected users.


Thanks if you can give me a hint even.


Thanks & Regards,
Ankita Shah - MCPDEA,
Team Lead
Roger Martin
#2 Posted : Monday, 13 September 2010 11:39:30 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

I am not quite sure what you are looking for. If you want to get the path to a media object and you know its ID, you can use the following:

Code:
int mediaObjectId = 5;
IGalleryObject mediaObject = Factory.LoadMediaObjectInstance(mediaObjectId);
string path = mediaObject.FullPhysicalPath;


This sample gets the path to a media object that has an ID of 5.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
ankita
#3 Posted : Tuesday, 14 September 2010 5:54:39 PM(UTC)
Rank: Member

Joined: 13/07/2010(UTC)
Posts: 8
Location: India

Hi,

Thanks for giving me hint.

I want one more help.

If I want to filter some data from the result collection like RowFilter with System.Data.DataTable then is there anything in GSP to do?
I want partially result from the actual result, so I have to apply RowFilter in the actual result but I couldn't find any method in GSP.
So, If anything I can use to resolve my purpose then please guide me.


Thanks & Regards,
Ankita Shah - MCPDEA,
Team Lead
Roger Martin
#4 Posted : Wednesday, 15 September 2010 1:12:57 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

I don't understand. Be more specific. What collection are you talking about? Maybe provide the sample of code you are working with to help clarify.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.