Rocket Terminal Emulator

 View Only
Expand all | Collapse all

Rocket TE Web Edition javascript samples

  • 1.  Rocket TE Web Edition javascript samples

    Posted 08-01-2023 04:40

    Had to switch to Rocket TE Web Edition.  The javascript seems to have some propriatary function. Where can I find some sample scripts for: 1. paste to an external document, such as notepad. Figured out how to copy and copy append the screen details to the clipboard; 2. run through a list of items.  I can travel the different screens but want to have it process each item in the list through a javascript.  

    I've searched the form and can't find anything. 

    Was using to use bluezone app & had lots of vb scripts not those no longer work since moving to Rocket TE WE.  We don't have the addon for vb script, only have the one for javascript.

    Thank you



    ------------------------------
    ant mcken
    analyst
    Rocket Forum Shared Account
    ------------------------------


  • 2.  RE: Rocket TE Web Edition javascript samples

    ROCKETEER
    Posted 08-02-2023 22:39
    Edited by Qianchao Pan 08-02-2023 22:39

    Hi Ant,

        Here is the online document about the RTE Web Front-end API for your reference  API quick start  and  Front-end API for Rocket Terminal Emulator Web Edition

        For your question

        1:  Do you want to run your own javascript that can invoke the external application (like Notepad), then paste the clipboard text to it?

              Is this is case?  Javascript is running based on the browser which restricts interaction with external applications, so, it will be a big challenge.

        2:  Can you explain in more detail or give an example of this case,  Do you want to use Javascript to control different screens, like page down or page up?

    Regards.



    ------------------------------
    Qianchao Pan
    Senior Software Engineer • Bluezone Product Engineering
    Rocket Internal - All Brands
    ------------------------------



  • 3.  RE: Rocket TE Web Edition javascript samples

    Posted 01-22-2024 04:15

    Hi Qianchao, i would like to use JavaScript to extract data to a Txt or CSV file file. is there  JS object definitions, function parameters, or SDK documentation i can look at? thank you 



    ------------------------------
    rony d
    Rocket Forum Shared Account
    ------------------------------



  • 4.  RE: Rocket TE Web Edition javascript samples

    ROCKETEER
    Posted 01-22-2024 04:41

    Hi Rony,

        In the version of RTE web 10.2.1, there is new API function 'writeToFile'  that supports output the text/data  of a single or multiple terminal screens  to a Txt  file.

    You can try this and leave a comment if anything I can help.



    ------------------------------
    Qianchao Pan
    Senior Software Engineer • Bluezone Product Engineering
    Rocket Internal - All Brands
    ------------------------------



  • 5.  RE: Rocket TE Web Edition javascript samples

    Posted 01-22-2024 05:46

    Thank you for your reply. Where can I find the documentation for this API? 



    ------------------------------
    rony d
    Rocket Forum Shared Account
    ------------------------------



  • 6.  RE: Rocket TE Web Edition javascript samples

    ROCKETEER
    Posted 01-29-2024 03:33

    Hi Rony,

      There is no online documentation for client API, the API documentation is a part of the package and have been put into the release package.

    After deploy the RTE web, refer the API use case URL like http://localhost:8543/ZLUX/plugins/com.rs.bzw/web/lib/js/doc/index.html



    ------------------------------
    Qianchao Pan
    Senior Software Engineer • Bluezone Product Engineering
    Rocket Internal - All Brands
    ------------------------------



  • 7.  RE: Rocket TE Web Edition javascript samples

    Posted 01-26-2024 10:11

    Qianchao,

    Where can I find documentation regarding the new version of RTE 10.2.1.  Currently, we are running 10.2.0. The 'writeToFile' was not part of that release so there might be additional functions in the 10.2.1 release.

    Thank you

    AM



    ------------------------------
    Anthony Mckenzie
    analyst
    Arizona Health Care Cost Cont.
    ------------------------------



  • 8.  RE: Rocket TE Web Edition javascript samples

    ROCKETEER
    Posted 01-29-2024 03:36

    Hi Anthony,

      There is no online documentation for client API, the API documentation is a part of the package and have been put into the release package.

    After deploy the RTE web, refer the API use case URL like http://localhost:8543/ZLUX/plugins/com.rs.bzw/web/lib/js/doc/index.html.

     So, for your case, if you don't have 10.2.1 package, maybe you can raise a customer case and ask the 10.2.1 package from our support team.



    ------------------------------
    Qianchao Pan
    Senior Software Engineer • Bluezone Product Engineering
    Rocket Internal - All Brands
    ------------------------------



  • 9.  RE: Rocket TE Web Edition javascript samples

    Posted 01-29-2024 12:01

    You have an invalid link in your reply.  



    ------------------------------
    Anthony Mckenzie
    analyst
    Arizona Health Care Cost Cont.
    ------------------------------



  • 10.  RE: Rocket TE Web Edition javascript samples

    ROCKETEER
    Posted 01-30-2024 02:18

    Sorry, try to replace the localhost:8543 in URL with your correct host name and port number.



    ------------------------------
    Qianchao Pan
    Senior Software Engineer • Bluezone Product Engineering
    Rocket Internal - All Brands
    ------------------------------



  • 11.  RE: Rocket TE Web Edition javascript samples

    Posted 01-22-2024 04:15

    Test



    ------------------------------
    rony d
    Rocket Forum Shared Account
    ------------------------------