Setting a Default Where

Hi,
I'm using forms6i.
I have a database block in my forms, whose where condition i'm setting dynamically, based on another selection
I'm using this code
Set_Block_Property('Emp_Cal_Header',DEFAULT_WHERE, 'to_char(Ech_inci_fmdt,''yyyy/mm/dd'')'||'''-'''||'to_char(Ech_inci_todt,''yyyy/mm/dd'')'||' IN ('||Where_Cond||') ');What i want is a where condition like
Where to_char(Ech_inci_fmdt,'yyyy/mm/dd')||'-'||to_char(Ech_inci_todt,'yyyy/mm/dd') IN ('2011/04/15-2011/04/17')  ;The above varaiable Where_Cond returns the string '2011/04/15-2011/04/17'.
But with the above where i'm getting exception, ORA-00920: invalid relational operator
When i pressed shift+f1, the query was
Select Rowid,.....
FROM EMP_CAL_HEADER
*WHERE to_char(Ech_inci_fmdt,'yyyy/mm/dd')'-'to_char(Ech_inci_todt,'yyyy/mm/dd') IN ('2011/04/15-2011/04/17')*  order by Ech_Emp_code,Ech_DateNote : to_char(Ech_inci_fmdt,'yyyy/mm/dd')'-'to_char(Ech_inci_todt,'yyyy/mm/dd') in the above query , ie i have to add '||' before and after '-'.
How can i do this?
Thanks

no, i've add an '||' before and after '-'
like this
<the from date>|| ' ||''-''|| ' ||<the todate>earlier it was
<the from date>|| ' ''-'' ' ||<the todate>Edited by: Divya on Mar 29, 2011 4:32 AM

