cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the default date as current date in input filed in VC

former_member192283
Participant
0 Kudos

Hi

In my VC application i have two date fields. we are allowing the end user to select the From Data and Todate though Data pickers, But the client asking to make the today's date as default date in Todate field , rather picking up from the data picker,

Unless the user wants change the todate from the current date. It should display today's date as default date.

can any body tell me how to do it.

Regards

Vijay

Accepted Solutions (1)

Accepted Solutions (1)

former_member198228
Active Participant
0 Kudos

Hello Vijay,

In the default property of your input field you can use the today function and it will default todays date in it.

Hope that helps

Abdul

Answers (2)

Answers (2)

former_member192283
Participant
0 Kudos

Hi All,

I have an issue an implementing the "Exporting the Table data to Excel."

My VC version is 7.0

Portal version NW 2004s.

By refering the following link, i have implemented Export To Excell functionality in VC.

2) Another one that's in the Visual Composer WIKI:

https://wiki.sdn.sap.com/wiki/display/VC/Exportingdatafrom+VC

By refering to 7th page in the document. It is explained to add the data source object from the 'info' port and add the field called 'RAPTNAME'to the DATA source object.

But the RFC object which i added to the story board, i havent find any 'info' port in my added RFC. But still i have added the data store object and added field. then

copied the following given formula in the document in respective formula window ,Formula showin as valid. when i click on check button.

copied formula :

"pcd!3aportal_content!2fcom.sap.pct!2fplatform_a

dd_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.b

ex?QUERY=" & STORE@REPTNAME &

"&BI_COMMAND_1-

BI_COMMAND_TYPE=EXPORT&BI_COMMAND

1-EXPORTFORMAT=XLS&BI_COMMAND_1-

null="

i am able to run the application. After i run the application . once i click on the button 'ExportToExcel' i am getting the following error.

Portal Runtime Error

An exception occurred while processing a request for :

iView : N/A

Component Name : N/A

Could not find portal application com.sap.ip.bi.service.generic.

Exception id: 05:32_01/05/07_0001_18800950

See the details for the exception ID in the log file

Can u please tell me what is the problem

Regards

Vijay

former_member182372
Active Contributor
0 Kudos

Vijay, there is NOW() function in Date Functions group.

Former Member
0 Kudos

Hello Maksim,

I have the same problem as Vijay and cannot get NOW() function working. My drop down box is on the variable for fiscal year / period.

I think the problem is that fiscal period is in format 001.2006 while NOW() gives something like 01.01.2006.

How to solve this?

Thanks in advance,

Ralph