Add a Menu item for a Signature sign field Script

Hello

I have several time sheets that need to have a script to sign digital signature fields.

I have a "Singature Script field sign" that works perfectly when used in processing batch.

I would like to add a menu item for this script instead of using the batch, because the user no longer has access to Adobe Reader.

I created a file with extension js, but this does not create the menu item.

Please can someone advise where this code needs to revise:

app.addMenuItem ({cName: "Timesheet approval", cParent: "Document", cExec: "var myEngine = security.getHandler ("Adobe.PPKLite");"}) myEngine.login ("password", "/ c/Documents and Settings/User Name/Application Data/Adobe/Acrobat/8.0/Security/User Name.pfx");
var f = this.getField ("Surv Signature"); Sign the f.signatureSign field (myEngine, {password: 'password'}); "{, cEnable: 1, NPO: 12});"

If this script cannot be used to add a menu item, any suggestions would be appreciated as to where else this script can be placed on the document without using the treatment in batches?

Thanks, any help will be greatly appreciated.

You can't put the whole script in the cExec parameter. This setting should call a local function
that contains your script, as follows:

app.addMenuItem ({cName: "Timesheet approval", cParent: "Document", cExec: "sign()", cEnable: 1, NPO: 12});

{sign() function
var myEngine = security.getHandler ("Adobe.PPKLite"); myEngine.login ("password", "/ c/Documents and Settings/User Name/Application Data/Adobe/Acrobat/8.0/Security/User Name.pfx");
var f = this.getField ("Surv Signature"); Sign the field
f.signatureSign (myEngine, {password: 'password'});

}

Tags: Acrobat

