How to clear an NamedWhereClause (Sorry ! I cant deleted It )

Hi there;
My code is like this;
in an applicationModule;
      ViewObjectImpl vo = (ViewObjectImpl) findViewObject(views);
        vo.closeRowSetIterator();
        vo.applyViewCriteria(null);
        vo.setWhereClause(null);
        vo.setWhereClauseParams(null);                          //  already tried;
        vo.applyViewCriteria(vc);
        vo.removeNamedWhereClauseParam("pIdCenarioOrc");    -- clear one parameter from another viewCriteria  setted before
        vo.setNamedWhereClauseParam("pIdCenarioRur", wIdCenarioRur);   -- setting new parameter from the current viewCriteria;
    [code/]
  But , I run in two errors;
     one if i comment "removeNamedWhereClauseParam", that I'm trying to set one parameter that does not occur in my sql Code;
     If I leave removeNamedWhereClauseParam , it says that the parameter is not from an viewObjectImp, it belongs to viewObjectDefImpl;
How can I run out of this ??
Thanks;
Edited by: MarcosOrtega on 14/09/2010 09:22                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

I think , that
as my bind parameter declared inside ViewObject's binded parameters , has default value, ADF tries to set it and passes to the query (before executed it);
see; it was previously removed, but as it was with default values at vo's bind parameters declaration, my gues is that ADF tries to insert then , even if then does not part of where sql
So , as I've declared the both parameters with default values, and used just one inside each viewCriteria instead of using the two at the same time !
Now , I removed the groovy default value expression, and it is working !! :)
My Guess that it was it;

