How can I trap & display HTML syntax errors in mx:HTML at run time?

I am loading HTML pages into an mx:HTML component in an AIR application. If the HTML contains errors, they show up in the trace window in debug mode.  I'd like to trap that information so I can tell the usere that there are errors (and what they are) in the production version of the application. How can I get at those errors?

I found it myself how to do it. The error says that it is not able to find the reference object i.e  it is asking us to refer to the table. The following piece of code will solve this problem. Have to implement this in WDDOMODIFYVIEW method of the view. This thing works comrades enjoy...
  DATA : lr_cmp_usage TYPE REF TO if_wd_component_usage,
         lr_if_controller  TYPE REF TO iwci_salv_wd_table,
         lr_cmdl   TYPE REF TO cl_salv_wd_config_table,
         lr_col    TYPE REF TO cl_salv_wd_column.
  DATA : node_year  TYPE REF TO if_wd_context_node,
         elem_year  TYPE REF TO if_wd_context_element,
         stru_year  TYPE if_alv_layout=>element_importing,
         item_year  LIKE stru_year-i_current_year,
         lf_string    TYPE char(x),
  DATA: lr_column TYPE REF TO cl_salv_wd_column.
  DATA: lr_column_header TYPE REF TO cl_salv_wd_column_header.
  DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
Get the entered value from the input field of the screen
node_year  = wd_context->get_child_node( name = 'IMPORTING_NODE' ).
elem_year  = node_year->get_element( ).
  elem_year->get_attribute(
   EXPORTING
    name = 'IMPORT_NODE-PARAMETER'
   IMPORTING
    value = L_IMPORT_PARAM ).
  WRITE L_IMPORT_PARAM TO lf_string.
Get the reference of the table
  lr_cmp_usage  =  wd_this->wd_cpuse_alv( ).
  IF lr_cmp_usage->has_active_component( ) IS INITIAL.
    lr_cmp_usage->create_component( ).
  ENDIF.
  lr_if_controller  = wd_this->wd_cpifc_alv( ).
  lr_column_settings = lr_if_controller->get_model( ).
get column by specifying column name.
  IF lr_column_settings IS BOUND.
    lr_column = lr_column_settings->get_column( 'COLUMN_NAME').
set Header Text as null
    lr_column_header = lr_column->get_header( ).
    lr_column_header->set_text( lf_string ).
endif.