Similar Questions

  • Add the menu item for the sequence of batch processing?

    Hello

    I created a folder level script that runs at startup of Acrobat. The script adds a menu item, that when clicked, calls another function.

    I wonder if I can create a batch sequence and add a menu item for that also? I mainly want to avoid going through the whole advanced-> processing statement->... Processing batch-> find the command sequence, and then click Run.

    I've seen a lot of examples for adding menu items that call the folder level scripts, but nothing about batch sequences. Has anyone already done this?

    Thanks in advance!

    You cannot create an element of a sequence of commands menu. Nearest you

    can get is to open the batch sequences window, using the execMenuItem()

    method and "BatchEdit" as the name of the command (I'm not sure that it is still

    the same in Acrobat X).

  • How to a add a menu item for the depeneding menu existing email on the subject of the e-mail?

    Hi all...

    I'm new here and I need your help... Please

    I'm trying to add the menu item to the email existing menu depeneding on the email... I assumed using

    ApplicationMessageFolderRegistry togather with shops and Session but could not establish the code...

    any help please...

    Thank you

    Please mark the topic as solved, then.

  • I want to get rid of the Bing screen, but there is no "menu at the top of the Firefox window" for me "Select tools and then select the Add-ons menu item.

    I suddenly have a 'Bing' screen when I connect on Firefox - and I want to get rid of it. The support section of Firefox says
    1 "in the menu at the top of the Firefox window, seledt tools, and then select the Add-ons menu item." - but I don't see any 'menu item' tools, or much less modules.
    2. "in the window modules, click the Extensions Panel"- but how to find the Modules window?
    3. find the Bing and extended support to search toolbar in the list and then click on disable for each of them. ' - but what and where exactly is - this?

    At the top of the screen is only an icon of Yahoo to the left and to the right of it, a search box, 'Web search', 'My Apps,' Yellow Pages,""Weather","Updates"and"Skype ". to the right of the people, there is a green cross saying "add more applications. to your toolbar"and to the right of this one kind of gear shift looking icon saying"toolbar settings ".
    So, in short, how can I get rid of the Bing screen and how to access these tools?
    Thank you.

    Versions of Firefox 3.6 + have a feature to allow the user to hide the Menu bar.

    Press the Alt key to temporarily show the Menu bar, then open view > toolbars and select menu bar, so it has a check mark.

    The F10 can also be used on most PCs to temporarily reveal the menu bar.

    https://support.Mozilla.com/en-us/KB/menu+bar+is+missing

  • Send the menu item for OS6

    Hey, help me please...

    I sendmenu sourcecode of blackberry Web site, I try to my BB tour 2 (9650) with operating system version 6 does not work...

    import net.rim.blackberry.api.sendmenu.*;
    
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.XYEdges;
    import net.rim.device.api.ui.component.EditField;
    import net.rim.device.api.ui.component.Menu;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.decor.BorderFactory;
    
    import org.json.me.JSONException;
    import org.json.me.JSONObject;
    
    public class SendMenuAPIDemo extends UiApplication
    {
        public static void main(String[] args)
        {
            SendMenuAPIDemo theApp = new SendMenuAPIDemo();
            theApp.enterEventDispatcher();
        }
    
        public SendMenuAPIDemo()
        {
            pushScreen(new SendCommandDemoScreen());
        }
    }
    
    class SendCommandDemoScreen extends MainScreen
    {
    
    //In the screen class, declare instance variables to represent
    //an edit field and the text that the user types in this field.
        private EditField _textToSend;
        private String _textString;
    
        public SendCommandDemoScreen()
        {
            setTitle("Send Menu API Demo");
    
    //In the screen constructor, create a new EditField object to represent
    //the field that the user types in.
            _textToSend = new EditField("Send: ", "Type the text to send here",
                                        255, Field.FIELD_HCENTER);
    
    //To specify the appearance of the EditField object, invoke setBorder(),
    //setPadding(), and setMargin(). In this example, a bevel border is created
    //for the EditField object, and a padding area and margin area are added.
            _textToSend.setBorder(BorderFactory.createBevelBorder(new XYEdges(3, 3, 3, 3)));
            _textToSend.setPadding(8, 8, 8, 8);
            _textToSend.setMargin(15, 15, 15, 15);
    
    //Add the EditField object to the screen.
            add(_textToSend);
        }
    
    //Override makeMenu() of the MainScreen class.
        protected void makeMenu(Menu menu, int instance)
        {
    
    //Invoke super.makeMenu() to add the default menu items for BlackBerry
    //device applications to the menu.
            super.makeMenu(menu, instance);
    
    //Invoke getText() of the EditField class to retrieve the text that
    //the user typed in the edit field.
            _textString = _textToSend.getText();
    
    //Create a new JSONObject object to represent the context
    //information for the Send menu.
            JSONObject context = new JSONObject();
    
    //In a try/catch block, invoke put() of the JSONObject object to populate
    //the context information using key-value pairs. Use the constants that
    //are defined in the SendCommandContextKeys class as keys. Catch a
    //JSONException, which indicates that the specified key is null.
            try
            {
                context.put(SendCommandContextKeys.TEXT, _textString);
                context.put(SendCommandContextKeys.SUBJECT, "Your Text");
            }
            catch (JSONException e)
            {
                System.out.println(e.toString());
            }
    
    //Create an array of SendCommand objects to represent the Send menu commands
    //that you want to include in the Send menu. Invoke
    //SendCommandRepository.getInstance() to retrieve the singleton instance of the
    //SendCommandRepository. Invoke get() and specify as parameters the type of content
    //to send, the context information for the content, and a boolean value
    //that indicates whether all of the commands should be retrieved
    //regardless of whether their associated applications can be opened.
            SendCommand[] sendCommands = SendCommandRepository.getInstance().get(
                                             SendCommand.TYPE_TEXT, context, false);
    
    //Determine whether the array of SendCommand objects is not null and
    //contains commands, and if so, create a new SendCommandMenu object to represent
    //these commands and add it to the menu.
            if (sendCommands != null && sendCommands.length > 0)
            {
                menu.add(new SendCommandMenu(sendCommands, 0, 0));
            }
        }
    }
    

    Help me please, when I opened there is always a view from menu error: Module 'net_rim_bbapi_sendmenu' not found.

    API said "since 7.0', you will not be able to use the OS 6.

  • How to add a menu item in a function call

    My application requires that one screen which depends on function calls I'm adding and deleting fields according to my condition.

    for example

    Public Sub one()

    {

    -addition of horizontal field Manager

    }

    Public Sub two()

    {

    Area manager portrait \\add

    }

    now my question is - is it possible to add a menu item if I call the method "a."

    and this menu item does not appear if I call the method "two".

    If possible, pls explain me how to do...

    You can check conditions before you add menuitems in makemenu

  • Add the menu item to app mail as the mail message?

    Hello

    I know how to add menu items in the mail application, but can I add one, according to the mail message? I want to send a single something in an email and after that one of my applications.

    Is it possible to do? Perhaps a listener?

    Thank you

    Matthias

    Hello Matthias.

    Well, if I understand your message, it's that - you send mail with unique label or message (something unique added with the text of the message) and you want to add the menu item when a user opens the message.

    According to my understanding - I have a solution.

    We have a listener "VeiwExtendedListener", that provide notifications for new, open, close, reply, and forward.

    You can implement this listener and to open(), you get the instance of the message object, which is open.  With this object message get the content of the message, locate the tag unique in the text of the message, if it is in the message, and then add your menu item.

    I hope this will help

    Good luck

    -Nidhi

  • How to add the menu item in the context menu of the Gallery

    Hi all

    I am new bie BlackBerrry development. Does anyone know how to add a menu item in the context menu of the BlackBerry Gallery. In other words, when I am browsing photos in the Gallery, click on the menu, there will be a configurable option so that my request will be executed when I select this item.

    Thank you
    TuanSandman

    See this article.

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800367/How_To _...

    Check the class ApplicationMenuItemRepository for applications where you can add the custom menu item.

  • Failed to add the menu item «Edit adjustment...» "action

    Hello

    I have an action in which I want to change an existing adjustment layer. I can't save the menu item «Edit adjustment...» "in the drop down palette layers.

    To add the step, I tried the following steps:

    1. Select the adjustment layer thumbnail icon
    2. Select «Insert Menu Item»... "in the menu palette flyout
    3. Choose "Edit settings...". "in the menu of the layers palette (how the window insert a Menu item" Menu item: layers: change the setting ")
    4. Press the OK"" button.

    This adds nothing to the action; usually, hit OK adds the menu item.

    I'm doing this right? Is this a known bug? As a solution, can someone point me to action with the step of "Edit settings...". "already in there? Thank you.

    Photoshop CC 2015.1.2 (20160113.r.355 x 64)

    Mac OS X 10.11.3

    I think that you make it harder than it is.  Just record the action and adjust the adjustment layer, you add during the recording of the action.  When did you record the action you should see that there two steps were recorded for the adjustment layer, you added during the recording of the action. "Do adjustment layer" and "current adjustment layer Set.  Insert a stop message with continue after the "make the adjustment layer ' step and check activate the dialog box in step"Set current adjustment layer".»  Layer when allowed by using the action, you can uncheck the walk of the stop.

  • How to add a menu item to new tools Panel

    Have anyone knows how to add the menu item to the "new tools Panel.

    For example,.

    Add (Menu object > wrap distort > make) to "new tools Panel. I try many way and research, still can not solve my problem.

    Does anyone have an idea which can add a menu item to new tools Panel.

    Thank you.

    Screenshot:

    Screen Shot 2016-01-26 at 11.26.07 AM.png

    Solve the problem

    Action > new Action > insert the Menu item > View button

  • Add the Menu item to default custom Blackberry file browser

    Hello

    I try to add the Menu item by default Blackberry file browser.

    I want to add the menu item 'PRINT' files. It is when I browse through the media-> Explore-> photo, we get a list of images and when clicked on the Menu. I expect the element menu to print it.

    I use ApplicationMenuItemRepository to achieve this. And the documentation says.

    MENUITEM_FILE_EXPLORER
              ApplicationMenuIteminstances registered with this ID appear when the file Explorer application is running.

    MENUITEM_FILE_EXPLORER_BROWSE
              ApplicationMenuIteminstances registered with this ID appear when a user uses the Windows Explorer application to browse files and folders.

    MENUITEM_FILE_EXPLORER_ITEM
              ApplicationMenuIteminstances registered with this ID appear when a user uses the file Explorer application to open a file.

    Whence this Explorer of files mentioned in the CIHI means. I added the Menu item in the browser, and I could see the IMPRESSION here. But I don't know where this IMPRESSION would be visible IF we add the menu item to one of them.

    Thanks in advance.

    Provision ApplicationDescriptor solved my problem.

  • How to add BBUI menu item description

    Hello

    does anyone know how to add a description to a menu using bbui.js item, please see the attachment to see what I mean.

    I tried searching on the web and the forums here and crackberry and I have not been able to find a solution. I also tried adding a tag data-bb-title, to see if it worked as the inner html is the description of the list items and then you add a title-bb-data for the title tag, and I thought that maybe as a consistency they could add this, if there was a data-bb-title tag, the internal HTML would be the description.

    If she fails to add a title to a menu item, can someone tell me if it is on the BBUI road map, because it helps a lot for menu long element names, you can have a short one word and a more lengthy description below.

    See you soon,.

    OLAF

    It seems that I had missed it on the wiki page, but there is the possibility of adding a data-bb-focus-text label that creates the description for each menu item, so I decided to add this comment, if anyone else has hurt to find it.

  • The synchronized application: creation of menu items for each call to makeMenu SQLite?

    A matter of design, which is a good implementation of the following?

    My requirements are:

    1. Have a different menu for each screen.
    2. The battery of the screen will be high both a single screen.
    3. To switch screens, the user must use the menu.

    I created the menu for each screen by the following:

    protected void makeMenu(Menu menu, int instance) {
    super.makeMenu(menu, instance);
    Database db = null;
    try {
    
      db = ResourceManager.getConnection(true);
      mCoffeeDao = new FlavshellDao();
      mTabDao = new FlavmDao();
    
      if (instance == Menu.INSTANCE_CONTEXT) {
          Bitmap logoWbg = Bitmap.getBitmapResource(resource
                  .getString(ScoreCenterResource.logo));
          Image image = ImageFactory.createImage(logoWbg);
    
          gMenu.setIcon(image);
          nMenu.setIcon(image);
          aMenu.setIcon(image);
          shMenu.setIcon(image);
          avMenu.setIcon(image);
          logoMenu.setIcon(image);
    
          menu.add(gMenu);
          menu.add(nMenu);
          menu.add(aMenu);
          menu.add(shMenu);
          menu.add(avMenu);
          menu.add(logoMenu);
      }
    
      if (instance == Menu.INSTANCE_DEFAULT) {
          menu.add(logMenu);
          menu.add(exitMenu);
    
          shell = mCoffeeDao.findAll();
    
          for (int i = 0; i < shell.length; i++) {
              Flavshell m = shell[i];
              /**
               * Ordering parameter, lower values are placed closer to the
               * top of the menu screen.
               */
              item = new FlavMenuItem(m.getPk(), m.getFlavortitle(),
                      200 + i);
              menu.add(item);
          }
    
          String[] params = {
              Integer.toString(this.mCoffeePk)
          };
          Flavm[] m = mTabDao.findByDynamicWhere("FLAVOR = ?",
                  params);
    
          if (m.length > 0) {
              for (int j = 0; j < m.length; j++) {
                  if (m[j] != null) {
                      Flavm specificMenu = m[j];
                      item = new FlavMenuItem(specificMenu.getPk(),
                              specificMenu.getTitle(), 100 + j);
                      menu.add(item);
                  }
              }
    
              menu.add(MenuItem.separator(105));
          }
      }
    
    } catch (FlavshellDaoException e) {
      Logger.logEventError(e.getMessage());
    
    } catch (FlavmDaoException e) {
      Logger.logEventError(e.getMessage());
    
    } finally {
      try {
          db.close();
      } catch (DatabaseException e) {
          Logger.logEventError("Menu Database error: " + e);
      }
    }
    

    I created a database with a single link object read in the following text:

    public synchronized static final Database getConnection(
        final boolean readOnly) {
    Database db = null;
    try {
        URI userFileURL = URI.create(System
                .getProperty("fileconn.dir.memorycard")
                + resource.getString(CoffeeHouseResource.db_path)
                + resource.getString(CoffeeHouseResource.db_name));
    
        db = DatabaseFactory.open(userFileURL, readOnly);
    
    } catch (MalformedURIException e) {
        Logger.logError("Get connection: URI: " + e.getMessage());
    } catch (ControlledAccessException e) {
        Logger.logError("Get connection: Controlled Access: "
                + e.getMessage());
    } catch (DatabasePathException e) {
        Logger.logError("Get connection: Database Path: "
                + e.getMessage());
    } catch (DatabaseIOException e) {
        Logger.logError("Get connection: Database IO: "
                + e.getMessage());
    } catch (Exception e) {
        Logger.logError(e.getMessage());
    }
    return db;
    }
    

    My question is,

    • If the user to call the menu as happening in any other activity database (SQLite), making the synchronized method will prevent database locks?
    • Should I design my makeMenu got a call from the database at all? It seems to me that all this works, this could potentially cause a lot of traffic on the SQLite database?
    • I thought to move the menu to a vector and storing the menu in storage Runtime, but I read that the Runtime Storage has the memory leak issues?

    Your basic design principles seem well - I have a number of applications that actually have "tabs" screens, so clicking on a tab or using the menu swaps from one screen to the other.  You can just push the new screen and pop, that. In fact, here's a menu from a screen, that I am currently working:

    _StatsMenu MenuItem = new MenuItem ("Stats", 110, 10) {}
    public void run() {}
    UiApplication.getUiApplication () .pushScreen (new StatsScreen (System.currentTimeMillis (), 0));
    UiApplication.getUiApplication () .popScreen (BaseScreenWithToolBar.this);
    }
    };

    While I haven't looked in detail, but your code dangerous look.

    I've never tested, but I suspect makeMenu is called using the EventThread.  Doing things like database connections in this method will cause you problems.  Do not.  If you need to query the database, do so before makeMenu is called.  Starts a separate Thread and set the appropriate menus if this Thread is not finished.  or block the user interface, until he made.

    In addition, I wouldn't do it in makeMenu:

    Bitmap logoWbg = Bitmap.getBitmapResource (resource
    .getString (ScoreCenterResource.logo));
    Image image = ImageFactory.createImage (logoWbg);

    You can do it once to the creation of the screen, or better yet, once at startup and save it in a shared domain.

    If you do not want to create a dynamic menu, then use the normal persistent store - or check out the details for the database once at startup and use them after that RAM.

    And avoid lifting heavy objects in makeMenu.

    I hope this helps.

  • How - add a menu item custom application BlackBerry

    I'm working on an application that creates a custom in various standard Blackberry applications menu item.
    On the platform of v4.2.1.72 8800 2.3.0.54 everything works fine all the Blackberry PIM application that the spectacle of my menu item mail application custom.

    When I load on platform 8330 v4.3.0.124 3.1.0.71 none of the custom menu to the top and on the OS of the Pearl Flip is v4.6.0.48 4.1.0.13 only e-mail and todo/tasks application view my custom menu others do not show my menu item.

    I tried to compile my app in the various versions of the JDE, but always the same question.

    Am I missing something for the new OS?  I followed the knowledge base article "how - to add a custom BlackBerry application menu item.

    I tested it on 8800 v4.5.0.52 platform 2.7.0.66 and Mail and Memo shows no custom menu item in Contacts, calendar and ToDo my custom menu appears.

    Thank you...

    BTW do you know if I can add menu browser and retrieve the content of the web page?

    No, this is not supported.

  • How can I add new menu item in the context Menu of Flash CS6? (Not ActionScript)

    Hi all!

    I want to add my custom here menu item. I did the script jsfl that calculate eveyrting I need. I want to add the custom for her menu item. How can I do this?

    I see you there 'Generate Sprite Sheet' - I could do the same thing?

    question.png

    Hello

    The only places where you can add separate menu options lies in the command menu or add new extensions that appear in the windows-> menu other panels. There is no other way in which the menus can be added without being replaced by the Flash Code.

    For more information about adding separate entry into the menu commands or the Windows menu.

    (Menu) - add the jsfl script to C:\Users\\AppData\Local\Adobe\Flash CS6\en_US\Configuration\Commands

    and that automatically will be appear on the Menu commands on Flash raises.

    (2) add a (panel) for the C:\Users\ Flash SWF\AppData\Local\Adobe\Flash CS6\en_US\Configuration\WindowSWF folder.

    Thank you and best regards,

    Roger Simon

    Adobe Flash Professional Team.

