Dymo labels javascript (API) issue

Hi all.
APEX 4.2
11gR2 XE database.
I'm trying to print labels directly from APEX via a JS library from DYMO (DYMO label framework for javascript).
I would like to fetch the XML for the label layout dynamically from the database instead of fixed assigning this in JS, that way I can store all the templates for labels in the database and fetch the appropriate one for the task I'm doing ).
If I use the fixed code it works fine, code looks like this ( label XML layout is assigned to labelxml variable in the first few lines ) :
function printadres(labeltext )
    try
var labelxml = '<?xml version="1.0" encoding="utf-8"?>\
    <DieCutLabel Version="8.0" Units="twips">\
        <PaperOrientation>Landscape</PaperOrientation>\
        <Id>Address</Id>\
        <PaperName>30252 Address</PaperName>\
        <DrawCommands/>\
        <ObjectInfo>\
            <TextObject>\
                <Name>Text</Name>\
                <ForeColor Alpha="255" Red="0" Green="0" Blue="0" />\
                <BackColor Alpha="0" Red="255" Green="255" Blue="255" />\
                <LinkedObjectName></LinkedObjectName>\
                <Rotation>Rotation0</Rotation>\
                <IsMirrored>False</IsMirrored>\
                <IsVariable>True</IsVariable>\
                <HorizontalAlignment>Left</HorizontalAlignment>\
                <VerticalAlignment>Middle</VerticalAlignment>\
                <TextFitMode>ShrinkToFit</TextFitMode>\
                <UseFullFontHeight>True</UseFullFontHeight>\
                <Verticalized>False</Verticalized>\
                <StyledText/>\
            </TextObject>\
            <Bounds X="332" Y="150" Width="4455" Height="1260" />\
        </ObjectInfo>\
    </DieCutLabel>';
          var label = dymo.label.framework.openLabelXml(labelxml);
          // set label text
          label.setObjectText("Text", labeltext);
          // select printer to print on
          // for simplicity sake just use the first LabelWriter printer
          var printers = dymo.label.framework.getPrinters();
          if (printers.length == 0)
               throw "No DYMO printers are installed. Install DYMO printers.";
          var printerName = "";
          for (var i = 0; i < printers.length; ++i)
               var printer = printers;
               if (printer.printerType == "LabelWriterPrinter")
                    printerName = printer.name;
                    break;
          if (printerName == "")
               throw "No LabelWriter printers found. Install LabelWriter printer";
          // finally print the label
          label.print(printerName);
     catch(e)
          alert(e.message || e);
but when I try to fetch the same XML from a text field on my form it fails with a "getObjectByNameElement(): no object with name 'Text' was found" error which is a custom error from the DYMO library.
I'm unable to find the big difference in the 2 approaches. If I test the variable labelxml by putting it in an alert the value seems fine ( it contains the XML string which is in P11_LABELTEMPLATE which is exactly the same as the static assigned text in the previous example ).
The code then looks like this :function printadres(labeltext )
try
          var labelxml = $v('P11_LABELTEMPLATE'); // This is the dynamic assigment which somehow fails
          var label = dymo.label.framework.openLabelXml(labelxml);
          // set label text
          label.setObjectText("Text", labeltext);
          // select printer to print on
          // for simplicity sake just use the first LabelWriter printer
          var printers = dymo.label.framework.getPrinters();
          if (printers.length == 0)
               throw "No DYMO printers are installed. Install DYMO printers.";
          var printerName = "";
          for (var i = 0; i < printers.length; ++i)
               var printer = printers[i];
               if (printer.printerType == "LabelWriterPrinter")
                    printerName = printer.name;
                    break;
          if (printerName == "")
               throw "No LabelWriter printers found. Install LabelWriter printer";
          // finally print the label
          label.print(printerName);
     catch(e)
          alert(e.message || e);
I'm not sure if this is an APEX or JS question/problem but I hope someone can point me in the right direction.
Regards
  Bas                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Hello Bas,
>> P11_LABELTEMPLATE
There is a possibility that the actual value of P11_LABELTEMPLATE is escaped. Try to use the Session popup window to check the value of the item.
Regards,
Arie.
&diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
&diams; Author of Oracle Application Express 3.2 – The Essentials and More

