How to set upperbound key to a max value ?

Hello,
I use TreeMap.subMap() method as below:
entrySet = iCumTotalsTree.subMap(iCumTotalsKey,iCumTotalsUpperKey).entrySet();
The class of the key parameters of this subMap is as below:
class:
{ int lineNumber
int dep
I want to get a sub map. So that the "dep" field of higher bound has always to be greater than or equal to "dep" field of lower bound.
is it possible to return this sub map without identifying a value for the "dep" value of higher bound. I mean can I derive it from the "dep" value of lower bound ?
thanks in advance...
I need that dep field of second key should

Hi,
Thanks for the reply.
I mean
Lower bound should be:
(<x1>,<y1>)
Upper bound should be:
(<x2>,<y2>)
I can not pass a value to <y2>. But, I'm sure it's always greater than, or equal to <y1>. So, I need to derive <y2> from <y1>.
I can use max value of integer for <y2>. But, is there a better way ? For example, does <y1+"\0"> work ?
thanks in advance...

Similar Messages

  • How to set Shortcut keys for button in Apex

    Hi
    Could anyone help me on how to set shortcut keys for buttons in Apex.
    I need to use say ALT + S to submit the page.
    The following thread pertaining to HTML DB refered to use ACCESS key. but that couldnt work in my case.
    Re: operation of the app. with the keyboard
    Any pointers on achieving this would be helpful.
    Thanks
    Vijay

    Hi Vijay,
    I’m afraid you must do it using javascript key listener. You can’t use action() on template based buttons because they are actually not HTML buttons but images with hyperlink.
    Key listener checks which key has been pressed down and invoke some JS function. For example, write this code in page header:
    <script>
    document.onkeydown=keyCheck;
    function keyCheck(e){
         var KeyId = (window.event) ? event.keyCode : e.keyCode;
         switch(KeyId){         
              case 113:
                   doSubmit('SAVE');
                   break;                    
              case 118:
                   alert('Hello');
                   break;
    </script>
    This script will submit page with request 'SAVE' if you press F2 or will show alert message if you press F7. Modify it to your issue.
    Regards,
    Przemek

  • How to set primary key of the VO.

    I have a problem with the master detail search. The search works fine on the first search, all details can be seen fine, but in the second search I get this error.
    The number of displayed records, 1, exceeds the actual number of records, 0, in view object EgoItemAdvancedSearchAM.MYACCESSOR001_MYLINK001_DetailsOrderLinesVO. Some of the displayed records may have been deleted.
    Somwhere in another thread, someone had the same problem and the soultion was to set primary key of the master VO. I am not sure how to set primary key of a VO. In my case the master VO is dynamic. Is there a way I can set PK of a dynamic VO.
    Any help greatly appreciated.

    Hi
    Thanks for your reply...
    am seting the primary key to VO attribute in my controller(PR)...but its not mapping to the VO attribute..
    OAAttachmentImageBean Ibean = (OAAttachmentImageBean)webBean.findChildRecursive("OpAttachments");
    String[] pkvaule = {"ResAttribute15"};
    Ibean.setPkColumns(pkvaule);
    Regards
    Harrrry

  • 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

  • How to set primary key for a date column

    hello experts .,
    i need to set primary key for a column consists of the datatype date. how to solve this..?

    1008318 wrote:
    its my personal need..then it is a very bad personal need. DATE is not an appropriate type to be using for a primary key, as it cannot be guaranteed to be unique, especially when inserting multiple rows at once.
    You would be better working to business needs and implementing correct technical solutions to those needs, than to just do things based on your personal needs.

  • Cut/Copy/Paste - How to set the key bindings ?

    Hi,
    I'm currently using the motif LnF in Windows. It matches the colors and style I want.
    The problem is: people using Windows want to use the standard windows key bindings (that is: CTRL+V, CTRL+C, CTRL+X) instead of the Motif ones.
    Does anyone how to set the old Windows key bindings into the Motif LnF ?
    If anyone can provide some light, it'd be great !
    Regards,
    - Juancho

    The Swing tutorial on "General Rules for Using Text Components" has a demo program that shows you how to assign KeyStrokes to Actions.
    Unfortunately the demo has not been updated in a while and still uses a keymap. The new approach would be to use an 'inputMap' and an 'actionMap'. The code for the copy action would be something like this:
    textComponent.getInputMap().put(keyStroke, "copy");
    textComponent.getActionMap().put("copy", action);
    Again, the demo program 'TextComponentDemo' from the above tutorial will show you how to:
    1) create the keyStroke for Ctrl+C
    2) retrieve the default copy action from the editor kit

  • How to set F2 Key to Convert to Profile OSX 10.7

    Can someone clue me how to set my F2 key to Edit> Convert to Profile (instead of my display brightness)?
    I used to be able to do this quite easily prior to 10.7, but now I can't figure it out.
    Photoshop: Edit Keyboard Shortcuts> Convert to Profile won't accept my F2 key (it lights up my brightness)
    System Prefs> Keyboard> Shortcuts is probably the key, but unchecking F2 doesn't solve the problem
    PS13.0.1

    conroy wrote:
    In this case, I don't see anything to complain about.
    Seems pretty clear gator soup didn't expect that function to be taken over, and it's lucky that someone thought to include an option that could be changed to cause the function key to work the right way.  When do you think they might drop that option to reduce support cost even further?
    Does Apple think there are just too many keys on the keyboard for the average user?  Maybe they've been taking too many service calls from ignorant users who can't figure out how to press two keys at once to change their screen brightness and instead of trying to educate people on how to actually use a computer they just choose to cater to their stupidity.
    I guess one must not need the F2 key to play most of the games in the App Store.
    I think I'll drop off the forum now.  I'm clearly in a foul mood today.  Something about testing Windows 8 stuff sent me down this path. 
    -Noel

