Date Picker & File Upload components

Hi all,
I would like to have a Date Picker in a column in the table view (htmlb for java). Kindly let me know how I can do it.
Similiarly can I make use of File Upload (htmlb for java )component inside the table view. I want to have a column which would allow a file to uploaded associated with that row.
Rgds,
Subu

Of interest relating to file upload component to users : "Saving Uploaded Files Uploaded by the File Upload Component " Check the blog:
http://blogs.sun.com/roller/page/divas

Similar Messages

  • Calendar & File Upload Components - Threadinar6

    Hi All,
    This is the sixth in the "Threadinar" series , please see Threadinar5 at
    http://swforum.sun.com/jive/thread.jspa?threadID=99473 for details
    In this Threadinar we will focus on the
    "Calendar" and "File Upload" Components
    Let us begin our discussion with the Calendar Component.
    Calendar Component
    You can drag the Calendar component "calendar component icon" from the Palette's Basic category to a page open in the Visual Designer to create an entry field with an integrated calendar pop-up to help the user pick dates for the field.
    You can also drop the calendar on a container component, like a table cell or group box.
    After dragging the component to the Visual Designer, you can work with the following useful properties of the Calendar Component:-
    General
    * id. Type: String
    The name of the Calendar component in the page bean and the JSP file.
    Appearance
    * columns. Type: int
    The number of character columns used to render the component. The default value is 20.
    * dateFormatPattern. Type: String
    The format of the date to be entered by the user. It is not usually necessary to set this property because a pattern is chosen automatically based on the locale.
    If you prefer to specify a date format, click the ellipsis button (...) to the right of the property and select a predefined date format from the property editor's list. You can also add your own formats. If you add a format, the values you can enter are limited to some combination of yyyy for the year, MM for the month, and dd for the day separated by separator characters. Typical separator characters are / (slash), . (period), and - (dash). For example, the following date formats are acceptable:
    o MM/dd/yyyy
    o yyyy.MM.dd
    o MM-dd-yyyy
    * dateFormatPatternHelp. Type: text
    Text that appears below the date entry field and shows the format pattern that the date entry field accepts. If you have not set the dateFormatPattern property, the help text is chosen automatically for you. If you have set the dateFormatPattern property, you should bind the dateFormatPatternHelp property to a localized string that matches the setting for each locale you want to support.
    * label. Type: String
    A label that appears next to the text entry field, typically describing what the user is supposed to enter.
    o Note: The label property is not as flexible as the Label component. You can use the Label component if you want more control over the label's appearance, such as positioning of the label relative to the component.
    * labelLevel. Type: int
    A number that affects the appearance of the label. 1 (Strong) is larger and bold. 2 (Medium), the default, is smaller and bold. 3 (Weak) is smaller and normal (not bold). This property takes effect only if the label property is set.
    * style. Type: String
    Cascading Style Sheet rules (CSS level 2) to be applied to the component. For example:
    position: absolute; left: 288px; top: 312px
    You can enter values directly or click the ellipsis (...) button to use the Style Editor.
    o Note: This property overrides any settings in the theme or the project CSS file for this component. If a style specified in this property does not appear to take effect, it is because an area of the component is obscured by a child component that has different style settings.
    For a list of CSS2 style attributes, see the web page at
    http://www.w3.org/TR/REC-CSS2/propidx.html
    * styleClass. Type: String
    A space-separated list of CSS2 style classes to be applied when the component is rendered. The style classes must be defined in the project's style sheet or in the theme's CSS file. If you click the ellipsis button (...), you see a list of all styles you can add to this property. For information on adding CSS classes and rules to the project's cascading style sheet, see CSS Editor.
    o Note: See the note above under the style property description for an explanation of why a class added to this property might appear to have no effect on the component.
    o Note: If you add a CSS style class from the current theme to your project CSS file and you redefine the style class, the change affects all components that use this style class. However, you can add your own style classes to the project CSS file that redefine the default style classes, and then when you add them to this property, the changes affect only this instance of this component.
    For the defaulttheme.jar CSS style classes for this component, see Calendar Component CSS Classes.
    Data
    * maxDate. Type: java.util.Date
    The last date that the user can select. The default value is four years from the date set in the minDate property, for a total span of five years.
    * minDate. Type: java.util.Date
    The earliest date that the user can select. The default value is the value of the selectedDate property, which defaults to the current date if that property is not set.
    * required. Type: boolean
    If selected, the user must enter a value for the calendar before the page can be submitted. If you add a Message component to the page and link its for property to this component, an error message will be displayed if the user tries to submit the page without entering a value.
    * selectedDate. Type: Date
    A java.util.Date object representing the calendar date selected by the user. If you right-click the component and choose Bind to Data, you can bind this property to a data provider or object that can process the user entered value on the server.
    When the component displays initially, if this property is not set, its value defaults to the current date. If you provide values for minDate and maxDate, you can also provide a value for this property that initially displays a date in that range.
    * validator. Type: MethodBinding
    Indicates the JavaServer Faces validator that is called when the value is submitted. A validator ensures that the correct value is entered by a user. Choose a validator from the drop-down list. If you choose (null), no validator is called. If you choose a validator, also select the required property to ensure that the validator is used. For descriptions of JavaServer Faces validators, see the list of topics at List of Validators.
    o Note: If you define your own validate method, for example, by right-clicking the component and choosing Edit Event Handler > validate, any value you might have set in this property is overridden.
    File Upload Component
    You can drag the File Upload component "file upload component icon" from the Palette's Basic category to the Visual Designer to create an entry field and a browse button that opens a file chooser dialog on the local system, enabling the user either to select a file or to type a file name into the entry field. When the page is submitted, a copy of the file's contents is sent to the web application.
    The component is similar to an HTML <input type="file"> element.
    * Note: This component is neither supported by nor available in portlet projects due to security reasons.
    * Note: The size of the component in the Visual Designer might not match the size of the component when it is rendered in a web browser, making the component appear to line up correctly in the Visual Designer, but not when the page is rendered in the user's web browser. Also, the rendering of this component can differ depending on the web browser. Be sure to test the component in the web browsers that you expect your users to use. For example, if you add a width setting to the style property that is smaller than the setting in the columns property, Internet Explorer observes only the width setting, while the Mozilla browser ignores it and sets the width according to the number of characters in the columns property.
    The File upload component uses a filter, a com.sun.rave.web.ui.util.UploadFilter object that is configured for you in the web application's deployment descriptor. The UploadFilter uses the Apache commons fileupload package. You might need to change these settings in the following two cases:
    * The server holds the uploaded file in memory unless it exceeds 4096 bytes; otherwise, the server holds the file contents in a temporary file. You can change this threshold by modifying the sizeThreshold parameter for the UploadFilter filter entry in the web application's web.xml file.
    * By default, the File Upload component can handle files up to one megabyte in size. You can change the maximum file size by modifying the maxSize parameter for the UploadFilter filter entry in the application's web.xml file.
    o
    A negative value for the maxSize parameter indicates that there is no file size limit. Setting the parameter to a negative value is not recommended for security reasons. For example, if you allow unlimited file sizes, a malicious user could mount a denial of service attack on your site by using extremely large files
    * To change the settings for the UploadFilter object in the web.xml file:
    1. In the Files window, expand project-name > web > WEB-INF.
    2. Double-click the web.xml node to open the file in the XML editor.
    3. Click the Filters toolbar button.
    4. In the UploadFilter section under Initialization Parameters, you can change the values for the maxSize and sizeThreshold parameters.
    The contents of the uploaded file, together with some information about it, are stored in an instance of com.sun.rave.web.ui.model.UploadedFile. By using this object, you can get the content of the file as a String or write the contents to disk, as well as get properties such as the name and the size of the file. In the interest of conserving memory, the contents and file data are only available during the HTTP request in which the file was uploaded. To access the contents of the uploaded file, bind the uploadedFile property to a bean property of type com.sun.rave.web.ui.model.UploadedFile. Have the setter or an action method process the file.
    The UploadedFile interface has methods for getting the name and size of the file, determining the file's MIME type (such as text/plain or image/jpeg), getting the file's contents as bytes or as a String, and writing the contents to disk. To learn more, in the Java editor, right-click on UploadedFile in a declaration statement and choose Show JavaDoc from the pop-up menu.
    * To set the component's properties, select the component and edit its properties in the File Upload Properties Window.
    * Right-click the component and choose one of the following pop-up menu items:
    o Edit validate Event Handler. Opens the Java Editor with the cursor positioned in the component's validate method so you can insert code to validate the value of the component.
    o Set Initial Focus. Gives this component focus when the user opens the page.
    o Auto-submit on Change. Causes the form to be automatically submitted if the value of the component changes. Sets the component's JavaScript onclick property to common_timeoutSubmitForm(this.form, 'component-id');. At runtime, this code causes the form to be automatically submitted if the user changes the component value. Once the form is submitted, conversion and validation occur on the server and any value change listener methods execute, and then the page is redisplayed.
    A component configured to Auto-submit on Change can use virtual forms to limit the input fields that are processed when the form is submitted. If the auto-submit component is defined to submit a virtual form, only the participants in that virtual form will be processed when the auto-submit occurs.
    o Bind to Data. Bind the component's text property to an object or to a data provider. For more information, see Bind to Data Dialog Box.
    o Property Bindings. Bind any of the component's properties to an object or data provider, such as the uploadedFile property to a bean property of type com.sun.rave.web.ui.model.UploadedFile.
    o Configure Virtual Forms. Enables you to add the component to a virtual form.
    For more details on using the "File Upload Component" Please see this tutorial
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/file_upload.html
    Please share your comments, experiences, additional information, questions, feedback, etc. on these components.
    ------------------------------------------------------------------------------- --------------------

    Of interest relating to file upload component to users : "Saving Uploaded Files Uploaded by the File Upload Component " Check the blog:
    http://blogs.sun.com/roller/page/divas

  • File upload not working on Mac OSX

    I've tried several of the Flex file upload components, in all
    cases they don't work correctly when used on a Mac. I've tested
    both flash player 9 and the latest 10 release. The file uploads to
    the server, but the progress bar doesn't update and the upload
    complete event never fires. To the end user, it looks like the app
    isn't doing anything at all!
    Any advice on how to get this working? If you know of any
    file upload components that are already tested and working on the
    Mac version of flash - that would be a great help as well!
    Thanks!

    If you Google it you will find that this is a known issue, it surprised me since I spent days looking at my code.
    I found possible solutions here, but none worked for me it seems that it worked for many other people.
    http://www.abdulqabiz.com/blog/archives/2006/06/09/workaround-filereference-oncomplete-is- not-fired-on-mac-os/
    Hope Mac and Adobe will have lunch one day and figure it out.
    Ben

  • " Can not interpret the data in file " error while uploading the data in DB

    Dear All ,
    After running the below report I am getting the " Can not interpret the data in file " error.
    Need to upload the data in DB through excel or .txt file.
    Kindly advise to resolve the issue.
    REPORT  ZTEST_4.
    data : it like ZPRINT_LOC occurs 0 with header line,
    FILETABLE type table of FILE_TABLE,
    wa_filetable like line of filetable,
    wa_filename type string,
    rc type i.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
    CHANGING
    FILE_TABLE = filetable
    RC = rc.
    IF SY-SUBRC = 0.
    read table filetable into wa_filetable index 1.
    move wa_filetable-FILENAME to wa_filename.
    Else.
    Write: / 'HI'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    start-of-selection.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    FILENAME = wa_filename
    FILETYPE = 'ASC'
    HAS_FIELD_SEPARATOR = 'X'
    TABLES
    DATA_TAB = it.
    IF SY-SUBRC = 0.
    Write: / 'HI'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    insert ZPRINT_LOC from table it.
    if sy-subrc = 0.
    commit work.
    else.
    rollback work.
    endif.
    Regards
    Machindra Patade
    Edited by: Machindra Patade on Apr 9, 2010 1:34 PM

    Dear dedeepya reddy,
    Not able to upload the excel but have sucess to upload the .csv file to db through the below code. Thanks for your advise.
    REPORT  ZTEST_3.
             internal table declaration
    DATA: itab TYPE STANDARD TABLE OF ZPRINT_LOC,
          wa LIKE LINE OF itab,
          wa1 like line of itab.
                       variable  declaration
    DATA: v_excel_string(2000) TYPE c,
           v_file LIKE v_excel_string VALUE    'C:\Documents and Settings\devadm\Desktop\test.csv',  " name of the file
            delimiter TYPE c VALUE ' '.         " delimiter with default value space
         read the file from the application server
      OPEN DATASET v_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    IF sy-subrc NE 0.
    write:/ 'error opening file'.
      ELSE.
        WHILE ( sy-subrc EQ 0 ).
          READ DATASET v_file INTO wa.
          IF NOT wa IS INITIAL.
            append wa TO itab.
          ENDIF.
          CLEAR wa.
        ENDWHILE.
      ENDIF.
    CLOSE DATASET v_file.
    EXEC SQL.
         TRUNCATE TABLE "ZPRINT_LOC"
    ENDEXEC.
    *------display the data from the internal table
    LOOP AT itab into wa1.
    WRITE:/ wa1-mandt,wa1-zloc_code,wa1-zloc_desc,wa1-zloc,wa1-zstate.
    ENDLOOP.
    insert ZPRINT_LOC from table itab.

  • Empty file picked although file have lot of data in file adapter SAP PI

    Hello All,
    We are facing the weired behaviour of SAP PI file adapter channel.
    In without mapping Scenario of 7.31
    At some time whole file is archived properly in archive folder but in SAP PI log we can see the file size 0 bytes.
    And at received side empty file will be sent.
    But in actual there is lot of data in the file.
    The same file triggered next time then it working fine.archived and sent as it is.
    So can anybody help me for this ?what is the issue why sometime file with no data is  picked by PI?
    If file is pick up by PI before it is written completely by third party then is it possible that archived file will have all data as it although processed empty ?
    Thanks in advance,
    Anant

    Hi,
    Thanks for reply.
    I know this is common issue of file picking before completing the process of file writting and also i can use Msec to wait before modification check for avoiding this but
    my question is how the archived folder have the file with all data that sender is sending.
    So is it possible that empty file (before compete writting )is picked up by sap pi and then after completing the picking process it will archive the file that is completely written by third party in source folder.
    In other way file picking & File archiving is separate process means file that is picked is not archived but once pi processed the file then it will again check the source folder and archive and delete the same file.
    Thanks
    Anant

  • Hi,I want  ABAP program to create an file of this data and to upload in app

    Hi Sir/Madam,
               I want  ABAP program to create an file of this data and to upload in application server.this is urgent requirement.plz reply soon. i'll b thankful to u.
    Regards,
    Vishali

    Hi ,
    Use this abap code .this will create a file in AL11 that you can use .
    data: d_msg_text(50),
          v_string(20000) type c,
          v_filename type rlgrap-filename,
    ******Create a file on app server
    concatenate '<directory name present in AL11 case sensitive>' ' filename.CSV' into v_filename .
    condense v_filename no-gaps .
    open dataset v_filename for output in text mode
    encoding default message d_msg_text.
    if sy-subrc ne 0.
      write: 'File cannot be opened. Reason:', d_msg_text.
      exit.
    endif.
    ****Header for file
    concatenate 'information you want to write in file like header etc ' into v_string separated by '|'.
    transfer v_string to v_filename.
    *****Write data into file by looping an internal table
    loop at  <internal table > assigning <work area>.
      concatenate      <work area>-field name1   <work area>-field name2    into v_string separated by '|' .
      transfer v_string to v_filename.
    endloop.
    close dataset v_filename.
    Hope this will solve your purpose.
    Regards,
    Jaya Tiwari

  • File Upload data not reflected in the Layout

    Hi,
    Using the following how to document, I have written the file upload functionality.
    The upload functionality works and the data is saved in the cube. We have a layout to display the uploaded data.
    Issue:- The data is not reflected in the layout soon after fileupload, even after saving the data in the cube.
    If i close existing webinterface and re-execute it. I see the uploaded data.
    Once the data is saved in the cube, we would like to see this data in our layouts.
    How do we achieve this ?
    Appreciate your help.
    Regards,
    Vinay.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/g-i/how%20to%20load%20a%20flat%20file%20into%20bw-bps%20using%20a%20web%20browser.pdf

    Hi,
    When you click on Submit button the file data goes in the buffer and when you click on Save the data gets posted into cube and then the function module release the buffer.
    Comment the FM call API_SEMBPS_REFRESH in Save button and refresh the layout, check if you can see the new data in the layout.
    Please grant the points if this answer helps you.
    Regards,
    Deepti

  • View temporary data in Web layout during file upload in Integrated Planning

    Hi Experts,
    When using File Upload funcationality, in Integrated Planning,
    I have a requirment, How user can view the data in the web layout?
    After data display user can make changes in the data and on click of Save the updated data is saved in cube.
    If any one has come across this requirment can you please help me out how things can be carried out?
    If "how to implement" document is present can you please provide me the link.
    Thanks and Regards,
    Abhi

    Hi Abhi,
    I assume, you are using WAD for this..
    Please do the following: (Please note the the cube has to be in Plan mode while executing WAD)
    1. Create a input enable query (through query designer) on th eaggregate level (the one you are using for IP). You might need to create filers for the aggregate level. these filters can also be used in the query.
    2. In the WAD, pull this query.
    3. Create a button in WAD and check for the planning functionalities readily available that you can use in WAD. One of the planning functionality is SAVE Data. This will save any data which is entered by the user.
    4. In the same button integrate a Refresh Data command after the SAVE data. This will automatically refresh the query and pull the updated/changed data from the cube.
    This should work. Please write back in case of any clarification.
    Regards, Rishi

  • Why is the date picker icon is not showing on the PDF file?

    Hi,
    I added a date field on a form.
    I can see the date picker icon when viewing the form online but when I download and open the PDF to my computer and open it on Adobe Reader that icon doesn't show up.
    It's important since my users then need to manually enter the date instead of choosing it on the graphic interface (some of my users are older so need all the help they can get)
    Is there an option or something I missing to make the date picker icon show up on the actual PDF file as well?
    Thanks

    >>Duplicate post removed to comply with the Verizon Wireless Terms of Service.  See Re: Samsung Galaxy S5 pre-order?<<
    Edited by:  Verizon Moderator

  • How to install File Operations components in Data Integrator

    Hello Endeca Forum,
    I'm interested in using the File Operations components in Data Integrator, but getting and installing them is surprisingly obscure.
    I'm talking about...
    http://doc.cloveretl.com/documentation/UserGuide/index.jsp?topic=/com.cloveretl.gui.docs/docs/file-operations.html
    The Clover documentation (http://doc.cloveretl.com/documentation/UserGuide/index.jsp?topic=/com.cloveretl.gui.docs/docs/components.html) states...
    "+Note if you cannot see this component category, navigate to Window → Preferences → CloverETL → Components in Palette and tick both checkboxes next to File Operations+"
    However, when I go to Window --> Preferences --> CloverETL --> Components in Palette, I don't even see File Operations. This tells me that the version of Clover packaged with OEID doesn't have the components installed.
    Going to Help --> Check for Updates also didn't yield anything that looked like the File Operations components.
    I'm hoping someone here is familiar with the necessary steps to get these components installed...
    Thanks,
    Jerome

    I see what you're saying Purvesh, thanks for the clarification.
    Again, it's a little challenging to find this out, but there's a Clover support team member who mentions here...
    http://forum.cloveretl.com/viewtopic.php?f=4&t=6428&view=previous
    ... that the File Operations were introduced in the 3.3.0 M3 release.
    Guess this means we're out of luck, which is unfortunate.
    I'm fully aware that the SystemExecute component is an option for file management, but it's not the best fit for what I need to do. In any case, my question has been answered.
    Thanks!
    Jerome

  • Get the modified date of the files uploaded

    What data dictionary do i query at the backend to find the date of modification of the files uploaded in all the folers created by all the users and all the mount points.
    And to find out what users are currenty loged in?
    Plz help me with this query

    try having a look in the ifssys schema or whatever schmea name you specified during files installation to contain ifs.

  • Uploading iweb data feed file

    l have published my website using a host and l would like to upload the data feed file to a shopping site.
    What is the easiest way to do this

    @rp0428
    Thanks for taking out the time to reply to this. If we talk in terms of a tree structure, in the normal scenario we would the hierarchy as described before.
    -FWDREF
    --SECTID
    ---ILLREF
    If we don't talk in terms of xml and xsd and just talk in terms of database and keys, FWDREF would be parent, SECTID would be child and ILLREF would be grandchild. Now, in case, SECTID does not appear, we would still want a key to be generated but have a default value corresponding to it so that the parent, child and grandchild relationship is mentioned.
    The whole purpose of this XSD design is to use it in ODI where this feed file will be automatically loaded into tables from the XML generated with the parent, child and grandchild relationship maintained.
    Also, I have taken a sample data set. In the actual case, the hierarchy goes upto a maximum of 20 levels.
    Thanks to everyone and anyone who takes out time for this!

  • BT Cloud – File Upload Dates

    I have been using BT Cloud for some time now but never took much notice of the date and time the file was uploaded. Recently I have noticed that some of my files show the upload date way in the past (I assume this was the date I actually uploaded them for the first time?). The file history also shows dates in the past. When I open these files they are the latest copies so why doesn’t BT Cloud show the current date? Can someone please explain this to me or if there are any settings I need to change. Thanks.
    John

    Lots of issues with cloud: doubtful it is worth it even for the free part, certainly not worth paying for.
    Becuase of the way syncing works there is no way for cloud to hold data you don't hold on a computer somewhere.
    There used to be with web uploads, but they removed that bit and replaced it with a sync.
    Buy an external hard drive, 150GbB will only take up a small amount of the smallest sensible new drives (1TB).
    It is probably secure enought for photos.
    If you don't mind a resolution drop to 2048 on the larger side, and probably some slightly harsh compression, Picasa/Google Drive will store as many photos as you like for free.

  • Any one having file upload problems via webforms for site in the Australian data center or elsewhere?

    For the last 3-4 weeks we have a web app that can longer upload largish files (e.g. 35mb PDF) via a web form Uploads no problem via SFTP.
    Adobe so far has provided to answers and can't reproduce the problem.
    Yet we (in Auckland) and our client in Wellington have the same problem.
    Is there an issue with AWS Sydney, Adobe's setup or has BC introduced some new throttling or security rules around file uploads?
    Any help greatly appreciated.

    Hi,
    Please try to use the UI element "Office Control" of a web dynpro view.
    For more details, refer to the web dynpro component: IOS_TEST_HELLOWORLD_MS.
    Best regards,
    Shalini.

  • Progress Bars in File Upload Behavours

    Progress Bars in File Upload Behavours would be great.

    I think we need to be realistic ;)
    KTML4 - isn't going to happen, it was dropped, other 3rd party products are surfacing,
    sadly, we'll not see that again.
    Calendar was a separate Interakt application (not really a toolkit item)
    like the ADDT form control date/calendar picker - so I doubt that will happen
    That said - it would still get my vote for a comeback.
    Ajax tool - need to specify EXACTLY what tool and how it would expand on the ADDT and how it would relate to SPRY and other Components now being made available for DWCS4 ie YUI etc
    atb
    Paul

Maybe you are looking for