XML forms: attachment size

Hello,
we are working with XML forms to create news. Also we have the possibility to attach km document to this news. The attachments are displayed as a link on the end of the news.
No my question. Is it possible to show the size of this attachment? Has anyone experience with this? If I use the properties I get only values from the xml file but not from the attached document.
Regards,
Philipp

You say you have troubles but, what kind of troubles?
An exception is thrown?
The read ends prematurely?

Similar Messages

  • XML Form Window Size

    Hi ,
      Is there any way to set the size of the window.
      Suppose i have a functionality implemented using XML Foem Builder Say News Item Creation. It has 3 Functionality as 1.Edit , 2. Delete and 3.Create New.
    If i click on any of this Functionality it opens a Full Size window. I want to set this new window size as required.
    Expecting some Valuable replies.
    Points will be awarded for Helpful Answers.
    Thanks and Regards,
    Sadik.

    Hi Sadik,
    Check this. Under Parameters of a Resource Renderer Setting,
    <b>Target Window Type</b> - specifies the window that a resource is to be displayed in, if the user opens the resource, or specifies the style that the resource is displayed in.
    <b>self:</b> The resource is opened in the same window.
    <b>blank:</b> The resource is opened in a new window.
    <u><b>fixed:</b> The resource is opened in a predefined window. See Target Window Name.</u>
    <b>favorites:</b> The resources are displayed in the same style that is used to display entries in the favorites list.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/50/041142e862654ca98ced1607386c9c/frameset.htm
    Hope this helps,
    Regards,
    Shankar

  • How to display attached file size in XML Forms

    Hi,
    I've created a XML form to store presentations general information like author, subject, summary and a RID field pointing to the ppt file itself.
    I'd like to show the size of the ppt file but I don't know how... Any ideas?
    When I use default:size property, the size showed is the XML size, not the ppt size.
    thanks,
    Marcelo

    Hello Sudip,
    Which is the JRE version which you are using ? Check this SAP note 1341069, which specifies that the properties will not load when JRE 1.6 is used. (Try 1.4 or 1.5 )
    For author field try giving caption $sap_user, and schema reference, creator. For created which is date try giving /Properties/default:created, and /Properties/default:createdby for created by.
    Regards,
    Vinod

  • Reducing the file size of an XML Form

    We have created and launched a number of PDF Forms (created in LiveCycle) for our contacts to download, complete electronically, and email or fax back to us. The problem we are running into is that our email client allows us to only receive files that are 10 MB and smaller. We are finding that many of our PDF Forms that end-users are completing online cannot be emailed back to us because the file size is too large....which creates a problem.
    How do we troubleshoot this? We cannot seem to optimize in Acrobat because we receive an error message that says, "This PDF contains an Adobe XML form. Such PDFs cannot be optimized."
    HELP!
    Thank you!

    If possible, don't embed fonts.
    File | Form properties | Save Options | uncheck embed fonts.

  • Font size of label element in xml forms

    Hi,
    I am modififying the default xml template sap_app_news xml form in the form bulider.
    I have added a new label in renered list with the cation as read more .
    I want that on clicking the read more label the entire  news should be displayed .
    I am able to achieve this functtionality
    Hosoever, the font size of this label is not getting reduced,
    these are the properties for my label element
    i) Caption Read More
    ii) Hyperlink -Display
    iii) Style -Functional Link
    iv)Text Colr - Blue
    v) Font -arial
    vi) Font size - 2
    vii)Display HT - No
    viii)Width 80
    viii) Height 20
    I have changed the font size , height etc ..but teh label size doesnt get effected .
    I havent craeted any new child in schema for this label ,
    Can somebdy pls help . is it a bug, I have tried various combination but the font size of label is not reducing , color though is changing ..

    Not working neither here !

  • How to set minimum height size for an empty XML Form iview

    Hi,
    I'm trying to configure the minimum height size of an XML Form iview without sucess. Even when there is no content to show, iview height size is around 80 pixels. When there is content the automatic configuration works fine and the iview is resized properly.
    The iview has automatic size and the minimum size for automatic is with 5 pixels...
    Any ideas?
    Thanks,
    Marcelo

    Hi,
    I'm trying to configure the minimum height size of an XML Form iview without sucess. Even when there is no content to show, iview height size is around 80 pixels. When there is content the automatic configuration works fine and the iview is resized properly.
    The iview has automatic size and the minimum size for automatic is with 5 pixels...
    Any ideas?
    Thanks,
    Marcelo

  • Attaching Javascript function to Buttons in XML forms

    Hi ,
    Can anyone tell me how can we attach Javascript function or code in XML forms ?
    Cheers
    Nitesh

    Hi Nitesh,
    If you use a label with style urBtnStd urTxtStd you can make a link that
    looks like a button which will fire the URL in the Hyperlink property. The
    XMLFB tries real hard not to let you put Javascript in there for security
    reasons. I tried some attribute tailgating, but it filters those kinds of tricks
    out. (This is where you try to try to sneak in another attribute at the end
    of one attribute value by inserting a quote character). You could also
    hand patch the XSL, but this will get overwritten with the next build of
    the XMLFB project.
    Regards,
    Darin

  • How to reduce a PDF document that contains an Adobe XML form?

    Hi,
    I have created some fillable PDF files using Adobe LiveCycle Designer and used Adobe Acrobat Pro XI to save it as Reader Extended PDF > Enable More Tools (includes form fill-in and save)…
    The form includes image, text field, check box, radio button, table and other controls, as well as java scripts behind. The files are from 1 to 3 MB in size. I tried Reduced Size PDF and Optimized PDF, but I got a message: “This PDF document contains an Adobe XML form. Such files cannot be optimized.”
    My questions are:
    Is there a way I can reduce the file greatly, say about 100 KB?
    And after the size reduced,  does it still keep the original quality in format and function?
    Thanks

    Hi,
    if you only use default fonts like Arial or Myriad don't embed fonts into the form at all.
    If you have to use a specific font because of corporate identity you should check if there are fields in your fom using other fonts like Arial.
    Especially floating fields are a reason for big files as they use Designers default font even if you'll never see it in the PDF.
    When using images, you should not check the "embed" checkbox, as this will save the images a base64-stream into the xml-source.
    If unchecked the images are stored as hex-stream in the PDF-stream which cause a smaller file size.
    Also, don't use high res images, 150dpi are far enough. You also don't need 16Bit depth as Designer only supports 8Bit images with RGB colors.

  • XML FORM  -  How to save read-only controls with a default value

    Hello everybody,
    I have a 3 xml forms, each one to create one type of news. I need to use 3 because each of this forms has their own controls. But the control which indicates the type of news (asociated with a KM Predefined Property) must be common in the 3 forms, in order to use it on searches.
    The question is, how can I include in this forms a control:
      - Visible for the user
      - With a default value defined in the control properties (each form has a different value, corresponding with the type of news)
      - Read-only mode
      - The value showed in the control must be saved in the associated KM Predefined Property when the user clicks the Save button. 
    Anyone knows how to do this?
    What control can I use?
    I was thinking of trying with text boxes, but I don't find the way to make them unwritable (Read only mode).
    It is posible using labels?
    Thanks.
    Kind regards

    Hello Jose,
    I know you responded with a question... I see it in the email, but I don't see it here!  Very odd... but in response:
    The first thing I do when I open the Edit.xsl file is do a 'find' for the name of the text field that I want to be read-only (in my test case, it's 'location').  Repeat the find until you see something like:
    [code]<!--
    field location
    -->[/code]
    Below there is where I put the new code.  Mine looks like this:
    [code]- <xsl:choose>
    - <xsl:when test="location='' and ($editmode='create')">
    - <xsl:choose>
    - <xsl:when test="./xf:ValidationError/@tagname='location'">
    - <input name="location" size="30" type="text" class="urEdfiTxtEnbl" id="field_1157467268006">
    - <xsl:attribute name="tabindex">
    - <xsl:choose>
      <xsl:when test="$accessibilitymode='true'">21</xsl:when>
      <xsl:otherwise>3792</xsl:otherwise>
      </xsl:choose>
      </xsl:attribute>
    - <xsl:attribute name="value">
      <xsl:value-of select="''" />
      </xsl:attribute>
    - <xsl:attribute name="readonly">true</xsl:attribute>
      </input>
      </xsl:when>
    - <xsl:otherwise>
    - <input name="location" size="30" type="text" tabindex="3792" class="urEdfTxtEnbl" id="field_1157467268006">
    - <xsl:attribute name="value">
      <xsl:value-of select="''" />
      </xsl:attribute>
    - <xsl:attribute name="readonly">true</xsl:attribute>
      </input>
      </xsl:otherwise>
      </xsl:choose>[/code]
    I put the <xsl:attribute name="readonly"> in both places (when test, and when not test).  I'm not entirely sure if that's necessary, but that worked for me.
    Hope this helps,
    Fallon

  • How do I change the attachment size limit in Calendar Server 6.3, UWC, IWC?

    How do I properly increase or decrease the attachment size limit with Calendar Server and all supported user interfaces to it such as WCAP, UWC (Communications Express) and IWC (Convergence)? From my experience with the Outlook Connector, there seems to be some limit imposed by cshttpd on the size of a file upload (I believe I actually got an HTTP error code back on the wcap request indicating something was too big, sorry I don't have it handy, I'll have to re-test). Additionally, it seems UWC imposes additional limits (Example: http://docs.sun.com/app/docs/doc/819-4440/6n6jfgcjh?l=en&a=view&q=fileSizeHardLimit) but I can't seem to get those to work at all. I found many different web.xml related to UWC and I'm not sure which one to change, I tried a couple but had no success because UWC would always report this error if I uploaded between 4-5 megs: com.iplanet.jato.util.WrapperRuntimeException
    Root cause = [java.io.IOException: Request cancelled because file input field
    "importFile" size is over the configurable limit of 4194304 bytes; see filter init
    parameter fileSizeHardLimit]
    And it would complain about requestSizeLimit I think if it was over 5 megs, claiming that limit was 5242880. IWC gives a generic error when the upload is too big and rejects it.
    I fear that a 4 meg limit will be too imposing and of limited value, so I would either like to raise it, or consider lowering it to 0 bytes so attachments cannot be used at all. I have been looking high and low for information on how to do this and all I can find is the UWC examples. I plan to support the Outlook Connector, UWC, and IWC so the limits should ideally be the same across each. Some of the Exchange data we wish to import does have some attachments so it would be good to continue support for that. I did see some other posts about quota RFEs but at this point I am not concerned about the disk consumption. Can anyone help? Thanks. Please let me know if there is any more information I can provide. I am running SCS6u1 on Solaris 10 SPARC.

    Fred@egr wrote:
    Thanks!!! This is working with IWC and I am pretty sure it will work with Outlook. I didn't think to look at config options for mshttpd since I don't have it installed and ics.conf doesn't list the http.service.maxmessagesize and service.http.maxpostsize by default.http.service.maxmessagesize is only relevant to mshttpd, not cshttpd. service.http.maxpostsize applies to both.
    UWC is still limiting me though; I'm sure I can reconfigure UWC if I just know which file to edit and if I need to redeploy anything. I'm using the same install paths as the SCS6 Single Host example and I'm not sure which the "uwc-deployed-path" is supposed to be. Again, thanks.If you have deployed UWC/CE to Application Server you would edit the following file and restart application-server:
    /opt/SUNWappserver/domains/domain1/generated/xml/j2ee-modules/Communications_Express/web.xml
    e.g.
      <filter>
        <filter-name>MultipartFormServletFilter</filter-name>
        <filter-class>com.sun.uwc.calclient.MultipartFormServletFilter</filter-class>
        <init-param>
          <param-name>fileSizeHardLimit</param-name>
          <param-value>15485760</param-value>
        </init-param>
        <init-param>
          <param-name>requestSizeLimit</param-name>
          <param-value>15485760</param-value>
        </init-param>
        <init-param>
          <param-name>fileSizeLimit</param-name>
          <param-value>15485760</param-value>
        </init-param>
      </filter>Regards,
    Shane.

  • Error in Browser field of  XML Form

    Hi All,
    We have recently upgraded our portal system from NW 7.00 (SP23) to NW 7.01 (SP09).
    Post upgrade we are facing an issue in XML forms for file browser element.
    On the XML forms we have an element u201Cfile browseru201D which we use for attaching documents as attachments in the XML forms.
    After upgrade, when we select a document using this element u201Cfile browseru201D, the file path is getting uploaded in the field without the file name. Hence after saving the XML forms when we try to display it and open the attachment in the XML forms, it is giving the following error.
    The folder you are looking for has no displayable content. You can try one of the following:
    u2022     Access the folder using the Navigation user interface.
    u2022     Access the folder as a Web folder. Your operating system and browser dictate whether or not this will work.
    Example : Suppose we are attaching a file f1.xls  in /documents/images folder, the path captured in the browser textbox is /documents/images  (it should be /documents/images/f1.xls).
    This was working fine before the upgrade to NW 7.01 SP09.
    Our system is already running LIVE on production and we are facing major issues due to this problem. Kindly provide a solution at the earliest.
    Regards,
    Nitesh

    It was a bug .
    SAP released two new patches
    EPBC209P_10-10005895
    SAPJTECHS09P_16-10005886
    issue resolved after patch application.
    Regard,
    Nitesh

  • Attachments in XML Form Builder

    Hello
    I have created a XML Forms Builder Project.
    News Author  will create News using this form and attach Documents  to the news.
    for ataching document I am using a Schema Element with datatype set as rid  .
    from this element i created a Browser control .
    At run time , i am able to select files from KM using the browser control.
    But while Viewing the News when i click on the Hyperlink for that control
    it opens up the same news again .. (its referencing self instead of the document)
    What property setting i am missing ?
    what is the correct way to attach documents and view them using a project created by XML Forms Builder ?
    Regards
    Rajendra

    Solved

  • XML Form Builder Show Form

    Hi Experts,
       I have a requirement in XML Forms, When I click a particular news item in Renderlist Form, I need to display the Show Form in the same window without opening a new window.  If it is possible, please guide me, How do I do that?  And also, can I specify the size of the Show Form?
    Regards,
    Venkatesh. K

    Hi Venkatesh.
    To realsize your ideas you have to build your own XSL or to customize the SAP generated XSL files. We build own XSL files.
    1) It is possible to present the Show Form in the same window.
    Go to the JAVA SCRIPT SECTION. It is mostly at page bottom. The function open_url_with_params(url,params) is used to open the Show form. In this function window.open(url,'_blank',params) is called. Replace _blank to desired value, e.g. _self.
    2) If the Show Form opens in a new window it is possible to specify the size and position of this window.
    To realize this go to the link references Show form (open_url_with_params). The function is called with the url and some parameters, e.g. toolbar=no, ... . Add the params width, height, top and left here.
    Regards,
    René

  • XML Forms Service warnings

    Hi Experts,
    We have developed some xml templates by using xml form builder. At the time of
    these templates desing we were on E.P 7.0 SP 10. Recently we have upgraded to SP 13.
    These xml templates worked fine earlier and working fine now also.
    But when we see application log following warnings are shown.
    Warning  3/11/08 5:20:17 AM  XML Forms Service  com.sapportals.wcm.repository.InvalidUriException 
    Warning  3/11/08 5:20:17 AM  XML Forms Service  Cannot get project SampleItem with home directory /etc/xmlforms/SampleItem: Cannot get item /etc/xmlforms/SampleItem/SampleItem.pref 
    Warning  3/11/08 5:20:17 AM  XML Forms Service  com.sapportals.wcm.repository.InvalidUriException 
    Warning  3/11/08 5:20:17 AM  XML Forms Service  Cannot get project SAP_DemoNews with home directory /etc/xmlforms/SAP_DemoNews: Cannot get item /etc/xmlforms/SAP_DemoNews/SAP_DemoNews.pref 
    Could someone explain me why are we getting this wornings.
    Any help greatly appreciated and rewarded.
    Best Regards,
    Satya

    Patricio,
    I need to add another kind of functionality to XML forms. My client wants to make an upload of an attached file in one click.
    In other words, doesn't want to need to first make the upload to KM and after make the link in the XML Form.
    Can you give me any idea in order to accomplish this?
    Thanks in advance
    Patricio

  • Images and XML forms and Images and scaling

    Hello,
    I have two questions about using images in XML forms.
    1) How do I insert images into the XML form editor.
    The thread HTML Editor in XML Form? (Posted: Aug 26, 2004 7:50 PM), discuss how the HTML Editor in XML forms can be extended to be able to insert images like in the KM editor.
    Has anyone any practical experience with this?, as the thread is fairly old.
    And is there other solutions which are more suited?
    The portal is running on WAS 6.40, EP 6.0 SP11
    2) Is is possible for the portal to scale images
    In the portal, different users will use XML forms to publish news stories. These users will want to publish images along with the text.
    In many content management systems, the system will automatically scale the images (e.g. create one thumbnail, a mid-size image and keep the full size) Can this be achieved in the portal.
    The reason for this is to make sure that no one can post a very large image and to make sure each image is the same size.
    I'm interested in hearing how other people, solve the issue with uploading and scaling of images used in the portal.
    Kind regard,
    Jørgen Ruud
    Will reward SDN points.

    Hi Sumit,
    Just to add to what Duncan had said ... please ensure the following things as well
    1. Access portal using FQDN
    2. Maintain proper browser settings http://wiki.sdn.sap.com/wiki/display/EP/MSIE6BrowserSettingsforaccessingSAP+Portals
    3. Please go through the forum link http://forums.sdn.sap.com/thread.jspa?threadID=1814082
    Regards,
    Mahesh

