Calling applet from SJ passing enum type

Is it possible to pass enumeration type when calling applet from JavaScript?
For example my method in applet looks like:
     public enum ColorEnum {
          RED,
          GREEN,
BLUE
     public void doSomething(ColorEnum color)
If I send String in JS like 'RED' I get following exception:
Message: java.lang.IllegalArgumentException: No method found matching name doSomething and arguments [java.lang.String]

HI,
Please check out these links-
embed java applet in web dynpro
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b3c1af90-0201-0010-c0ac-c8d802d264f0
Regards
Lekha

Similar Messages

  • Error while calling applet from Javascript via LiveConnect and WebDriver

    Hi all,
    I am trying to call applet Java code from Javascript via WebDriver.
    Given the following two cases:
    - calling a static method: Integer.parseInt("42")- constructing a new object: new String("Hello world")My Javascript code looks like this:
    document.appletId.Packages.java.lang.Integer.parseInt("42");
    new document.appletId.Packages.java.lang.String("Hello world");When executing this code in Firefox via the Firebug Javascript console everything works fine and I get the expected results. However, when executing this code via the JavascriptExecutor from WebDriver only the call to the static method succeeds, the construction of the new object leads to the following error: "Attempt to call a default method on object with no invokeDefault method."
    I don't have any idea what is going wrong here, so any help would be greatly appreciated.
    Thanks!

    Hello Gerard, Hello Krishna,
    -> The liveCache application failed with COM error::
                                   40028 Illegal timestamp in rough timegrid
    More details about COM error 40028 you will see in TA /n/sapapo/om10
         -> Return code: 40028 -> execute ::
    Invalid time stamp in the time buckets profile relation     
    ( om_ts_tgrelinvalidstamp )     
       < click on '?' mark >
    -> Open an OSS message in accordance with SAP note 167280 if further help
         needed to solve the issue on your system.
    Thank you and best regards, Natalia Khlopina

  • Calling one applet from another passing database connection

    We are trying to establish if it is possible to start an applet that connects to a database and use that as a 'menu'. From there we would call other applets. Is there a way to pass along the database connection from one applet to another. Any help is greatly appreciated.
    null

    Here' s a sample program in the Java Tutorial that messages between applets.
    http://java.sun.com/docs/books/tutorial/applet/appletsonly/iac.html

  • Pass enum type as a paramter of constructor

    hi
    i have a hospital system application with three main classes Patient, Doctor and Hospital as well as two Enum classes. The Hospital class uses the Patient class's constructors to create object. The parameters that Patient class default constructor takes are-
    private Patient(String name, int age, Type patientType, String medicareNo, int hoursTreated) { //set class fields}
    now when i actually use this in the hospital class , like -
    hospital.patients.add(new Patient ("Fred Bear", 29, PRIVATE, "Ben Casey", "HCF236788", 10, Level.A));
    i get error in Netbeans and Eclipse that constuctor not found
    can anyone plz tell me how to solve this one!!!
    thnx

    karanJ wrote:
    can anyone plz tell me how to solve this one!!!
    Either by passing arguments that match an existing c'tor in number and types of args or by creating a new constructor that matches what you're trying to call in number and types of args. Which one is correct depends on your requirements, so only you know that.

  • Passing Record type parameter from one session to other session

    Hi,
    I have a package.procedure, in that I am calling custom workflow, inside this workflow again I am calling
    same package.procedure (Its an recursive call)
    I need to pass record type parameter in this package.procedure.
    I tried with global variables but Workflow starts its new session so it losses all variables.
    Now I am going with creation of Custom table.
    Please advice, is there any way other than creation of Custom table.
    I mean can we pass Record type parameter from one session to other session without creating table.
    Regards
    Rohit

    Al-Salamu Alikum We Rahmatu Allah We Barakatu...
    want this place from to be passed as a parameter to the shipping bill form..... using web.show_documentwhy don't u think of just passing data parameter or global parameters from one form to another
    Pass global variable between two forms.
    Hope this helps...
    Regards,
    Abdetu...

  • Calling an applet from servlet

    Hi
    I'm devoloping a server side java software(on netbeans 6) and I want my gui classes(Designed as swing japplet application) to be executed on server side.
    I mean I have database operations on my applet and some logging functions and I want them to execute on server side not client side
    Is it possible to call applets from servlet and so its executed on server if it is possible how can i do that is there a tutorial for that ?
    If it is not is there any other solution? Its really urgent for me
    Thanks

    tolgatanriverdi wrote:
    I'm devoloping a server side java software(on netbeans 6) and I want my gui classes(Designed as swing japplet application) to be executed on server side.Call a company named Citrix, they do stuff like that using a special client.
    I mean I have database operations on my applet and some logging functions and I want them to execute on server side not client sideSo it's not the GUI classes but the rest of the business logic.
    Is it possible to call applets from servlet and so its executed on server if it is possible how can i do that is there a tutorial for that ?It's possible for a servlet to call any class. It's not easily possible for a servlet to connect to a certain applet instance running on a certain client, and neither should it. Hello - it's the server. It's supposed to answer to requests. It's not supposed to issue requests to the client. And considering your set-up as I understood it, you don't ned that anyway. Let the applet just tell the servlet to do action X or Y or Z.
    Its really urgent for meGood Thing that you wrote it here. If you had written it at the beginning of your post, I wouldn't have bothered to answer.

  • Enum type class hierarchy.

    Hi,
    I was reviewing and eagerly testing the Typesafe Enum Facility (enum types) on 1.5.0 beta, which is still in Public Review in the JCP (JSR-201).
    I would would like to mention a missing feature that I find usefull and powerfull for a custom framework architecture.
    I understand and agree with respect to the first question on the JSR 201 FAQ, about subclassing enums.
    Having enumeration constants from both the superclass and the subclass is quite confusing and I agree with disallowing it from the language.
    But I miss the ability to inherit custom behavior (methods, and not enumeration constants), for an enum type, from a middle superclass. This middle superclass could be a base class for enum types within a specific development framework (and of course, java.lang.Enum would by in is class hierachy).
    The actual proposal allows for an enum type to only have java.lang.Enum as superclass, from which it inherits methods like name() and ordinal(). But in a proyect where a large number of diferent enum types with a common and custom extra framework behavior (like a localizedName() or propertyKey() method for example) would need the implementation of this behavior in each enum type source code (or in a helper class).
    Following the example above, the actual proposal would need the following coding in order to add an additional behavior to all (or some) of the enum types in a development proyect:
    public interface MyBaseFrameworkEnum {
         String localizedName();
         String propertyKey();
    public enum FooEnum implements MyBaseFrameworkEnum {
         FOO_A, FOO_B;
         public String localizedName() {
              //..... coding necesary in every enum implementing BaseFrameworkEnum
         public String propertyKey() {
              //..... coding necesary in every enum implementing BaseFrameworkEnum
    As you see, every enum type in my example framework (like FooEnum) would need to code both methods localizedName() and propertyKey() which would produce a lack of centralized code and increase of class file size.
    It would be very powerfull to be able to use the following coding:
    public abstract enum MyBaseFrameworkEnum {
         public String localizedName() {
              //..... coding centralized
         public String propertyKey() {
              //..... coding centralized
    public enum FooEnum extends MyBaseFrameworkEnum {
         FOO_A, FOO_B;
    As you see, with this abstract enum MyBaseFrameworkEnum (which does not falls in the subclassing problem mentioned in the FAQ) does not define enum constants and will pass its custom behavior to its subclass enums. thus centralizing the related code.
    I generally use an implementation of the Typesafe Enum Pattern so I really am looking forward for this new Typesafe Enum Facility in the Java language. But, as an example, I generally use common features in my enums, a properyKey() method used to get a unique key in order to internationalize my applications, since a description to enums is normally needed to be displayed to users.
    I believe this capability would be very powerfull in cases where common features are needed for enums in a development proyect with respect of:
    - code centralization and maintainance.
    - class file size.
    - source code readability.
    This extension would not contradict the actual definition, it would only allow for an enum type to be able to extend from another abstract enum type which has no enumeration constants.
    I believe that if there are other programmers that find this extension worth, it could make it in the JSR-201(which is in public review until February 21th) process before the final specification.
    Regards,
    Luis Longeri

    It would be very powerfull to be able to use the
    following coding:
    public abstract enum MyBaseFrameworkEnum {
         public String localizedName() {
              //..... coding centralized
         public String propertyKey() {
              //..... coding centralized
    public enum FooEnum extends MyBaseFrameworkEnum {
         FOO_A, FOO_B;
    }Luis, I like your idea but don't really like the idea of an abstract enum. I think this would be better
    public class MyBaseFrameworkEnum extends Enum {
         public String localizedName() {
              //..... coding centralized
         public String propertyKey() {
              //..... coding centralized
    public enum FooEnum extends MyBaseFrameworkEnum {
         FOO_A, FOO_B;
    }However, this always opens up the risk of you breaking the enum specific stuff, so all the vulnerable Enum methods would need to be declared "final".
    Because you are unlikely to see this in the language any time soon (if at all), you can always centralise your code in some static methods that take the enum as an argument
    public class MyBaseFrameworkEnumTools {
         public String localizedName(Enum e) {
              //..... coding centralized
         public String propertyKey(Enum e) {
              //..... coding centralized

  • NetBeans: Calling code from other packages?

    Normally, when I would call code from eclipse, I would type something like:
    import +<package name>.<class name>+But somehow, this approach doesn't seem to work in NetBeans, how can I import code from another package? I can seem to import from the same package, but not a different one.
    Edited by: px7659 on Jun 15, 2010 6:21 PM

    px7659 wrote:
    Normally, when I would call code from eclipse, I would type something like:
    import +<package name>.<class name>+But somehow, this approach doesn't seem to work in NetBeans, how can I import code from another package? I can seem to import from the same package, but not a different one.Then the package is not part of the project. Did you perhaps forget to add the jar library in question?

  • Calling an Applet from a JSP

              Hi,
              I need help with this, I want to invoke an applet from a JSP page. The applet code
              is compiled and resides in a separate jar file. The question is, how do I deploy
              this applet in weblogic 6.1 and then have a JSP call this applet.
              --Krish.
              

    To call an applet from a jsp use the <jsp:plugin> tag
              <jsp:plugin
              type="applet"
              code="classFileName"
              codebase="classFileDirectoryName"
              [ align="bottom|top|middle|left|right" ]
              [ height="{displayPixels |  <%= expression %>}"]
              [ width="{displayPixels |  <%= expression %>}"]
              [ hspace="leftRightPixels" ]
              [ vspace="topBottomPixels" ]
              </jsp:plugin>
              Krish Khambadkone wrote:
              > Hi,
              >
              > I need help with this, I want to invoke an applet from a JSP page. The applet code
              > is compiled and resides in a separate jar file. The question is, how do I deploy
              > this applet in weblogic 6.1 and then have a JSP call this applet.
              >
              > --Krish.
              

  • Passing a value to an Applet from another server directory

    this is my problem:
    1) on our server we are logging a unique session_id: e.g: abc12345
    2) i want to pass the session_id value to the the applet.html file which calls applet.class
    Question:
    1) Can the applet.html file be in a different direcory from the applet.class file_?
    OR
    2) Would i have to use Javascript to pass the session_id value to applet.html_?
    ananda

    thanks smg123 - thats very helpful. I've tried experimenting with fixed URL's etc - and i keep getting security exceptions.
    In the following simple Applet.html code - could you give us a clue on how we would call Applet.class with Applet.html in a seperate directory - of course, keeping in mind that the Applet.class file is within Applet.jar_?
    ananda
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
    <html>
    <head>
    <title>test</title>
    </head>
    <body>
    <h1>test</h1>
    <applet
    codebase="com.esdu.glenrowan.viewpacs.J9611A10.userinterface.J9611A10Applet.class"
    code="J9611A10Applet.class"
    archive="J9611A10.jar"
    width=695 height=525>
    </applet>
    </body>
    </html>

  • Facing problem in JavaStoredProc being called from plsql pass JPublisher

    I'm facing problems in calling java stored procedure from a plsql procedure.
    1) I have a plsql types
    create or replace type wwpro_api_portlet_instance
    as object
    portlet_inst_guid varchar2(60),
    provider_id number(38),
    portlet_id number(38),
    ref_path varchar2(100)
    create or replace type wwpro_api_portlet_instances
    as table of wwpro_api_portlet_instance
    2)I create java classes from JPublisher for these types as attached with this mail.
    3) There is a sql procedure where I create a instance of wwpro_api_portlet_instances with values populated in it.
    and then pass it to another procedure which is a CallSPec for the java class.
    Call Spec
    procedure export_data_internal
    p_http_url in varchar2,
    p_timeout in number,
    p_service_id in varchar2,
    p_proxy_host in varchar2,
    p_proxy_port in number,
    p_proxy_username in varchar2,
    p_proxy_password in varchar2,
    p_portal_version in varchar2,
    p_encryption_key in varchar2,
    p_message_lang in varchar2,
    p_export_id in varchar2,
    p_provider_id in varchar2,
    p_debug_level in number,
    p_portlet_instances in wwpro_api_portlet_instances
    )as language java
    name 'oracle.webdb.provider.web.ExportImportClient.exportData(
    java.lang.String,
    int,
    java.lang.String,
    java.lang.String,
    int,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.Integer,
    oracle.webdb.provider.web.PortletInstanceArray
    Procedure calling Call Spec
    procedure export_data
    p_export_id in varchar2,
    p_provider_id in number,
    p_portlet_instances in wwpro_api_provider.portlet_instance_table
    ) is
    begin
    --calling Call Spec
    export_data_internal
    p_http_url => l_provider.http_url,
    p_timeout => l_provider.timeout,
    p_service_id => l_provider.service_id,
    p_proxy_host => l_provider.dbtier_proxy_hostname,
    p_proxy_port => l_provider.dbtier_proxy_portnumber,
    p_proxy_username => l_proxy_info.username,
    p_proxy_password => l_proxy_info.password,
    p_portal_version => wwctx_api.get_product_version(),
    p_encryption_key => wwpro_util.get_encryption_key(p_provider_id, TRUE),
    p_message_lang => l_provider.language,
    p_export_id => p_export_id,
    p_provider_id => p_provider_id,
    p_debug_level => wwpro_util.get_debug_level,
    p_portlet_instances => l_portlet_instances <== Populated as I'm sure about it.
    //this gets 'EXP :ORA-29532: Java call terminated by uncaught Java exception: java.sql.SQLExc
    eption: Closed Connection'
    end export_data;
    4)Inside the Java class 'oracle.webdb.provider.web.ExportImportClient'.
    public static void exportData
    String url,
    int timeout,
    String serviceId,
    String proxyHost,
    int proxyPort,
    String proxyUser,
    String proxyPass,
    String portalVersion,
    String sharedKey,
    String messageLocale,
    String exportId,
    String providerId,
    Integer portalDebugLevel,
    PortletInstanceArray instances
    )throws Exception
    oracle.webdb.provider.v2.adapter.soapV1.SOAPException
    try
    conn = DriverManager.getConnection("jdbc:default:connection:");
    stmt = conn.createStatement();
    stmt.execute ("INSERT INTO d VALUES ('into ExportImportClient.exportData ')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData url :: " + url +"')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData instances:: " + instances +"')");
    // Prints this ==> FROM ExportImportClient.exportData instances:: oracle.webdb.provider.web.PortletInstanceArray@78e2087c
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData debugLevel:: " + portalDebugLevel +"')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData instances:: " + instances.length() +"')");
    //This Operation is giving the problem as any operation performed on this is clsing the Connection and comming out.
    //This has worked once but did not work after that, I tried this in the 10g as well as 901
    conn.commit();
    }catch(SQLException sqe){
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData sqe error :: " + sqe.getMessage() +"')");
    conn.commit();
    throw sqe;
    catch(Exception e)
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData exception error :: " + e.getMessage() +"')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData exception error :: " + e.getClass() +"')");
    conn.commit();
    throw e;
    Any reason what may be happening ? I have done the loadJava of the Jpublisher classes once in the database. After that I never made any changes to
    them, I just modify and upload the oracle.webdb.provider.web.ExportImportClient class.
    What Shold I try to over come this ?
    Also
    thanks
    rahul

    I'm facing problems in calling java stored procedure from a plsql procedure.
    1) I have a plsql types
    create or replace type wwpro_api_portlet_instance
    as object
    portlet_inst_guid varchar2(60),
    provider_id number(38),
    portlet_id number(38),
    ref_path varchar2(100)
    create or replace type wwpro_api_portlet_instances
    as table of wwpro_api_portlet_instance
    2)I create java classes from JPublisher for these types as attached with this mail.
    3) There is a sql procedure where I create a instance of wwpro_api_portlet_instances with values populated in it.
    and then pass it to another procedure which is a CallSPec for the java class.
    Call Spec
    procedure export_data_internal
    p_http_url in varchar2,
    p_timeout in number,
    p_service_id in varchar2,
    p_proxy_host in varchar2,
    p_proxy_port in number,
    p_proxy_username in varchar2,
    p_proxy_password in varchar2,
    p_portal_version in varchar2,
    p_encryption_key in varchar2,
    p_message_lang in varchar2,
    p_export_id in varchar2,
    p_provider_id in varchar2,
    p_debug_level in number,
    p_portlet_instances in wwpro_api_portlet_instances
    )as language java
    name 'oracle.webdb.provider.web.ExportImportClient.exportData(
    java.lang.String,
    int,
    java.lang.String,
    java.lang.String,
    int,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.String,
    java.lang.Integer,
    oracle.webdb.provider.web.PortletInstanceArray
    Procedure calling Call Spec
    procedure export_data
    p_export_id in varchar2,
    p_provider_id in number,
    p_portlet_instances in wwpro_api_provider.portlet_instance_table
    ) is
    begin
    --calling Call Spec
    export_data_internal
    p_http_url => l_provider.http_url,
    p_timeout => l_provider.timeout,
    p_service_id => l_provider.service_id,
    p_proxy_host => l_provider.dbtier_proxy_hostname,
    p_proxy_port => l_provider.dbtier_proxy_portnumber,
    p_proxy_username => l_proxy_info.username,
    p_proxy_password => l_proxy_info.password,
    p_portal_version => wwctx_api.get_product_version(),
    p_encryption_key => wwpro_util.get_encryption_key(p_provider_id, TRUE),
    p_message_lang => l_provider.language,
    p_export_id => p_export_id,
    p_provider_id => p_provider_id,
    p_debug_level => wwpro_util.get_debug_level,
    p_portlet_instances => l_portlet_instances <== Populated as I'm sure about it.
    //this gets 'EXP :ORA-29532: Java call terminated by uncaught Java exception: java.sql.SQLExc
    eption: Closed Connection'
    end export_data;
    4)Inside the Java class 'oracle.webdb.provider.web.ExportImportClient'.
    public static void exportData
    String url,
    int timeout,
    String serviceId,
    String proxyHost,
    int proxyPort,
    String proxyUser,
    String proxyPass,
    String portalVersion,
    String sharedKey,
    String messageLocale,
    String exportId,
    String providerId,
    Integer portalDebugLevel,
    PortletInstanceArray instances
    )throws Exception
    oracle.webdb.provider.v2.adapter.soapV1.SOAPException
    try
    conn = DriverManager.getConnection("jdbc:default:connection:");
    stmt = conn.createStatement();
    stmt.execute ("INSERT INTO d VALUES ('into ExportImportClient.exportData ')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData url :: " + url +"')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData instances:: " + instances +"')");
    // Prints this ==> FROM ExportImportClient.exportData instances:: oracle.webdb.provider.web.PortletInstanceArray@78e2087c
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData debugLevel:: " + portalDebugLevel +"')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData instances:: " + instances.length() +"')");
    //This Operation is giving the problem as any operation performed on this is clsing the Connection and comming out.
    //This has worked once but did not work after that, I tried this in the 10g as well as 901
    conn.commit();
    }catch(SQLException sqe){
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData sqe error :: " + sqe.getMessage() +"')");
    conn.commit();
    throw sqe;
    catch(Exception e)
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData exception error :: " + e.getMessage() +"')");
    stmt.execute ("INSERT INTO d VALUES ('FROM ExportImportClient.exportData exception error :: " + e.getClass() +"')");
    conn.commit();
    throw e;
    Any reason what may be happening ? I have done the loadJava of the Jpublisher classes once in the database. After that I never made any changes to
    them, I just modify and upload the oracle.webdb.provider.web.ExportImportClient class.
    What Shold I try to over come this ?
    Also
    thanks
    rahul

  • Call tcode from alv report and passing  group of values

    hi all .
    i want to call tcode from alv report and passing an internal table or group of values to a selection option of that t code ? how
    ex. passing group of GL to fbl3n and display the detials of all .
    thank you

    Dear,
    You have done a small mistake
    --> rspar_line-option = 'EQ'.
         rspar_line-HIGH = PDATE-HIGH.
    u r passing "high" value and in "option u r passing "EQ" so how it will work!!!
    So if u r passing only 1 date or more dates like 01.01.2010 , 15.02.2010 , 10.03.2010 then pass
    rspar_line-selname = 'SO_BUDAT'.
    rspar_line-kind = 'S'.
    rspar_line-sign = 'I'.
    rspar_line-option = 'EQ'.
    rspar_line-LOW = PDATE-HIGH.
    APPEND rspar_line TO rspar_tab.
    or if u r passing low & high date means in range like 01.01.2010 to 30.01.2010, then pass
    rspar_line-selname = 'SO_BUDAT'.
    rspar_line-kind = 'S'.
    rspar_line-sign = 'I'.
    rspar_line-option = 'BT''.
    rspar_line-LOW = PDATE-LOW.
    rspar_line-HIGH = PDATE-HIGH.
    APPEND rspar_line TO rspar_tab.
    try above code , hope it helps...
    i think u cannot use "call transaction using bdcdata" in ur case bcoz as u said in ur 1st post u want to display the details of all but still if u want to use then u should pass all parameters in  loop.
    PROGRAM
    DYNPRO
    DYNBEGIN
    FNAM
    FVAL
    ex:-
    LOOP AT GT_TEMP INTO GS_TEMP.
    CLEAR bdcdata_wa.
    bdcdata_PROGRAM = 'SAPXXXX'.
    bdcdata_DYNPRO = '1000'.
    bdcdata_DYNBEGIN = 'X'.
    bdcdata_wa-fnam = '''.
    bdcdata_wa-fval = ''.
    APPEND bdcdata_wa TO bdcdata_tab.
    CLEAR bdcdata_wa.
    bdcdata_PROGRAM = ''.
    bdcdata_DYNPRO = ''.
    bdcdata_DYNBEGIN = ''.
    bdcdata_wa-fnam = 'SD_SAKNR'.
    bdcdata_wa-fval = GS_TEMP-GLACCOUNT.
    APPEND bdcdata_wa TO bdcdata_tab.
    CLEAR bdcdata_wa.
    bdcdata_PROGRAM = ''.
    bdcdata_DYNPRO = ''.
    bdcdata_DYNBEGIN = ''.
    bdcdata_wa-fnam = 'BDC_OKCODE'.
    bdcdata_wa-fval = 'XXX'.
    APPEND bdcdata_wa TO bdcdata_tab.
    ENDLOOP.
    try above code if u r using call transaction...
    Edited by: mihir6666 on Jul 9, 2011 3:10 PM
    Edited by: mihir6666 on Jul 9, 2011 3:11 PM
    Edited by: mihir6666 on Jul 9, 2011 3:13 PM

  • Is it possible to pass some type of parameter/unique id FROM PDF?

    hi there,
    I will try to explain this as best as I can but please bear with me.
    I have Adobe Acrobat X Pro.
    We have drawings linked to each other in pdf.
    When you open a drawing (say, a layout of a house), my boss wants to be able to click on say, a door, and have all the information on that door pop up (size, manufacturer, when it was shipped, etc). The information log is stored in Excel. I know how to hyperlink to open an excel file FROM pdf, but cannot figure out how to open a specific sheet in Excel. So here is my question:
    1. How do I link to a specific sheet in Excel so it opens when I click on a link in the pdf file?
    Having said that, we are going to have around 1500 items and I don't want to have to create 1500 sheets (if that's even possible) to open the details for each one. So here is question #2:
    2.  Is it possible to pass some type of parameter to excel (or even Access) to know what item was clicked on the pdf file so I can write a macro/code in Excel to just fill in the details for that item? (Hence just needing one sheet instead of 1500?).
    Suggestions/path forwards are welcome.
    I hope this was clear and I thank you in advance.
    Thanks,
    Jessica

    There really isn't a way to do that. It would be possible to export an Excel sheet to a tab-delimited (or CSV, XML) file which could optionally be attached to the PDF. JavaScript inside the PDF could read the data file and extract the information for an item so it could be displayed somehow.

  • How to pass cPath in ExportAsXfdf when we call javascipt from our plugin??

    Hi
    I am able to export file using javascript through my plugin..But if I pass cPath variable also, it does nothing..I am not able to pass to cPath value properly..
    what should be the syntax of cPath when we call javascript from plugin??
    If I write this
    char * buf = "this.exportAsXFDF({bAnnotations:true});";
    AFExecuteThisScript(pdDoc, buf, NULL);
    It runs fine,.
    But if I also mention cPath it fails to export xfdf
    char path[256] = "//C//Users//ishitas//Desktop//ishita.xfdf";
    char * buf = "this.exportAsXFDF({cPath:path,bAnnotations:true});";
    AFExecuteThisScript(pdDoc, buf, NULL);
    or
    char * buf = "this.exportAsXFDF({cPath: \"//C//Users//ishitas//Desktop//ishita.xfdf\",bAnnotations:true});";
      AFExecuteThisScript(pdDoc, buf, NULL);
    How should I pass cPath????
    please help..

    Hi Malcolm,
    Thanks for the reply...it really helped me a lot to solve the problem.

  • How to call an applet from a first applet

    Hi,
    I need to call an applet from a first applet, but I want that the called applet doesn't execute in the same AppletContext than the first one, is it possible?
    If it is, what is the solution?
    Thanks

    Yes, it is possible. One way would be to use static variables.
    class A1 extends Applet
       public static A2 TheOther;
       public A1()
          A2.TheOther = this;
       public void callA2()
          TheOther.doSomething();
    class A2 extends Applet
       public static A1 TheOther;
       public A2()
          A1.TheOther = this;
       public void doSomething()

Maybe you are looking for

  • I am trying to burn a basic DVD in DVDSp 4.0,

    Here is the message I am getting...The Build Location folder contains a HVDVD_TS folder(HD DVD content).  You must remove the HVDVD_TS folder from the Build Location in order to proceed with Build/Format of a Standard DVD project. Not sure how or why

  • Can't copy any file to/from iomega 1TB home media network CE other than through FTP

    Hi, since few days ago I can't copy any file to or from iomega using Windows Explorer on my PC or any file explorer ony my android phone. I can acces the drive but when I try to copy something to the drive, a 'copying'  window pops up  and shows "est

  • Speaker stays showing constantly in middle of screen

    How do we remove the speaker icon which shows constantly in the middle of the screen no matter what we try to do to remove it? We have tried to do a factory reset yet still it remains. Anyone have a clue how to remove this speaker icon in middle of s

  • Ibooks list of books

    I downloaded ibooks and searched the book list that was offered. I put some books on my own list in Word to review later when I was ready to download. And now for the life of me I cannot find the book list in the ibook program.

  • DML DDL Message

    Hello Expert, In My application when users press the “Run” it is executing the DML or DDL statement. What I am looking for it is to display the message that’s come after executing this statement. I am want the same message which appear when you run t