'open doc' javascript based on the name of original pdf, e.g. pdf a5.pdf has button to open b5.pdf because script is able to know its '5'

I hope this makes sense.
I have two sets of pdfs containing 100+ individual pages (totalling 200 pages in one folder)
Set/series 1: a1,a2,a3 -----> a100
Set/series 2: b1,b2,b3------> b100
I would like to create a button on each page that will open a corresponding page number for the other pdf series.
so I click on open file location button that is sitting on a50 for example, it will open b50.
Any tips or clues on how I can execute this? Presumably some smart way of isolating the number (last character) '50' from the existing pdf's name and appending it into the end of the 'b' text to get 'b50' as the file to open?

This is not something that you can set in the code I provided. There's an app-wide setting that can be set (in principle) using code, but it's not a good idea to change it, because it applies to other documents as well.
And regarding JS and CodeAcademy: It's always a good idea to try to learn more, but keep in mind that Acrobat JS is quite a niche thing, quite different from the kind of JS that is used in web-pages. You can find more information about it here:
http://www.adobe.com/devnet/acrobat/javascript.html
And here:
http://acrobatusers.com/tutorials

Similar Messages

  • I get this message everytime I open Firefox: "[JavaScript Application]" and the message is: "TypeError: test is undefined."

    I get this message everytime I open Firefox: "[JavaScript Application]" and the message is: "TypeError: test is undefined."

    This issue can be caused by an extension that isn't working properly.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions or if hardware acceleration 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.org/kb/Safe+Mode

  • Hi guys i have an ipad 1 and when i plug it in to my macbook pro picasa opens up and show its name but when i open itunes i cant find the name, ive been working my head out to solve the problem please help me:(

    hi guys i have an ipad 1 and when i plug it in to my macbook pro picasa opens up and show its name but when i open itunes i cant find the name, ive been working my head out to solve the problem please help me:(

    Pay no attention to iinami, the amount of replies to people saying their handsets must have been jailbroken everytime iTunes throws out an error is tremendous. (Clearly you don't need to have any real knowledge to get to level 3 on these forums, let's hope apple's geniuses know a lot more than some of their customers.)
    http://support.apple.com/kb/TS3694
    Solution below.
    Error 9
    This error occurs when the device unexpectedly loses its USB connection with iTunes. This can occur if the device is manually disconnected during the restore process. This issue can be resolved by performing USB troubleshooting, using a different USB dock-connector cable, trying another USB port, restoring on another computer, or by eliminating conflicts from third-party security software.

  • Mac OS X 1073.  I also run 2008 MS Office. I am recently unable to open doc files.  Is the fault with Lion or Mackeeper?

    I run a Mac OS X 1073.  I also run 2008 MS Office.  I am recently unable to open doc files.  Is the new Lion or Mackeeper stopping me?

    Briartor wrote:
    Is the new Lion or Mackeeper stopping me?
    Not sure, but MacKeeper is trash and could be the source of it, among any other problems you may be having.  I suggest you uninstall it immediatley: http://applehelpwriter.com/2011/09/21/how-to-uninstall-mackeeper-malware/

  • I have upgraded to OS X mavericks and there is now a problem with my email. I have discovered several emails no longer contain the original message instead another completely different message is appearing but under the name of original sender. Any ideas?

    I have upgraded to OS X mavericks and there is now a problem with my email. I have discovered several emails no longer contain the original message instead another completely different message is appearing but under the name of original sender. Any ideas?

    With the account mailbox selected, Mailbox menu, Rebuild.

  • GR/IR accounts based on the country of origin

    Dear All,
    My client business requirement is like below:
    when we are posting goods receipt GR/IR account has to be posted based on the country of origin of the materials. we have one chart of accounts, we don't have any business areas. we have defined 14 GR/IR accounts for this purpose.
    Please any one can suggest me the solution in SAP, how we can do? even customized one also?
    thanks & regards,
    Ramesh B

    uu

  • I can not open firefox when I leave the program is tells me that firefox is still running and will not open

    #
    I can not open firefox when I leave the program is tells me that firefox is still running and will not open
    # Details
    BoldItalicInsert a link...

    Because Firefox sucks that way. I have the same problem. Royal pain in the @$$. I have to use the task manager to duck out of it, or you have to w8 & count to 10...lol. Stupid program.

  • How to create a record based on the name of a file in the file-system?

    Hi,
    With a lot of pictures I want to have a database to gather some information about these pictures.
    First question is how to generate a record based on a file in the file system?
    e.g. the pictures are "c:\fotos\2009\01\disc_001.jpg" to "c:\foto\2009\01\dis_98.jpg" .
    now i want to create records with as one of the attributes the name of the picture (not the picture itself). how to create these records (based on the information of the file-ssytem). i.e. the number of records should be the same as the number of pictures.
    any suggestions?
    any reaction will be appreciated.
    Leo

    Link to Create directory
    http://www.adp-gmbh.ch/ora/sql/create_directory.html
    You can create a list of files in the directory and read the list files from that directory.
    [UTL_FILE Documentation |http://download.oracle.com/docs/cd/B14117_01/appdev.101/b10802/u_file.htm#996728]
    [Solution using Java|http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:439619916584]
    SS

  • Open Order Quantity based on the processing Material (loop)

    Hi,
    How do you get the open order quantity from VBAP/VBAK, based on the material?
    As far as I know, the order is an open order if the Item Qty (VBAP-KWMENG) and Delivery Qty (LIPS-LFIMG) do not match.
    How you I get the full quantity for all Open Orders based on the Material?
    Points will be rewarded!
    Thanks,
    John

    Two ways i can think of..
    1. Standard vbap/lips check
    ( Use table VAPMA to start, since material is indexed on this table)
    2. From your MRP-MD06/MD04(There will be a table for MRP log.please check this)
    Thanks
    Siva
    Siva K

  • How to open a form based on the the parameter in another Form

    I created a button in a form (FORM1). By clicking this button, I want to open another form (FORM2) based on the a value of one key field in this form(FORM1). Both forms have the same key field.
    So, I wrote the following codes behind the PL/SQL Button Event Handler of the custom event for the button that I created in FORM1.
    v_inventory_num:=p_session.get_value_as_NUMBER(
    p_block_name => "_master_block",
    p_attribute_name => 'A_INVENTORY_NUM',
    p_index => 1
    if v_inventory_num is not null then
    portal30.wwa_app_module.set_target('/pls/portal30/PORTAL.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=5958032800&p_arg_names=_show_header&p_arg_values=YES&p_arg_names=A_INVENTORY_NUM&p_arg_values='||v_inventory_num,'CALL');
    end if;
    end;
    I could not open the FORM2 by clicking the button on FORM1.
    However,I can open the FORM2 by click the button by using the following code.
    portal30.wwa_app_module.set_target('/pls/portal30/PORTAL30.wwa_app_module.new_instance?p_moduleid=5958032800','CALL');
    How could I pass the parameter in FORM1 into FORM2 and when the FORM2 is opened if has already been queried with the passed parameter?
    Your help would be highly appreciated!
    Jeffrey Wei Ye

    Hi:
    Thank you for reply to my question.
    I have tried your codes and apply them the following the form. However, I always got the following error:
    Error: (WWV-00000)
    No conversion performed for type INTEGER, value . (WWC-49102)
    No conversion performed for type INTEGER, value . (WWC-49102)
    No conversion performed for type INTEGER, value . (WWC-49102)
    No conversion performed for type INTEGER, value . (WWC-49102)
    My codes is:
    declare
    request_no number;
    blk varchar2(30) := 'DEFAULT';
    l_url varchar2(4000);
    begin
    request_no := p_session.get_value_as_NuMBER(
    p_block_name => blk,
    p_attribute_name => 'A_WORK_REQUEST_ID');
    l_url := 'portal30.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=11880470335&p_arg_names=_sessionid&p_arg_values=&p_arg_names=work_request_id&p_arg_values='||request_no;
    portal30.wwa_app_module.set_target(l_url,'call');
    end;
    then,
    I created another form which has two fields and the dattype of pk is varchar2 and change manually put the pk's p_arg_value into the url.
    e.g.
    l_url:='PORTAL30.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=9029417810&p_arg_names=WORK_AREA_CD&p_arg_values=APP';
    portal30.wwa_app_module.set_target(l_url,'call');
    However, I still get the error message as below:
    Error: (WWV-00000)
    No conversion performed for type INTEGER, value . (WWC-49102)
    No conversion performed for type INTEGER, value . (WWC-49102)
    No conversion performed for type INTEGER, value . (WWC-49102)
    No conversion performed for type INTEGER, value . (WWC-49102)
    No conversion performed for type INTEGER, value . (WWC-49102)
    Your help would be highly appreciated.
    Wei Ye

  • Opening Docs in Word Hangs the System

    I'm running OSX 10.4.11 (actually, it's OSX Server, but none of the other workstations are affected, so I think we can ignore that for now) on a MacPro 2 x 2.6GHz machine with 4GB of RAM.
    Here's the problem. Whenever I open Word (11.3.8) or Excel (11.3.7) and try to open a document (whether by selecting Open from the File menu, clicking on the button in the toolbar, or simply starting the application up from scratch), instead of the lovely Open Dialogue popping up, I get the Spinning Ball of Doom. Then the entire system hangs—I can click on other visible applications and the menu bar changes, but those apps are hung too; I can't access any of the menus, the Dock is inaccessible, and attempting to force quit from the keyboard does nothing. And, of course, because this is the server for our small office network, the entire network comes crashing down.
    I've reinstalled Office. I trashed the preference and cache files. I ran Disk Utility and fixed permissions. No go. Help!
    Again, I am fairly sure that this has something to do with Office's proprietary Open dialogue box, because I can fire up Word and—if I've done so by double-clicking on a document in the Finder rather then on the application icon—edit and even save. I can open documents in non-MS applications just fine. (And, as I said, I can open and save Office documents on the other computers on the network.) But open a doc in Word or Excel (or, presumably, PowerPoint), and boom—everything comes crashing down.
    Anyone have any ideas???

    I'm still struggling with this.
    I can open documents in non-MS applications. (I'm on the affected workstation now, and have just opened docs in Preview, Apple Pages, and GoLive CS.) I can open the MicroSoft Office Project Launcher, so the problem doesn't seem to be that particular application, but when I try to open a document from Word or Excel, the whole system hangs. Which brings down our entire LAN. Which is a big drag.
    For now, we use the other workstations for anything that'll involve an Office application. But we would like to use this one as well!
    Again: it's a MacPro 2 x 2.66 Intel with 4GB of RAM running OS X Server 10.4.11.
    Help?
    Message was edited by: David Kudler

  • How can I get the ID number of an attribute, based on the name string?

    In an IVI driver, how can I get the list of attributes of an instrument? Is there a way to retrieve the long type representation of an attribute ID, based on the string name? Say, I put "IVIDMM_ATTR_FUNCTION", and I receive the long number (i.e. 1150010), so I can call the SetAttribute function?
    Thanks.

    Hello-
    Tokens like IVIDMM_ATTR_FUNCTION are actually macros that have been #define'd in a header file. Many of the headers are found in C:\VXIPNP\WIN95\include. For example, the macro for IVIDMM_ATTR_FUNCTION is found on line 111 of ividmm.h.
    Randy Solomonson
    Application Engineer
    National Instruments

  • I can't open .doc files attached to the mail.

    After upgrading to the last version (31.6.00); I cannot open .doc files.
    I use Open Office 4.1.1.
    No problem with .xls or .pdf files. But neither the attachments in my sent mails nor the attachments in incoming mails type .doc can be opened by clicking on them. I have to first save to the computer than open the file which takes too much time.
    In the attachment you can see the error message.
    Here is the translation of the message:
    - Top window: File cannot be saved as an unknown error occured. Please retry.
    - Second window - below filename: Error - source mailbox

    Very interesting. It was written for doc type files: "OpenOffice Writer (defined)". (I made a translation maybe it is "default" in English version). Then i make it use another program and choose "Open Office Writer". Now it says OpeOffice Writer but no definer (or default) and it is working. Thank you very much Gnospen.

  • 10G-form: How to open 2nd form based on the queried result in 1st form?

    Form1: text_item1, search_result_text_item11, search_button, go_button
    Form2: text_item2
    When I press search_button on Form1, I am able to get the result in search_result_text_item11 based on the query defined in the search_button TRIGGER.
    So I've value in search_result_text_item11.
    Now I want to copy search_result_text_item11 value of Form1 to text_item2 value in Form2 when I click go_button;
    How do I do it?
    Thanks.
    Gaurav

    i can think of two ways,
    one is pass it as parameter, when you are calling the new form
    or
    in form1, in the when-button-pressed trigger of your go_button, copy the value of search_result_text_item11 to a global variable...
    in form2, in when-new-form instance, assign the value of the global variable to text_item2
    just be sure to erase the global variable immediately after you assigned to text_item2. also, you may want to put, default_value before assigning the global variable to the text_item2, this is to ensure that you will not have error when the global variable is not created.

  • Selling cheap substitute in the name of original hp accessory by an authorised dealer of hp/compaq.

    Sir/Mam
    I bought a power adaptor 18.5V  from an authorised dealer of hp/compaq 
    (dealers name- enfotech, C-1, Aruna Park, Laxmi Nagar, Delhi-92. phone number: 91-11-28822295 ) 
    invoice no. ET/03-379/08-09 ,amounting Rs. 1600/-
    on 2nd april 2009. the power adaptor given was loose without packing and the plug to adaptor cable was missing. The dealer gave me  a cheap substitute of grey market in the name of hp original accessory and said that the company sends it like this only. to my disbelief he not only gave me an original bill (invoice number of the same mentioned above) but also said hp provides only half of the adaptor as an accessory in the same condition.
    I am shocked and taken aback by the kind of cheating i was exposed to that too by an authorised dealer of hp/compaq. kindly advice what action can i take . should i forward my plea to the consumer court for intentional fraud and cheating? Please help.......
    Regards
    Sonia
    Air India

    Just to recap, this is a collection of ports I have collected over time for people who needed this information when setting up the HP ePrint app so that they could view their email from within the app.  I am certain other applications also need this information.  Although lengthy, I could not find a more comprehensive place to retrieve this information.  Feel free to post additional information, faulty information, or other related topics below as this is simply a collection of data and it would be practically impossible to test all of them. Thank you!
    Don't forgot to say thanks by giving "Kudos" if I helped solve your problem.
    When a solution is found please mark the post that solves your issue.
    Every problem has a solution!

Maybe you are looking for

  • Md5sum Error on Windows

    Hi I downloaded the EBS 12.1.1 from Edelivery side and unzip all the files on Z:\stage folder. Here Z is mapped drive. I download the "md5sum_Windows.txt" form the below document "MD5 Checksums for R12.1.1 Rapid Install Media [ID 802195.1]" md5sum --

  • Internal Error Issue in VK12

    Hi, I m Creating Condition Records through VK11 t.code..select Condition Type PR00 (Key Combination : Material)... After giving Condition Records saved message, When I want to change this condition record through VK12... It gives an error message : I

  • Need Real Customer Service

    I am writing this letter in hope that there is wish for you to continue business with me. My family and friends have used Verizon for years and really enjoyed the service. However, as of late the customer service and helping the customer has gone to

  • RVS4000 IP Access Lists

    Hello all, I am trying to block access from 1 VLAN to another without disabling InterVLAN routing. In my access list entry I have the following: Deny ALL protocols, Source interface LAN; Source Address Network 192.168.8.0/24 (VLAN I wish to block); D

  • Where can I download file "IEMailService.xml"?

    Hi All; I am a Web Dynpro beginner. When I do exercise : create an email web dynpro application, I need a file "IEMailService.xml". Where can I download this file ? Thanks Anita