Setting an attribute back to null

Hi All.
During provisioning to certain resource, I set an attribute to some value (It gets set properly), Now I want to set it back to null(empty string). It is not setting back to null and still displays the old value
<set name='user.global.attr1'>
<null/> or <s></s>
</set>
Is there any way to set the attribute value back to null or clear that particular attribute
Thanks,

Any update on this, Please reply

Similar Messages

  • How to set session attributes in a bean?

    How do I set a session attribute in a server-side bean?
    I'm not sure if I asked the question the right way. What I meant is, while it's easy to set session attributes in a JSP page (session.setAttribute("sessionname", "sessionvalue")), I'd want to set such an attribute within a server-side bean defined in this web application. But what is the syntax for doing it?

    Here a simple bean that stores something in the session and retrieves something from it.
    import javax.servlet.http.HttpSession;
    public class TestBean {
      private String value;
      public void doSomething(HttpSession session, int a, int b) {
        if (a+b > 0) {
          session.setAttribute("ab",Boolean.TRUE);
        } else {
          session.setAttribute("ab",Boolean.FALSE);
      public void init(HttpSession session) {
        if (session != null) {
          Boolean b = (Boolean)session.getAttribute("ab");
          if (b == Boolean.TRUE) {
            value = "a + b is greater than zero";
          } else {
            value = "a + b is not greater than zero";
        } else {
          value = "no session";
      public String getValue() {
        return value;
    }In your JSP, use something along the lines of :
    <%
      TestBean bean = new TestBean();
      bean.init(session);
      bean.doSomething(session,1,2);
    %>If your bean only lives during one request, you can pass the session to the constructor, which stores it in a private variable. This saves passing the session each time.
    Hope this helps,
    --Arnout                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Setting property attribute values for multiple selected objects.

    Hello,
    Is there an easy way to set the attribute property values for more that one selected Table Operator Attribute (column) at a time. For example the target table has over 100 columns but I only want to INSERT/UPDATE 10 of those columns. The generated MERGE, INSERT and UPDATE statements will perform DML on all of the columns in the target table, setting the 90 columns with no mapping set to NULL. This is due to the Loading Properties 'Load Column when Updating Row' and 'Load Column when Inserting Row' both default to Yes. I would like to select multiple Attributes in the Table Operator and change the 'Load Column when Updating Row' and 'Load Column when Inserting Row' to No. This is similar to what you were able to do in Oracle Forms 9.0 Designer select multiple Items in a Block and change the properties en-masse.
    Thanks

    Hi,
    Using OMB scripting to set attribute properties in a data mapping sort of defeats the purpose of utilizing a graphical user interface to define and set properties for a data mapping? Surely the GUI data mapping tool was created to get away from writing scripts and scripting would also require that you know the name of the data mapping, table operator and the set of attribute names for which you have to write one line of script to set each property value, i.e. 90 lines to set 90 attribute values.
    Cheers,
    Phil

  • How to set a attribute value of a sub node binded to a table.. pls respond.

    Hi friends,
    I have context defined like this.
         Head_node ( table 1)
              Item_node ( table 2, sub node ).  ( now this im saving in global internal table).
    so now when i hit save button, im passing my internal table (it has col1- sales order no, col2 item details(table type, which can have more than one record) to a FM, to create sales order.
    My sales order is getting saved.
    But the function module will return some new values (like sales order number, item number etc).
    Now i want these values to be updated in my context.
    Meaning whenever after that i do get_attribute, i should get these new (sales order no, item no ) also.
    I dont know how to set the context values of sub nodes , so im missing these values.
    kindly respond back to me..
    thanks in advance,
    Niraja

    Its very simple.
    Follow these steps. e.g you want to get the new sales order number. Define a attribute in ur node (or set of attributes in ur case as per reqruirement) say new_so_number.
    Check your FM, if its returning new_so_number then it's fine, otherwise you have to change the FM to return the new_so_number or you have to get from db table somehow, which best suites your req.
    So once you have new_so_number after calling the FM, say in lv_new_so_number field. Then write this code to set the attribute (change the variables as per your context attributes)
    DATA lo_nd_head TYPE REF TO if_wd_context_node.
      DATA lo_el_head TYPE REF TO if_wd_context_element.
      DATA ls_head TYPE wd_this->element_head.
      DATA lv_new_so_number LIKE ls_head-new_so_number.
    * navigate from <CONTEXT> to <HEAD> via lead selection
      lo_nd_head = wd_context->get_child_node( name = wd_this->wdctx_head ).
    * get element via lead selection
      lo_el_head = lo_nd_head->get_element(  ).
    lv_new_so_number = new_so_number. " (You got this as a exporting parameter of FM etc..)
    * get single attribute
      lo_el_head->set_attribute(
        EXPORTING
          name =  `NEW_SO_NUMBER`
          value = lv_new_so_number ).
    Hope it works.

  • How to set the attributes of request in JSF Programming

    Hi All,
    for setting the attribute values for session, we do something like below.
    setValue("#{sessionScope.PREFERED_TOTALDAYS}",request.getParameter("txtDays")!=null?request.getParameter("txtDays"): ""+jobRowSet.getInt("PREFERED_TOTALDAYS"));
    Now my query is for setting the attribute values of request what is the code I need to use??
    thanks,
    sudhakar

    Just replace "sessionScope" with "requestScope". That will set the attribute request scope.
    Regards
    -Jayashri
    Creator team.

  • Peformance of setting JVM attribute or callback.

    I have a program that receives feeds in the native world and then calls the JVM through JNI with a callback like receivedFeed(attr1, attr2 ....attr20). There are a large number of attributes being passed back for each callback.
    The question I have has to do with performance.
    Is it faster to use this callback approach where the attributes are put in the signature and then reassembled on the java side into an object? Compared to directly setting each attribute on the Java object from within the native world and then prompting the JVM with a callback like updated();

    Very true. I would normally agree. Wrap the parameters in an object to minimize the number of arguments and make it flexible.
    Specifically, I am thinking about performance and I am willing to compromise a bit on the beauty of the solution, if it is faster.
    I have receiving a feed that has about 20 data items. Mostly ints and longs, and maybe a string. This format is relatively fixed and is not likely to change any time soon. If it does, it is all of my own code so the changes are easy.
    In the parameter passing approach, my assumption is that I would have a callback into the JVM with a long signature like
    receiveFeedCallback(jint1,jint2,jint3,...jint20);
    For the object wrapping approach, I would first have to construct an object. and then do the callback:
    jvalue args[4];
         args[0].i=(int) 0;
         args[1].i=(int) val1;
         args[2].i=(int) val2;
         args[3].i=(int) val3;
    jobject trans = jniENV_->NewObjectA(clazz,"<init>",args);
    jniENV_->CallStaticVoidMethod(jObj,_method_JNITEST_callback,feedTransaction);
    In the end, I probably need to know what the overhead of creating a class in Java vs. C++ is compared to the parameter passing approach.
    I may be doing this callback about 20(or more) times per millisecond. About 85% of the time in my program is on this one step so I would like to try the fastest approach possible.
    In the end, I am trying to write a test case to test the performance....which leads me to another questions and likely another thread in the JNI world....to be posted soon.
    Thanks for the help.

  • Issue Setting Resource Attributes via Workflow Process

    I'm currently trying to set resource attributes via a workflow process, but for whatever reason the attribute is not detected as "changed" and the update object has nothing about the attribute. I'm wondering if I'm just doing something wrong with the way I'm setting it, or if I'm missing a piece to apply the upate.
    What I'm doing is...
    1. Checking out the user view
    2. updating the attribute via code something like this...
    <set name='user.accounts[ldap].attributeIWantToChange'>
    Logic in here
    </set>
    3. then I'm checking the view back in.
    Anyone know why this isn't working(I can set other attributes like waveset.roles fine this way)?
    Edited by: UNO-AD-HM on Jul 6, 2009 12:54 PM

    Figured it out, have to load a different form in when I check the view out, the tabbed user's form will not update resource attributes.

  • Setting camera attributes with the PCI-1405

    I have the PCI-1405 Imaq card.  I was wondering how I set camera attributes like gain and exposure time.  Every time I try to use the set camera attribute VI I get an error message saying the attribute is not valid.

    khsay--
          Installing the driver will allow the framegrabber (1405) to communicate with the computer.  I want to verify that you are using Measurement and Automation Explorer (MAX) to test the sanp/grab features of your camera.  This will allow you to directly interact with the hardware.
          If you are, and this is where you are getting the extract image error.  First double-check that you know what kind of communication standard the camera uses (for instance, CCIR or RS170) and make sure that this is selected in MAX. 
          The camera might not be using a known standard, in which case you will need a camera file that tells the computer and framegrabber how to interpret the camera's information and signal.  You can look in MAX and see if the camera is listed, if it is the camera file is   If not, you can try going to www.ni.com/camera and see if you can get a camera file there. If not you will need to try contacting the manufacturer to see if they have one, and if not you will need to create one using the camera file generator from the ni.com/camera. 
         Just let us know if this information helped to solve the issue and if not reply back so that we can help.  Also, in the future if you have a new issue you might consider posting in a new thread.
    Regards,
    John H.
    Applications Engineer
    National Instruments

  • A 30GB incremental backup ("Bulk setting Spotlight attributes failed")

    Greetings all
    I have TM set only to back up my home account which lives on a separate hard drive. This is the only drive backed up by TM (the system drive is cloned using SuperDuper instead). The total size of the home account drive is 190GB.
    All day today, I have been working with images, creating roughly 1.5GB of new data. And TM has dutifully backed up this new data in a few incremental backups.
    This evening TM suddenly backed up 30GB of data, 9722 files, from the home account drive. I haven't touched anything on this drive, except my image folders.
    Is there any way to find out more precisely what was backed up so I can remove the duplicates from within TM?
    I've scoured Console and the TM Buddy widget for info on what was copied but can't find anything.
    I have looked in the backups.backupdb folder. The relevant folder with the time stamp of the big backup is listed in the Get info window as 4.5GB. Some other backup folders are listed as 180-190GB.
    One thing to note:
    The culprit incremental backup left 8 *"Bulk setting Spotlight attributes failed"* messages in the log. I have never seen these before. Of course, TM is excluded from Spotlight and has been so for a long time.
    I'm not running any virtualisation, Entourage or such. I haven't made any hardware changes recently.
    Thanks for any insight.
    /p

    You might want to download the TimeTracker app, from www.charlessoft.com.
    It shows most of the files saved by TM for each backup (excluding some hidden/system files, etc.).
    Thanks Pondini. TimeTracker is very helpful. It shows that what was backed up was just under half of my iTunes library. There's no rhyme or reason as to why the music of certain artists was backed up.
    I can only think this has to do with is the installation of iTunes update 8.1 which happened a few days prior to the big backup. I can't remember if I've used iTunes since. Maybe that made some change to the iTunes library so TM thinks certain music is new?
    That appears to be Spotlight and TM falling over each other. Try excluding your TM disk from Spotlight (System Preferences > Spotlight > Privacy).
    Actually TM is always excluded from Spotlight. In fact, I remember verifying this before I cloned my system onto an external drive prior to installing the iTunes and Frontrow updates.
    I might simply start all over with TM.
    This reminds me of some thoughts on backup strategy I've had recently. Basically, I've been toying with the idea of using only one folder, for instance the Desktop, as the "active" folder into which I would put stuff I'm working on, which is mainly images and documents. TM could be set only to back up this folder in order to protect against accidental deletions.
    Once I'm done with a file, I would move it to the final archive area. Rather than using TM for that archive, I would be using SuperDuper's schedule function.
    /p

  • Time machine Bulk setting Spotlight attributes failed

    Hi,
    I'm having big, ongoing problems with a customers iMac, 10.6.7, when trying to use Time Machine.
    All i want to do now is start afresh.  And want to make sure i clear out everything.  It's no longer the priority to find out what is the cause.
    Here's the setup, and what i plan to do.  If i miss anything, please point out.
    the setup:
    iMac, connected via ethernet, to a Ethernet over Power plug (Airport switched off on iMac)
    EoP plug then connected to Time Capsule, which is in turn connected to the modem
    Internet connection is fine / other mac connected direct to TC backs up fine.
    Mac with the problem (unfortunately i only get the info second hand, after i've visited):
    TM Sys Pref Pane reports No errors, just that the last completed back up was 7th June
    When TM goes through process, it reports 'Preparing xxxxxxxxx items'
    Then takes forever to back up a reported 40GBs, reports something like '4KB completed', then '225MB completed, then back to 10KB completed...', then 'Calculating Changes...'
    There's never any error message, still reports last back up to be 7th of June.  Finally installed backup buddy widget and got the 'bulk setting Spotlight attributes failed' and "Stopping back up to allow ejection of back up destination disk".
    Things tried:
    repairing sparceimage of back in disk utility
    deleting prefs for TM in /Library/prefs
    Tried forcing new back up (without deleting the old one) by renaming the sparcebundle to '...old.sparcebundle' - it carried on trying to back up to the old one, as indicated by the Date Modified in the Get Info window, and lack of new .sparcebundle on TC.
    What i plan to do, to thoroughly reset Time Machine, when i visit (I won't have time /opportunity to hang around, wait for anything.  I just do this sequence of events, then i have to leave, not by choice.  So it's important i get it right, do a thorough reset.):
    Switch off TM on problematic iMac
    Delete the .sparcebundle for the problematic iMac from the TC
    Delete /Library/Prefs/com.apple.TimeMachine.plist on problematic iMac
    Rebuild spotlight index cache: sudo mdutil -E
    Shutdown
    Unplug EoP plugs for 30 seconds / replace ethernet cables
    Restart iMac
    Turn on TM, set up to backup to TC
    Now, surely, this is starting totally afresh.  It is assumed the TC is ok, because another iMac directly connected backs up, no problem, and the SMART status of the TC drive is not reporting problems.
    If i'm missing anything, any comments, or just reassurance, would love to hear comments.  This has been quite traumatic!  And is dragging on way too long, and made more difficult by the fact i can only visit in short time frames, and the results take so long to come through.
    Many thanks,
    C

    Col Kav wrote:
    Ah, ok,  this would be system.log, and then filter 'backupd' ?
    Yup.  And when you find a problem, it might be worth noting the time, removing the filter, and see if there are other messages at about the same time that might be contributing to the problem.
    But as it's going via Ethernet-over-Power plugs, which are 200mbps, excuse my patchy knowledge, but would this account for slowness?  Speed isn't a priority, i mean, just as long as everything got backed up.
    Of course -- they're getting 10% of the speed.  Earlier you posted "I know Time Machine generally takes ages to do the first backup, but is there any reason why it should take 20 minuites+ to make the backup disk available?"  20 minutes is certainly a long time, but if they're only getting 10% of the speed they should, that's gotta be a big part of it.
    The thing is, the internet access is fine, and this customer has offline backups with carbonite.
    If they're trying to do backups and any serious internet access over the same "pipe," it's gonna be very slow. Depending on what they're doing, they may not notice how slow response time is.
    The external disk isn't an option.  i mean, he has the TC, he wants that to work.  Which is fair enough.
    Even if it's like molasses? 
    Can you even temporarily connect the iMac directly to the TC via Ethernet?  If so, see how much faster it is.
    I don't see the point of the TC.  Is it being used wirelessly for anything at all? 
    Since everything's connected by cable anyway, why not plug an external HD into the iMac? 
    From your first post:
    When TM goes through process, it reports 'Preparing xxxxxxxxx items'
    Then takes forever to back up a reported 40GBs, reports something like '4KB completed', then '225MB completed, then back to 10KB completed...', then 'Calculating Changes...'
    That sounds like TM is simply making two "passes," which is common.  If additional changes are made while it's doing the first one, it will make a second pass to catch up what's ordinarily small and quickly backed-up.  You'll see that in the logs.
    But the network or whatever problem is preventing a completed backup; so on each backup, TM isn't sure it got everything the last time (you'll see a UUID message).  Because of that, it will do a "deep traversal," with a message, comparing everything on the Mac to the most recent completed backup, to figure out what's changed and needs to be backed-up.  With an excruciatingly slow connection, that's going to take forever.  And that will be repeated on each backup attempt until one completes normally.

  • How can I set my WebI filters to Null and not Null

    Folks,
    I have created a report in WebI and now I am to set up some filters as Null and some Not Null.
    How can I set my WebI filters to Null and not Null?
    Regards,
    Bashir Awan

    Hi,
    As you said you could do it at the report level and also at the universe level.
    One more way is to create the filters in the universe levele and add them in thequery filter.
    Ex: in the filter you need to write :
    Column1 is null and and column 2 is not null etc.
    Hope this will help.
    If this did't  solve your problem then please explain it in detail.
    Cheers,
    Ravichandra K

  • Need Help ::  Current row attribute value returning null

      Hi Frds,
    I am facing the problem that
    Current row attribute value returning null............ even though value is there..... plz.. he
    This is the code in PFR
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    if (pageContext.getParameter("queryBtn")!= null)
        String  pPersonId = pageContext.getParameter("ctrlPersonId");
         String rowReference = pageContext.getParameter(EVENT_SOURCE_ROW_REFERENCE);
         OptionsVORowImpl curRow = (     OptionsVORowImpl) am.findRowByRef(rowReference);
        String dtlsItem =  (String)curRow.getFlexValue();   /*  this is returning null value */
    /*  here creating  the hashmap and calling the page with the hashmap*/
    Thanks & Regards,
    jaya
    Message was edited by: 9d452cf7-d17f-4d1e-8e0e-b22539ea8810

    Hi Jaya,
    You want to catch Flexfield values?
    Try below code for catch value.
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    if (pageContext.getParameter("queryBtn")!= null)
    OADescriptiveFlexBean dfb = (OADescriptiveFlexBean)webBean.findChildRecursive("flexDFF"); //get the DFF bean
    OAWebBean dffbean = (OAWebBean)dfb.findChildRecursive("flexDFF0"); //get the field that applies to the attribute1 column that is being rendered
    OAMessageStyledTextBean Stylebean = (OAMessageStyledTextBean)dffbean;
    String dtlsItem  = (String)Stylebean.getText(pageContext);
    /*  here creating  the hashmap and calling the page with the hashmap*/
    Thanks,
    Dilip

  • Problem with setting custom attribute and it being searchable

    I'm having an issue with setting a custom attribute and having it be searchable using Portal 10.1.4. The situation that we have is that we initially added a bunch of files to Oracle Portal using webdrive. Later on, we decided that we needed another custom attribute called "Pinned Item" that will be used for searching (boolean value) and gave it a default value of false. The attribute was then added to the "File" item type in the "Shared Objects" group.
    It appears that since this attribute wasn't initially available on the file object, we couldn't search on it so we decided to set it programatically. First, I tried using wwsbr.set_attribute but it errored out seemingly because the value wasn't set in the first place. If I set a value first by using the web front end, I could then use the set_attribute procedure.
    So, I moved on to using wwsbr_api.modify_item and it appears to set it (although everything is being set to false until I changed it to "text" instead of "boolean" which is OK because that's what I wanted anyway... see metalink bug 390618.1). I'm using the method outlined in metalink doc 413079.1. When I do set it to a "1", and edit the item the check box is checked indicating that it is set correctly. And if I just click "OK" to save the attributes after I open it everything works like it should.
    However, the advanced search (and custom search portlet) and the search APIs are not picking it up. I'm not sure if I'm hitting Metalink bug ID 5592472 or not as that's using the "set_attribute" procedure instead of the modify_item procedure. And their "workaround" of setting the attribute in the UI isn't really feasible for a couple thousand files.
    So far I've tried the following things to get it working:
    1. I am calling wwpro_api_invalidation.execute_cache_invalidation
    2. I have executed wwv_context.sync
    3. I cleared the page group cache
    4. I invalidated all of the web cache
    Does anyone else have any other suggestions?

    I'm having an issue with setting a custom attribute and having it be searchable using Portal 10.1.4. The situation that we have is that we initially added a bunch of files to Oracle Portal using webdrive. Later on, we decided that we needed another custom attribute called "Pinned Item" that will be used for searching (boolean value) and gave it a default value of false. The attribute was then added to the "File" item type in the "Shared Objects" group.
    It appears that since this attribute wasn't initially available on the file object, we couldn't search on it so we decided to set it programatically. First, I tried using wwsbr.set_attribute but it errored out seemingly because the value wasn't set in the first place. If I set a value first by using the web front end, I could then use the set_attribute procedure.
    So, I moved on to using wwsbr_api.modify_item and it appears to set it (although everything is being set to false until I changed it to "text" instead of "boolean" which is OK because that's what I wanted anyway... see metalink bug 390618.1). I'm using the method outlined in metalink doc 413079.1. When I do set it to a "1", and edit the item the check box is checked indicating that it is set correctly. And if I just click "OK" to save the attributes after I open it everything works like it should.
    However, the advanced search (and custom search portlet) and the search APIs are not picking it up. I'm not sure if I'm hitting Metalink bug ID 5592472 or not as that's using the "set_attribute" procedure instead of the modify_item procedure. And their "workaround" of setting the attribute in the UI isn't really feasible for a couple thousand files.
    So far I've tried the following things to get it working:
    1. I am calling wwpro_api_invalidation.execute_cache_invalidation
    2. I have executed wwv_context.sync
    3. I cleared the page group cache
    4. I invalidated all of the web cache
    Does anyone else have any other suggestions?

  • Help with itunes set up and back up

    Hi,
    Up until recently, I have always kept my itunes on my external hard drive, mainly because I have 2 computers (a desktop and a laptop) and thought it was an easier way to move between the 2 and not get too confused.  However, a couple of months ago I lost everything off my hard drive when it was dropped, and have been itunes-less ever since.  I've now finally got round to setting it all back up - I have an old external hard drive with most of the itunes still on, but I have still lost quite a few of the songs/albums I've purchased since I swapped to the newer one that's now broken (I've heard that Apple MAY give you one, and only one, chance to re-download songs that you've purchased if you beg, but haven't tried that yet).
    So, currently I have about 7000 items in my library, but they are all on my old external hard drive and I'm not sure what is the best way to set itunes up again and import all these.  I think my friend originally set up my itunes to read files from my external hard drive, but my library is still on my C Drive (so when I open itunes it still has all my songs but can't locate them), and obviously this probably turned out not to be the best way to keep everything, so I guess I need the external hard drive as more of a back up, rather than the ONLY copy.  I tried to import the files in, but ended up with 2 copies of everything (I'm really not the best at understanding itunes!!!).
    Basically my question is, what is probably the best way to store my itunes across 2 computers, AND have a back up copy on an external hard drive, and how do I go about setting it all up?  I want to be able to share the playlists and any newly purchased music across both computers without constantly getting myself in a muddle trying to copy various files etc.
    Can someone help?  I think I have itunes 10, and run Windows Vista on both computers. 
    Thanks

    This might help you troubleshoot.
    http://support.apple.com/kb/HT4367
    Good luck!!

  • Setting an attribute value of a tag equal to a String variable in scope

    Hi,
    I don't think this is possible because I get an "expression not allowed" error when trying it. But long story short I'm trying dynamically set attribute values on a taglib. For example:
    <%
    String value="attributevalue";
    // set the attribute of the tag below equal to this variable value
    %>
    <tag:mytaglib name="<%=value%>"/>
    I looked at the generated jsp page and seems like the variable "value" is not in scope of the method that processes the tag. Does anyone have any ideas or can confirm that there is no way to do this. Thanks!

    You can do it.
    In your tag library (*.tld) file, have an entry as:
        <attribute>
            <name>name</name>
            <required>true</required>
            <rtexprvalue>true</rtexprvalue>
        </attribute>This should do the trick.
    Let us know if it worked for you.
    Thanks and regards,
    Pazhanikanthan. P

Maybe you are looking for