Similar Messages

  • How can I load a picture and use it in ActiveX in run time ??

    I am using an ActiveX object which needs a property "picture" as input.
    I can set the picture property in its property page in design time, but I don't know how to give it a "picture" in run time.
    In VB, I can do:
    dim pic As Picture
    pic = loadpicture("c:\test.bmp")
    control_1.picture = pic
    (("control_1" is the ActiveX object, and picture is the property))
    How can I do the same with labview?
    Is there any example that sets the picture property of an ActiveX in run time?

    sealiker wrote:
    I am using an ActiveX object which needs a property "picture" as input. I can set the picture property in its property page in design time, but I don't know how to give it a "picture" in run time. In VB, I can do:   dim pic As Picture pic = loadpicture("c:\test.bmp") control_1.picture = pic (("control_1" is the ActiveX object, and picture is the property))   How can I do the same with labview? Is there any example that sets the picture property of an ActiveX in run time?
    As
    far as I understand from the MSDN site, it seems that the Picture
    datatype is a specific VB only datatype. Most probably it is a handle
    (uInt32) value as far as other programs including LabVIEW are
    concerned, but there is no way that LabVIEW could deal with this
    datatype directly.
    If you can convert this datatype with some VB fucntions into a HBITMAP
    or HDIB then you could call some Win32 API functions to extract the
    relevant bitmap data from this common Win32 datatype and get somewhere
    from there. OR it maybe that VB itself has other functions to extract
    the bitmap data, color palette and other attributes of the Picture
    datatype. Don't expect LabVIEW to be able to deal with the Picture
    datatype directly though, this is really a proprietary VB thing.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How can i call this file path into my bsp-html  to display the images?

    Hi
    I have a file path for an image like c:/test_logo.bmp.
    How can i call this file path into my bsp-html  to display the images?
    moosa

    Try this...
    Can i have  sample code in BSP-HTML to display images?

  • How can I throw a hard 404 error to apache when a JSP is not found.

    How can I throw a hard 404 error to apache when a JSP is not found.
    I want to let apache handle the error.

    [email protected] (Jeremy Conner) wrote in
              <[email protected]>:
              >How can I throw a hard 404 error to apache when a JSP is not found.
              >I want to let apache handle the error.
              >
              >
              First thought that comes to mind is to return HTML that tells the browser
              redirect to a nonexistent file under Apache. You can't tell Apache to
              throw a 404 unless you're in a mod. Maybe something they could add to the
              proxy, but until then, I think a redirection in the response HTML is your
              only option.
              Jesse
              

  • How can I trap Out- of-Memory data with no crash after Crop Tool fails to finish?

    The Photoshop 6 beta program froze while using the crop tool on an image size of 8052x5368. I tried to save a file in another program while waiting for the crop to finish (usually about 1 second) and got an out-of-memory error. I checked the D: driv where the file in the other program was saved. I have a flash C: drive and is not selected in the scratch disk preference. Two scratch disks, E: and G:, are selected with a total of about 800GB free space. After closing PS6Beta, the D: drive recovered about 164GB. The D: drive is not selected in the Scratch Disk list. I work with larger files and anticipate this problem again.How can I trap information for Adobe next time?
    Adobe Photoshop Version: 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00) x32
    Operating System: Windows 7 64-bit
    Version: 6.1 Service Pack 1
    System architecture: Intel CPU Family:6, Model:14, Stepping:5 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2, HyperThreading
    Physical processor count: 4
    Logical processor count: 8
    Processor speed: 2664 MHz
    Built-in memory: 16375 MB
    Free memory: 13523 MB
    Memory available to Photoshop: 3255 MB
    Memory used by Photoshop: 60 %
    Image tile size: 128K

    The problem remains for how the c: and d: drives were not selected in the scratch disk list. I tried again with only E: and G: drives and the file completed after 20 minutes with a 27.7G file. It would have been an ovious problem if the "info" diaglog box included the projected file size and/or dimensional units (px or in) because I use the dialog for verifying the size of the image. I wanted to make a 300 x400px image rather than a 300x400inch image( 90000x120000px).
    Thanks for your quick help.

  • How can I trap the question 'Could not reserve record (2 tries). Keep tryin

    How can I trap the question 'Could not reserve record (2 tries). Keep trying ?'
    How can I trap the question 'Could not reserve record (2 tries). Keep trying ?'
    I want to know the error_code for this question before the 40501 error code.
    Thanks for the help.

    See
    Could not reserve record (2). Keep trying ?....

  • How Can I Fix A QuickTime Codec Error?

    How Can I Fix A QuickTime Codec Error?
    I have several movies from 2008 that are labeled as .mov but I now get a QuickTime error saying "The document "XXXXXX" could not be opened. A required Codec isn't available."
    These movies ran in QuickTime just fine until about a month ago.
    All the folders in which these movies were stored in 4 folders in 2 folders in one folder. All folders at each level were encrypted with Stuffit Deluxe a version circa 2008 and decrypted with a newer Stuffit Deluxe 10.x. Other movies that are NOT .mov and in with the .mov movies still run.
    If I click on the Thumbnail Preview "It" runs.
    How can I fix this?
    TOP image is the Error message.
    BOTTOM image is the Thumbnail Preview info.
    I've checked out "Tell Me More" and have not found a solution.

    How Can I Fix A QuickTime Codec Error?
    The basic work flow is to determine which codecs were used to create the non-playing file and then check to see if these formats are supported by your current system codec component configuration.
    If the files will open in one of the QT player app, the open the inspector window to see which codecs were used to create the original file as seen here...
    or here in the "Format" entry...
    Or, if you have QT 7 keyed for "Pro" use, you can open the "Properties" window to gain even more information as demonstrated here...
    if you file will not open in either of the QT Player apps, then you can try opening the Finder "Get Info" window for the file,
    use a third-party media player that will open the file, or
    use a dedicated media information utility to learn this information....
    Once you know what codecs were used to create the file, post back with this information so we can deterine if the file should be natively supported by your Mac OS X install, requires an Apple Pro editing codec normally installed by the editor app, or requires a third-party codec which the user must supply.
    These movies ran in QuickTime just fine until about a month ago.
    All the folders in which these movies were stored in 4 folders in 2 folders in one folder. All folders at each level were encrypted with Stuffit Deluxe a version circa 2008 and decrypted with a newer Stuffit Deluxe 10.x. Other movies that are NOT .mov and in with the .mov movies still run.
    Your information does not indicate whether or not the files actually played on the current system or were transferred from a different system which was properly configured for playbac, whether or not you recently upgraded your operating system/modified your codec component configuration by adding or deleting any codecs, whether your compound "Stuffing" of the files created corruption, etc.
    As to MOV files the selves, this extension just implies the data was placed in the QT generic file container and the actually data could be of any compression format thathat was compatible with the codec component configuration for the system on which the files were created and could include natively supported system codecs, pro editing codecs, and/or third-party proprietary or hybrid codecs. (I.e., this is why we may need more information regarding the individual non-playing files.)
    If I click on the Thumbnail Preview "It" runs.
    f you are referring to QuickLook (QL) then the technology is different than QuickTime (QT). In the former case, the system is playing representative data but not actually opening the file as QT does. Thus, there is always the possibility that the problem is in the file structure (atom) information. For instance, suppose someone merely changed the MOV file extension in the Finder rather than actually copying data to a real MOV file container. Then it is possible that the QT player app may be searching for a codec that is not supposed or expected to be supported in the MOV file container and, not finding it, issues the erroneous codec error message—especially since you did not inticate the source of the file you are trying to play or, in some cases, which QT player is now not playing the file.
    In short, there are several possibilities here and not enough specific information.

  • TS3694 How can I fix this type of error in iphone 4?"The iphone could not be restored. An unknown error occurred (3194) "please help me.

    Hi everybody !
    AT&T company is unlocked (factory)my iphone4 before 3 days ago so i want to restore to unlock iphone 4 with itunes but it is not restore.
    How can I fix this type of error in iphone 4?- "The iphone could not be restored. An unknown error occurred (3194) "
    please help me in nepali language(if posible) or english. thank you.

    http://support.apple.com/kb/TS3694#error3194
    This means that either your firewall/antivirus is blocking access to Apple's servers, or you have used your computer to jailbreak an iDevice in the past. The link above tells you how to resolve this issue.

  • Any suggestions how can I delete or archive items with DocTitle as *.html ?

    Any suggestions how can I delete or archive items with DocTitle as *.html ? These are the email templates checked in by Fusion Apps, and all I know are the DocTitles.
    Archive servervice seems a better way to delete items at same time keep a backup. but not sure what's the correct way to setup/use the "aExportQuery" parameter. Seems it's been ignored from the ADD_ARCHIVE and EXPORT_ARCHIVE idccommands, codes listed below.
    @Properties LocalData
    IdcService=ADD_ARCHIVE
    IDC_Name=CommonDomain_ucm11g_cs
    aArchiveName=archive_test
    aArchiveDescription=this is an archive test
    aCopyWebDocuments=0
    aDoReplace=0
    aExportQuery=Standard Query ValuePanel UseExportDate 0 AllowExportPublished 0 AllRevisions 1 LatestRevisions 0 NotLatestRevisions 0 MostRecentMatching 0 CurrentIndex 0 Clauses dDocTitle:contains:.html CustomQuery dDocTitle%LIKE%'#%.html#%' IsCustom 0
    @end
    @Properties LocalData
    IdcService=EXPORT_ARCHIVE
    aArchiveName=archive_emt
    IDC_Name=CommonDomain_ucm11g_cs
    aExportQuery=Standard Query ValuePanel UseExportDate 0 AllowExportPublished 0 AllRevisions 1 LatestRevisions 0 NotLatestRevisions 0 MostRecentMatching 0 CurrentIndex 0 Clauses dDocTitle:contains:.html CustomQuery dDocTitle%LIKE%'#%.html#%' IsCustom 0
    dataSource=RevisionIDs
    aDoDelete=1
    @end
    <<EOD>>

    You could use the Archiver app. You can use that app as-needed or set it up so that all items are setup to delete once they're checked in.
    -ryan

  • How can I save a Photoshop Elements 12 file as HTML?

    How can I save a Photoshop Elements 12 file as HTML?

    Sorry, not possible in PSE itself. You'd need to put your photo into the web creation software you use. If you are using an older version of PSE some versions created web albums/galleries which included an index.html page, but that's as much as PSE does. There's nothing like that in PSE 12 since Adobe wants you to use Revel for photo sharing now.

  • When starting Firefox 4 I get an error message. After clicking OK it nevertheless runs. How can I get rid off the error message.

    When starting up Firefox 4 I get an error message. After clicking OK it nevertheless runs. How can I get rid off the error message?
    The error message is: what happened: Type Error: Components. classes ['@mozilla.org/extensions/manager;1'] is undefined.
    It appears all the time already from the beginning after installing Firefox 4.

    Thanks a lot. The Ask toolbar created this problem. Another problem is: When searching on the web via Google, normally it is possible to type a few letters and then look what appears and then click on the wanted word(s). A number of word(s) ineed do appear, however it is not possible to select any of them as ws possible as mentioned in olders versions.

  • How can I view/display webi reports

    Hi,
    We are in the eprocess of implementing BI 4.0. If we go in for webi reports, How can I view/display/publish webi reports?
    We dont have SAP EP, only ECC.
    Regards,
    priyA,

    Hi,
    the BI product packages it's own web application. Reporting content is published securely and viewed 'online' through the BI LaunchPad (previously infoview)
    Regards,
    H

  • I am unable to update devices with Apple Configurator because of this message - unable to send ClearPasscode command to device - I am running Configurator 1.5 and ios 7.1.1.  I am unable to rename/number devices. How can I get rid of this error message.

    I am unable to update devices with Apple Configurator because of this message - unable to send ClearPasscode command to device - I am running Configurator 1.5 and ios 7.1.1.  I am unable to rename/number devices. How can I get rid of this error message.

    I've just seen this message for the first time and it's showing on 10 devices.
    What I really love about Apple Configurator is the copious amount of context driven help offered to you.
    "Unable to send ClearPasscode command to device.
    The device was disconnected.
    Check the USB connection to the device."

  • I just bought PSE 11. Serial No. accepted but Error appears, preventing me to install. What is wrong OR, how can I get program installed?  I've tried at least four times!!  Jim H.

    I just bought PSE 11. Serial No. accepted but Error appears, preventing me to install. What is wrong OR, how can I get program installed?  I've tried at least four times!!  Jim H.

    Use the instructions here to completely remove/uinstall all iTunes/Apple software and componenets and then start from scratch.
    http://support.apple.com/kb/HT1923
    B-rock

  • How can i air display the Screen from mac to the more than 3 iPads?

    how can i air display the Screen from mac to the more than 3 iPads?
    thanks

    Energy Saver, you can keep the computer awake while the screen saver shuts the monitor off but I'm not sure that would do it for you.

Maybe you are looking for