Maybe you are looking for

  • Producing report sections based on data with previous sections

    I'm designing a event tracking report where you provide the event number to the report through a parameter, which then gets the corresponding event data. This then has to use the previous event number that was retrieved by said event number to get th

  • Safari and other web browsers on my macbook will not load certain web pages.

    The entire problem report from Safari is: Process:         WebProcess [4477] Path:            /System/Library/PrivateFrameworks/WebKit2.framework/WebProcess.app/Contents/Mac OS/WebProcess Identifier:      com.apple.WebProcess Version:         7534.57

  • MDT 2012 'Failed to save Environment to (80070057) Error during Windows 7 x64 Pro Deployment

    Hi There, I've been using MDT for a little while now, but I'm having problems successfully deploying an image to a batch of new laptops. The laptop HDD's are completely blank, and I am PXE booting using an x64 Litetouch Image via WDS. I have successf

  • Would a 347 MB file be slow? Auto save and auto type turn off?

    I am doing an art inventory and add jpegs of the art. I don't resize them they range from 750k to 3MB. I guess if it is slowing the program down i should? It currently is 267 rows by about 18 columns. Thanks in advance. Oh can I turn off auto save an

  • To get yr as YYYY format

    Hi i have the table mtl_material_transactions of which the column transaction_date has the following values 1/1/2007 1/1/2007 1:01:50 PM 2/11/2011 3:39:38 PM i want to get another column Mon and YR Mon YR JAN 2007 FEB 2011 ETC i tried SELECT TO_CHAR(