How to set current year,month as default value in combo box

hi,  im newbie of xcelsius user
i realize  that hv a issue that display combo box base on year & month
let said
<b><u>step 1</u></b>
I create excel data like this
<b><u>year___ </u>  </b>    |     <u><b>month_   </b></u> |     <u><b>Product</b></u> |     <u><b>revenue</b></u>
02-04-09 |     02-04-09 |       a |     $4,154
03-04-09 |     03-04-09 |       b |     $6,813
04-05-09 |     04-05-09 |       a |     $9,875
05-06-09 |     05-06-09 |       b |     $6,813
06-04-10 |     06-04-10 |       a |     $6,813
07-04-10 |     07-04-10 |       b |     $9,875
08-06-10 |     08-06-10 |       a |     $9,875
22-06-10 |     22-06-10 |       b |     $6,813
<u><b>Step2</b></u>
Then i go format cell to format/custom date to year & month
Eg1: Year u2013>  02-04-09  convert to u2018YYYYu2019 (2009)
Eg2: Month u2013>  02-04-09  convert to u2018mmmmu2019 (April)
So output like this
<u><b>year</b></u> |     <u><b>month</b></u> |     <u><b>Product</b></u> |     <u><b>revenue </b></u>
2009 |     April |     a |     $4,154
2009 |     April |     b |     $6,813
2009 |     May |     a |     $9,875
2009 |     June |     b |     $6,813
2010 |     April |     a |     $6,813
2010 |     April |     b |      $9,875
2010 |     June |     a |     $9,875
2010 |     June |     b |     $6,813
But the problem is when i insert to combo box,use u201Cfilter Row u201D, i excpectation will display only 2009,2010
But Actual display the Year  in combo box is duplicated :'(
so any solution ? and then only how to set current year & month as default value  :'(
thanks,
regards
s1
Edited by: Leong Pui Kee on Feb 25, 2011 5:25 AM
Edited by: Leong Pui Kee on Feb 25, 2011 5:36 AM

hi,
your created  data
step 1
I create excel data like this
year___ | month_ | Product | revenue
02-04-09 | 02-04-09 | a | $4,154
03-04-09 | 03-04-09 | b | $6,813
04-05-09 | 04-05-09 | a | $9,875
05-06-09 | 05-06-09 | b | $6,813
06-04-10 | 06-04-10 | a | $6,813
07-04-10 | 07-04-10 | b | $9,875
08-06-10 | 08-06-10 | a | $9,875
22-06-10 | 22-06-10 | b | $6,813
In this, year and month both are same data, make the diffent data like year  2009, 2010  And month Jan, Feb, March, ...Etc 
and also one more check you formulas on month and year, select correct source data, destination data  for compoonent..
OR
from above, to create a date column and convert  date-->year, date--> month and Explore it.
All the best,
Praveen