Similar Messages

  • OneDrive Javascript api access to powerpoint

    I'v been using the new javascript API for OneDrive and was wandering how/if the api extends to cover calling powerpoint files into an webpage or even hopefully specific slides into an iframe e.g
    regards
    Mark

    Hi,
    This is the forum to discuss questions and feedback for Microsoft Office ,the issue is more related to coding/programing, you'd better post your question to the MSDN forum
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=messengerconnect
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support

  • Shockwave 11 Javascript API

    I'm seeking any information regarding the javascript API for
    Shockwave 11. Does it exist? Is there documentation?
    I've seen one example using a javascript to control the
    shockwave player created for 8.5 at famous3D website, but it
    appears to be broken now with version 11. I've been having a
    serious problem with the Shockwave ActiveX Control since upgrading
    to 11. I'm hoping the Javascript API could be a potential
    workaround.
    Any info would be greatly appreciated! Thanks in
    advance!

    _PlayerOne_,
    No, I haven't made any progress on this. I can confirm that
    it happens also in Director 11 and Director MX 2004. Director 11 is
    a currently supported product and yet it experiences the same
    error. I have also posted this to the director forums but no
    response there. I have also explored calling it from Swing in Java,
    same effect. Calling it in a Power Point presentation with Visual
    Basic also causes it to crash.
    I got the "compatibility player" portion to load but it
    didn't have any effect on this issue.
    No solution has presented itself. Currently, I am advising
    our company and our customers to revert to the 10.3.0.24 version
    and to avoid installing the 11.0.0.429 version until it gets fixed.
    Unfortunately, this means Vista performance is poor but luckily our
    customers haven't moved entirely to Vista.

  • My dymo label printer keeps crashing since installing mavericks

    Since I installed mavericks, my dymo label printer wont work- it keeps crashing. Anyone else with this problem- can it be fixed?

    Please download the latest version of DYMO Label (8.5.1 at the time of writing). If the issue persists, please ring 1-877-724-8324.
    ^CM
    DYMOsupport

  • DYMO Label doesn't work correctly since installing mavericks

    After installing mavericks, DYMO Label didn't work. So I updated DYMO Label to 8.5.0.1836. Now I can print address labels, which is fine.
    But if I want to SAVE a label, the first two lines of the address are put together and the layout confuses. So I have to separate the first to lines manually befor printing the label the next time.
    Are there any other users with this kind of problem? And if so: Are there any ideas to solve that problem?
    Thanks
    FM

    I updated to Mavericks 3 days ago and am working through my printer issues. The one solved this morning was my Dymo LabelWriter Twin Turbo, which was not recognised as available, and the Dymo app (version 8.2.2.1172) simply said it had an error. I wrote a help ticket to Dymo and someone from their Helpdesk very helpfully sent a set of instructions (below) which cured the issue. I followed everything to the letter, copying off all my Dymo files, installing new software from the specified address, deleting all Dymo driver files from my MacPro, and it all worked out. Once installed, I tested creating, printing and saving new labels. Then I put back all my saved label files from the previous version of the software, and had no problem printing labels, even with my custom graphics. The software also chose the correct side of the printer to print from without any intervention from me (the previous software kept defaulting to the wrong label size). It also chose the correct custom graphic for default insertion without me having to set it. Thus far (at least) all is well.
    Thank you for contacting Dymo Helpdesk.
      My name is Georgi and I will be glad to assist you.
      I would like to inform you that Label Writer 450 Twin Turbo is compatible with Mac OS X Mavericks.
      In an attempt to resolve the current issue, please be so kind to follow the below instructions for a complete
      reinstall of the software and the drivers:
      - First please copy on a USB stick all your saved labels and addresses, if any. They have extension .label and .abx.
      - Unplug the USB cable of  LabelWriter 450 Twin Turbo from the Mac, if it is currently plugged in.
      - Just in case please check once again if its icon appears Printers & Scanners and if it is there, please delete it.
      - Uninstall Dymo Label Software by deleting it from HD > Application.
      - In the Spotlight type ‘terminal’ and launch this application. The default location is under Applications>Utilities
      - Enter or copy/paste the following commands into the Terminal window. Press the return key after you enter each line of text:
      defaults write com.apple.Finder AppleShowAllFiles YES
      killall Finder
            - In Finder go to HD (HardDrive) -> Library -> Application Support -> DYMO Label Software and delete everything by dragging and dropping the entire folder to the Trash bin.
           - In the Finder’s search (situated in the upper right corner of its window) type “Dymo” and delete everything that gets shown.
           - Reboot the Mac and install Dymo Label Software from the below link:
      http://download.dymo.com/dymo/Software/Mac/DLS8Setup.8.5.1.dmg
      Finally, please plug your LabelWriter 450 Twin Turbo at the end of the installation and try printing a label.
      Thank you in advance for your time.
      Please let me know about the result and the eventual error messages.
      Kind regards,
      Georgi XXXXX
      Dymo Helpdesk

  • Label print API

    Hi All,
    Does EBS have an API to print labels? I'm searching for information on the label printing API and an example of how to call it from a JavaConccurnetProgram. Is there another forum more appropriate for this question? I've done a lot of searching on this issue and haven't found much help, any insights will be really appreciated.
    Thanks,
    Mike

    Pl post details of OS and EBS versions, along with which module you intend to print labels from. See if these MOS Docs help -
    Label Printing Strategies for Oracle Warehouse Management System (WMS) (Doc ID 414368.1)
    https://supporthtml.oracle.com/ep/faces/secure/km/DocumentDisplay.jspx?id=414368.1&h=Y
    11i - Inventory Label Printing Documentation (Doc ID 277357.1)
    https://supporthtml.oracle.com/ep/faces/secure/km/DocumentDisplay.jspx?id=277357.1&h=Y
    There are also 3rd party solutions available -
    http://www.zebra.com/id/zebra/na/en/index/about_zebra/alliances/strategic_alliances/oracle.html
    http://www.nicelabel.com/resources/files/doc/literature/fl-NiceLabel_and_Oracle-eng.pdf
    HTH
    Srini

  • Displaying a theme-based FOI layer as a whole image with javascript API v2

    Hi,
    I have looked the Oracle maps V2 tutorial developed in mvdemo.war application provided with Oracle Mapviewer v11.1.1.7. I have looked how to use theme-based FOI layers and I have not found how to set the "whole image" property for these layers. This feature is present in javascript API V1 and it greatly improves application performance. Our applications use this property very often.
    Is this property present in javascript API V2 but not documented?
    If it's not present, do you know if it will be?
    How can we show a layer with many geometry features and obtain the same performance we have now with the whole image property?
    Thanks,
    Arturo

    Hi,
    since this is a very crucial feature for us I'm very interested in that functionality as well. Is there a comparable functionality in the V2 API or will it be available in feature releases?
    Thanks
    Dominik

  • Printing from an iPad to Dymo Label printer 750

    Am i able to print labels from an iPad to a Dymo label printer 750 via a airport express?

    List of supported AirPrinters.
    http://support.apple.com/kb/HT4356
    printing to a non-airprinter from an iPad
    Buy another box
    "The xPrintServer-Network Edition is a  'plug-and-print' hardware print server for printing from Apple iOS devices running iOS version 4.2 or higher.  The device is roughly the size of an iPhone and uses the iOS native print menu. It requires no additional applications, software downloads, or printer driver installations and automatically discovers available networked printers supporting JetDirect / AppSocket, LPD and IPP protocols."
    http://www.smallnetbuilder.com/cloud/cloud-devices/497-lantronix-shipping-airpri nt-server
    To print from the iPad your going to have to install some more software:
    -- many printer makers have iPad applications for printer.  Look in the app store
    -- generic software like Printopia
    iPad Print Applications -- usually free:
    Samsung
      http://itunes.apple.com/us/app/samsung-mobile-print/id429611283?mt=8
    HP App, ePrint Home & Biz
      http://itunes.apple.com/us/app/hp-eprint-home-biz/id299531647?mt=8
    http://h10025.www1.hp.com/ewfrf/wc/searchResults?tmp_product=HP+Photosmart+5515+ e-All-in-One+Printer+-+B111a&product=5063608&tmp_qt=eprint&cc=us&dlc=en&lc=en&su bmit
    Lexmark and possible Dell
      http://itunes.apple.com/us/app/lexmark-mobile-printing/id469415392?mt=8
    more helper apps see
    http://www.howtogeek.com/102671/how-to-enable-airprint-for-ios-printing-from-any -mac-or-windows-pc/
    Generic Software:
    You can connect the printer to a computer and install software on your iPad/computer to print from your ipad to the comptuer then to the printer.
    example:
    http://www.ecamm.com/mac/printopia/
    Should you have some office printer that are connected to a computer there are print enablling applicaionts you can run on the iPad to print to such printers.
    For Windows, try: PrintBreau, or PrintCentral.
    PrintCentral Pro
      http://itunes.apple.com/us/app/printcentral-pro/id426362921?mt=8
    Source: https://discussions.apple.com/thread/2729284?start=0&tstart=0
    Thanks to AirPrint Hacktivator you can turn any printer connected to your Mac or Windows PC into an AirPrint compatible printer.  from:
    http://osxdaily.com/2010/12/01/make-any-printer-airprint-compatible/
    this google query will give you more options
    ipad airprint via mac

  • PDF embedding & Acrobat's JavaScript API

    Hello,
    I have two questions.
    I currently using Safari 1.3.2 and Acrobat Reader 7.0.9 to test an PDF document embedded in a Web page. In Safari 1.3.2 I get a "This operation is not allowed" warning when the HTML object element and the embed element are encountered.
    I have also tested it in Safari 3.0 on Windows, with plug-ins enabled in the Preferences and Acrobat Reader 8 installed. The PDF file is not shown and no warning is given either.
    So, does Safari 2.0 support embedding PDF files at all?
    My other question is, assuming Safari does support PDF embedding, whether it is possible to interface from an HTML page to the Acrobat plug-in via Acrobat's JavaScript API. In IE this is a simple as getting the object element by id and for example, invoking its Print() method. Is this possible in Safari?
    Thank you in advance,
    Adal Fraile

    Hello,
    I have two questions.
    I currently using Safari 1.3.2 and Acrobat Reader 7.0.9 to test an PDF document embedded in a Web page. In Safari 1.3.2 I get a "This operation is not allowed" warning when the HTML object element and the embed element are encountered.
    I have also tested it in Safari 3.0 on Windows, with plug-ins enabled in the Preferences and Acrobat Reader 8 installed. The PDF file is not shown and no warning is given either.
    So, does Safari 2.0 support embedding PDF files at all?
    My other question is, assuming Safari does support PDF embedding, whether it is possible to interface from an HTML page to the Acrobat plug-in via Acrobat's JavaScript API. In IE this is a simple as getting the object element by id and for example, invoking its Print() method. Is this possible in Safari?
    Thank you in advance,
    Adal Fraile

  • How to add a polygon to mapviewer using Javascript API

    Hi,
    I am using JavaScript API for the MapViewer.
    Using redlining tool, my application allows user to draw polygon onto the map.
    I would like to have union, difference and intersect tools. I know the back end logic can be done using using JTS or SDO_Union, SDO_difference, and SDO_intersection. but how do i display the result polygon on the map? Note that I am not going to store the polygon in the database.
    Thanks for any ideas.

    Hi,
    If I understand well you are using Oracle Maps. User do some redlining, then you somehow makes FOI polygons. Then you get the coordinates of the polygons and send them to the back-end where you can use spatial functions and get the coordinates of the new polygon.
    You can store those coordinates in i.e. hidden input field on page (if you use JSF it is very simple) and then use JavaScript to parse them and Oracle Maps API to create new FOI polygon and add it to mapviewer object. One disadvantage of this concept is that reloading of page (submit) is necessary.
    Branislav

  • Map Builder JavaScript API

    Hello everybody,
    I'm a student who is currently working with Oracle for the first time. I developed an Web mapping application by using Oracle XE Database (10g), Oracle Map Viewer and corresponding Map Builder (the latest version). I choose the JavaScript API for the implementation of this application.
    The reason for this post is one particular problem that I encountered. I want to extract the X and Y coordinates (which are naturally stored as SDO_GEOMETRY in my database) for certain features that are visible in my map window (this features belong to themebasedFOIs). I know that the x and y coordinates (and other attribs) are easily accessible for the JavaScript Client if the coordinates are stored in own columns (additionally to the information stored in the SDO_GEOMETRY) ... but that is not the case!
    I searched the JavaScript API, the Internet, this forum and it took me a long time ... but I didn't come across any possiblity to manage this. So does anybody who reads this post see a possibility to get my X and Y coordinates from my HTML application that is build with JavaScript API???
    I will be very thankful for any advices and/or hints... :-)
    With regards

    hi, we don't return the geometry back to the client unless the foi is a point.

  • How can i use  a adf javascript api

    hi
    can i use the adf javascript api for creating the AdfRichInputText .is there any producer
    to create the AdfRichTextInputText in javascript .plz guide me
    Thanks and Regard
    Message was edited by:
    Prapan Sol

    Hi,
    the ADF JavaScript API is not meant for you to create JSF components on the fly. For this you please use teh ADF Facesserver side components.
    The RichInputText component is defined by a pair of components, the AdfRichInputText and its Peer component. I don't know what your usecase is, but my impression is you are looking at it from the wrong end
    Frank

  • Getting error when updating the JavaScript API for Office and manifest schema files in your Visual Studio project from version 1.0 to 1.1

    Hi,
    I`m getting error message like "None of the apps in your project can be activated in the target. The manifest file of one or more apps contain API sets or Office applications that are not supported by
    the target Office client. To debug those apps, update manifest files to exclude any unsupported API sets or Office applications, and then start the project again. Alternatively, you can debug your apps by using Office 365 as a target." when when
    updating the JavaScript API for Office and manifest schema files in your Visual Studio project from version 1.0 to 1.1 in manifest file though i have added host elements.
    any help in this regard is highly appreciated
    Thanks,
    Santosh Sutar  

    Hi Satosh Sutar,
    Based on the description, you got the error message when you update the apps from version 1.0 to 1.1.
    From the error message, it seems the menifest include some settings no allowed in the new version. Would you mind sharing more detail about how you update the project?
    And here is an article about updating apps for Office and menifest schema files in the project for your reference:
    How to: Update the JavaScript API for Office and manifest schema files in your Visual Studio project from version 1.0 to 1.1
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Is it possible to change out of the box Callout content for already existing library using some javascript API ?

    Is it possible to change out of the box Callout content (change DOM elements) for already existing library using some javascript API?
     API ?

    Hi,
    We can use CSS and jQuery to achieve it.
    Please add the following code into the Content Editor Web Part.
    <style type="text/css">
    .js-callout-content{
    display:none;
    .js-callout-mainElement span{
    display:none;
    .js-callout-mainElement{
    border-width:0px;
    </style>
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(function () {
    $("a[title='Open Menu']").click(function(){
    setTimeout(function(){
    $(".js-callout-body .js-callout-bodySection").eq(0).html("<span>Test</span>");
    $(".js-callout-mainElement span").show();
    $(".js-callout-content").show();
    $(".js-callout-mainElement").css("border-width","1px");
    },1000);
    </script>
    Result:
    Best Regards
    Dennis Guo
    TechNet Community Support

  • External use of Javascript API

    Hello All,
    I was wondering two things.
    1 - What is the file that contains the javascript API functions.
    2 - Could one use this outside the realm of APEX. --> I have a desktop application which connects to APEX and does a whole bunch of things. I have have however run into a problem. CLOBS. In apex I can use $S , but outside of APEX, what would be the equivalent.
    I know this is a shot in the dark, but well knowing does nto hurt.
    Thanks
    Jan

    1) These files can be found in /i/javascript
    $s for instance is found in apex_4_1.js
    2) Depends on the function. You can use these js files to track down exactly how Apex actions these tasks (I do this sometimes to learn a little more javascript), but if it ultimately talks to the db, then obviously you can't use that out of context.

Maybe you are looking for