Can I post here(Acrobat Windows) Java Script questions here?

Hello
Can I post here(Acrobat Windows) Java Script questions here? If not, wht is the correct forum?
THank you

Back up and down to Acrobat Scripting. Bot Windows and MacIntosh Acrobat versions use the same JavaScript.
If you are using LIVECYCLE DESIGNER use their forums. The JavaScript syntax and objects are different in LIVECYCLE DESIGNER!

Similar Messages

  • Can we integrate .swf file in java script ?

    Hello Friends,
    We implemented one concept in Flex and now would like to integrate with JavaScript. Earlier we integrated an Applet code but now, we developed the concept in Flex, however, I am unable to integrate the concept in java script.
    Can anyone help me out with the procedure to integrate flex swf file in java script ?
    Here is my earlier java script code :
    var file=gup('query');
    //document.write(file);
    var prevFile=gup('prevFileName');
    //document.write(prevFile);
    document.write("<table align=\"center\"><tr><td><applet code=\"MyApplet.class\" archive=\"Visual.jar\" width=1000 height=500>");
    document.write("</applet></td></tr></table>");
    function gup( name )
      name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
      var regexS = "[\\?&]"+name+"=([^&#]*)";
      var regex = new RegExp( regexS );
      var results = regex.exec( window.location.href );
      if( results == null )
        return "";
      else
        return results[1];
    Thanks in advance.

    What version of FlashPro are you using? If you want a self contained app that doesn't load external resources, publish an AIR app, which will work on Windows or OSX. I'm using OSX so I can't really help with .exe projector files, but it looks like the latest version of FlashPro no longer outputs projector files—I think everything is AIR now.
    If you really want to go the projector route, I'm guessing Jeffrey Smith's suggestion of finding an older version of Flash Player would be simpler.
    So for AIR, set your Publishing target to AIR for Desktop. Then under File>AIR settings:
    Output as: Application with runtime embedded
    Include files: Add all of your resources—the swf ID generated and it's resource folder
    In the Signature tab click New to create a self-signing Certificate (if you were developing commercial software you would need a third party certificate). You can save the certificate anywhere.
    When you publish you should find an AIR application file (.app) file in the directory with your .fla

  • Load an Advanced Print Setting in Acrobat via Java-Script

    Hi there,
    I'd like to know, if there's a way to load an advanced print setting in the Acrobat via Java Script or some other way? (See Screenshot)
    Or is it possible to set an created setting as default-setting? (also via Java or something)
    Or can somebody tell me, where these created print settings are saved? (in Acrobat X)
    Thank you very much for your help and sorry for my english, I hope you understand me. :-)
    Kind regards
    Mankro

    Why wouldn't you want to set itas part of an input/output parameter?
    This is really the right way ofdoing this. Otherwise you'll end up with hardcoded variable name in your customcomponent and that not ideal.
    If you're trying to define a default value for it coming from a properties file, you can just make it a "Configuration" variable and set the value from adminui.
    Jasmin

  • How we can handle the below doubt in Java Script!!

    Hi All,
    I need to handle the below scenerio in javascript, i am very poor in scripting langauage could any help me out.
    Below are the three where we have specail character
    words as
    1. transfer (…)
    2. Shell’s
    3. Vitol – as
    The above 3 are having some specail characters which we need to
    replace as mentioned below
    need to use a Function/Method in some scripting language like Java
    script to replace the special character with a predefined sequence eg:
    single quote with “a1b1” before inserting the data in to the data base
    and then while retrieving the record from the database replace “a1b1”
    with single quote.
    Note#:It is a text area where user can either enter or copy and paste
    the content.
    Thanks,
    Anoo..

    Hi Anoo,
    always remember to put your apex and database versions, it makes it easier to help.
    You mentioned stripping out special characters and then putting them back for display. Is there a particular reason why?
    If you're having difficulty querying the 'special' characters from SQL, you can create a view to handle that complexity.
    The examples you gave don't contain any characters you can't query on. Maybe I'm missing something.
    Kofi

  • How can we prevent back button  using java script

    how can we prevent back button using java script

    Would be quicker for you to google for javaScript
    javascript:window.history.forward(-1);

  • Can anyone help me with multiple Java scripts?

    I am totally new to java....... minus some scripts and stuff.. can anyone tell me how to put multiple java scripts onto a page??
    Ty,
    Godrio

    Totally new to Javascript too, I suppose. That's the language you use for scripting of web pages, not Java. This forum is for Java.

  • Can I parse Text files in Java Script to populate in select boxes.

    The scenario is as follows:
    I have two select boxes, the second one depends on the first one for its values.
    Values corresponding to the selection made in the first select box are available in a text file.
    Can I parse the text file to fill in the values in the second select box through javascript?
    Can any one please help.
    Thanks,
    Ramesh

    This isn't a javascript forum. Java is not Javascript and Javascript is not Java.
    If you actually meant Java...the answer is "maybe, depending on what you're doing".

  • Acrobat X: Java-Script-Problem

    Hallo zusammen,
    ich habe folgendes Problem: aus einer .pdf-Datei möchte ich die Bookmarks, die ich selbst erstellt habe, auslesen (warum führt zu weit).
    Dafür verwende ich folgendes Script, das ich von www.evermap.com/javascript.asp habe:
    /* Create a bookmark report */
    function PrintBookmark(Report, bm, nLevel)
    // write a name of the bookmark
            var inch = 72; 
    Report.writeText(bm.name);
    // process children
    if (bm.children != null)
      Report.indent(inch/2);
      for (var i = 0; i < bm.children.length; i++)
       PrintBookmark(Report, bm.children[i], nLevel + 1);
      Report.outdent(inch/2);
    var root = this.bookmarkRoot;
    var Report = new Report();
    PrintBookmark(Report, root, 0);
    // Change output path for the report
    Report.save("/c/myreport.pdf");
    Acrobat gibt über die Console als Fehler zurück: bm is undefined.
    Ich verstehe das so, das ich bm als var erst definierten muss. Aber wie? Javascript ist mir zu hoch...
    Kann mir jemand helfen?
    Vielen Dank schon im Voraus,
    Stefan

    Ich hab die Lösung :
    http://acrobatusers.com/content/create-bookmark-report
    Trotzdem vielen Dank fürs Lesen!

  • Java script question

    how to pass an array as parameter from child window to a function in parent window.

    Not sure... but you can try asking here...
    http://www.jguru.com/forums/JavaScript

  • Please only post SAP Business Objects products related questions here

    Hi
    Thanks for reading.
    Unfortunately many people get confused with the term BI which was used for SAP BW at one time. With the acquisition of Business Objects some product names have changed.
    SAP BW is still SAP BW, please post in the respective forums: /community [original link is broken]
    Business Intelligence in this forum refers to the these SAP Business Objects products:
    SAP Business Objects Enterprise
    SAP Business Objects 4.0
    SAP Business Objects Intelligence Platform 4.0
    For more information and great articles and videos please see:
    http://www.sdn.sap.com/irj/boc/bi
    Kind Regards
    Roland Hoeller

    >
    Suresh Babu Aluri wrote:
    > Hi,
    >
    > You can create All prompt in lovs of reuired object as
    >
    > do the following steps for all prompt creation.
    >
    > 1. Go to Object to which the lovs are mapped. -> select object -> properties -> advanced (not sure) -> edit lovs -> then a query panel will display and it will have query like
    >
    > select distinct(..........) from ......................
    >
    > change the above query to
    >
    > select distinct(..........) from ......................
    > union
    > select 'all' from dual -> dual is temporary table in oracle (you define a temporary table w.r.to database)
    >
    > 2. In designer go to the object on which prompt is defined.
    > i.e.
    >
    > may be in selecor where clause you might defined prompt as
    >
    > .............. @prompt('Member Name')
    >
    > so change that to
    >
    > .................. .............. @prompt('..Member name')
    > or
    > 'all' in @prompt('Member name')
    >
    > 2. For your second requirement the max no lov values are changed in prm files. For that go to programs -> BO -> BO ii.5 or ur version -> dataaccess->win32_x86-> based on ur back end select required folder -> search in *.prm files to change the max no lovs.
    >
    > Cheers,
    > Suresh Aluri.
    Hi Suresh
    Thank you for the detailed response.  I tried your suggestions and neither works.
    LOV issue:
    Within the Business View manager, i right-click on the LOV object and click "Edit List of Values..." and i get a dialog box that only shows me Available fields, List of Value Fields used, description field, and Referenced objects. Along with buttons for Clear Instance & Refersh Status.
    I have read similar posts to what you suggested but never get to the same place as described.
    Please advise....
    as for _Max Number LOV _
    I have researched this as well and found the same suggestion you made. But the PRM file does not have that value, and the file contains all XML code
    Now what???
    Thanks
    Mike

  • Java Script Question (No Toolbars, ... for whole application)

    Hi Everybody!
    I have the following problem. We have created a web-application, which consists of about 100jsp pages and several class-files.
    Now we want to hide the toolbar, the menubar and the addressbar for every jsp page in the application. I know, that normally this is done by using window.open(...) but then I had to alter every link in the nearly finished system.
    Is there another possible solution to achive this goal with minimum effort?
    Thanks in Advance!
    Stef

    no, but why do you have about 100 window.open() calls? Most web applications don't jump between windows. And it's not like you can hide that stuff in the current window anyway.

  • Java script question: about GMT time

    Hi,
    i'd like to get a GMT time. using javascript below:
    function setTime(){
    var a = new Date();
    a = a.toGMTString();
    but after output the a's value, i found it's:
    Tue, 28 Aug 2001 04:11:01 UTC
    the format is GMT's format, but the string shown in the end isn't GMT, but UTC. why? and how to change it to
    Tue, 28 Aug 2001 04:11:01 GMT ?

    I would guess that, at least with 1.3.1, you will have to do it yourself.
      java.util.TimeZone t = java.util.TimeZone.getTimeZone("UMT");
      System.out.println("tz=" + t.getDisplayName());
    .The above displays the time zone as GMT, even though UMT was selected.
    Presuming that UMT=GMT (web search revealed some conflicts and my definitive work is not available) then the following should do it.
      java.text.SimpleDateFormat f
          = new java.text.SimpleDateFormat("EEE d, MMM yyyy HH:mm:ss");
      java.util.TimeZone t = java.util.TimeZone.getTimeZone("UMT");
      if (t == null)
        throw new Exception("No UMT zone");
      System.out.println("tz=" + t.getDisplayName());
      f.setTimeZone(t);
      java.util.Date d = new java.util.Date();
      System.out.println("d=" + f.format(d) + " UMT");

  • How to use bean objects in java script

    function insertRow()
              var row=1;
              var tbl = document.all("TAU");
         var tr = tbl.rows(row);
         var td = tr.cells(0);
         var td2 = tr.cells(1);
         var td3 = tr.cells(2);
         row++;
         tr = tbl.insertRow();
         tr.setAttribute(false);
         td = tr.insertCell();
         td2 = tr.insertCell();
         td3 = tr.insertCell();
         td.innerHTML = "<html:text property='unit' value ='02' />";
         td2.innerHTML = "<html:text property='unit Id' />" ;
         td3.innerHTML = "<html:text property='unit Type' />" ;
    this is my code, it is basicaly add row at run time thru java scripts. i want to set property of beans with this script , in this code i foun error ie. "can not found bean in nay scope" so plz anybody can tell me how can i pass bean object to java script !!!!!!

    mmmh i'm not understanding so much....
    well... as i told before i'm working in oracle database environment and i'm developing a java procedure.
    now, i have this object
    CREATE OR REPLACE
    TYPE REPORT.FATTURA_OBJ AS OBJECT (
    POD VARCHAR2(1000),
    ID_FATTURA NUMBER,
    ID_FILE NUMBER,
    COERENZA_EA_F VARCHAR2(1000),
    COERENZA_ER_F VARCHAR2(1000),
    COERENZA_EA_M VARCHAR2(1000),
    COERENZA_EF_M VARCHAR2(1000),
    ANOMALIA VARCHAR2(1000),
    MOTIVO_INVALIDAZIONE VARCHAR2(1000),
    MATRICOLA_CONTATORE VARCHAR2(1000),
    POTENZA_DISPONIBILE VARCHAR2(1000),
    MEMBER PROCEDURE pulisci
    /and i need to work with it inside this procedure:
    CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED REPORT."Manage_Excel_ASMBS" AS
    import java.io.*;
    import java.io.IOException;
    import java.io.StringWriter;
    public class Manage_Excel_ASMBS
    public static void read_Excel(String inputFile,int var_Id_Caricamento, int var_Id_Distributore, String var_Distributore) throws SQLException, IOException
              **here i need to put what i'm reading inside the excel file into oracle objects**
    /can you please give me a sample ?
    thanks

  • How to Enable Custom Java Scripts for forms in Planning 11.1.2.2

    I am working on Planning 11.1.2.2 right now.
    Planning admin guide says, there is no explicit requirement to enable java Script for planning forms.
    I set simple alert to see text "Hello World" in function validateForm() function in custom/validateData.js file - to see and test that alert when I save data for my selected application/form.
    Closed javascript file and workspace, and planning application web page. Since I have not to do anything new to enable this java script alert, I opened that form and saved data to see if I can see my alert.. I got no alert, except "data are saved".
    Has anything changed since last version? Am I missing something? Or, do I need to recycle services to get this alert?
    thanks in advance.

    Thanks guys, for your quick replies..!
    Not sure what I missed, but I still have a hard time finding my "Hello World" alert.
    What I did, is here.
    a. Cleared all cookies and temp files from IE.
    b. Updated validateData.js file from ear / war files using 7-zip program at given path from your link.
    c. Stopped EPM services
    d. Dropped tmp folder.
    e. Started EPM services and let system deploy ear file (with my java script code).
    All services are up. I can see EAR file deployed and java script file ValidateData.js has all my changes in new tmp folder now.
    I am able to open my application and form.
    But, my "Hello World" alert is still not appearing. Form is saved and saw message as usual.
    One exception I noticed in my path. I have ....user_projects\domains\EPMSystem\servers\EPMServer0\.... in place of ....user_projects\domains\EPMSystem\servers\Planning_0\.... in my path. Planning_0 is replaced by EPMServer0 in this version. Rest is all same.
    Any clue? thanks in advance,

  • Java scripting with textarea?

    Hello,
    I am trying to read values passed by a servlet from an html form using java scripting. Here is the code:
    document.MainForm.textareaInfo.value = "<%= (String)session.getAttribute("textareaInfo") %>"
    This code works if the info entered in the textareadInfo field has one line with no carriage return.
    How can assign value to textareaInfo field contains multi-line string with carriage return?
    Thanks in advance.

    Hi,
    replace all "\r\n" (carriage return) in the string with "\\r\\n", so that it appears as "\r\n" in javascript.
    In jdk 1.4, you can use((String)session.getAttribute("textareaInfo")).replaceAll ("\r\n", "\\\\r\\\\n")

Maybe you are looking for