Differences between COM & JavaScript Scripting

Hi all,
I have to make a sort of script that populate an InDesign document with some data from a database.
I can do it with a Web Service called in Javascript or in C# with COM.
Do you know the differences between COM and Javascript scripting ?
What is the best ?
Thank you.

Hello,
Would javascript be the recommanded way to go if i want to interop with it without any user interaction?
Out goal is to produce catalogues (from another application , in C# / .net 4.0) which already contains the data. We want to be able to push that data toward indesign so direct com interop seemed to make the most sense.
Is there a way to send javascript commands to indesign from another program (NOT to indesign server and it's web services, we want to do this directly on the locally installed indesign client)?
Also what would be the proper way to send non textual data in indesign? (images etc) from a C# app as those can't simply be serialized as json and passed as text as part of the JS commands.
Doing this in javascript is fine for us too as long as there is a way to pass said javascript from an external app. Or should we look completely elsewhere?
Any means of commanding Indesign CS 5 from .net 4 would be great.
Best regards.

Similar Messages

  • Whats the difference between wml & wml script???

    Whats the difference between wml & wml script??? Can anyone help me clear my doubts about this topic?
    And where can I find online tutorials on WML???
    What are the softwares or programmes that i need to create wml???
    Lastly, where can I download nokia 3.0 toolkit???
    thanks in advance...

    you really need to be posting this elsewhere, preferrably on a non-java topic. that said...
    think of WML vs. WMLScript as HTML vs. JavaScript. WML is the markup, byte-compiled and sent to your microbrowser. WMLScript is code that your browser can run to do client-side validation and other manipulations.
    tutorials, simulators, etc. are just a web search away.
    same for the nokia WAP toolkit--you'll likely have to sign on as a nokia developer, it's free.

  • Difference between SAP GUI scripting and eCATT

    HI,
      What is difference between SAP GUI Script and eCATT.
      I know that SAP GUI Script can be used for transaction that have activex controls but can we use these script in eCATT also.
      If yes, how?
    Thanks,
    Priya

    Hi Priya,
    SAPGUI script will only work from an external program, may be VB or vbScript. ECATT can only execute a fixed set of commands e.g. (TCD, SAPGUI etc) or a block of ABAP code. ECATT can both work in foreground and background mode.
    In foreground mode you would be able to see the script running on your frontend whereas background mode will create a job in the SAP system.
    You can convert your SAPGUI scripts to SAPGUI commands and execute. If you strictly want to execute SAPGUI script from ECATT then you would have to save the script somewhere on your desktop computer and call it from an ABAP block in ECATT.
    Bikash

  • Difference between S22acct & K22acct script

    Hi,
    I found S22acct script is linked with /etc/init.d/acct in run level 2 and K22acct script is linked with /etc/init.d/acct in run level 0. I am having the following queries:
    If we transitioned from run level 2 to run level 0, obviously input to /etc/init.d/acct will be stop so it will stop the accounting information by passing stop argument to S22acct script, then why do we need K22acct script in run level 0 as this service is already stopped during transition.
    what is the difference between S22acct & K22acct script?
    How the system will behave if i didnt create K22acct script?Waiting for the response.
    Rgrds,
    Ram.

    >
    If we transitioned from run level 2 to run level 0, obviously input to /etc/init.d/acct will be stop so it will stop the accounting information by passing stop argument to S22acct script, then why do we need K22acct script in run level 0 as this service is already stopped during transition.S22acct scripts would never be called with 'stop'. What part of the system do you think does this?
    Many services are explicitly stopped prior to machine shutdown so that they can note the shutdown or so that they can clean up log files and close open files.
    what is the difference between S22acct & K22acct script?There is no difference in the contents. However S scripts are called with start arguments and K scripts are called with stop arguments.
    How the system will behave if i didnt create K22acct script?Upon entering that runlevel, it would not call the script. Or in your example, it would not run '/etc/rc0.d/K22acct stop' when entering run level 0.
    Darren

  • What is the difference between Com Addin and Activex control

    When I searched about them individually, both are described as same.
    Could any one please explain what are they and what is the difference between them exactly.
    Thanks and Regards, Uday Kiran Reddy Project Engineer Technology Infrastructure Services, Wipro Technologies ____________________________________________ Mob: +91-900-061-2578 | Email: [email protected]

    Hello,
    Here is what Wikipedia states for ActiveX:
    ActiveX is a software framework created by Microsoft that
    adapts its earlier Component Object Model (COM) and Object
    Linking and Embedding (OLE) technologies for content downloaded from a network, particularly in the context of the World
    Wide Web.<sup class="reference" id="cite_ref-msdn1_1-0" style="line-height:1;font-size:11.19px;font-style:normal;font-weight:normal;">[1]</sup> It
    was introduced in 1996 and is commonly used in its Windows operating system.
    In principle it is not dependent on Microsoft Windows, but in practice, most ActiveX controls require either Microsoft Windows or a Windows emulator. Most also require the client to be running on Intel x86 hardware, because they contain compiled code.<sup
    class="reference" id="cite_ref-2" style="line-height:1;font-size:11.19px;font-style:normal;font-weight:normal;">[2]</sup>
    Many Microsoft Windows applications — including many of those from Microsoft itself, such as Internet
    Explorer, Microsoft Office, Microsoft
    Visual Studio, and Windows Media Player — use ActiveX controls
    to build their feature-set and also encapsulate their own functionality as ActiveX controls which can then be embedded into other applications. Internet Explorer also allows the embedding of ActiveX controls in web
    pages.
    And for COM:
    Component Object Model (COM) is a binary-interface standard
    for software components introduced by Microsoft in
    1993. It is used to enable inter-process communication and dynamic object creation
    in a large range of programming languages. COM is the basis for several other Microsoft technologies and frameworks,
    including OLE, OLE
    Automation, ActiveX, COM+, DCOM,
    the Windows shell, DirectX, UMDF and Windows
    Runtime.
    Office add-in is an assembly which implement the
    IDTExtensibility2  interface (COM).

  • Difference between com.sap.ejb.annotations.AppStartup and @PostConstruct

    Hi developers,
    In NW 7.3 we have two EJB annotations with identical meaning:
    javax.annotation.PostConstruct
    and
    com.sap.ejb.annotations.AppStartup
    A method annotated like this is invoked by the container right before the EJB is made available to clients.
    Can anyone explain the difference between the two annotations?
    Thanks, regards
    Vincenzo

    Hi
    PostConstruct = EJB standard, AppStartup = SAP proprietary.
    As far as I understand the descriptions, the AppStartup callback invocation occur for all EJBs immediately when the application is starting (no matter if the EJB is called or not) whereas "The PostConstruct callback invocations occur before the first business method invocation on the bean. This is at a point after which any dependency injection has been performed by the container." (see EJB spec).
    So the PostConstruct has nothing to do with application life cycle but with the lifecycle of a single bean instance. PostConstruct may be called later on first client invocation) and in AppStartup, you probably do not have dependency injection performed but have to lookup using java:comp/env.
    Regards
    Rolf

  • What're the differences between JSP, Java Script, and Java Applet?

    I am confused by the concepts: JSP (Java Server Page), Java Script, and Java Applet? What are their main differences?

    I don't know about differences, but one of their main similarities is that each of them has a page in Wikipedia.
    JSP
    JavaScript
    [Java applet|http://en.wikipedia.org/wiki/Java_applet]
    There. That should give you enough information.

  • Difference between reports and script

    Gayathri

    Hi,
    Reports:
    Used to display the existing data from the database tables for the analysis purpose
    SCRIPTS:
    They are the Outgoing documents from an organisation to the outside Partners like vendors and Customers.
    Report is basically a program which extracts the data from the database tables based on some inputs and gives the output as a list.
    Report are classified as Classical Reports, Interactive Reports and ALV Report.
    Classical Report is a normal report which just displays the output.User cannot interact with that report.
    Interactive Report is nothing but, a user can interacte with the report.After a basic list is displayed, user can click on some field on the list which generates a secondary list giving the necessary information relevant to that field.
    ALV Report is to provide users with a consistent, user friendly and functional method of manipulating the data, which appears on report lists. ALV provides more advantages than the normal report.
    SAP scripts is a word processing tool of SAP which has the following components: Standard text. It is like a standard normal documents. Layout sets. - Layout set consists of the following components: Windows and pages, Paragraph formats, Character formats. Creating forms in the R/3 system. Every layout set consists of Header, paragraph, and character string. ABAP/4 program.
    Regards,
    Omkar.

  • Should there be a difference between javascript in HTML Header vs js file?

    Application Express 3.2.1.00.10
    I'm finding that IE shows javascript errors when I refer to functions contained in a js file (uploaded as static file) referenced in the HTML Header versus copying the exact same code and keeping it in HTML Header. I can't seem to pinpoint it. Could it be that the APEX javascript API's (e.g. htmldb_Get, $x, $v, etc) that I reference in my functions will not work in external js file?
    The HTML Header is:
    <script type="text/javascript" src="#WORKSPACE_IMAGES#my_file.js></script>
    {code}
    but if i copy the code out of the file and change the HTML Header to this i get some kind of errors:
    {code}
    <script type="text/javascript">
    <!--
    .....all my functions here
    // -->
    </script>
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hello,
    >> Could it be that the APEX javascript API's (e.g. htmldb_Get, $x, $v, etc) that I reference in my functions will not work in external js file?
    No it couldn’t. First, the APEX JavaScript APIs are also stored in external files. Secondly, the origin of the JavaScript code shouldn’t matter, it’s the actual code that count.
    You didn’t specify any error message you received so it’s to pinpoint you problem, but in general, the main difference between external JavaScript code and a inline code is that external code can’t use substitution strings in the format of ‘&ITEM.’ (because the APEX engine doesn’t get the chance to perform the substitution). Other than that, the code should be identical.
    You mentioned a specific APEX built-in JavaScript functions. You should also check that these libraries are loaded correctly into you page.
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Forthcoming book about APEX: Oracle Application Express 3.2 – The Essentials and More

  • [NEWBIE] Difference between BaseAction and IsaCoreBaseAction

    Hi Experts,
    I'm new in ISA api programming.
    Can you please tell me what are the difference between:
    com.sap.isa.core.BaseAction and com.sap.isa.isacore.action.IsaCoreBaseAction ?
    When should I use BaseAction or IsaCoreBaseAction?
    Thank you in advance,
    Jemaru

    Hi,
    Read below description.
    com.sap.isa.core.BaseAction
    The BaseAction is the Base for all ISA-Actions. All ISA-Actions have to specialize the BaseAction and implement the doPerform method. When the ActionServlet calls a specific ISA-Action, the perform method on the BaseAction is executed. It checks whether the current session is valid. If the session is not valid it forwards the request to session_not_valid. If the session is valid it calls the method doPerform on its specialization.
    com.sap.isa.isacore.action.IsaCoreBaseAction
    Base class that takes care of the save retrievement of the BOM and session context. Another feature is that default catch statements for all common exceptions are put into this class. The developer of a an action can rely on this class to catch all Exceptions and display corresponding pages. If the correct log/tracing level (DEBUG) is set, all contextual data is written do the log file. To provide a security feature, the value of request parameters starting with nolog_ are not written to the logfile.
    You should for example protect credit card information with this method.
    Note - In this version of the class every request coming from one client is handled synchronized. This is done to prevent unpredictable exceptions coming from the underlying middleware (JCo). This approach may not be sufficient for high performance installations and it may be necessary to switch to another model of synchronization later.
    IsaCoreBaseAction This Base class provides easy access to Business Object Managers of the ISA core functionality, the IPC, and the catalog. This class gives you access to object of  UserSessionData,  BusinessObjectManager, IsaLocation
    so when you want to work with existing available objects like BOM, UserSessionData or want to log through IsaLocation, you  should use IsaCoreBaseAction class.
    BaseAction does not provide any access to UserSessionData or BusinessObjectManager or IsaLocation Object. It checks whether Session is valid or not to perform any process.
    I hope this will info will help you.
    Thanks.
    eCommerce Developer

  • What's the difference between java and Javascript?

    I a new programer, I am getting Java down. Now I want to add some java scripts to my site. Is there any difference between java and Javascript? Can I use the Java API site refference and classes? Thanks..

    Java is a programming language, Javascript is more for web pages. It is used to add interactivity to your web pages. 2 different languages.
    check out www.java.sun.com for Sun Java stuff.
    Lynn

  • Difference between Two Date Should come into Text Item

    Dear All,
    i want to get difference between two date into text Item :P36_C in On Change java script.
    i have two Date Item :P36_A and :P36_B .i have extract these date value from table then difference comes into Text Field :P36_C.
    Now i want if i change Date into Item :P36_A or Item :P36_B then Defference between two date Should Come into Item :P36_C .
    So i have use Java Script Code to do this
    <script>
      function diffdat(){
        function getVal(item){
       if($x(item).value != "")
         return parseFloat($x(item).value);
       else
         return 0;
        $x('P36_C').value =
    getval((TO_DATE('P36_B', 'DD-MON-YYYY'))-
    getval(TO_DATE('P36_A', 'DD-MON-YYYY')))+1;
    </script>
    i have put this into Item HTML Form Element Attributes 
    onChange="javascript:diffdat();"it's not woring .
    How to work that Code with dates.
    Thanks

    You can always create your own difference function based on your own criteria. You can modify this to suit your needs.
    CREATE OR REPLACE FUNCTION CALC_OFFICE_DAYS(date1 DATE, date2 DATE)
    RETURN NUMBER
    IS
    v_begin_date DATE := date1;
    v_end_date DATE := date2;
    v_office_start_time VARCHAR2(10) := '09:30 AM';
    v_office_end_time VARCHAR2(10) := '06:30 PM';
    v_comp_begin_time DATE;
    v_comp_end_time DATE;
    v_days PLS_INTEGER := 0;
    v_hrs NUMBER := 0;
    v_ttltm NUMBER;
    BEGIN
    select trunc(v_end_date) - trunc(v_begin_date)
    into v_days
    from dual;
    select to_date(to_char(sysdate,'DD-MM-YYYY')||' '||to_char(v_begin_date,'HH24:MI'),'DD-MM-YYYY HH24:MI')
    into v_comp_begin_time
    from dual;
    select to_date(to_char(sysdate,'DD-MM-YYYY')||' '||to_char(v_end_date,'HH24:MI'),'DD-MM-YYYY HH24:MI')
    into v_comp_end_time
    from dual;
    select (v_comp_end_time - v_comp_begin_time)/24 into v_hrs from dual;
    IF v_hrs > 4 then
    v_ttltm := v_days + .5;
    ELSE
    v_ttltm := v_days;
    END IF;
    return v_ttltm;
    END;
    As has been noted, this question is best posted on the PL/SQL forum.

  • What is the difference between smart forms and scripts.?

    what is the difference between smart forms and scripts.?

    Differences between Smartforms and SAPscript
    a) Multiple page formats are possible in smartforms which is not the case in SAPScripts
    b) It is possible to have a smartform without a main window .
    c) Routines can be written in smartforms tool.
    d) Smartforms generates a function module when activated.
    e) Smartforms can create web enable forms like XML
    f) smartforms itself contine subroutine pools need not to main separetly like in case of scripts
    Request you to refer the following links
    www.sap-img.com/smartforms/smartform-sapscripts.htm
    www.erpgenie.com/abap/smartforms_sapscript.htm
    Sapscript vs Smartforms
    Difference with SMARTFORMS vs. SapScript(SE71)
    The Following are the differences :-
    a) Multiple page formats are possible in smartforms which is not the case in SAPScripts
    b) It is possible to have a smartform without a main window .
    c) Labels cannot be created in smartforms.
    d) Routines can be written in smartforms tool.
    e) Smartforms generates a function module when activated
    Scripts are client dependent whereas smartforms aren't.
    Upto 99 main windows are possible in scripts and only one in smarforms.
    To create multiple main windows in scripts, you just have to give the window type as MAIN whnever you create a window.
    Scripts still exists but smartforms are in use from 4.6c version, now the lastest version of these two is adobe forms
    SAP Smart Forms is introduced in SAP Basis Release 4.6C as the tool for creating and maintaining forms.SAP Smart Forms allow you to execute simple modifications to the form and in the form logic by using simple graphical tools; in 90% of all cases, this won't include any programming effort. Thus, a power user without any programming knowledge can
    configure forms with data from an SAP System for the relevant business processes.
    Advantages of SAP Smart Forms
    SAP Smart Forms have the following advantages:
    1. The adaptation of forms is supported to a large extent by graphic tools for layout and logic, so that no programming knowledge is necessary (at least 90% of all adjustments). Therefore, power user forms can also make configurations for your business processes with data from an SAP system. Consultants are only required in special cases.
    2. Displaying table structures (dynamic framing of texts)
    3. Output of background graphics, for form design in particular the use of templates which were scanned.
    4. Colored output of texts
    5. User-friendly and integrated Form Painter for the graphical design of forms
    6. Graphical Table Painter for drawing tables
    7. Reusing Font and paragraph formats in forms (Smart Styles)
    8. Data interface in XML format (XML for Smart Forms, in short XSF)
    9. Form translation is supported by standard translation tools
    10. Flexible reuse of text modules
    11. HTML output of forms (Basis release 6.10)
    12. Interactive Web forms with input fields, pushbuttons, radio buttons, etc. (Basis-Release 6.10)
    Reward Points if useful.

  • Difference between abort_exec_request and deactivate_execution scripts

    Does anybody can explain the difference between abort_exec_request and deactivate_execution scripts which come with OWB?
    The first one will "abort the job in a managed way" the other "deactivate it so that the job is Completed in a managed way". What does that exactly mean?
    Thanks in advance for some explanations!!

    Hi Tonguç,
    Your AQ have four subcriber. "State" column value chances* after all subscribers dequeue the message.
    On the other hand, you won't see this result because of retention parameter. if you don't set retention time, message deleted from queue after dequeueing.
    Look at "retention_time"
    ex :
    EXEC dbms_aqadm.alter_queue(
    queue_name => 'AQ_MARKETING_DATA_QUEUE',
    retention_time => dbms_aqadm.INFINITE);
    also you can set this parameter when creating your queue
    * i ignored failing cases, such as exception queue etc.

  • What is the difference between scripts ans smart forms

    what is the difference between scripts ans smart forms

    hi
    for smartforms...some links
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://www.sapgenie.com/abap/smartforms.htm
    http://www.sapbrain.com/TUTORIALS/TECHNICAL/SMARTFORMS_tutorial.html
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf
    SmartForms : some links
    http://www.sapgenie.com/abap/smartforms.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://help.sap.com/saphelp_46c/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm
    http://help.sap.com/printdocu/core/Print46c/en/Data/htm/english.htm
    http://www.sap-img.com/smartforms/smart-001.htm
    http://www.sap-img.com/smartforms/smartform-tutorial.htm
    http://www.sap-img.com/smartforms/smart-002.htm
    http://www.sapgenie.com/abap/smartforms.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    http://www.erpgenie.com/abap/smartforms.htm
    for scripts..
    Good ...Check out the following links - important
    SAP Scripts
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=2969311
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=2902391
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=3205653
    https://forums.sdn.sap.com/click.jspa?searchID=1811669&messageID=3111402
    http://www.sap-img.com/sapscripts.htm
    http://sappoint.com/abap/
    http://www.henrikfrank.dk/abapexamples/SapScript/sapscript.htm
    http://help.sap.com/saphelp_crm40/helpdata/en/16/c832857cc111d686e0000086568e5f/content.htm
    http://www.sap-basis-abap.com/sapabap01.htm
    http://www.sap-img.com/sapscripts.htm
    http://searchsap.techtarget.com/tip/1,289483,sid21_gci943419,00.html
    http://sap.ittoolbox.com/topics/t.asp?t=303&p=452&h2=452&h1=303
    http://www.sapgenie.com/phpBB2/viewtopic.php?t=14007&sid=09eec5147a0dbeee1b5edd21af8ebc6a
    Other Links
    http://www.virtuosollc.com/PDF/Get_Reporter.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22cee43c611d182b30000e829fbfe/frameset.htm
    http://www.virtuosollc.com/PDF/Get_Reporter.pdf
    http://help.sap.com/saphelp_47x200/helpdata/en/da/6ada3889432f48e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/66/bc7d2543c211d182b30000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/5b/d22cee43c611d182b30000e829fbfe/frameset.htm
    drawing lins, boxes and shadings
    http://help.sap.com/saphelp_46c/helpdata/en/d1/802ec5454211d189710000e8322d00/frameset.htm
    How to create Box in scripts
    http://www.thespot4sap.com/Articles/Code_CostCentreReport.asp
    http://www.allsaplinks.com/dialog_programming.html
    http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/frameset.htm
    http://www.allsaplinks.com/files/using_table_in_screen.pdf
    http://www.geocities.com/ZSAPcHAT
    http://www.geekinterview.com/question_details/37873
    http://www.allinterview.com/showanswers/23627.html
    http://abapprogramming.blogspot.com/2008/03/sap-smart-forms-brief-discussion.html
    https://www.sdn.sap.com/irj/sdn/forums
    http://saplab.blogspot.com
    http://www.****************/Tutorials/Smartforms/SFMain.htm............
    regards

