How to get View shared link programmatically in Onedrive? - onedrive

In Onedrive, there is a way to create view link and edit link.
By selecting share -> get a link -> view and a view link is generated.
I want to know is there a way I can get this link programmatically.

Related

Best way to build Breadcrumb Menu in Visual Basic

I have a VB10 app that uses panels, one for menu, one for main screen and then i want to add one for a breadcrumb menu. I use user controls to display in pnlMain and would like the breadcrumb trail to add an link with user control info every time I add a screen to pnlmain...and remove the link when I click on the previous link.
I would like to build the links dynamically like they do here: http://www.codeproject.com/Articles/17714/Create-a-Breadcrumb-Menu-in-VB-NET-WinForms,
but I couldnt get the links to display when I ran the solution.
and if I get the links to show, how do I associate the user control to that link?
Thank you for your help. The breadcrumb shouldnt go more than 3-4 levels deep

How do I programmatically find an Eclipse view toolbar control?

I would like to support drag and drop of a file resource onto some plugin view toolbar buttons: this would involve attaching a DropTarget to the underlying Control (a Button). However it is unclear to me how programmatically to retrieve the Button - I can give it a unique id in the plugin.xml but what API calls would I use to then find it? Ideas welcome, thanks!
Update: the code fragment at Eclipse RCP obtain toolbar contributions programmatically shows how to navigate to get to the relevant IContributionItem, but then I need the model/widget...

Programmatically create grid view

I am working on an app in which i am trying to implement something like this :-
1: First of all,i created a button(whose name here is "Create a new folder"). On clicking that button,an alertview will appear which will ask for the name of the button which is going to be created on click.
2: The above process will be repeated each and everytime when we click on "create a new folder" button.
3:The buttons which are created at runtime will be arranged in a grid view format.
Above shown screenshot will let you know about the required arrangement.
I've tried this by using UITableview and making columns in it. But i am not able to create folders at runtime.Please help me find any way to solve this. Suggestions will be highly appreciated. Thanks in advance.
Try UICollectionView if you can require iOS 6. There is a simple Guide on Apple's site too.

Share to mail and messages

Where can I find any info about how to share image to mail or messages? Just like for example preview share function. Here is photos:
Is there any frameworks or something to achieve it easily, or there are some others methods?
Use the new share menu. Note that this is a new feature in Mountain Lion.
To create a Share menu in Interface Builder, select the appropriate
button. Then, in the Attributes pane of the inspector, specify
NSImageNameShareTemplate for the image. To create one using AppKit
programming interfaces, use NSImageNameShareTemplate to add an image
to a button
(NSButton).
If you create a Share button programmatically, in order for the Share
menu to behave as users expect, you need to set
sendActionOn:NSLeftMouseDownMask.

Sharepoint Quick Launch Issue

I want to add dynamic link add in quick launch my requirement is that
1) one list like topics and other is Chapter in chapter list i took look up of topics list
2)Now i want to add topic items as Heading Link in quick launch and chapters items are child link in quick launch based on Heading item...
Is this possible by programmatically??
if yes then tell me steps or any reference link
if not possible than any alternate ways to solve this issue?
Thanks In Advance............
If I had that requirement, I would:
create a simple quick launch item called "View Table of Contents" in the siteactions.xml file.
when the user clicks on that item, a javascript function is run that opens a modal dialog with the table of contents rendered from a simple aspx page with a TOC webpart in it.
then the user would click a link in the dialog and be taken to the chapter