Similar Messages

  • Does anyone know how to change where incoming (via mail) calendar requests go on my MacBook? Mine insist on going to Entourage, which I don't use any more. I've tried setting the default calendar in iCal preferences. Doesn't help. Bugs me. Can you help?

    Does anyone know how to change where incoming (via mail) calendar requests go on my MacBook? Mine insist on going to Entourage, which I don't use any more. I've tried setting the default calendar in iCal preferences. Doesn't help. Bugs me. Can you help?

    Jneklason wrote:
    ~snip~
    I know this email is confusing and really hard to understand...perhaps now you will know how i've been feeling--lost and confused with all the mis-information, with a hit and miss phone, and out of time with all the 1 1/2 hr to 2 hrs EACH wasted on this issue.
    On top of all this, I can't even find out how to file a complaint with anyone higher up than Customer Service.
    I hate to tell you this, but you didn't write an email. You wrote a discussion post on the Verizon Wireless Community forum which is a public peer to peer forum. Unfortunately since you didn't mark your post as a question, the VZW reps that roam this community won't ever see your post. Before you re-post it, don't. Duplicate posts get removed from the community.
    I see there were several missteps both by the reps and yourself in your post. First you should have insisted on returning the phone within the 14 day return policy period. Second which Samsung Galaxy mini model did you purchase? The S3 mini or the S4 mini? Did you do any research prior to deciding on this device. The reps at that time deflected the easiest course of action, by trying to get you to replace the phone under insurance instead of returning the phone. The Early Edge payment option requires the current phone on the line using the early Edge must be returned to Verizon Wireless. Did you once considered going to a third party site like Swappa to purchase a gently used device for your daughter?

  • Set DEFAULT WHERE CONDITION

    I'm having a problem trying to set the a default WHERE in the block, it funtions in 6i but in 10g it doen't.
    I want to be able to select info for the past, today and for the future.
    SET_BLOCK_PROPERTY('RE322100FM', DEFAULT_WHERE, 'TID.TID_DATE >= TRUNC(SYSDATE) OR TID.TID_DATE = :RE322100FM.DATETIME');
    Can anybody help me?
    Thanks

    You could help us by telling us the manner in which it doesn't work. Does it not compile, does it produce unexpected results, does it give an error message etc.
    I suspect the problem is that you've included the name of the item instead of the value of the item in the where clause, but that wouldn't work in 6i either.
    Try something like
    SET_BLOCK_PROPERTY(
      'RE322100FM',
      DEFAULT_WHERE,
      'TID.TID_DATE >= TRUNC(SYSDATE) OR '||
        'TID.TID_DATE = '||
        'to_date('||:RE322100FM.DATETIME||',''<your date format>'')'
      );

  • How to set a default value for a drop down list box and then apply cascading based on the default value in Infopath 2010.

    Hello Everyone
    I have two drop downs. Both are coming from look up fields from two lists. i want to set a default value(first list item) for the first drop down list box and then apply cascading based on the default value for the next drop down list box. I found one article(http://www.bizsupportonline.net/infopath2010/display-first-item-drop-down-list-box-infopath-2010.htm)
    where in i can set a default value but i can't apply cascading based on that default value. Any suggestions would be highly appreciated.
    Thanks
    Ramanjulu Naidu N

    Hey Ramanjulu,
    Take a look at the below article which I believe will answer your question.
    http://basquang.wordpress.com/2010/03/29/cascading-drop-down-list-in-sharepoint-2010-using-infopath-2010/
    Daniel Christian (MCTS)

  • SRM 4.0- How to set the default values for product type (01) only for SC

    The radio button “Service” should not be visible.
    Also for search help (e.g. search for internal products) where a search should only be possible for product type 01 (goods). The system should not display the product type and internally always search for goods only.
    How to set the default values for product type (01) only for SC
    We needs to use Search help BBPH_PRODUCT which having parameter PRODUCT_TYPE
    Here we can set defalut value 01 but it is not correct one since same search help is using several places.
    We need to limit the search help results only for SC.
    Kindly help out me ASAP.

    The easiest way to set defautl values is to edit the batch class.
    Goto the characteiristic and go to update values.
    In here you probably have something like 0 - 100 as a spec range.
    On the next line enter the default value within this range.  At the end of the line, click in the box in the column labelled "D".  This indicates the defautl value for the characteristic.
    If you need to you can do this in the material classification view as well.
    Just to be clear, these values will only show up in the batch record.  You can not have defautl values in resutls recording screens.
    FF

  • Set As Default Crystal Report Layout in SAP B1 8.8 PL13

    Hi,
    I want to Set As Default a Crystal Report Layout. I know you can do that in Layout Desginer - Selection Criteria, but SAP B1 8.8 PL 13 has only a Manage Layout button in the Layout Desginer window which links to the Report and Layout Manager. There is no Set As Default button.
    Where can you select which layout to be default in PL13?
    Thanks!
    Cristina

    Hi
    If you want to Set as Default particular PLD then Open that Form
    For. Example
    Sales Ar > A/R Invocies (Item) document
    Then Click on PLD icon ans select your crystal report as Default by Set as Defaul button.
    Thanks
    King Kevin

  • Setting a Default Value in SQL Query Report

    Hello:
    We are using a SQL Query Report to provide a mass update to a table. We are using the apex.collection and having it display a number of records in a SQL Query Report for mass update. We have 14 columns in the report, for which the first 11 are populated via the collection. The remaining 3 are open for input but the individual making the updates. We've were able to provide a default value for 2 of the remaining 3 columns using a named LOV's - however the fourth column we would like to default a sysdate - but we are not successful.
    We've attempted many things but none seem to work, including adding that column to the collection and assigning it a default sysdate value. We've also tried changing the settings in the report attributes --> Tabular Form Elements by setting the Display as to: Datepicker, Default type to PL/SQL Expression and setting the default to sysdate. We've also tried caputuring a date on the previous page and loading it onto the report page and trying to default the date column to a page item default.
    I'd appreciate any help.
    Thanks
    FYI - we are using version 3.2

    use as default
    to_char(sysdate, 'dd/mm/yyy') where the format is your application or item date format

  • How do I set the default welcome page for PUBLIC user

    gurus,
    i'm using -
    Oracle 9i Database
    Oracle 9ias Portal Release 2
    QUESTION => how do I set the default welcome page for the PUBLIC user.
    i did the following to achieve this -
    1. logged into portal
    2. clicked on builder
    3. clicked on administer tab
    4. selected PUBLIC user in the Portal User Profile portlet
    5. went to the preferences tab
    6. in the default home page selected a custom page group
    7. logged out of portal
    8. open a new browsere session
    9. type the portal URL and i get the login page ....??
    i'm unable to understand this behavior ... shouldn't i be getting the page group that i set for the PUBLIC user in step 6 above ....
    the second QUESTION is => when the user logs out he/she should see the PUBLIC page set in step 6 above ... but, instead the user sees a page that is as follows -
    Partner Application Name Logout Status [Logout Status]
    Oracle Portal (portal) logout status
    The SSO Server (orasso) checkmark
    buzz.resva.trw.com:7778 checkmark
    infrastructure.happy.resva.trw.com checkmark
    portal1.buzz.resva.trw.com checkmark
    portal2.sylvester.resva.trw.com checkmark
    sylvester.resva.trw.com:7778 checkmark
    so, how can i set the default page for the PUBLIC user and also a page when he user logs out.
    ideas anyone ....?
    thanx a bunch.
    hero

    Hi,
    The sequence of operation you are doing to set the home page for public users is correct. You are getting the login screen as the "custom page group" selected as "home page" has not been granted to public.
    Also, while logging-out, it is normal behaviour to get the screen where it shows the list of partner applications from where user has been logged-out. When you click on "Return" button, you will get to the "home page" set above.
    Hope it clarifies the things.
    Regards,
    Ved

  • How do I set the default Hero image in a Muse slideshow widget when using Free Form Thumbnails?

    Hello,
    I am trying to find out how to set the default Hero image when using a Muse slideshow widget and in the Layout section I have the "Free Form Thumbnails"
    box checked.
    In other words, when the page loads I want to define which image displays as the first Hero image.
    If I do not select the "Free Form Thumbnails" option, the top left Thumbnail image always displays first. This is fine.
    But when I select the Free Form Thumbnails" checkbox I don't know how to define which image shows first as the Hero image.
    I have a short video at this link where I illustrate the question:
    http://amson.org/misc/default-hero-image-1.mp4
    I have added a WMV video file at the link below:
    http://amson.org/misc/default-hero-image-1.wmv
    Okay… I think I've worked out how to do it!
    [1] First have the "Free Form Thumbnails" box UNCHECKED.
    [2] Organize the Thumbnails and place the image that you want to be the first Hero image when the page loads in the top left corner of the Thumbnails group.
    [3] When you "Preview Site In Browser" the Thumbnail image in the top left corner will always display as the first Hero image.
    [4] If you want "Free Form Thumbnails" go ahead now and SELECT that checkbox.
    [5] Whichever image was in the top left of the Thumbnail group before you checked "Free Form Thumbnails" will still show up as the first Hero image when the page loads, regardless of where that thumbnail image is located within the Thumbnail images group.
    Thanks very much.
    Chris.

    Hi,
    The sequence of operation you are doing to set the home page for public users is correct. You are getting the login screen as the "custom page group" selected as "home page" has not been granted to public.
    Also, while logging-out, it is normal behaviour to get the screen where it shows the list of partner applications from where user has been logged-out. When you click on "Return" button, you will get to the "home page" set above.
    Hope it clarifies the things.
    Regards,
    Ved

  • Is there a way to set a default "Source Range" in AME when exporting from Premiere Pro CC?

    When exporting a sequence from Premiere Pro CC, you are able to toggle between 4 drop down options within Adobe Media Encoder on what Source Range you'd like to export (Work Area, Sequence In/Out, Entire Sequence, Custom) as seen here:
    Is there a way to set the default Source Range to something besides Sequence In/Out?
    My reason for asking is that sometimes I export multiple sequences at once using AME's Queue. I add my custom presets to each Sequence and hit export, but SOMETIMES I may have accidentally marked an in point on my timeline and by default it's set to export only that In-to-Out part of the sequence.
    I know what you may be thinking...well, just don't add any In/Out points to your sequence on the timeline or clear them first. The trouble is that I often don't see them or catch them when working quickly. In Premiere Pro CC, I use the "Lighter Brightness" Appearance setting because it's easier on my eyes after editing 10 hours a day, 6 days a week. Sure, darker looks cooler, but it kills my eyes for some reason. Anyway, PPro CC has a troublesome appearance issue in CC where it's not "optimized" for editing when you change it to a lighter appearance like it was in CS6. I've already contacted Adobe about this and another appearance issue (involving highlighted clips when in Lighter Appearance setting) and they are "actively working on fixing this appearance issue asap". 
    For reference, here's Premiere Pro CC in/out points in default dark appearance (notice the slightly lighter grey area):
    Now here's that same in/out in "Lighter Appearance":
    Not exactly optimized. Can hardly see it. Good luck spotting that little guy on a long timeline. Sadly, this affects in/out points in the Source Window as well. Really hard to see.
    Conversly, CS6 looked the best (the blue REALLY stands out making things easy to see):
    So my question again...is there a way to set the default "Source Range" to something else besides Sequence In/Out so that I don't end up doing what I just did and leaving for several hours while batch exporting only to come back and find that I exported only a "portion" of one of my big sequences?
    Thank you!

    shooternz wrote:
    Here is the solution:  Slow down. Give your project some love. Smell the roses.
    Agreed about the roses but alas my next project always calls. Actually, I think what happens is I give each project SO much love that when it comes to exporting, I've run out of time.
    shooternz wrote:
    Then it would not be a default...it would be an option and you already have that option.
    Semantics aside, I would love to be able to have it at least default to whatever option was last chosen. Or, perhaps I shouldn't use the word default again...I'd love it to simply remember my preferred setting. That's all.

  • How to set the default value of a LOV that is found in a view criteria

    HI,
    I need to set the default value of an LOV that is found in a view criteria. I tried to set a groovy expression but unfortunately it wasn't read. i also tried to bind the LOV to a bind variable and set the value of the bind variable in the constructor of my backing bean but unfortunately the default value appeared the second time i entered the screen and not on page load.
    Can anyone advise where can i set the default value,
    Thanks

    if you want some default value in LOV. you go to edit list of value wizard-> UI hint->include no selection Item checkbox -checked.use labeled item first of list- and beside that put the label. but when you try to get value, it will show null.but you can manipulate in ur java , if it default value

  • How do I set the default size of a new folder?

    I have finder sized the way I want for existing folders and if I do Finder > New Finder Window. These preferrences, however, do not seem to apply to new folders. Everytime I create a new folder on my desktop, and open that folder for the first time, the window size is really small and the sidebar is narrow. This is incredibally annoying. How do I set the default size for all new folders? Is there a plist file I can edit to fix this? Or an AppleScript I can run automatically in the background that fixes this? I am running Mavericks 10.9.1.

    If you use the Finder's New Finder Window command (command N) to create a new window, resize it, place it where you want, and set it for icon view or however you want it. Then close it. Closing it is what sets these as the default. That should become the default for every new Finder window you create using the new window command. But if you have lots of windows open at once and then close them, the last window you close will set a new default.
    There are lots of utilities that control Windows - their size and placement. I use one called Moom but there are many more.

  • How to set a default value in my DropDown using the key  ?

    Hello All,
      Can someone advose how I can achieve the above ? I will like to know how to select a default value for the dropdown by key using the key value instead of description.
      The reason why I need to do so instead o fusing description is because my application will populate the dropdown using web services based on the language selection. Hence, if I were to set the default value using description, den other languages will not work anymore.
      Any help will be greatly appreciated. Thank you !!
    from
    KWok Wei

    Kwok,
    Assuming that:
    1. You have a node NodeX, where attribute TargetAttr defined
    2. You have a DropDownByKey UI control, its property selectedKey bound to NodeX.TargetAttr attribute
    Then:
    Place in your code:
    wdContext.currentNodeXElement().setTargetAttr("yourKey");
    VS
    P.S. This topic was raised several times, and forum search works good enough to find an answer

  • How to set a Default Value in the drop down on Account Creation ?

    Hi,
    i have to set a default value in the drop down as soon as a User in a particular business role clicks on New Account. I have written the following code in do_prepare_output method. But this code is executed in the 2nd server round trip after entering some value or pressing enter. so i am not getting as soon as user clicks on the New Account.
    How to set that default value when user clicks on New Account ? and where should i code ?
      IF lv_icwc_profile = 'ZCSALESPRO' or lv_icwc_profile = 'Z_SALESPRO' .
      try.
                  lr_entity ?= me->typed_context->header->collection_wrapper->get_current( ).
                  lv_current = lr_entity->create_related_entity(
                                                  iv_relation_name = 'BuilRolesRel' ).
                                 lv_current->set_property(
                                    iv_attr_name = 'PARTNERROLE'
                                    iv_value     =  'BUP002' ).
                   CATCH cx_sy_ref_is_initial cx_sy_move_cast_error
                   cx_crm_genil_model_error.
                   return.
            ENDTRY.
    Thanks and Regards
    Raman Khurana

    Hi,
    I have some idea abt it, it is also used in account life cycle.
    Please refer SAP note 1097651, Defaulting a life cycle stage.
    Let me know if useful.
    rgds,
    Vinay

  • BC4J,Setting a default Value In a View With Data From An Other View

    hi
    I'm developping A BC4J. I want to set the default value of a field By counting the number of rows in an other view.
    So I want to instanciate the view and execute the sql statement and get the result.
    Is that the right manner to do it or not.
    can someone help me to do that
    cheers
    ghassen

    There's lots of ways to skin this cat depending upon whether you mean "database view" or "view object" when you say "view", and individual requirements.
    Given database views v1 and v2 with a common key between them
    select v1.x, count(*) from v1,v2 where v1.key = v2.key group by v1.x;
    either in the database view or in expert mode for the view object ( I think it'll take group by, but never done it ). ( assumption is that v1.x is a primary key for v1 )...
    Try this from sql*Plus first to get a feel for how this works.
    The catch with the above is that it is "static"... if you can ADD rows to v2 in your application... they aren't visible in the count until saved and requeried.
    Another way ( I think... hopefully Oracle folk will kibitz... )
    Create your own attribute on the view object like "TheOtherCount".
    In the view object's RowImpl, find the "getTheOtherCount". Find the count of rows in the second view object or entity object or rowSetInfo through the method of your choice. ( If you've already set up a master detail relationship that is active you can just get the rowcount! ). Refer to earlier postings on how to get the rowcount, or to create a dynamic view query to get the count.
    The nice thing is that this should reflect your counts even if the second view has added or removed rows... but will probably move like a snail.
    Note that if you have a need where you want the row count updated in a frame for v1 whenever v2 is added to or removed from... well... then you need to set up some sort of event listener to do a redisplay of v1's frame, I'd think? Since the attribute you've created in the view object is not based on an entity object attribute, it has no way to know when it has been "updated" via an additional or removed row from the target.
    I'm posting the above because no one has responded yet... it may form a place to start from. And maybe someone in the know will go "No, No, No... KKirk... it doesn't work that way at all!" and fill us in on how this can be accomplished!
    Good Luck

Maybe you are looking for