Air Kiosk Project - HTML Viewer

I am looking to build a kiosk for display, no controls, no touch - basically a slideshow of html pages. I would like the AIR app to look in a folder with multiple html pages, take each html and display in a container, which would rotate through each page like a slideshow.
I am new to AIR, so looking for any direction. I have Flash Builder and Catalyst. I have found some pieces online using viewStack and html container. I am looking for best method to load html pages into containers and method of rotating through them.
Dave

Hi Dave,
Here's a simple example that I wrote in Flash Builder 4.  It's very rudimentary but might help you get a start.  It will search a directory named "html" located in the application directory for .htm and .html files.  It then loads them into an HTML control, cycling through each every 5 seconds.  The application runs in full screen (hit esc to exit).
Hope this helps,
Chris
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                              xmlns:mx="library://ns.adobe.com/flex/mx" layout="absolute"
                              applicationComplete="init()">
     <fx:Declarations>
          <!-- Place non-visual elements (e.g., services, value objects) here -->
     </fx:Declarations>
     <fx:Script>
          <![CDATA[
               import mx.controls.Alert;
               private var timer:Timer = null;
               private var htmlFiles:Array = null;
               private var currentFileIndex:Number = 0;
               private function init():void
                    htmlFiles = new Array();
                    var htmlFolder:File = new File(File.applicationDirectory.nativePath + "/html/");
                    if (!htmlFolder.exists && !htmlFolder.isDirectory)
                         Alert.show("Please create a folder named 'html' in your application directory", "Error", 4, this, exitApp);
                         return;
                    htmlFolder.addEventListener(FileListEvent.DIRECTORY_LISTING, onDirectoryListing);
                    htmlFolder.getDirectoryListingAsync()
               private function onDirectoryListing(event:FileListEvent):void
                    for each (var file:File in event.files)
                         file.canonicalize();
                         if (!file.isDirectory)
                              if (file.extension!= null &&
                                   (file.extension.toLowerCase() == "htm" ||
                                    file.extension.toLowerCase() == "html"))
                                   htmlFiles.push(file);
                    if(htmlFiles.length == 0)
                         Alert.show("No HTML files found", "Error", 4, this, exitApp);
                    else
                         loadPages();
               private function loadPages():void
                    // 5 second timer
                    timer = new Timer(5000);
                    timer.addEventListener(TimerEvent.TIMER, displayNewPage);
                    timer.start();
                    // Go full screen
                    systemManager.stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
                    // display first page
                    displayNewPage();                    
               private function displayNewPage(event:TimerEvent = null):void
                    // Loop through the url array
                    if (currentFileIndex > htmlFiles.length - 1)
                         currentFileIndex = 0;
                    // Load the file into the HTML control
                    var file:File = htmlFiles[currentFileIndex];
                    html.location = file.nativePath;
                    currentFileIndex++;
               private function exitApp(event:Event):void
                    nativeApplication.exit();     
          ]]>
     </fx:Script>
     <mx:HTML id="html" width="100%" height="100%"/>
</mx:WindowedApplication>