  • How to set the Key Photo in .Mac Web Gallery ?

    Has anyone managed to set the key photo in a .Mac Web Gallery album ? The key photo is the photo used on the main page of the Web Gallery to illustrate the event.
    In iPhoto, all you do is select in the left column a published .Mac Web Gallery, right-click on the photo you want to set as the key photo, and select "set as key photo".
    In aperture, you can do the same in a project, but this will only set the key photo for your "all projects" view. This key photo is not used when exporting the project to .mac web gallery.
    In all the web galleries I export from Aperture, the first picture is used as the key photo, it's really a problem. Any solution ?
    Message was edited by: skiss

    There is a small "Header Bar" if you will in iPhoto, you can drag the photo you want to that header bar and I think that accomplishes what you want if I understand what you mean by Key Photo (the photo that shows up in e-mail if you forward the gallery to others). My wife and I stumbled on that solution as we were trying to figure it out. Actually I think wife gets the credit, she had the mouse in her hand when it happened .

  • How to set a key field in a local provider for BW workspace

    Hi Experts,
    I've created a local provider through BOBJ analysis for excel / Workspace designer in a BW workspace. However, all the dimensions by default are not having the key field enabled and I'm not able to enable the key field through BW workspace. Also I see the Fact Index Without Key is enabled by default in technical settings, which is not allowing me to select "Fact Index with Key" either. When I go to edit mode, it says "Analytic Index XXX can only be changed in workspace designer". I even tried to go into workspace designer and by selecting the necessary local provider, I coudn't find an option under Local Provider->Reload Provider->Reload (With Changes)->Choose File->Edit Columns to enable the key field(s) for the dimensions.
    Can you please help to locate how to enable the key field for dimensions in local provider.
    Thank you in advance.
    Regards,
    Karthik

    There's nothing to solve. If Reader (XI only) is used only PDF files can be selected. This is how it's supposed to work (although I agree it's silly and should be changed).

  • How to set functional keys as shortcuts for menu items in AWT?

    Hello!
    I want to set functional keys as shortcuts for menu items in AWT, for example F1, F2... Here's my code:
    MenuItem menuItemHelp = new MenuItem ("Help", new MenuShortcut(KeyEvent.VK_F1));
    But, in result, this menu item is activated, when Ctrl-V pressed. Why?
    Thanks in advance for help.

    I have no idea what is going on but if you reinstall the jdk then it might fix it. I had some similar problems myself but reinstalling fixed them.

  • How to set dynamic parameter in list of values in parameter property

    Hi,
    I am using cr4e-all-in-one-win_2.0.1version.I have created .rpt file in that how to set dynamic parameters(from database) in list of values parameter property
    Regards,
    amol

    Hi,
    I am using cr4e-all-in-one-win_2.0.1version.I have created .rpt file in that how to set dynamic parameters(from database) in list of values parameter property
    Regards,
    amol

  • How to set Oracle Data Integrator Timeout paramter value as unlimited

    Hi
    Can any one help me how to set Oracle Data Integrator Timeout (ODI menu>User Paramter>Oracle Data Integrator Timeout > paramter value as unlimited.
    By default it is 30 and i want to change it as unlimited.
    I am connecting linux box through windows using citrix and opened ODI and start the scenario execution (my scenario execution in loop and it will execute continuesly) after execution starts I an logout from citrix (I am not closing ODI) and after some time like 50 min my odi execution is stoped due to timeout.
    my ODI execution should continue in my absence that to unlimited.
    Please help me it is urgent
    Regards,
    Phanikanth

    Thanks Bhabani
    Is it work for unlimited in linux box because I have given operator dispplay limit(0=no limit) as 1000000 and I am unable to see the execution session details on Operator>session list
    later i have changed to 10000 and click on ok and just refreshed and it is working fine
    If I give mensioned below it will not impact on ODI ?
    windows it is working but I have doubt on linux version
    Please help me
    Regards,
    Phanikanth

  • 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

  • How to set ALT keys functionality?

    I want to set the ALT key fuctionality externally is it possiable, that is in solaris.

    hi thank for your response but my problem is how to fire the Fuctionality extenally. I explain my problem
    I want to set the move funtionality for a JWindow in solaris but i won't set the transprent window. In solaris Whenever you click on ALT F7 then the default move fires, i want to set it in my menuitem.

Maybe you are looking for

  • Pages 1.0.3 does not open or create document on my new MacBook Pro

    I migrated all programs and data with the migration assistant from an Power Mac G5 to an MacBook Pro Intel 2.66 i7. Now I can't read or create new documents with Pages 1.0.3. I repaired all permissions, tried to run pages in an other account but it s

  • Unable to connect new iPad Air to HH2.

    I have had Infinity for years using HH2 (the curved one with straight edges) and has worked fine. 100% wireless connections to all the devices I have ever tried. Currently using WPA/WPA2 on channel 11. Wireless is connected to Wii, Xbox, iPad Mini's,

  • Unwanted spaces between images

    while using adobe dreamweaver i created a page with a image at the top, then one below it with rollover images, then one more below that. and everything should fit together like its one image. and it does so in internet explorer, but not firefox. it

  • WAAS inline deployment

    Hello All, I'm deploying a couple of WAE-512's in "inline" mode for a customer. I have the configuration and seems pretty straight forward, looks like I just need to have the inlinegroup created and allow all VLAN's. I will also have a crossover conn

  • ITunes visualizer plug-ins

    Hi, I know that I'm being completely stupid here, but I wanted some more visualizations for my iTunes (I'm running iTunes 5), and I went to the help file and it explained how I drag the plug-in into the iTunes plug-ins folder, but where do I download