Maybe you are looking for

  • Responsible Cost Center and Profit Center in a Maintenance Order

    Dears, I would like to know what's the real influence that responsible cost center and profit center located in the "add. data" tab in maintenance order has when I confirm a labor (through the IW41) and settlement an maintenance order. Best Regards,

  • RemoveChild throwing error

    Can't figure out what's up. Keep getting this error: ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller. at flash.display:isplayObjectContainer/removeChild() at ViewFinder_mockup_fla::MainTimeline/checkFraming() The

  • JVC DT-1710CG vs Sony BVM-A20F1U

    Hi. I'm looking to purchase a color grading monitor. Usually I rent the Sony BVMA20 HD CRT but I am wondering if the JVC DT-V1710CG is good enough to grade with. Has anyone here used the JVC monitor before? If so, how does it compare to the Sony? Tha

  • Changing Apple ID to reconfigure business phone.

    Hi, my boss has asked me to create a new itunes account for our office iphone (3g). I have created the new ID with the business email, however the macbook I use as for the business is his old personal macbook.Having signed into the new account I can

  • How to write regularExpression in Java

    Hi all, Iam with a small problem.....My file contains data like: EVENT TS=2005-10-06 11:07:18.335 CATEGORY=Uncompressed Request = ID= WID=SINCCBMSDGND017 AID=TIPS SID="TECHARCH" I have to write a regular expression..I have to get time(TS) from the da