Similar Messages

  • How to clear an NamedWhereClause

    Hi there;
    My code is like this;
    in an applicationModule;
          ViewObjectImpl vo = (ViewObjectImpl) findViewObject(views);
            vo.closeRowSetIterator();
            vo.applyViewCriteria(null);
            vo.setWhereClause(null);
            vo.setWhereClauseParams(null);                          //  already tried;
            vo.applyViewCriteria(vc);
            vo.removeNamedWhereClauseParam("pIdCenarioOrc");    -- clear one parameter from another viewCriteria  setted before
            vo.setNamedWhereClauseParam("pIdCenarioRur", wIdCenarioRur);   -- setting new parameter from the current viewCriteria;
        But , I run in two errors;
    one if i comment "removeNamedWhereClauseParam", that I'm trying to set one parameter that does not occur in my sql Code;
    If I leave removeNamedWhereClauseParam , it says that the parameter is not from an viewObjectImp, it belongs to viewObjectDefImpl;
    How can I run out of this ??
    Thanks;

    Hi,
    try
    getViewCriteriaManager().clearViewCriterias()
    getViewCriteriaManager().removeViewCriteria(java.lang.String name)
    Frank

  • How to clear stock from storage bin and delete bins?

    Hi All
    For the development of prototype we have made some dummy warehouse structure and made stock movements with dummy bins. Now we wanted to go for real implementation. Before we made actual configurations, we wanted clear all dummy data. Can anyone suggest the standard process for clearing the stock, storage bins?
    Thanks
    Sasidhar Gupta

    Hi Sasidhar.
    is it non production system.
    If yes you can move all this stock in some other storage type as dummy with dummy name.
    and you can use all built as actuals.
    or do PI and remove all stock from system as not actual stock .
    and if its non production system then why are u worrying about all this. Let it be and start building your system as you require.
    Regards
    Suraj

  • How to clear the hung calls in CUBE?

    I'm installing a new CUBE as SIP-SIP gateway in Cisco 2921, IOS: 15.1(4)M3. When i tried few test calls, I saw couple of hung calls in it.
    I tried clearing them manually with the below command but it didn't help.
    clear call voice causecode identifier{id identifier | media-inactive | calling-number number | called-number number}
    >> https://supportforums.cisco.com/docs/DOC-34379
    The call legs are still in connecting status.
    2    : 2152 13:36:28.319 CET Tue Feb 11 2014.1 +-1 pid:200 Answer 222022029 connecting
    dur 00:00:00 tx:0/0 rx:0/0
    IP X.X.X.97:24578 SRTP: off rtt:0ms pl:0/0ms lost:0/0/0 delay:0/0/0ms g711ulaw TextRelay: off
    media inactive detected:n media contrl rcvd:n/a timestamp:n/a
    long duration call detected:n long duration call duration:n/a timestamp:n/a
    2    : 2157 13:38:54.589 CET Tue Feb 11 2014.1 +-1 pid:200 Answer 222022029 connecting
    dur 00:00:00 tx:0/0 rx:0/0
    IP X.X.X.97:24582 SRTP: off rtt:0ms pl:0/0ms lost:0/0/0 delay:0/0/0ms g711ulaw TextRelay: off
    media inactive detected:n media contrl rcvd:n/a timestamp:n/a
    long duration call detected:n long duration call duration:n/a timestamp:n/a
    Also, I tried enabling media inactivity timer but it would clear only the calls in 'Connected' status If I understand correctly.
    how to clear those hung calls? and what could be the cause of it?
    Any help would be much appreciated.
    Thanks in advance
    Suresh

    Suresh have you tried this:
    ip rtcp report interval 5000
    gateway
    timer media-inactive 5
    The challenge you may face is that the media inactivity was not configured before this call started, hence it cant activate the time for this particular call...
    Give it a go, lets know if it works. Even if it doesnt I suggest you enable this on your CUBE going forward, so you dont haver hung calls in the future
    example: You can use the debug ccsip events to see the media inactivity timer kicking in for a call...
    Router# debug ccsip events
    00:04:29: sipSPICreateAndStartRtpTimer: Valid RTP/RTCP session found and CLI ena
    bled to create and start the inactivity timer
    00:04:29: sipSPICreateAndStartRtpTimer:Media Inactivity timer created for call.
    Mfactor(from CLI): 5 RTCP bandwidth: 500
    RTCP Interval(in ms): 5000
    Normalized RTCP interval (in ms):25000
    Please rate all useful posts
    "The essence of christianity is not the enthronement but the obliteration of self --William Barclay"

  • How to clear Google search history

    HI,
    Ever since I updated to 2.1 it has been impossible to clear my Google search terms. Clearing the cache, cookies, etc in 'settings' has no effect.
    Does anyone know how to clear them?

    I'd try a reboot just to see if it fixes the issue.
    Try a reboot (described below).
    Think of it this way, the iPhone is more of a computer than a phone. It suffers from being a new OS and nobody can deny there are not bugs and memory leaks. The longer left running, the more things start to fail or slow down (I have had the iPhone since day one of original phone and I am just speaking from my experience). Thus I equate it to like when Windows95 came out...not sure of your age or if you remember those days...but back then it was a running joke of how many days you can keep Windows 95 running before you had to reboot. I am sorry to say but the iPhone is the same way right now (but getting better with a few hiccups back during the 2.0 release). So for me, I reboot daily when I leave in the morning and take it off the charger. By doing so I rarely see any lag or problems.
    A reset/reboot is:
    Go to Home Screen
    Press and Hold Home Button
    Keep holding and press and hold Lock Button
    Keep holding Both
    You will see Slide to Turn Off (Don't let go to slide, just keep holding)
    The phone will turn off (in time, but screen will look like it has some white lines)
    Keep Holding
    When you see the Apple Logo, you can let go.
    Turning off via the Slide to Turn off while good and fine to turn off, is more like the Sleep Mode on a computer. Thus any locked up issues in memory remain when you turn back on. A reboot as described is like doing a real Turn off and Turn On on a computer.
    You may also wish to read this tread about reboots and odd application behavior.
    http://discussions.apple.com/message.jspa?messageID=5851978#5851978

  • GR in one GL Code and IR in different GL code -how to clear?

    hi,
    If the
    gl a/c during GR differ from gl a/c during Invoice verification then
    what configuration we need to do so that these accounts  get cleared
    automatically?
    For example
    During  GR  the GR/IR clearing a/c was 307213 and during Invoice
    Verification the GR/IR clearing A/c is 307212.What
    configuration is needed to clear these two?

    Hi laxmi
    sorry I dont think it will work. Presently for this particular client the GR and IR getting posted in the same a/c for that particular valuation class.
    for example valuation class is 3009.
    for this valuation class GR and IR both the a/c NOW is 307213.
    But in between they have some GR and IR for which they have different accounts. How to clear those?

  • How to clear the recent SAVE locations menu

    When I save a new document, a menu of locations appears where I have recently saved other documents. How can I clear this menu? Clearing the Recent Items menu doesn't do it.
    I must have inadvertently saved a file to my backup drive once, because the backup folder appears in the menu in addition to the one on my hard drive, and it's impossible to tell these folders apart at a glance — I have to follow the path back. If I inadvertently save a new doc to the backup, it gets wiped out when the automatic backup kicks in. So I need to clear this menu and start over.
    (I listed my OS as Tiger, but I see it appears under the Snow Leopard discussion — don't know how to change this. Sorry.)
    Message was edited by: Ännchen

    Use a tool such as the Property List Editor or TextWrangler to check that application's plist file.
    (55345)

  • TS1277 How do I fix this? I cant get iTunes to let me sign it. I keep getting cookies error. I have allowed iTunes in cookies.

    How do I fix this? I cant get iTunes to let me sign it. I keep getting cookies error. I have allowed iTunes in cookies.
    I am also getting review acct, which I have.

    That may be an incompatibility between Hotmail and Firefox 10.
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • How to clear device/bundle errors

    Hi all: I manage about 100 PCs with ZCM 11.2.4. I need a way to clear all device/bundle error messages, both for bundles and policies, so that the icons on ZCC all show clear. I know I can delete all error messages, but how do I clear all bundle error messages? I want to get rid of the red error icon so I can easily see which computers are getting these errors since they were cleared. Right now the error icon does not go away.
    Thanks for the help, Chris.

    cmosentine <cmosentine@N0_5pam_vrapc.com> wrote:
    > DQpUaGF0IGNsZWFycyBtZXNzYWdlcyBsaWtlIHlvdSBzYXkgYn V0IGl0IGRvZXMgbm90IGNsZWFy
    > IGJvdGggaWNvbnMuICBXaGF0IEkgbWVhbiBpcyBmb3IgZWFjaC Bjb21wdXRlciB0aGVyZSBhcmUg
    > dHdvIGljb25zLCB0aGUgY2hlY2tsaXN0IGFuZCB0aGUgY2lyY2 xlLiAgQ2xlYXIgdGhlIG1lc3Nh
    > Z2VzIHR1cm5zIHRoZSBjaXJjbGUgYmFjayB0byBncmVlbiBidX QgdGhlIGNoZWNrbGlzdCBpY29u
    > IHdpbGwgc3RpbGwgaGF2ZSB0aGUgcmVkIHJpbmcvc2xhc2ggKH RoZSBkbyBub3QgZ28gc2lnbikg
    > b24gaXQuICBJdCBpcyB0aGlzIGljb24gSSBuZWVkIGNsZWFyZW QuDQoNCg0KIA0KDQo+Pj4gbm9w
    > MTk4Mzxub3AxOTgzQG5vLW14LmZvcnVtcy5ub3ZlbGwuY29tPi A4LzI4LzIwMTQgODoxNiBBTSA+
    > Pj4NCg0KDQoNCkdvIHRvICJDb25maWd1cmF0aW9uIiAtPiAiU3 lzdGVtIGluZm9ybWF0aW9uIi4u
    > LiBoZXJlIHlvdSBjYW4gY2hvb3NlDQoiTWVzc2FnZSBDbGVhbn VwIiBvbiB0aGUgbGVmdCBhbmQg
    > c2VsZWN0IGEgZnJvbSBhbiB0byBkYXRlLiBTZWxlY3QNCiJQZX JtYW5lbnRlbHkgRGVsZXRlIi4N
    > ClRoaXMgc2hvdWxkIGdpdmUgeW91IGEgImZyb20gc2NyYXRjaC IgdmlldyBpbiB0aGUgWkNDIDop
    > DQoNCg0KLS0gDQotLQ0KTmllbHMNCkkgaGF2ZSBhbHdheXMgbG lrZWQuLi4gQ293YWJ1bmdhIQ0K
    > DQpJZiB5b3UgZmluZCB0aGlzIHBvc3QgaGVscGZ1bCwgcGxlYX NlIHNob3cgeW91ciBhcHByZWNp
    > YXRpb24gYnkNCmNsaWNraW5nDQpvbiB0aGUgc3RhciBiZWxvdy 4NCkEgbWVtYmVyIG11c3QgYmUg
    > bG9nZ2VkIGluIGJlZm9yZSBzL2hlIGNhbiBhc3NpZ24gcmVwdX RhdGlvbiBwb2ludHMuDQotLS0t
    > LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS 0tLS0tLS0tLS0tLS0tLS0tLS0t
    > LS0tLS0tLS0tLS0NCm5vcDE5ODMncyBQcm9maWxlOiBodHRwcz ovL2ZvcnVtcy5ub3ZlbGwuY29t
    > L21lbWJlci5waHA/dXNlcmlkPTU3MjYyDQpWaWV3IHRoaXMgdGhyZWFkOiBodHRwcz ovL2ZvcnVt
    > cy5ub3ZlbGwuY29tL3Nob3d0aHJlYWQucGhwP3Q9NDc5MDE3
    > --____JOLVDYQQHCXKLYAOQDJX____ Content-Type: multipart/related;
    > boundary="____YIFONLXFRFYYQLYMNALF____"
    >
    > --____YIFONLXFRFYYQLYMNALF____
    > Content-Type: text/html; charset=utf-8
    > Content-Transfer-Encoding: base64
    > Content-Disposition: inline; modification-date="Thu, 28 Aug 2014 08:45:33 -0400"
    >
    > PGh0bWw+PGhlYWQ+CjxtZXRhIGh0dHAtZXF1aXY9IlgtVUEtQ2 9tcGF0aWJsZSIgY29udGVudD0i
    > SUU9MTEiPgo8bWV0YSBuYW1lPSJHZW5lcmF0b3IiIGNvbnRlbn Q9Ik5vdm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50cy48YnI+LS0tLS0tLS0tLS0tLS 0tLS0tLS0tLS0tLS0tLS0tLS0t
    > LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS 0tPGJyPm5vcDE5ODMncyBQcm9m
    > aWxlOiA8YSBocmVmPSJodHRwczovL2ZvcnVtcy5ub3ZlbGwuY2 9tL21lbWJlci5waHA/dXNlcmlk
    > PTU3MjYyIj5odHRwczovL2ZvcnVtcy5ub3ZlbGwuY29tL21lbW Jlci5waHA/dXNlcmlkPTU3MjYy
    > PC9hPjxicj5WaWV3IHRoaXMgdGhyZWFkOiA8YSBocmVmPSJodH RwczovL2ZvcnVtcy5ub3ZlbGwu
    > Y29tL3Nob3d0aHJlYWQucGhwP3Q9NDc5MDE3Ij5odHRwczovL2 ZvcnVtcy5ub3ZlbGwuY29tL3No
    > b3d0aHJlYWQucGhwP3Q9NDc5MDE3PC9hPjxicj48YnI+PGJyPj xicj48L2Rpdj48L2Rpdj48L2Rp
    > dj48L2Rpdj48L2JvZHk+PC9odG1sPg==
    > --____YIFONLXFRFYYQLYMNALF____--
    >
    > --____JOLVDYQQHCXKLYAOQDJX____--
    Sorry, but I'm not sure this can be easily cleared... If possible? I'll ask
    Novell.
    Nops

  • How to clear the power up reset states

    my pci 7344 is  in the power up reset state. How to clear the power up reset state of an 7344 programmatically. Using clear power up reset state in block diagram doesnt seem to work. Give a possible solution

    This is the VI I use to initialize a motion controller. It clears the power up reset if needed and then initialize the controller with the specified configuration (previously created with MAX).
    Sorry for the french comments.
    Attachments:
    Initialiser interface avec gestion power up reset (LV8).vi ‏26 KB

  • Hello,  I want to know how to clear the memory or buffer cash from my mac book?

    Hello,  I want to know how to clear the memory or buffer cash from my mac book? When I look at the series, it puts more and more time to load. Thank you.
    Sorry for my english, i talk french.

    Ok ce n'est pas le problème alors.
    Boot à partir de votre disque d'installation et de lancerl'utilitaire de disque. Le disque de démarrage peut être nécessaire de réparation.
    Using Disk Utility to verify or repair disks
    Ok that's not the problem then.
    Boot from your install disc and run Disk Utility. The startup disk may need repairing.

  • How to Clear Cache after Install / Uninstall ?

    I love Installing / Uninstalling in Windows Phone ( Lumia 800 - WP7.8)..
    its so easy... any other OS cant beat it.. But i want to know how to clear the Cache (if at all exists)?
    i think there should be some way to clear it??
    and what's the best antivirus or malware or spyware for WP7.8?
    Solved!
    Go to Solution.

    You dont need spyware or antivirus.
    TO CLEAR CACHE ON BROWSER?
    From the Home screen, tap Internet Explorer.
    From the lower right corner of your screen, locate and tap the icon consisting of three dots.
    Select settings.
    Tap delete history.
    Tap delete to confirm.
    Close and relaunch your browser.
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

  • How to clear completed reminders in iCal

    Has anyone figured out how to clear completed (checked done) reminders in iCal?

    Joe,
    That clarifies the question for me. Go to iCal>Preferences>Advanced and make your choices:

  • How to clear fields used in SAP SCRIPT

    hi all,
       i want to clear all fields which i have printed on my sap script.
    i have passed the values to these  fields by useing function module
    'TEXT_SYMBOL_SETVALUE' in se38 abap program.
    i have also used clear statement in my abap program to clear those fields but it cant working. is there any statement in SAPSCRIPT to clear fields.
    if so then please give me its an urgent. 
    thanks in advance.
    Vinod.

    hey,
    I understand that in a text-symbol when u set the values once, then u print them. for the second time when u want to print with diff values, then it will automatically get refreshed when u open it again.
    So use code like this.
    PERFORM OPEN_FORM USING FORMNAME.
    PERFORM WRITE_FORM USING TEXT_SYM.
    PERFORM CLOSE_FORM
    for the next run...
    at this instant all the text elements will get refreshed.
    PERFORM OPEN_FORM USING FORMNAME.
    PERFORM WRITE_FORM USING TEXT_SYM.
    PERFORM CLOSE_FORM
    Cheers,
    Sam

  • How to clear text fields when the user navigates back to the screen

    Hi,
    Does anyone have any idea on how to clear the text input fields and dropdown boxes when the user navigates back to the screen, say for e.g. create screen?
    My issue is that i have plenty of fields in the create screen within a form. Is there a way to avoid programaticaly blanking out every field and just do it at the form level using an api to reset to a state before the user entry?
    Thanks

    This code allows you to make it more generic, and you would need to tweak it if there are more than TextInput controls, but it should provide some ideas.
    As far as using states, you could use SetProperty to set the text to empty, but that might be messier.
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
      <mx:Script>
        <![CDATA[
          import mx.containers.FormItem;
          import mx.controls.TextInput;
          import mx.events.IndexChangedEvent;
          import mx.core.Container;
          private function clearSreen(evt:IndexChangedEvent):void{
            var view:Container = tn.selectedChild as Container;
            for each(var child:Object in view.getChildren()){
              if(child is FormItem){
                var subchild:DisplayObject = child.getChildAt(0);
                if(subchild is TextInput){
                  TextInput(subchild).text = "";
        ]]>
      </mx:Script>
      <mx:TabNavigator id="tn" resizeToContent="true"
        change="clearSreen(event)">
        <mx:Form id="frm1" label="View Number One">
          <mx:FormItem label="First name:">
            <mx:TextInput/>
          </mx:FormItem>
          <mx:FormItem label="Last name:">
            <mx:TextInput/>
          </mx:FormItem>
        </mx:Form>
        <mx:Form id="frm2" label="View Number Two">
          <mx:FormItem label="Address1:">
            <mx:TextInput/>
          </mx:FormItem>
          <mx:FormItem label="Address2:">
            <mx:TextInput/>
          </mx:FormItem>
          <mx:FormItem label="City:">
            <mx:TextInput/>
          </mx:FormItem>
          <mx:FormItem label="State:">
            <mx:TextInput/>
          </mx:FormItem>
          <mx:FormItem label="Zip code:">
            <mx:TextInput/>
          </mx:FormItem>
        </mx:Form>
      </mx:TabNavigator>
    </mx:Application>
    If this post answers your question or helps, please mark it as such. Thanks!
    http://www.stardustsystems.com
    Adobe Flex Development and Support Services

Maybe you are looking for

  • Satellite P50T-A-115 after Win8.1 upgrade does not play sound over HDMI

    I have a newly acquired Satellite P50T-A-115, upgraded to win 8.1, all drivers and upodates suggested are installed. I get no sound on my home movie system, playing from my laptop, while the video is good. The sound comes from the laptop internal spe

  • Installing the Content CD?

    I'm reinstalling CS3 (I know it's an old one) after a crash. It's been a while and I'm trying to install the Content CD. It doesn't seem to install or automatically run. How do I install this? Should it be in the Bridge? Thanks!

  • FIELD SELECTION KEY

    Hi,        I have a query regarding Field Selection Key. I want to know the difference between Field Selection Keys AKTH, ME21, and ME21N. I have observed during Testing that, AKTH and ME21N are almost the same. But, I like to know the difference. Wh

  • Javax.jms.JMSException: Not supported in XA-backed sessionoutside global tx

    I am trying to setup OracleOJMS provider and tries to access queue and post to queue from a normal jsp for testing. I am getting the following javax.jms.JMSException: Not supported in XA-backed session outside global transaction      at oracle.j2ee.r

  • PLEASE HELP INSTALLING SHOCKWAVE

    hello! i use windows xp- sp2 64bit and while installing shockwave 10, i get the following error message... the error says: "Could not load DLL library C:\Windows\system32\Macromed\Shockwave10\gi.dll. This application has fail to start because the app