How to programmatically enable extension?

How to programmatically enable extension? Without manually clicking the Enable button in the extension screen.
-Thanks

See:
*http://mike.kaply.com/2012/02/09/integrating-add-ons-into-firefox/

Similar Messages

  • How do you programmatically "enable for commenting"?

    I have seen a million forum posts where people want to programmatically enable their pdfs for commenting, and the answer is: use LiveCycle.  We are considering buying LiveCycle for our server JUST for this purpose, since there doesn't seem to be any other way to do it.  Before we do, I want to know how it would work.  Since I don't have livecylce, I can't very well poke around and figure it out, and I don't see any free trial downloads.  Can anyone explain how you would go about this task?  On the other hand, isn't the pdf an open document standard?  Is there any way to modify the pdf "under the hood" to enable it for commenting, without using the Acrobat menu item?

    TO programmatically apply uage rights to a PDF document, see the topic named Applying Usage Rights to PDF Documents located at the following URL:
    http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/000411.html
    This will explain what to do and will lead you to the following Java code example:
    * This Java Quick Start uses the following JAR files
    * 1. adobe-reader-extensions-client.jar
    * 2. adobe-livecycle-client.jar
    * 3. adobe-usermanager-client.jar
    * 4. adobe-utilities.jar
    * 5. jbossall-client.jar (use a different JAR file if LiveCycle ES is not deployed
    * on JBoss)
    * These JAR files are located in the following path:
    * <install directory>/Adobe/LiveCycle8/LiveCycle_ES_SDK/client-libs
    * For complete details about the location of these JAR files,
    * see "Including LiveCycle ES library files" in Programming
    * with LiveCycle ES
    import com.adobe.livecycle.readerextensions.client.*;
    import java.util.*;
    import java.io.File;
    import java.io.FileInputStream;
    import com.adobe.idp.Document;
    import com.adobe.idp.dsc.clientsdk.ServiceClientFactory;
    import com.adobe.idp.dsc.clientsdk.ServiceClientFactoryProperties;
    public class ApplyUsageRights{
         public static void main(String[] args) {
           try{
                //Set connection properties required to invoke LiveCycle ES                                        
                Properties connectionProps = new Properties();
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_EJB_ENDPOINT, "jnp://localhost:1099");
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_TRANSPORT_PROTOCOL,ServiceClientFactoryProperties.DSC_EJB_PROTOCOL);         
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER_TYPE, "JBoss");
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_USERNAME, "administrator");
                connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_PASSWORD, "password");
                //Create a ServiceClientFactory object
                ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
                //Create a ReaderExtensionsServiceClient object
                ReaderExtensionsServiceClient reClient = new ReaderExtensionsServiceClient(myFactory);
                //Retrieve the PDF document to which to apply usage rights
                FileInputStream fileInputStream = new FileInputStream("C:\\Adobe\\Loan.pdf");
                Document inputPDF = new Document(fileInputStream);
                //Create a UsageRight object and specify specific usage rights
                UsageRights useRight = new UsageRights();
                useRight.setEnabledDynamicFormFields(true);
                useRight.setEnabledComments(true);
                useRight.setEnabledFormFillIn(true);
                useRight.setEnabledDigitalSignatures(true);
                //Create a ReaderExtensionsOptions object
                ReaderExtensionsOptionSpec reOptions = new ReaderExtensionsOptionSpec();
                //Set the usage rights
                reOptions.setUsageRights(useRight);
                reOptions.setMessage("This is a Rights-Enabled PDF Document");
                //Apply usage rights to a PDF document
                Document rightsEnabledPDF = reClient.applyUsageRights(
                     inputPDF,
                     "RE2",
                   null,
                   reOptions);
                //Create a new PDF file that represents the rights-enabled PDF document
                File resultFile = new File("C:\\Adobe\\Critique5.pdf");
                rightsEnabledPDF.copyToFile(resultFile);
              }catch (Exception e) {
                    e.printStackTrace();

  • Can anyone please advise how I 'enable' extensions in Safari 5.0.6. on an iBook G 4?

    Hi, can anyone please advise me how I  'enable' extensions in Safari 5.0.6. I have an iBook G4?
    and secondly,  is there anyway I can update from 10.5.8 Mac OSX on my iBook G4 ?
    I am a complete novice.
    Many thanks.
    thall3

    Try Safari > Preferences > Extensions
    Upgrade from v10.5.8 on an iBook G4? No. The next OS X up from v10.5 Leopard is v10.6 Snow Leopard.
    Requirements for Snow Leopard include an Intel procdessor. Your iBookG4 is PowerPC.
    Mac OS X v10.6 Snow Leopard - Technical Specifications

  • How do we programmatically "enable" the Page to have

    Some body known how do we programmatically "enable" the Page to have
    Item level security. - analogous to checking the box in the Page edit mode for "Enable item level security"
    J.

    Try this. It might work for you.
    declare
         l_page portal.wwsbr_api.page_record;
    begin
         select * into l_page
         from portal.wwv_user_owned_corners
         where siteid = <page group id>
         and id =<page id>;
         -- 0 is disabled . 1 is enabled.
         l_page.haveitemsecurity := 1;
         portal.wwsbr_api.modify_folder(
                   p_page => l_page
         wwpro_api_invalidation.execute_cache_invalidation;
         commit;
    end;
    regards
    Suresh.

  • How programmatically "enable" the Page to have Item level security

    Some body known how do we programmatically "enable" the Page to have
    Item level security. - analogous to checking the box in the Page edit mode for "Enable item level security"

    Hi, I only know portal.wwsbr_api.enable_ils_for_item.....
    You can perform actions on multiple objects simultaneously.
    Navigator > Page Groups(TAB) > PageGroup > Page > actions(link)
    Click on actions link and in LOV, select "Enable ILS".
    Hope this help.

  • How do I Enable Crud and other properties in ListViewWebPart programmatically

    In SharePoint (SharePoint Designer) 2010, to use a custom list in different sites, we used the resource to export the to site gallery. So the list became a list web part where I could use all the available resource list created on the
    same site (examples: list settings, crud, views ...)
    We need to provide the same functionality in 2013 programmatically for the user. We try ListViewWebPart class to use, but the resources of crud on the list were not available.
    I Would like to how do I enable crud and other properties in ListViewWebPart or if there is another class that does it.
    Thanks in advance

    Try below:
    http://www.dotnetcodesg.com/Article/UploadFile/2/216/CRUD%20%28Create%20Read%20Update%20Delete%29%20Operations%20on%20a%20SharePoint%20List%20programmatically.aspx
    usingSystem;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using Microsoft.SharePoint;
    namespace SharePoint__CRUD_Operations_on_a_List
    {   publicpartialclass Form1
    : Form   {
         public
    Form1()     {
              InitializeComponent();
        private voidForm1_Load(object
    sender, EventArgs e)
             BindAllRecords();
        private void BindAllRecords()
              using
    (SPSite site = newSPSite("http://localhost:7000"))
                    using
    (SPWeb web = site.OpenWeb())                 {
    SPList list = web.Lists["MyContacts"];
    SPListItemCollection items
    = list.Items; cmbItemId.DataSource = items.GetDataTable();
    cmbItemId.DisplayMember =
    "Id";
    cmbItemId.ValueMember =
    "Id";
    private void btnAllItems_Click(object
    sender, EventArgs e)         {
    GetAllItems(0);
    private void btn_Search_Click(object
    sender, EventArgs e)
    using (SPSite
    site = newSPSite("http://localhost:7000"))
    using (SPWeb
    web = site.OpenWeb())                 
    SPList list
    = web.Lists["MyContacts"]; SPListItemCollection items
    = list.Items; foreach(SPListItemlistItemin
    items)                 {
    if (listItem["ID"].ToString()
    == cmbItemId.SelectedValue.ToString())                         {
    textBoxTitle.Text = (string)listItem["Title"].ToString();
    textBoxName.Text = listItem["Name"].ToString();
    textBoxAddress.Text = listItem["Address"].ToString();
    textBoxContactNo.Text = listItem["ContactNo"].ToString();
    textBoxCountry.Text = listItem["Country"].ToString();
    lblErrorMsg.Text =
    "Search Result";
    lblErrorMsg.Visible =
    true;
    DataView dv = items.GetDataTable().DefaultView;
    dv.RowFilter="ID="
    + cmbItemId.SelectedValue; dataGridViewAllItems.DataSource = dv;
    private void btn_AddItem_Click(object
    sender, EventArgs e)
    using (SPSite
    site = newSPSite("http://localhost:7000"))
    using (SPWeb
    web = site.OpenWeb())                 {
    web.AllowUnsafeUpdates =
    true;
    SPList list
    = web.Lists["MyContacts"]; SPListItem Item
    = list.Items.Add(); Item["Title"]
    = textBoxTitle.Text; Item["Name"]
    = textBoxName.Text; Item["Address"]
    = textBoxAddress.Text; Item["ContactNo"]
    = textBoxContactNo.Text; Item["Country"]
    = textBoxCountry.Text; textBoxTitle.Text =
    textBoxName.Text =
    textBoxAddress.Text =
    textBoxContactNo.Text =
    textBoxCountry.Text =
     Item.Update();
    web.AllowUnsafeUpdates =
    false;
    lblErrorMsg.Text =
    "Item Added Successfully...";
    lblErrorMsg.Visible =
    false;
    GetAllItems(0);
    private void GetAllItems(
    intItemID)
    using(SPSite
    site = newSPSite("http://localhost:7000"))
    using (SPWeb
    web = site.OpenWeb())                 {
    SPList list
    = web.Lists["MyContacts"]; SPListItemCollection items
    = list.Items; if (ItemID == 0)
    dataGridViewAllItems.DataSource = items.GetDataTable();
    else
    DataView dv = items.GetDataTable().DefaultView;
    dv.RowFilter =
    "ID=" + cmbItemId.SelectedValue;
    dataGridViewAllItems.DataSource = dv;
        private void btn_UpdateItem_Click(object
    sender, EventArgs e)     {
                using (SPSite
    site = newSPSite("http://localhost:7000"))
                       using
    (SPWeb web = site.OpenWeb())                    {
    web.AllowUnsafeUpdates = true;
    SPList list
    = web.Lists["MyContacts"];                          SPListItem
    Item = list.GetItemById(Convert.ToInt32(cmbItemId.SelectedValue));
    Item["Title"]
    = textBoxTitle.Text; Item["Name"]
    = textBoxName.Text; Item["Address"]
    = textBoxAddress.Text; Item["ContactNo"]
    = textBoxContactNo.Text; Item["Country"]
    = textBoxCountry.Text; textBoxTitle.Text =
    textBoxName.Text =
    textBoxAddress.Text =
    textBoxContactNo.Text =
    textBoxCountry.Text =
    Item.Update();
    web.AllowUnsafeUpdates =
    false;
    lblErrorMsg.Text =
    "Item Updated Successfully...";
    lblErrorMsg.Visible =
    true;
    GetAllItems(Convert.ToInt32(cmbItemId.SelectedValue));
           private void btnDeleteItem_Click(object
    sender, EventArgs e)        {
                using
    (SPSite site = newSPSite("http://localhost:7000"))
                      using
    (SPWeb web = site.OpenWeb())                   {
    web.AllowUnsafeUpdates =
    true;
                            SPList
    list = web.Lists["MyContacts"];                         SPListItem
    Item = list.GetItemById(Convert.ToInt32(cmbItemId.SelectedValue));
                            Item.Delete();
    web.AllowUnsafeUpdates = false;
    lblErrorMsg.Text =
    "Item Deleted Successfully...";
    lblErrorMsg.Visible =
    true;
    BindAllRecords();
    GetAllItems(0);
    http://blogs.msdn.com/b/vssharepointtoolsblog/archive/2010/05/05/walkthrough-of-enabling-crud-for-sharepoint-2010-external-lists-using-visual-studio-2010.aspx
    If this helped you resolve your issue, please mark it Answered

  • How to enable extension button of select-options but make it read only

    Hi all,
    I have select-options with extension on my selection screen. It has to be read only. But when I give screen-input = 0, even the extension button is disabled. So the user cannot see multiple default values of that field. How should I enable the extension button and still make it read-only.
    Thanks in advance.
    Vasu

    Hi, try below sample code:
    data: gv_bukrs type bukrs.
    SELECT-OPTIONS s_one for gv_bukrs.
    at SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        if screen-name = 'S_ONE-LOW' or screen-name = 'S_ONE-HIGH' .
           screen-input = 0.
           MODIFY SCREEN.
        endif.
      ENDLOOP.

  • How do I enable an add-on in Firefox safe mode?

    So recently I have had a problem with Firefox crashing all the time and found out it was an add-on that was causing the problem.
    I have tried opening Firefox in safe-mode to disable add-ons but they are already disabled, so I want to know how to enable an add-on and then to permanently disable it so Firefox will open normally again. . .
    I have already tried to permanently disable all add-ons by using the Firefox options box but nothing happens after I click on the 'make changes and restart firefox' button. After I click it nothing happens and it remains frozen. ([https://support.mozilla.com/en-US/kb/Safe%20Mode Safe mode Window])
    So to make things short, how do I enable an add-on in Firefox safe mode?

    In Firefox 4 and later [http://kb.mozillazine.org/Safe_mode Safe mode] disables extensions and also disables hardware acceleration.
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    If disabling hardware acceleration works then check if there is an update available for your graphics display driver.
    You should still see a Disable button or Enable button (if you disabled them all) in the extension Manager (Tools > Add-ons > Extensions) if you start Firefox in Save mode.
    *https://support.mozilla.com/kb/Safe+Mode

  • Currently, I cannot copy and paste using the icons in the toolbar. How do I enable this?

    I am trying to make edits to a website for our company. Currently, I cannot copy and paste using the icons in the toolbar. Instead, I have to use control+c and control+v which doesn't always work. How do I enable the feature to be able to use the icons?

    Are those toolbar buttons grayed?
    Do the entries in the Edit menu look enabled if there is text selected or text on the clipboard?
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Enable extensions not in Develop drop down list.

    While searching for a solution to get safari 8.0 to run extensions I have come across two problems. First I cannot turn them on. The slider just moves back to 'off' when I slide it to 'on'. Second, I found a website that said I need to enable extensions as they are disabled by default and was given instructions to do so on the 'Develop' menu but there is nothing on the menu to 'Enable extensions'.  Another post from October that they cannot turn extensions on was never resolved.

    Hi daibrahim,
    In Safari 8 for Mac OS X 10.10 (Yosemite) the extensions are managed from the Safari Preferences > Extensions pane. See this article for reference and how to -
    Choose the Safari Extensions you want to use on your Mac - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • In onLoad JavaScript, I'm getting "Error: Permission denied to access property 'classes'" when I access Components.classes; how do I enable that permission?

    I need to emulate several ActiveX functions in my client's web application. I have located several Mozilla web pages that describe how to do the things I need, and I have attempted to implement those instructions. However, I can't seem to get past the first line of code. In my web page, I am calling a JavaScript function using the onLoad attribute of the <body> tag. I am using the Navigator object to determine that the browser is Firefox. I then attempt to access the extension classes using the following code on lines 51 and 52 of the Download.js file:
    var C = Components;
    var CC = C.classes;
    The Web Console gives me these two messages:
    [13:51:55.621] The Components object is deprecated. It will soon be removed. @ http://distribution:781/NewDDI/DownLoad.js:51
    [13:51:55.621] Error: Permission denied to access property 'classes' @ http://distribution:781/NewDDI/DownLoad.js:52
    How do I enable adequate permission to be able to access the Components classes?

    I think Components is available only in extensions (or otherwise privileged code) and not in ordinary web pages.

  • How do I enable the GD library in OAS 10.1.2 ?

    I am running OAS 10.1.2 on HP UX 11i 64 bit.
    OAS 10.1.2 supports PHP, but the image function does not work. The imagecreate function gives the error:
    Call to undefined function: imagecreate()
    According to www.php.net, image functionality requires the GD library and one
    is bundled since PHP 4.3. OAS 10.1.2 has PHP 4.3.9 so I assume that GD is
    available.
    But how do I enable the GD library?
    Herman

    In php.ini look for extension_dir, make sure it points to somewhere that exists and then further down you will see Dynamic Modules set out a little like this...
    ;extension=php_gd2.dll (Windows)
    For installation (Quote from PHP Manual)...
    To enable GD-support configure PHP --with-gd[=DIR], where DIR is the GD base install directory. To use the recommended bundled version of the GD library (which was first bundled in PHP 4.3.0), use the configure option --with-gd. GD library requires libpng and libjpeg to compile.
    In Windows, you'll include the GD2 DLL php_gd2.dll as an extension in php.ini. The GD1 DLL php_gd.dll was removed in PHP 4.3.2. Also note that the preferred truecolor image functions, such as imagecreatetruecolor(), require GD2.

  • How to set enable usage rights in adobe reader?

    Dear all,
    How to set "enable usage rights in adobe reader..." in acrobat sdk?
    I did that through menu event but it shows saveAs dialog window.
    Please anyone guide how to handle the saveas window. Otherwise if there is any method to directly enable the option.
    Thanks...
    vijay

    There is no way to automate this in the Acrobat SDK.  If you need to automate Reader Enablement, you need another product – LiveCycle Reader Extension Server.

  • How can I enable Windows Explorer (Windows 7 64 bit) to open LabView 8.2.1 LLB files?

    How can I enable Windows Explorer to open LabView LLB files? I am running LabView 8.2.1 on Windows 7 64 bit. The option “Enable Windows Explorer for LLB Files” in Tools/Options/Environment is unchecked and grayed out.

    LabVIEW until 7.1 came with a shell extension that could display the content of an LLB in an explorer window.
    That was removed in LabVIEW 8.x for  a number of reasons.
    - Shell extensions are pretty badly documented, tricky to implement right, and of very limited use since only Windows Explorer and a few explorer replacements can use them. It doesn't add any functionality for most other programs in Windows, since the shell extension are a Windows Explorer thing, and not a Windows core technology.
    - With 8.x NI decided that LLBs were pretty old fashioned and their main feature of supporting file names longer than the DOS 8.3 naming was pretty much obsoleted by then, while they didn't allow for more than one level of directory hierarchy. So they decided to depreciate LLBs and declared them a legacy technology that should not be used for new development anymore.
    - For the uupcoming 64 bit version of Windows a new shell extension would have been required to allow Explorer to use it.
    For all these reasons the LLB shell extension was removed from the LabVIEW installation to further discourage the use of LLBs.
    If you have a LabVIEW 7.0 or 7.1 installation on your computer and run 32 Bit Windows you can enable the shell extension in the LabVIEW Options dialog.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How do I enable syntax highlighting for jspf files on Dreamweaver CS6 on Windows?

    I followed the instructions (which I modified for CS6) in this posting: http://blog.metameister.com/blog/2011/04/08/open-new-file-types-and-add-syntax-highlightin g-in-dreamweaver-cs5-on-window…
    but it did not work for CS6.
    How do I enable syntax highlighting for jspf files on Dreamweaver CS6 on Windows 7?
    cheers
    Marvin in Edmonton

    Ok, I figured it out after hunting for a few hours.
    Step 1. Add the File Type
    In Dreamweaver’s toolbar:
    Select Edit > Preferences; 
    under File Types / Editors, add .jspf to the line “Open in Code View:”.
    Step 2. Extensions.txt
    Add file type .jspf to the Extensions.txt files. There are two of these files:
    C:\Users\[username]\AppData\Roaming\Adobe\Dreamweaver CS6\en_US\Configuration
    C:\Program Files (x86)\Adobe\Adobe Dreamweaver CS6\configuration
    Step 3. MMDocumentTypes.xml
    Add jspf to the MMDocumentTypes.xml files. Open this file in Notepad or Text Editor. Do not modify the Dreamweaver configuration files within Dreamweaver.
    There are three MMDocumentTypes.xml files to be modified: 
    C:\Program Files (x86)\Adobe\Adobe Dreamweaver CS6\configuration\DocumentTypes
    C:\Users\mhaagsma\AppData\Roaming\Adobe\Dreamweaver CS6\en_US\Configuration
    C:\Users\mhaagsma\AppData\Roaming\Adobe\Dreamweaver CS6\en_US\Configuration\DocumentTypes\
    Step 4. Restart Dreamweaver
    Hopefully the file type will now be recognized and appear with syntax highlighting.

Maybe you are looking for