Create URL for image content and display in new window

Hi,
I am attaching a new image and it is displayed in a table view.
I am having problems creating the URL for the image.
When i give the link of external site like http://www.google.com, it works fine. It does not work when i give as www.google.com.
It does not work for the image. Please help.
  ls_properties-name         = 'KW_RELATIVE_URL'.
  ls_properties-value        = lv_imgname.
  APPEND ls_properties TO lt_properties.
  ls_properties-name         = 'LANGUAGE'.
  ls_properties-value        = sy-langu.
  APPEND ls_properties TO lt_properties.
Assign file properties
  ls_file_access_info-binary_flg = 'X'.
  ls_file_access_info-file_name  = lv_imgname.
  ls_file_access_info-mimetype   = 'image/pjpeg'.
  ls_file_access_info-property   = lv_string2.
  APPEND ls_file_access_info TO lt_file_access_info.
Move content to file_content
  lv_str = lv_img_content.
  lv_strlen   = XSTRLEN( lv_str ).
  lv_offset   = 1022.
  lv_bytes_rd = 0.
  lv_bytes_rm = lv_strlen.
  ASSIGN lv_str TO <fs>.
  WHILE lv_bytes_rd LT lv_strlen.
    IF  lv_bytes_rm LT lv_offset.
      ls_content-line = <fs>+lv_bytes_rd(lv_bytes_rm).
    ELSE.
      ls_content-line = <fs>+lv_bytes_rd(lv_offset).
    ENDIF.
    APPEND ls_content TO lt_content.
    lv_bytes_rd = lv_bytes_rd + lv_offset.
    lv_bytes_rm = lv_strlen - lv_bytes_rd.
    CLEAR ls_content.
  ENDWHILE.
Create a Document using class CL_CRM_DOCUMENTS
  CALL METHOD cl_crm_documents=>create_with_table
    EXPORTING
      business_object     = ls_business_object
      properties          = lt_properties
      file_access_info    = lt_file_access_info
      file_content_binary = lt_content
      raw_mode            = 'X'
    IMPORTING
      loio                = ls_loio
      phio                = ls_phio
      error               = ls_error.
Using the logical and physical id's, get the file location as an URL
data:
lv_no type char1 value '1'.
    CALL METHOD cl_crm_documents=>get_with_url
      EXPORTING
        loio     = ls_loio
        phio     = ls_phio
        url_type = '2'
      IMPORTING
        error    = ls_error
        url      = lv_url1.
should i prefix the url with 'javascript:'?
Thanks in advance.
Regards
Shanthi

Hi Shanti,
The URLs that are external to the server, you should always have http://, your image URL is has http:// prefix? Other wise system will always look for the same inside the current BSP application. For Example your BSP application is ZBSP and if you are accessing www.google.com the URL in the browser will be
*******/bsp/ZBSP/www.google.com which will not be existing, hence causing the problem.
If not try adding http:// to the URL by concatenation and try.
Regards,
Ravi

