How to implemenet "Edit in Browser" and "View in Browser" in custom ECB Menu

Hi,
i have build a custom ECB menu. I implemented for example "Edit in Microsoft xxx" Item successfully.
setDocType();
if (currentItemAppName != "" && currentItemOpenControl != "") {
strDisplayText = "";
if (currentItemAppName != " ")
strDisplayText = StBuildParam(L_EditIn_Text, currentItemAppName);
else {
var objEditor = StsOpenEnsureEx2(currentItemOpenControl + ".3");
if (objEditor != null)
strDisplayText = L_EditInApplication_Text;
if (strDisplayText != "") {
strAction = "editDocumentWithProgID2('" + currentItemFileUrl + "', '" + currentItemProgId + "', 'SharePoint.OpenDocuments', '0', '" + ctx.HttpRoot + "', '0')";
strImagePath = ctx.imagesPath + currentItemIcon;
CAMOpt(m, strDisplayText, strAction, strImagePath, null, 260);
CAMSep(m);
But i couldnt find any information to "Edit in Browser" and "View in Browser". I also look in the core.js and couldnt find any information about this.
Can someone help? How could i
implemenet "Edit in Browser" and "View in Browser" in my custom ECB Menu?
Best Regards
Bog
Developers Field Notes | www.bog1.de

Hi,
According to your post, my understanding is that you wanted to custom the “View in Browser” and “Edit in Browser” with ECB menu.
Per my knowledge, the view in browser and edit in browser use the STSNavigate method to navigate the page.
The URL would like below.
Edit in Browser:
http://YourServerName/sites/YourSiteName/_layouts/WordEditor.aspx?id=/sites/YourSIteName/YourLibraryName/YourFileName
View in Browser:
http://YourServerName/sites/YourSiteName/_layouts/WordViewer.aspx?id=/sites/YourSIteName/YourLibraryName/YourFileName
We can get the file name, then use following method to customize the view in browser or edit in browser.
function Custom_AddDocLibMenuItems(m, ctx) {
CAMOpt(m, 'Custom Edit In Browser', 'javascript:STSNavigate(siteurl+"_layouts/WordEditor.aspx?id="+currentItemFileUrl)');
CAMSep(m);
</script>
http://weblogs.asp.net/jan/customizing-the-sharepoint-ecb-with-javascript-part-1
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support

Similar Messages

  • In pages, when a create a document, potions of it, say several pages will be clumped together and it effects me editing their order.  It is like they are forever joined- How do I edit my document and print just one page or move just one page?

    In pages, when a create a document, potions of it, say several pages will be clumped together and it effects me editing their order.  It is like they are forever joined- How do I edit my document and print just one page or move just one page?

    May you open your eyes before creating a new thread ?
    Your question was already asked and answered today.
    https://discussions.apple.com/thread/3177074?tstart=0
    Yvan KOENIG (VALLAURIS, France) jeudi 14 juillet 2011 14:40:40
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8
    Please :
    Search for questions similar to your own
    before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • How do I edit the font and bold text in the message box in adobe send before sending to client?

    How do I edit the font and bold text in the message box in adobe send before sending to client?

    Hi BRAEWOOD DEVELOPMENTS,
    You can edit the Subject & Message when you've selected Send Personalized Invitations (though you can't change the font or style of the text).
    Best,
    Sara

  • How do I edit my alias and name in the new "My Settings" ?

    How do I edit my alias (and/or name) in the new "My Settings" panel ? The alias and name are not editable. When using myinfo.apple.com, there is no "alias" field. This seems to be only a feature in Discussions but is no more editable. Please help !

    I think that the idea is good, although nothing prevents that a "bad" user can create a new account on each login.
    The È is not the only problem. In Spain we use two last name, and in spanish translation of "my info", middle name is translated as first lasts name and english last name as second last name, so my alias is completely wrong (name + second last name).
    I think that nothing could happen if "good" users could change the alias once. I tried day after the warning, and I couldn't.

  • How do you edit the style and fonts of the twitter feed in MuseCC

    After you embed a twitter feed into your MuseCC website how do you edit the style and fonts of the feed to match the design and copy of the site to keep the branding consistent

    Thats not really easy..  maybe you find some informatione here: https://dev.twitter.com/discussions/11386

  • I have a custom template.  When I edit it and try to save it asks me to name it and then I end up with an additional custom template.  How do I edit the template and save the changes without creating another template?

    I have a custom template.  When I edit it and try to save it asks me to name it and then I end up with an additional custom template.  How do I edit the template and save the changes without creating another template?

    Hi Atrec,
    If you don't need your old custom template, save your changes with the same template name. It will tell you that this template exists and will ask you Replace? Say yes (if you do want to replace the old with the new!)
    To delete unwanted templates, go to Finder > Menu > Go and press the option key. Your Library will show in the Go Menu. Navigate to Library > Application Support > iWork > Numbers > Templates > My Templates.
    Delete any unwanted template by dragging it to the Trash or click on it then command-delete.
    Having gone to all that trouble to find My Templates folder, right click (or control click) on it and Make Alias. Drag the Alias to any convenient place for a quick way to get back to that folder.
    Regards,
    Ian.

  • Since installing Lion, no Finder window will open on the desktop.  I can see them through "Quick Look" and "View all Windows" in the contextual menu for Finder in the

    Since installing Lion, no Finder window will open on the desktop.  I can see them through "Quick Look" and "View all Windows" in the contextual menu for Finder in the dock.

    Help please!

  • In Pages document, how do I search for word and view its frequency and page numbers in a sidebar?

    I have a long document and I want to be able to search for certain key words and phrases, and then see how many times they appear in the document and exactly where.  How do I conduct this sort of search and viewing?  In the past, in Pages and Word, I've been able to view my "finds" in a sidebar but I can't figure out how to activate that service anymore.
    Thanks!

    Here is a word frequency concordance Automator Service that works in both versions of Pages. It does not present a page number reference. It is by descending count, and alphabetically, within the repetitive counts as shown in the image here. In any document, you select the text to process, then Menu > Application Name > Services > Frequency. The Service will open TextEdit with the n-pages of scrollable results. It is 16 pt Helvetica Neue for legibility.
    Here is the code:
    on run {input, parameters}
         try
              set mySelection to input as text
              set formatted_result to concordance(mySelection)
              if formatted_result is not null then
                   set textHeading to "Word Frequency List"
                   tell application "TextEdit"
                   activate
                         set NewDoc to make new document with properties {name:"Concordance"}
                         make new paragraph at beginning of text of NewDoc with data textHeading & return
                         make new paragraph at end of text of NewDoc with data formatted_result
                         tell text of NewDoc
                               set font to "Helvetica Neue"
                               set size to 16
                               set color of paragraph 1 to {0, 0, 65535}
                         end tell
                        end tell
              else
                        display dialog with title ¬
                         "No input selected" with icon stop ¬
                          giving up after 15
              end if
         on error errmsg number errnum
                    display alert ¬
                               "AppleScript Error" message errmsg & "[" & errnum & "]" as critical ¬
                                  giving up after 30
         end try
         return input
    end run
    on concordance(mySelection)
    -- Use Ruby to count word frequency and alphabetically sort words
        set rb to ¬
        "selected = String.new\nfreqs = Hash.new(0)\nselected = ARGV.join('  ').gsub(/[,.]/, \"\")\n
         words = selected.split(/[^\\w-]+/)\nwords.each { |word| freqs[word] += 1 }\n
         freqs_sorted = freqs.sort do |a,b|\n\t
         a.last == b.last ? a.first <=> b.first : b.last <=> a.last\nend\n
         freqs_sorted.each { |k,v| printf \"[ %8s ]          %s\", v, k }"
        do shell script "/usr/bin/ruby -e " & rb's quoted form & space & mySelection's quoted form
    end concordance
    Launch /Applications/Automator and choose New Document, then click the Service icon, and then select the Choose button.
    On the left, you will have a list of Libraries from which to choose workflow items. Find Library > Utilities. In the adjacent column, locate the Run Applescript workflow. Click on it, then drag and drop it in the large workflow window to your right.
    At the top, you can select Service receives text in any application. Leave Output replaces selected text unchecked.
    In your Run AppleScript workflow window, you will see AppleScript boilerplate. Click on it and press command+A, then backspace to delete this content. Copy and paste the above code into this Run AppleScript workflow window. Press the Run button in Automator's upper right corner. If (and it should) a TextEdit window pops up, you are good, and you want to press File > Save. A dialog box will pop-up where you can name your Service. I called my Frequency, you may wish to call it something else. Once you have save it, you can exit Automator. Services are deposited in yourlogin directory/Library/Services.
    If you have a Pages document open with text, either select it, or command+a to select the entire document. Now, you select your Service via Pages > Services > Frequency. This will now pop-up a new TextEdit document with the results. If you want to save this new document, you must use option+File to Save as...

  • How can I open two sites and view each side by side in a seperate window?

    What is correct procedure to open and view two windows at the same time?

    You can do that in different ways.<br />
    You can open two window or tear off one tab to a new window (right-click a tab: Move to New Window) and resize both windows as you like.
    You can also use an extension.
    *Fox Splitter: https://addons.mozilla.org/firefox/addon/fox-splitter/
    *Split Pannel: https://addons.mozilla.org/firefox/addon/split-pannel

  • How can i generate simple Entities and View Objects ... automatically ?

    Hello eveybody,
    I hope this is the right place i'm posting in. My question is ADF/Jdeveloper related.
    Here is my problem. Where i work, we use xsd files to design our beans and we generate java classes from this xsd file. Then we design these beans again through Jdeveloper when creating Entities and related views, associations, view links... so we design our beans two times ... Moreover, 90% of the time, the work we do using Jdeveloper is the following : Writing CRUD operation that are almost the same every time.
    So my question is very simple. What do you think is the best way to automatically generate entities, views, associations, views Links and why not module (module.xml and an empty implementation) from our xsd files. Then we'll use JDeveloper to customize the generated files.
    Your help would be very appreciated, brahim !
    Edited by: user10394923 on 29 oct. 2008 06:01

    I didn't understand the role of the beans that you generate from the XSD files. When you use ADF Business Components, you don't need those beans at all and you don't need to write code for any of the CRUD operations. Can you clarify what role the beans play in the application?

  • How do I edit a "fill and print form" using Acrobat XI?

    We recently upgraded to Adobe Acrobat Pro, version 11. We have some staff who previously created "fill and print" forms with Adobe Acrobat 10. However, now when they try to use version 11 to edit the form, they receive the following message: This form cannot be edited in Acrobat. Please use Adobe LiveCycle Designer to edit this form.
    If I remember correctly, version 10 (or some package suite) use to install LiveCycle along with version 10. This doesn't seem to be the case with version 11. So... How do we obtain LiveCycle Designer? Is it still available to install on a desktop or is it only available in the cloud?  Or, preferably, is there a way to edit the form using Acrobat Pro version 11?
    I don't work with Adobe forms myself, so any information you can provide will be extremely helpful. Thanks.

    LCD forms can only be edited in LCD. However, Adobe stopped distributing LCD together with Acrobat. You need to purchase it separately now, but if you had a previous license you can get it at a large discount, I think. Try the LCD forums for more info about that.

  • How do I edit a "fill and print form" using Acrobat Pro XI?

    We recently upgraded to Adobe Acrobat Pro, version 11. We have some staff who previously created "fill and print" forms with Adobe Acrobat 10. However, now when they try to use version 11 to edit the form, they receive the following message: This form cannot be edited in Acrobat. Please use Adobe LiveCycle Designer to edit this form.
    If I remember correctly, version 10 (or some package suite) use to install LiveCycle along with version 10. This doesn't seem to be the case with version 11. So... How do we obtain LiveCycle Designer? Is it still available to install on a desktop or is it only available in the cloud?  Or, preferably, is there a way to edit the form using Acrobat Pro version 11?
    I don't work with Adobe forms, so any information you can provide will be extremely helpful. Thanks.

    LCD forms can only be edited in LCD. However, Adobe stopped distributing LCD together with Acrobat. You need to purchase it separately now, but if you had a previous license you can get it at a large discount, I think. Try the LCD forums for more info about that.

  • How do I edit RAW photos and save as jpeg?

    HI! I have some RAW photos that I want to edit and save as jpeg. Will the edits compromise the file and how do I then save these edited files as jpegs and will that compromise the files? THANKS!

    What do you mean by “Will my files be compromised“?
    When you edit a photo with iPhoto you’re Original file is preserved exactly as it is, there are no changes made to it whatever.
    will I be able to make a readable disc?
    Why not? But what do you mean by “readable” Readable by who?
    Regards
    TD

  • How do I edit a drag and drop action in CP8?

    Once the drag-and-drop interaction is created, I cannot open the wizard again. In CP7, it was possible to edit the answers in properties. How do I do it in CP8?

    In cp 8 also you can edit the interaction. This you can do the same way as you were doing in Cp7. but you need to have a look in the rearrangement of properties into sections in drag and drop panel in CP8.
    I believe you are configuring the DnD interaction through launching the Wizard. After you configure the interaction open "Drag and Drop" panel from the "Window" Menu. Now In the Panel you can see the options to edit the interaction.
    For changing the answer matching you need to open "Correct answers" window(which you were finding in DnD properties panel in Cp7)in cp8 you can find this option from the same panel under "Options" Tab section.(as shown in snap shot)
    let me know if this resolves your issue.
    devraj

  • Ratings disappear on browser and viewer in full frame view

    My ratings disppeared completely. I got them back in browser mode (pressed u) but not in full frame. How do I get them back in full frame as well?

    Press "y"
    Pulldown menu/view/metadata display/...
    Tony

Maybe you are looking for

  • Letter of Credit value to be updated

    Hi Guys I have created a Financial Document for my Letter of Credit (LC) value of Rs.100 I have assigned the same to the sales order for the value of Rs.80 I have one more Sales order against this LC for Rs.40 Now my customer have went to the banker

  • EMail and SMS problem

    hi  I just got a Blackberry Pearl. I configured it to receive my email. Now there is an email icon and all the email goes there. BUT it also started going into the folder that was the repository for SMS text messages. So someone told me to go into ge

  • Regarding alv heading

    hi, i had made a report which is showing correct data but now i want to display the heading  and other fields which are used to be dere:-                                       <b>PHYSICAL INVENTORY REPORT</b> PERIOD:-   ___  TO  ___                  

  • VPP needs an extra code with Configurator?

    I've got a question about configurator and VPP codes. The help file for Configurator says you import an app and then import the spreadsheet of codes to authorize the apps. So I purchased 32 copies of an app for the 32 ipads in our cart. I went into i

  • How can I retrieve a lost password from my computer necessary to install Adobe flash player

    How can I retrieve a lost password from my computer necessary to install Adobe flash player