Maybe you are looking for

  • iPhone 4 front camera does not

    So I have an iPhone 4 with iOS 7.1.2... The front facing camera not work for months now, if not a year. When I go to open the camera app, rear camera works fine, but when I hit the power button, the application crashes. If I try to force quit the app

  • How to partition my new Portege Z930 HARD drive?

    Hi all I recently bought the Toshiba Portege Z930. I would like to create a new partition (for example D: /) on your hard drive, to store data, music, etc., and let the current C: / drive only for the use of the operating system. The problem is that

  • My system crashed and I got this message "c\windows\system32\nvcpl.dll - a dynamic link (dll) library initialization routine failed.

    Original title: c\windows\system32\nvcpl.dll My system crashed and somehow, I was able to find it. c\windows\system32\nvcpl.dll - a library (dll) dynamic link initialization routine failed. Complete reinstallation of my netbook, it worked for 1 day a

  • Computer will not start after windows checkdisk thing?

    My office has gone through a few microsoft checkdisk thing today (16\11\2010), and after that it's over, my com could not start more. It would be to start all the way until the logo Windows XP there and after loading was done and usually, it would be

  • Install the instant backup server Memeo does not

    to install the server does not Hi, I tried to install memeo instant backup, a program of a product I have recentley bought. I know that the software and the product is not damaged, because I am able to install it on other computers. Its my fault see