cancel
Showing results for 
Search instead for 
Did you mean: 

htmlb table view - date picker

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

When setting up your TableViewModel, you have to define the column as follows:


TableColumn col = model.getColumn("COLUMN_NAME");
col.setType(TableColumnType.USER);

Then, in your cell renderer class for the table, you will need to do the following:


InputField iField = new InputField("COLUMN_NAME");
iField.setType(DataType.DATE);
iField.setShowHelp(true);

Thanks,

Brian

Former Member
0 Kudos

Hi Harini,

Thanks for your reply. I know that it is possible to specify an input field with date picker options but I want to use the same functionality in a table view for a particular column.

Rgds,

Subu

Former Member
0 Kudos

Hi Subramaniyan

U can have cellType as input in a tableView which can get input but I think there is no predefined inputfield with datepicker. But in the document, they have mentioned about the user defined cell Types. U can go on with that and try to define ur own celltypes.

Regards

Harini S

Former Member
0 Kudos

Hi Subramaniyan

U can have a specialized input field for a date picker( in the table view) which is the date input field with the date picker.

Refer these links for details.

http://help.sap.com/saphelp_nw2004s/helpdata/en/94/8f8441fd86030de10000000a1550b0/content.htm

http://help.sap.com/saphelp_nw2004s/helpdata/en/53/9d0e41a346ef6fe10000000a1550b0/content.htm

Regards

Harini S