Similar Messages

  • How create URL for see my folio on the web content viewer ?

    Hello,
    I try to create URL for see my folio on the web content viewer but nothing Work
    i have this informations :
    my applicationName
    my accountID
    my publication Name
    and my articleName (even if for this i'm not sure)
    All my articles are free, my folio is published...
    For information my folio is in PDF format with the resolution 1024x768
    Have you one idea why it's doesn't work ?
    Thanks for yours answers

    Rather than cobbling together the individual parts of the URL, create a development app with social sharing enabled and at least one article set to free. When you share the article of the published folio, you'll see your web viewer URL.

  • Short of dismantling and recreating a page how do i find out whats causing [Error: Invalid URL for Web Content Overlay]

    Hi,
    i received an indesign file to include in a folio that had links to the creators desktop where they had the assets for the web content overlay. When i try to update the folio i get the error message:
    "Content generation error.
    [Error: Invalid URL for Web Content Overlay]"
    Which is fair enough.
    The problem is, i have gone through and changed all URLs that I can see, but there is one somewhere, that I just can't find.
    Is there a way to get a list of all web content overlays in a particular file? otherwise i will need to recreate the whole page again, and it has some pretty complex interactions which i rather wouldn't do.
    I also cannot ask the original doc creator to just change the links as i'm sure he'll have the same issues as me, at not being able to track down the erroneous link.
    The problem I have with DPS is that its not very transparent. you'll have to click on everything, and into every group to see what actions are on it, which can be extremely time consuming and frustrating when complex interactions are included.
    thanks in advance for any assistance

    I’ve found watching the process helpful to narrow down the page.
    Working off a duplicate of the file, delete one layer at a time until you figure out what layer the problem is on.
    From there it’s a bit easier to narrow down.

  • Invalid URL for Web Content Overlay. Help?

    I am doing a french tranlation to an existing folio app that someone else created.
    There is one page in my folio that is comprised of garbage and a trash can. You touch the garbage and drag it into the trash, and things change, etc.
    I have an index.html file and a bunch of other images.
    I can't even successfully add the article to my folio, I get this warning: Content Generator Error. Invalid URL for Web Content Overlay.
    Can you walk me through how to get this to work?
    Attached is a screen shot of my file structure...

    When you specify the .html file, all the content in that folder is uploaded automatically. Here's an article about Web Content overlays:
    http://help.adobe.com/en_US/digitalpubsuite/using/WS9293e1fb3b977c5c73657495129f66e490f-7f fa.html
    And here's an article and video about HTML articles:
    http://help.adobe.com/en_US/digitalpubsuite/using/WS67cb9e293e2f1f60530cf39c12f5fcd6d46-80 00.html

  • Radio group with URL for image in a table

    I'm trying to display some text and an image for a radio group so the form looks like
    (*) text for item 1 {image for item 1}
    ( ) text for item 2 {image for item 2}
    ( ) text for item 3 {image for item 3}
    I've found these:
    Re: Is it possible to display an image instead of button in a radio group?
    How to show image in radio group ?
    It looks like all I have to do is create a LOV that looks like:
    SELECT {complex stuff that generates the text string, img tag, and URL for image}
      ,DB_PK
    FROM dynamic_view_for_lov -- public synonym
    But, my images are stored in a table.
    I have been able to create an IR using the "Column Format=BLOB" method.
    The SQL for the report looks like:
    select
      db_pk, display_text, image_len, image_clob
    from dynamic_view_for_lov -- public synonym
    And the Number/Date Format for the IMAGE_LEN column is:
    IMAGE:DYNAMIC_VIEW_FOR_LOV:IMAGE_BLOB:DB_PK::::::Inline:Download
    My question:  How do I create the URL for the img tag for the LOV?
    many thanks
    MK

    MikeKutz wrote:
    I think Homer Simpson said it best:  Doh!
    For the person in the future, you have to 'fake create' the Automated Row Fetch process.
    The get_blob_file_src gets all the information from that Process and the column name of the Item Type that is on the same page.
    I forgot where I read about that trick.
    Basically, you create the Automated Row Fetch process, then 'disable' it.
    Same thing with the required Item Type.  Create it as a "File Type", just to tell APEX that it comes from a Database Column,.... then change it to a 'hidden' type.
    You don't have to "fake' it if the application already contains the file upload item and ARF. The assumption is that the application will contain these components in order to maintain the BLOBs and you'll just reference the functional ones.

  • Invalid URL for Web Content Overlay, ERROR!!!!!!

    Hello All,
    I'm hoping someone can help me with this error, I was working on my indesign file and was testing it out locally, then I went on to upload my file and I got prompt to install a new version of the Folio panel which I did, now every time I try to upload my file I get this "ERROR: Invalid URL for Web Content Overlay", I've searched around and have not come up with an answer. Not sure if its a bug on the new update or what. I tried some troubleshooting which this is what i did. I copied my first page of my document onto a different file and tried to upload one page and then i got the error but then I deleted the images and just left one text box and it uploaded my file without any issues, strange huh. Any ideas????

    I was having the same problem with both hyperlinks and buttons in one particular file -- "Invalid URL for Web Content Overlay." It seems to only be a problem in files where I had a link or button previously, and then deleted the object. When I create a new object and create a link or button, it's as though the old link is still lingering somewhere in the file! However, none of the old links is listed in the hyperlinks panel before I create a new one.
    This occurred while I was teaching a DPS class, using the Adobe courseware (sight unseen by any proofreader, I believe). In one of the exercise files, the steps for the student to create hyperlinks and buttons had already been done, so I deleted the hyperlinks. (I think I deleted the text frames that contained them, but I'm not sure.) I never had a problem with it UNTIL I downloaded the Overlay Creator/Folio Builder dated June 19 (v21, I think).
    In the same file, I also had problems with a NAVTO link, . I don't think there were any NAVTO links in any earlier version of the file, at least none that I ever created or deleted.
    I've coded HTML since the days when the only available tool was Notepad, so I'm sure that I used correct URLs (and none redirected). Even the URLs in the deleted objects were correct; I only deleted them so the exercise could be done again.

  • How to create documentation for report programs and how to use it

    how to create documentation for report programs and how to use it in the selection screen by placing an icon in the Applicatin Tool bar. If i click this icon the help documentation has to display.
      Note: Exaple <b>RSTXSCRP</b> programs selection screen

    Hi
    1 goto SE38 transaction, give the program name
    2 Click on documentation radiobutton & then press change
    3 Write your PURPOSE, PREREQUISITES etc details
    4 Save the same & Activae it.
    The icon will come automatically on selection screen
    Thanks
    Sandeep
    Reward if useful

  • Content generation error: invalid url for web content overlay

    Hi,
    I am having an error message " content generation error: invalid url for web content overlay" when I want to upload the article.
    I don't have any link with that article and this is my 1st time having this kind of error. I am using indesign CC
    Please help.
    Thanks,
    Rush O

    I’ve found watching the process helpful to narrow down the page.
    Working off a duplicate of the file, delete one layer at a time until you figure out what layer the problem is on.
    From there it’s a bit easier to narrow down.

  • Why am I getting the flag Invalid URL for web content overlay when making scrolling panel in Indesig

    Why am I getting the flag 'Invalid URL for web content overlay" when making scrolling panel in Indesign? Iam making additions to existing articles but the problem is new. The articles were originally made using CS and now I am on CC, which I have just uninstalled and re installed, no difference, can anyone help please? Steve

    Hi Bob, thankyou very much for coming back on this. The flag is coming up towards the end of the preview process on desk top. I have made dozens if not hundreds on my two published apps on the app store, but have not done an update for nearly a year, in which time I have needed a refresher, and as usual went to Lynda. In this case I have followed to the letter your DPS course, which is great, and I found the process of making the scrolling panels somewhat easier than when I started 2-3years ago. Initially I was mystified that the flag talked about url and web content, but just put it down to something I had missed in recent improvements in CC.
    I tried over and over, but always got the same result. I thought at one point it might be because the content of my slide was copy and photo, so for a test I deleted the photo. Same result, and many of my existing slides are copy and picture.
    I also uninstalled Indesign CC and reinstalled in case of corrupted content, I also copied to IDML and relaunch, same problem. I am sure I have made the scrolling content as instructed, The one thing I havn't done is trash my preferences, if you think that would be a good Idea could you please direct me to some content at Lynda on how to do it in CC. Many thanks, Steve

  • MP4 Video throwing error: Invalid URL for Web Content Overlay

    Converted a 15 second flv video to the following using Handbrake:
    mp4
    H.264 codec
    "Placed" mp4 file into my article
    Set Autoplay= On and 0.125s delay
    Try to preview via InDesign a get the error: Invalid URL for Web Content Overlay
    Try to update my article via Folio Builder and I get the same error.

    It seems that you "placed" your video into the frame selected as Web Content in Folio Overlays Panel.
    Delete that frame.
    Place (in the normal InDesign way, not"place") your mp4 file onto the page.
    Adjust the size of the frame to your video measurements.
    Look at the Folio Overlays Panel. Your placed file should appear ther as Video Overlay.
    Set your options and you are done.

  • Can i use create function for MSSql scalar and table valude function.

    Hi,
    1) Can i use create function for MSSql scalar and table valued function?
    2) How many type of user defined function are there in oracle 11g express?
    3) And can i reture any "type" form user defined function?
    yourse sincerely

    944768 wrote:
    Q1)That means even if i return predefined types like integer, varchar2 then also PGA is used ?The data type does not determine where the variable is stored. A string (called a varchar2 in Oracle) can be stored in stack space, heap space, on disk, in a memory mapped file, in a shared memory, in an atom table, etc.
    It is the who and what is defining and using that string, that determines where and how it is stored.
    The Oracle sever supports 2 languages in PL/SQL. The PL (Programming Logic) language is a procedural/declarative language. It is NOT SQL. SQL is integrated with it. The PL/SQL engine uses private process memory (PGA). So PL/SQL variables exist in the PGA (but there are exceptions such as LOBs).
    Q2) So please suggest me solution in oracle.Sounds to me you are looking at how to implement a T-SQL style function as an Oracle function, and once implemented, do joins on the function.
    Do not use PL/SQL in SQL in place of a SQL select. It is not T-SQL.
    One cannot use PL/SQL to create functions along the style of T-SQL, where the function executes a SQL using some conditional logic, and then return as if the function was a native SQL select.
    T-SQL is an extension to the SQL language - making it a hybrid and very impure language implementation. PL is based on ADA - part of the Pascal family of languages. The E-SQL (embedded SQL) approach used in languages like C/C++, Cobol and Ada, has been transparently done in PL/SQL. You can write and mix PL code and variables with SQL code. And the PL/SQL engine figures out how to make the call from the PL/SQL engine to the SQL engine.
    But PL/SQL is not "part" of the SQL language and does not "extend" the SQL language in a T-SQL fashion.
    So you need to check your SQL-Server preconcepts in at the door, as they are not only irrelevant in Oracle, they are WRONG in Oracle.
    The correct way in Oracle, in a nutshell - Use the SQL language to do data processing. Use PL/SQL to manage conditional process flow and the handling of errors.

  • TS4268 i use my apple id that i create it for my iphone 4 on my new iphone 5,then i want to activate the imessage but i can't.what should i do?i want to know i can't use one apple id for two iphone 4 & 5?

    i use my apple id that i create it for my iphone 4 on my new iphone 5,then i want to activate the imessage but i can't.what should i do?i want to know i can't use one apple id for two iphone 4 &amp; 5?

    HI
    I was trying to take my Mac air to factory default settings.
    I've done all that it says in the documment i was following, and them during the process it asked me the APPLE ID.
    I put the apple id i have in my iphone. But it's not the one... it's said that i don't have any OSX associated with it... so it can not install the OSX.
    So what can i do?

  • When I do Google search for images from my website nothing newer than September 2012 shows up.  How can I get Google to find new images?

    When I do Google search for images from my website nothing newer than September 2012 shows up.  How can I get Google to find new images?

    Have you uploaded a sitemap.xml recently and checked your webmasters account to see when your site was last crawled?
    http://www.iwebformusicians.com/Search-Engine-Optimization/SEO.html

  • How do I create folders for variuos apps i.e health, news etc.

    How do I create folders for variuos apps i.e health, news, sports etc.

    Tap and hold down on an app con until it begins to "wiggle", then drag one app icon on top of another app icon to create the folder. Move as many apps as you like into that folder. When you are done, tap the home button and the apps will stop wiggling.
    You can also name the folder whatever you want to in the white text field that will pop up when the folder is created.

  • Hi All,How2 delete a pkey for std table and add 2 new primary keys

    Hi All,
            How2 delete a pkey for std table and add 2 new primary key fields .Please provide me the required procedure .
    Thanks&Regards.
    Bharat.

    Hi Bharat,
    First thing is you need to have the access key to change any standard dictionary object/standard programs/ standard transactions.You may get this from your basis person after getting approval from your respective manager.But changing or modifying the standard object is not recommended, but if there is no alternate to meet the business requirement then we have to follow this way only.
    Next, you need to check whether this table's primary key is being used in any other table as foreing key or not. If there is, then you must remove this relation and then you can delete the unncessary primary key field from that table.Finally you can add the two new fields and set them as primary key, save, check for any errors and activate.
    Hope this helps.
    Please reward if useful.
    Thanks,
    Srinivasa

Maybe you are looking for