Similar Messages

  • RH8--Changes made to HTML not persistent in HTML viewer

    During our pre-release QA, we discovered that many of our topics had lost the line of code that called the ehlpdhtm.js file:
    <?rh-script_start ?><script src="../ehlpdhtm.js" type="text/javascript"
            language="JavaScript1.2"></script><?rh-script_end ?>
    I'd run into this problem before and knew the fix was to add this string in just below the <body> tag. The good news is the fix works.
    The wierd news is, the changes disappears from HTML view when you save &check the topic back in to RSC. Opening the topic in an external editor proves the topic  was modified, and the next build propagates the change as desired, but even clearing the project files an reloading from source control doesn't display the change in the HTML viewer.
    Does RH store that view somewhere? We have the option checked to rebuild the .cpd file every time we get the file out of Source Control. I've also filed this as a bug with Adobe.
    .MW

    You cannot edit messages in place. You need to copy them and send them to the same or another queue.
    JMS != JDBC...
    Regards,
    Colin.
    http://hermesjms.com

  • Inserting DIVs in HTML view screws Design view but preview is fine

    RH8 HTML
    Hi all,
    Ive been working on a fix for a client, forcing a footer banner to the bottom of the screen, regardless of content in the page. Its nearly working fine, just a bit more tweaking, but one problem I am having.
    I am editing and adding <div> in HTML view, so that the positioning works.
    However, when I view the page in Design view, its all messed up, the content is really narrow and stretches down the page for a long time. However, when I preview, and generate the page it looks fine.
    Its an issue, because the client will be given the RH source files at the end of the project, and with the front end editor looking like this its not going to be weasy for the to edit it, let alone me finish with all the content.
    Has anyone come across this before? Is the Design viewer not the best at displaying div content ?
    The HTML where the <div> is set off before content is entered:
    <body>
    <div id="wrap">
        <div id="main">
            <div id="spacing">
    ***********all content in here************
              </div>
        </div>
    </div>
    </body>
    The CSS that the <div> is calling
    #wrap {
        min-height: 100%;
        border-left: 1px solid #9ea6ad;
    #main {
        overflow: auto;
        padding-bottom: 54px;
    /* must be same height as the footer */
    #spacing {
        padding: 10px;
    #footer {
        position: relative;
        margin-top: -54px;
        height: 54px;
        background: url(footer.gif) repeat-X;
        clear: both;
        border-left: 1px solid #9ea6ad;
    /* negative value of footer height */
    #footer p {
        padding-top: 15px;
        padding-right: 10px;
        color: #ffffff;
        font-family: Arial, sans-serif;
        font-size: 10pt;
        text-align: right;
    /*Opera Fix*/body:before {
        content: ;
        height: 100%;
        float: left;
        width: 0;
        margin-top: -32767px;

    Hi Nick
    What you are doing is working outside the boundaries of what RoboHelp natively does. If working with DIVs was part of that you wouldn't be forced to create them in the HTML view. As a result, I'm not surprised that the Design view isn't totally understanding how to deal with it.
    No workaround I can think of here. Sorry about that. Maybe someone else has something to offer. What I'm posting to ask is that you please report this to Adobe as a bug. Who knows, maybe they have some magickal scripting or something they can do to accommodate it. At minimum, they need to be aware of the issue so they can factor it into a future release. Use the Feature Request link in my sig.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • HTML Viewer: Copying images+text to another component

    Hi folks,
    I'm working on a Java app for a research project where I'd like to be able to view a webpage in one panel (with some HTML viewer) and then be able to select pictures AND text from it (web browser-style), click a button, and have it copy the images and text (even the HTML code behind it would be sufficient) to some JTextArea or whatever.
    In other words, I'm trying to find an HTML viewer or browser which will be able to select both text and images and be able to copy the selection (as the real objects or even as HTML code, either way) so that it could be sent to some other component.
    I believe that JEditorPane supports viewing HTML, but you can only copy text from it. So, can anyone recommend an API class or even some 3rd party software (no funds since it's academic research, so free is preferable) that can do anything close to this? Alternatively, does anyone know of some other work around -- for example, selecting in IE or another browser, then dragging it onto some component into the Java app?
    Thanks a ton for any help!
    -Jon

    Try this..
    create a new flex project and add a folder called "src"
    create a new MXML component named "VideoComp.mxml" and copy/paste
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300">
    <mx:Script>
    <![CDATA[
    [Bindable]
    public var videoWidth:int = 300;
    [Bindable]
    public var videoHeight:int = 300;
    ]]>
    </mx:Script>
    <mx:Label text="Vidoe" />
    <mx:TextInput text="{videoWidth}" id="w" change="this.videoWidth = int(w.text);" />
    <mx:TextInput text="{videoHeight}" id="h" change="this.videoHeight = int(h.text);" />
    </mx:VBox>
    create a new MXML component named, "SharingComp.mxml" add copy/paste this..
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300">
    <mx:Script>
    <![CDATA[
    [Bindable]
    public var videoWidth:int;
    [Bindable]
    public var videoHeight:int;
    ]]>
    </mx:Script>
    <mx:Label text="Sharing Comp." />
    <mx:Label text="{videoWidth}" />
    <mx:Label text="{videoHeight}" />
    </mx:VBox>
    and here is the main.mxml file
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns:src="src.*">
        <mx:Script>
            <![CDATA[
                private function doSomething():void
                 sharingComp.videoHeight = videoComp.videoHeight;
                 sharingComp.videoWidth = videoComp.videoWidth;
            ]]>
        </mx:Script>
       <src:VideoComp id="videoComp" />
       <mx:Button click="doSomething()" label="copy" />
       <src:SharingComp id="sharingComp" />
    </mx:Application>
    Hope this helps,
    BaBo,

  • RH7 Trial HTML View

    This discussion started with
    this
    thread. I am using the RH7 trial on a Windows XP SP2 machine
    and looking at a project with Japanese text in the topics. The
    project language is now set to Japanese. In Design view, the
    characters display properly, but in HTML view, all I get are
    squares. The encoding is utf-8, which must be RH7's default, so I
    would think it would work. If I open a topic in Notepad, the
    characters are showing up correctly.
    I am also getting squares in the TOC, glossary, and index
    panes. I was hoping when I heard about double-byte support that
    double-byte characters would render correctly throughout the
    interface in RH7, so I'm hoping this is something I can somehow
    change. Thanks for any help,
    Ben

    I am pretty certain that my computer does not have language
    packs installed. I looked into those some time ago as a way to have
    menus, etc. displayed on my machine in other languages, but we went
    with a different method.
    I followed Akshay's steps 1-3 but checked only the East Asian
    checkbox. My machine installed some files and asked to restart.
    When it booted back up and I opened my Japanese project in RH7, the
    Japanese characters show up in the TOC, glossary, and index
    pallettes and in HTML view with Courier New as my code font. In
    HTML view, the Japanese text doesn't all seem to display between
    tags and slides around a bit when I highlight it, but it looks like
    this is the closest I'll get and it should make things easier.
    Unless it would help with this strange behavior in HTML view,
    it looks like installing the language packs using the Windows XP
    SP2 CD is not necessary, which I was hoping because I would have to
    go through our tech support reps (who issue our workstations and
    manage the configuration) to get one. Thanks very much for the
    help!
    --Ben

  • Open New Instance of HTML Viewer Window

    I've read several past posts about this subject, but I'm not
    clear how to accomplish my goal. Here's what I want to do:
    Click a text link and open a topic in a new instance of the
    HTML Viewer. This new topic is not in an external .chm file. I do
    want to be able to have this feature work on the network, as well.
    I think this question is loaded based on past posts. I'm a
    novice when it comes to coding directly, so baby steps would be
    good for me.
    Thank you!
    Jane

    As you can see, there was much trial and error. Here's the
    final process that will work for RoboHelp HTML X3. Thanks to Rick
    for the original explanation and to John McCallum for helping me
    through this process.
    Creating a Secondary Window in RoboHelp HTML X3
    NOTE: We are using a defined a secondary window on the
    Project tab called $global_InterfaceWindow. The $global_ prevents
    the error message HH_GET_WIN_TYPE error.
    1. Enter the name of the text to which you want to create a
    secondary window. In this case, we will use ABC window.
    2. Select ABC window and click the Insert Hyperlink button.
    3. Enter JavaScript:RelatedTopics.Click() in the Link to
    field and click OK.
    4. Click next to the hypertext, and select Related
    Topics… from the Insert menu. The Related Topic Wizard dialog
    box opens.
    5. Click Hidden (for scripts) option button, and click Next.
    6. Select the topic to which you want to link, and click Add.
    7. Click Next. Click Next again. Click Finish.
    8. Click the Hidden rectangle , and click the TrueCode tab.
    9. Locate the following phrase in green text.
    <param name="Items" value="ABC Window\STYLE003.htm$$**$$"
    >
    Insert Name.chm::\ after ABC window;
    <param name="Items" value="ABC
    Window;Name.chm::\STYLE003.htm$$**$$" >
    NOTE: The path to your topic is not always the same path used
    in Windows Explorer. Be sure to set the path correctly, or the
    topic will not display.
    10. Complete the same process in the gray area; that is, the
    CLASSID section of the code.
    11. Locate the following phrase in green text.
    <param name="Window" value="" >
    Enter $global_InterfaceWindow between the double quotation
    marks.
    <param name="Window" value="$global_InterfaceWindow" >
    12. Copy this phrase and paste it in the gray area; that is
    the CLASSID section of the code.
    NOTE: Once you paste this phrase in the CLASSID section, you
    cannot click the WYSIWYG tab because it will remove the copied
    phrase. Click a different topic to save it in the TrueCode tab. If
    you need to access the TrueCode tab again for this topic, you MUST
    copy and past this phrase back inside the CLASSID section.

  • Report shows up in HTML view but blank in PDF view

    Hey
    I have a quick question .
    My report runs fine and shows in HTML view .
    When I click on PDF view it shows up blank and doesnot even show any header footer company logo .
    Any idea/advice ?
    Thanx
    Edited by: pooja... on Oct 14, 2008 8:41 AM

    Hi Pooja,
    It seems u have succeeded in getting your report on HTML. This is with Interactive Reporting.
    In the Dashboard section i have an Embedded Browser with the url set in the properties that returns the xml response. But then we are unable to read or view it. Can you help me with that as i am new to this.
    Thnks & appreciate your help.
    JB
    Edited by: user10454571 on Oct 21, 2008 9:31 AM

  • Premiere Elements 9 Project Media View List & Icon Icons Gone

    Today at another forum that I frequent, a Premiere Elements 9 user was distressed because he could not find the List (Ctrl + Page Up) & Icon (Ctrl _ Page Down) icons that were found in the prior version of the Project Media View. The Icon view was particularly useful for sorting media before dragging to the Timeline or for the Create Slideshow feature. Now in Premiere Elements 9, all you have are your media in a list format with no option to sort.
    This person simultaneously posted his question at another forum for which he received a reply and a workaround  which included going into the Elements Organizer/Create/SlideShow Editor and create a slideshow that could be outputted (Edit in Premiere Elements) back into Premiere Elements 9. I would take issue with that suggested approach since I believe that there is an easier and quicker workaround to overcome the inconvenient loss of those features in Premiere Elements 9 Project Media View.
    First, the questions and then my workaround for this situation
    Does anyone know if Adobe is aware of this situation and intends to correct this oversight or intentional change in features?
    Has anyone come up with his/her favorite workaround for this matter?
    Bottom Line for my workaround: From Premiere Elements 9 workspace, go to Elements Organizer workspace and create a sorted album of the media brought into Premiere Elements 9 Get Media/Files & Folders. Then exist Elements Organizer, opening to Premiere Elements workspace where one uses Filter by: Select Album and does just that.
    I will post a step by step on my suggested workaround if requested.
    ATR

    SG
    I was trying to be discreet and have us still remain friends, so I did not mention the responder at the other forum by name or place. You let the cat out of the bag. OK, no offense taken please, but I thought that your workaround "Elements Organizer/Create/Slideshow/Edit With Premiere Elements" was "not so good" a choice. I will owe up to that.
    None of the workarounds are as good as the Adobe Icon View of prior version, but....
    Workaround 1. If your interest is getting sorted photos for using the Create Slideshow Feature in Project Media View. The secret is to put the photos in a Folder and then move the photos around in the Folder. I can go into the choreography on that if need be. Then highlight all the photos in the Folder, select Create Slideshow. Even if you do not go the Create Slideshow route, this is one way to get sorted photos for the Timeline.
    Workaround 2. If the Create Slideshow feature is not involved. Going the create Album route in Elements Organizer.
    Premiere Elements 9 Get Media/Files and Folders
    Add Media Dialog
    Select photos, Click Open
    Select Organizer in the row above the line of Organize/Edit/Disc Menus/Share to open the Elements Organizer.
    In the Elements Organizer, go to the Albums category and expand that category, then click on the green cross, and select New Album. On that right side of the Elements Organizer you will see a window with two tabs, Content and Sharing. Select Content and drag your media from the major window on the left to the Content window on the right. Name the album and click Done.
    You will then see your Album name listed in the Album’s category. Click the green icon to the left of the Album name. When you do, you will see thumbnails for your photos numbered sequentially in the major window on the left side of the Elements Organizer. Sort the photos there as you want them arranged on the Timeline.Then exit Elements Organizer via File Menu/Exit.
    The Premiere Elements Organize workspace will open. Go to the Filter by: Select Album and do just that, selecting the sorted album that you just created. Highlight the photos  and drag them to the Timeline.
    That is what I have come up with so far. I have been doing a lot of retesting of the principle to make sure that it would work more than just the first time.
    What do you think? Contribution or first class dud??
    ATR
    Just another possible variation on the thought with regard to Create Slideshow....it might merit thinking about numerically or alphabetically ordering your photos in a Folder beforehand and then bringing the Folder into Premiere Elements so that you have the Folder in Project Media View...Select All...Right Click Highlight....Create Slideshow?????

  • PCUI - open New Window via Button (to call custom URL / HTML viewer)

    Hello group,
    I have followed the "Use CRM PCUI HTML viewer to call a custom URL" in order to create a custom URL to BW web template.
    However, instead of displaying the URL in a tab (this works fine), I want a Button in the Accounts view to open up a New Window displaying the URL there.
    Here is what I have done:
    Create Field Group & Structure
    Create Event
    - Usage: Layout-Relevant
    - Text: Web template call
    Added Event to Toolbar Group ACC_OIC
    Define Application Layout (CRMM_ACCOUNT) for Event
    - Position: New Window
    - Screen Element Type: HTML
    - my field group
    - my structure
    Define Application Set (COMM_BUPA)
    - my structure
    - my access class
    The button is there, when clicked the read-method of my access class is executed, but no New Window is opened with the URL displayed.
    Is there something I am missing? Can the HTML viewer not called in a new window?!
    I appreciate any input you can provide me.
    Thanks and regards,
    Erik

    I have the same problem. PCUI toolbar button open url http://www.google.com in new window   .
    It sames so easy open a link on web page.
    why so hard in PCUI !
    My god , who design the PCUI.
    anyone solve this problem , let me know please. Thanks!
    [email protected]

  • HTML View using an iView dynamically

    Hello Visual Composer experts,
    I want to use a SAP Enterprise Portal iView in a VC Model.
    For that I use VC HTML View.
    In the URL I put SAP EP IView reference, for instance :
    http://<xxx>:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fevery_user!2fgeneral!2fcom.sap.portal.afpFavorites
    <xxx> stands for development portal.
    When I transport my VC model to quality portal I need to manually replace <xxx> by <yyy>.
    How can I avoid this ? How can I dynamically address the portal ?
    I found something about using "portal:" that will replace http://<server>:<port>/irj/servlet/prt/portal/prtroot/  but did not succeed to make it works.
    In the VC HTML view I tried to used "pcd" instead of "http" but again did not make it.
    Can someone give me a clue ?
    Rgds
    Gilles

    Hello Udi,
    Thansk for your answer. Let me try to clarify my need.
    I would like, for instance, to execute "My home" page in SAP EP using a VC HTML view.
    I want this to work in all my SAP EP systems (Development, Quality and Production).
    My current solution is :
    a VC model with an HTML view, a variable where URL is hardcoded @URL and passed to this HTML view (similar as what you describe)
    to import the VC model in each EP environment
    change the URL to address the EP
    deploy the model
    I'm looking for a way to achieve this without modifying my VC model (@URL ) in each environnement.
    So I'm looking for a way to address dynamically the system.
    As explained I did try, without succes, with :
    1) Using "portal:"  in the variable @URL
    2) using pcd parameter in the VC HTML view (I did not understand how to use it)
    I was expecting a dynamic way without calling a service.
    Kind Regards
    Gilles

  • Problem with HTML viewer

    Dear All ,
    I am facing a problem with HTML Viewer . My senario is as follows :
    1. I have created one HTML page . On that page there are 4 Images
    2. I imported that HTML page in SAP with the help of transaction SMW0
    3. I Called that HTML page in my ABAP program using the method "load_html_document" of class cl_gui_html_viewer
    4. This is happening perfectly ok on the machine on which all this developement was done.
    But the issue is when I execute my ABAP program on a different machine , those Images on that HTML page are not displaying.
    Can you please guide me how to remove that machine dependancy?
    Regards,
    Nikhil

    Hi Nikhil,
    Please check if the image is properly imported properly. Also check if there is any option which you might have forgotten while imported like dependeency.
    Regards
    Abhii...

  • The internal html viewer is not working in coldfusion builder 2.

    It is so frustrating how hard this is. I finished setting up coldfusion and coldfusion builder 2 with an apache local webserver and was hoping to make use of the internal html viewer but it won't come on! All I see is a blank grey page with no content. After creeping around the forums for a while it seemed that the simplest solution was to use the internal coldfusion server so I uninstalled everything and did just that, reverting my administrator page to http://localhost:8500/CFIDE/administrator/index.cfm (working and launchable from the IDE), placing my webroot at C:\ColdFusion9\wwwroot and with all the folders in their right place. The server is running ok and when I launch the run as "coldfusion administrator" option to run my index file, it succesfully opens the external browser and displays the page.
    I have the same setup on my desktop at home, the same files, installation, everything! and it works but not on my laptop. I followed Ben Forta's instructions to a T and yet I still am not getting the html preview. I even tried to hard code the absolute url in the html preview settings and still nothing but that annoying grey.
    Is this a bug? There doesn't seem to be anything about it in the bug reports. It is quite infuriating how something that seems so miniscule could be such an annoyance. I have already gotten quite used to the preview pages and coldfusion and I would prefer to code that way rather than making use of dreamweaver which I feel I am being forced to use, but at least it's consistent.
    Please if anyone could provide some answers and help I would really appreciate it! I have only so much hair left!
    Thanks!

    Perhaps others may recognize and resolve this for you. I and others here often can and do offer quick solutions to many problems. And I can appreciate that it’s reasonable to think that something so simple should just work. But in this case I think are simply too many variables that could explain why things are not working for you. And while I can also appreciate that you will prefer to get a solution for free if anyone can offer it, I just can’t even begin to offer all the possible problems and solutions, at least by email, in this case. Again, maybe someone else will make a quick connection.
    But I will point out that if you’re willing to pay US$75, I offer a service of remotely troubleshooting any one CFBuilder problem for that fixed price. Hopefully I might help you solve it quickly (when I can see exactly what’s going on in your environment), but you will not pay if I don’t solve the problem in up to 2 hours effort. If you may be interested, see www.carehart.org/consulting/ for more, and if you want to set up a time to get together (over the web), drop me an email at [email protected]
    Finally, please note that I don’t often point out this service here on the forums. I generally just offer suggestions (sometimes lengthy ones) without any commercial expectation, so please don’t regard this as me engaging in “abusive unsolicited commercial email”. I’m just offering a possible solution, given the OPs sincere challenge in solving things.
    /charlie

  • Export in Query Ready mode not Working.for FR reports in HTML view

    Hi,
    When we run the FR reports in HTML view in Workspace,there is an option at the bottom to "Export in Query Ready mode",it's not exporting the report in Smart view excel .
    But some of our users are able to export the report in SV.We are using EPM 11.1.1.3. I have checked the IE 7 settings with other users and it's same.
    Does anybody has any idea what could be the cause?
    Thanks in advance.
    BC

    It is the behavior, Query ready mode will only pulls the members which are in Essbase (no FR calculated fields)
    Regards
    Celvin
    http://www.orahyplabs.com

  • Client Side Signature of PDF in HTML Viewer returning the chnaged/signed PDF.

    Hi,
    I am generating a SFP PDF form which I then immediately save to a SAP PSRM Case.  I generate the PDF form 'fillable' and I have inserted a Signature Field in the form layout.
    I have a requirement to save the signed form to the case once it has been signed.  This process should exclude saving the form to any application or presentation directories.
    During the PSRM Case processing I can:
    Successfully save the un-signed PDF to the Case
    Successfully open the PDF via an HTML viewer
    Successfully sign the PDF in the HTML viewer
    The problem is when I return to the Case after the PDF has been signed I cannot save the signed PDF to the PSRM Case(SAP).
    I am using the code below to display the un-signed PDF in the HTML Viewer
    * Convert xstring to binary table to pass to the LOAD_DATA method
       CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
         EXPORTING
           buffer     = g_pdf_content_in
         TABLES
           binary_tab = gt_data.
    * Load the HTML
       CALL METHOD g_html_control->load_data(
         EXPORTING
           type                 = 'application'
           subtype              = 'pdf'
         IMPORTING
           assigned_url         = lv_url
         CHANGING
           data_table           = gt_data
         EXCEPTIONS
           dp_invalid_parameter = 1
           dp_error_general     = 2
           cntl_error           = 3
           OTHERS               = 4 ).
    * Show it
       CALL METHOD g_html_control->show_url( url = lv_url
         in_place = 'X' ).
    I assume that 'gt_data' would now represent the signed PDF? How do I convert 'gt_data' back to a PDF xstring? I have tried:
      FM 'SCMS_BINARY_TO_XSTRING'
    Various Methods in Class 'CL_BCS_CONVERT'
    All with no success.  Either it saves the un-signed PDF to the PSRM Case or the PDF cannot be viewed as it is corrupt.
    Please help.
    Warm Regards
    Waheeb

    File is serializable but it is just a filename. When you pass or return it over RMI or Serialization, all you get is the filename. It doesn't take the file contents with it, or the ability to open it, unless it happens to also be the name of an existing file on the receiving system.

  • Html view is not visible

    Hi Guys
    i am calling a webtemplate from vc by using html view
    but the contents of html view is not visible in the application but html view window is opening but blank screen when i am trying this link direct in internet explorer its opening even www.google.com is not working from the application.
    after changing my compiler to flex2 compiler i am getting this problem
    Regards
    Amiya

    Hi Govindu
    Thanks
    actualy i am using some guard condition in my html view if i am removing it then its displaying
    in flex2 compiler and some custom drop down events also working strangely in flex2 which is working properly in flash  its realy strange
    can u please explain what are all fixes we can do in order to solve this issue we have also raised oss message regarding this
    Regards
    Amiya

Maybe you are looking for