Similar Messages

  • How to set system date as a default value in UIX/XML page?

    Example: We set default values using following statements:
    <set property="inputValue" target="${bindings.PoNumber}" value="${'1234'}"/>
    <set property="inputValue" target="${bindings.UserName}" value="${param.MyParam1}"/>
    In JDeveloper Help, we cannot find a way to set a Date attribute's default value to today's (system) date. Any suggestions?
    Also, does anyone have a reccomendation on a good book for uix/xml?
    Thanks, Ali.

    bump

  • IW31 how to set functional area as a default value?

    Dear all:
    Can anyone guide me, is any way to set "functional area" as a default value (t-code iw31 Additional Data -> Functional area)?
    Thanks in advance.

    Hello ,
    The standard funtionality is set to default the Functional Area from the Order Type.  I believe it is possible to change the default value for the Functional Area in Transaction KOT2. The PM order types should be selectable in this transaction.
    I hope this information has been helpful.
    Best Regards,
    Frank

  • Customer Exit variable to display the current Year/Month by default.

    Hi Experts,
    I need to create a variable on the object 0CALMONTH that needs to display the current Month/Year by default when the query is run.
    Can anyone please help with the ABAP code that is required for the creation of this Customer Exit Variable?
    Thanks
    Aravind

    Hi,
    try this , just copy and paste in your Editor,
    Data: Year(4) type c,
          month(2) type C,
          date(6)  type c.
    IF I_STEP = 1.
      CASE I_VNAM.
        WHEN 'VAR_X'.
          l_s_range-low = sy-datum+0(6).
          l_s_range-opt = 'EQ'.
          l_s_range-sign = 'I'.
          year = l_s_range.
          l_s_range-low = sy-datum+4(2).
          l_s_range-opt = 'EQ'.
          l_s_range-sign = 'I'.
          month = l_s_range.
          concatenate year month INTO date separated BY '/' .
          Append  date to e_t_range .
      ENDCASE.
    ENDIF.
    Thanks,
    JACK

  • How to set InDesign CS5 as the default in the system having InDesign CS4 has the default ?

    How to set InDesign CS5 as the default .indd application when you have InDesign CS4 and CS5 installed and InDesign CS4 is the current default (InDesign CS4 was installed after CS5 installation)

    Thanks, but I already tried it at first but it is not the effective method.
    I think its because of the this reason :
    Both - InDesign CS4 and InDesign CS5 have their application/program/exe named as "indesign.exe".
    Installation of either InDesign CS4 or InDesign CS5, sets a Windows default path for the "indesign.exe". In this case, since InDesign CS4 was installed later (after InDesign CS5 was already installed), the "indesign.exe" which was directing InDesign CS5's "indesign.exe" was replaced by InDesign CS4's "indesign.exe".
    But after long google and search through regedit, I've got the solution :
    Locate HKEY_CLASSES_ROOT\InDesign.Document\Shell\Open\Command in regedit
    Change the value of (Default) attribute to "C:\Program Files (x86)\Adobe\Adobe InDesign CS5.5\InDesign.exe" "%1"     // Include the quotes
    Message was edited by: Vidit Kothari

  • How to show current year and last year sales in a WEBI Report

    Hi Guys
    How can show current YEar Sales in one column and Last YEar Sales in the other column based on a user prompt for the Current YEar Column.
    For Example is user enter 2010 for Year how can i show a Column for Sales-2010 and Sales 2009.
    Thanks

    If you can modify your Universe add an object named New Object Last Year whose SQL is:( yourTableName.Year + 1)
    Then in WebI create two distinct queries in your query Pane. In the first one you could do this:
    Query 1:
    objects: Year, Sales ... etc.
    filters:   Year Equal to '1. Prompt Year'
    Query 2:
    objects: Year, Sales ... etc.
    filters:    New Object Last Year Equal to '1.Prompt Year'
    Then in your report you can drag each object on their respective columns.
    If you don't want to use two distinct queries, use one like this:
    Query 1:
    objects: Year, Sales ... etc.
    filters:        Year Equal to '1. Prompt Year'
                 Or
                      New Object Last Year Equal to '1.Prompt Year'
    Edited by: PadawanGirl on Jun 23, 2011 6:28 PM

  • HT204380 How to set my iPad as a default device while my iPhone and iPad share a same email address?

    How to set my iPad as a default device while my iPhone and iPad share a same email address?

    Shiv1611 wrote:
    Though i am still gona try using the same Itunes. Will same Itunes support two apple ids.
    That depends on what you mean. If you mean two iTunes Store accounts, no. Only one Apple ID can be logged into the iTunes Store at a time and if automatic download, iTunes Match or re-downloading of content is used the ID can not be changed for 90 days.
    Shiv1611 wrote:
    So i guess if i solve my goof up on creating different apple IDs and setting her phone as a new one .. according to you that shall do the trick.
    But i have a question here in that case what happens to all the applications that have been purchased on my Id ? Wont i be needing them to be purchased/downloaded again in the new id?
    If you previously had been using the same Apple ID for iTunes Store purchases for both of you there is no reason to change what you've been doing. If this is your wife's first iPhone, and you want to share the iTunes Store account just don't use the new Apple ID you created. As long as there are no purchases on it there's nothing to worry about.

  • How to set Bluetooth headset as a default answering device in iphone?

    How to set Bluetooth headset as a default answering device in iphone?

    All you need is to pair it.
    http://support.apple.com/kb/TS2225

  • Set Default value in dropdown box.

    I used selection= "Default Value" in dropdown box to do this functionality.But when i selected other value it is
    selecting the default value and saving also.but i want that page initiated the default value should be there and user can select other values and save.
    Please give me solution for that as soon as possible.
    Thnks in advance.

    Actually i m using the following code and it is fetching value from a table.Can u understand this code n provide me solution for default value.
    <htmlb:gridLayoutCell columnIndex       = "5"
                                  rowIndex          = "2"
                                  colSpan           = "1"
                                  wrapping          = "FALSE"
                                  verticalAlignment = "TOP" >
              <htmlb:dropdownListBox id                = "unitDropdownListBox"
                                     table             = "<%= IT_MSEHI %>"
                                     nameOfKeyColumn   = "MSEHI"
                                     nameOfValueColumn = "ZMSEHI"
                                     onSelect          = "setunitValue"
                                     disabled          = "<%= LV_MODEITEM %>"
                                 selection         = "<%= it_item-unit %>" />

  • How to display Current Year and Month in Drop Down list

    Hi Dear friends,
    I am devloping a report. It has got 2 pages--input and output(Report) page.
    IN input page, user will select Month and Year from drop down list as one of the input parameters. (seperate drop down list 4 month and year)
    Now, my problem is:
    HOw to display current month and year by default in the dropdown list...........
    I hope my question is clear.
    Please help.
    Regards,
    ASh

    NO da,
    it is not working.
    First i tired with for-loop. I initialized variable "i" to -2 (i=-2) I would get the year drop down list from 2003 but, by default 2003 would come.
    So, i posted the question.
    I tried your code. It is giving following error.
    A Servlet Exception Has Occurred
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occured between lines: 122 and 127 in the jsp file: /test/inpt.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:182: Invalid type expression.
    first.set(Calendar.YEAR, 2003)
    ^
    An error occured between lines: 127 and 131 in the jsp file: /test/inpt.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:186: Invalid declaration.
    out.write("\r\n \r\nYear : \r\n \r\n"); ^ An error occured between lines: 198 and 203 in the jsp file: /test/inpt.jsp Generated servlet error: C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:282: Invalid type expression. first1.set(Calendar.YEAR, 2003) ^ An error occured between lines: 203 and 207 in the jsp file: /test/inpt.jsp Generated servlet error: C:\Program Files\Apache Tomcat 4.0\work\localhost\general\test\inpt$jsp.java:286: Invalid declaration. out.write("\r\n \r\nYear :\r\n \r\n");
    ^
    4 errors
    Pls. Help.
    Regards,
    Ashu

  • How to set Current Date as default date in the form?

    Hi ,
    I have a date field and in the form I need it to be 'Current Date' as defualt.
    How do I get it in Portal??
    Thanx
    swati

    In the "Default Value Type" you choose "SQL query returns date" and in Default Value you write "select sysdate from dual".

  • Current month as default value in a parameter porlet

    Hello,
    i need to pass month as a parameter to a discoverer worksheet that i've added to my page in portal.
    i'd been doing this with a single parameter form setting the default value manually while testing page.
    now i'd need to set the default value as the current month to put the page in "production".
    i think it's not possible to get the date from the system (sysdate) in a single parameter form but maybe this can be done with an omniportet.
    thanks for helping,
    dani

    If you are using a datatemplate , you can have a beforereport trigger that will have a package call.
    In the package spec, define a date variable and also define the function beforereporttrigger that retruns boolean.
    In the body, define the beforereporttrigger function with
    begin
    select sysdate into specvariable from dual
    return(true);
    end;
    You can then use the variable in the datatemplate as :variable.
    Hope this helps.
    - Vasu -

  • How to appear Current Year  only

    I want to show only current year in form e.g 2008.
    I know how to show the sysdate .if some body can help me on this i will really appreciate that .
    Thanks

    Set the default value of your text item to
    PL/SQL Expression and enter
    to_char(sysdate,'YYYY')
    there.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • How to setting Adobe Photoshop CS6 to default again?

    Hello, I'm currently using Adobe Photoshop CS6 and last night I encounter some issue (after I scan my computer using some anti virus software).
    after running the scanning, my Photoshop work differently, like anytime I drag some pictures into it, it will keep notice me about scaling, every time I convert a layer to a smart object, then edit content it works really differently (usually I erase some part from the layer, and the parts that was deleted will be transparent because by default the background are transparent, but now when I try to erase some part of the picture, it will become white, as the background color are white). Then every time I put a new picture on a new layer, after put it in his position, I can't freely edit it size(resize) even if the layer wasn't locked.
    Can anyone tell me what happening? and how I can make my Photoshop working like usually(already tried to erase the .psp data from adobe photoshop CS6 setting folder, but the new default that it create will be the same)?
    Thanks

    Try either System Restore or a reinstall.

  • Don't know how to set current limit for servomotor​s in MID

    My application is to control a servo motor. I�m using PXI-7350, driving a motor (Pittman GM8712F434) with MID-7654. The motor is connected to mechanic parts and mechanic parts are connected to a potentiometer as a feedback. Now, according to the spec of the motor, it said reference voltage 19.1V, inductance 5.4 mH, peak current 1.76 A. So, I set dip switch of MID to 0.85 A for continuous current, 1.70 A for peak current and standard inductance. The motor didn�t move and fault LED lighted. Then I set both continuous and peak current to around 1.7A. The motor still didn�t move and fault LED still lighted. I kept increasing the current until the current hit 3A. It started moving slowly but fault LED still lighted. Final
    ly I set the peak current to 3.5A, the motor ran normally. Come to the questions.
    1. Is the peak current in the spec same as peak current limit in MID? How to determine peak current limit? Because I�m afraid that my little motor is going to burn out.
    2. How to set the continuous current; is it suppose to be half of peak current?
    3. If +10/-10V command voltage(torque limit) gets map to peak current (let say 1.7 A), will +5/-5V be mapped to 0.85? And what happen after 2.7 sec if I set continuous current to 0.85A? Will +5/-5V be mapped to half of 0.85?
    4. How does �2.7 sec� thing works? When I set peak and continuous current to 3.5A and 1.7A, after 2.7 sec motor should run slower or even stop (in my case), but it went nut like it ran at maximum current.
    I set Kp 20 and others zero, everything else is same as default. Thank you, I appreciate your answer.

    infoiupui,
    There are several DIP switches on the front of the MID 7654 that can be toggled to vary the continuous and peak current values for the MID. There is a small panel that can be removed from the lower left corner of the MID. You can look in the manual for the 7654, linked below, to determine the particular settings that you should use to achieve given continuous and peak current values.
    MID-7654/7652 Servo Power Motor Drive User Guide
    http://digital.ni.com/manuals.nsf/webAdvsearch/E38​2785B7D67553E86256A5D0072BBE1?OpenDocument&vid=niw​c&node=132100_US
    Take a look at pages 10 through 13 of this document for information on how to modify those DIP switches to achieve current values that will work with the motor that you are using.
    I am not clear on w
    hat you are referring to when you referred to 2.7 seconds. Could you clarify that for me?
    I hope that helps! Let me know if you have any additional questions on this issue.
    Regards,
    Scott R.
    Applications Engineer
    National Instruments

Maybe you are looking for

  • X1 and an additional screen

    Hi there, I would like to use my X1 as primary screen and my additional 27" display as secondary. I bought the USB 2.0 port replicator, but I dont like it very much at all. It is lagging and not that functional as I would have liked, which is why I w

  • Payment Terms in Invoice creation

    Hi,   I am using SRM 5.5, ECS and trying to create a non-PO invoice, I have more than one questions but all are related to payments on invoices.   I have replicated the payment terms from back-end using BBP_UPLOAD_PAYMENT_TERMS, and verified the entr

  • Reinstall iOS on iphone 4

    I have an iphone 4 which I've been told has a corruption in IOS7. I've backed the phone up and need to reinstall IO7. How do I go about doing that?

  • IMAQ FFT multiplication and MATLAB Script Nodes/Compact Rio

    I would like to automatically generate a frequency kernel to multiply with the FFT of my IMAQ image. I was wondering if there was a way for LabVIEW to automatically set up 2D arrays (with a lower bound, a step size and a higher bound) like what is do

  • Is There a Way to Share the Data Entered Into an App?

    I would like to create an iPhone app (using FB 4.6) that is kind of a shell where the user answers questions that will be used to create certain documents.  My goal would be that after the first user that purchased the app answered all the pertinent