Attribute cant be set?

hai, i tried to set an attribute in my servlet program. but it is not set. i have used totally five setAttribute functions,but among them only four sets the attribute. is there any limit for setting the attributes through servlet?
DisplayClass dispClass=new DisplayClass();---------------------->my class which control the look and feel;
ArrayList tempArray=objQuery.retrieveData(vecValue,table,2);---->tempArray is not null.it retrieves value.
strCombo=dispClass.populateCombobox(tempArray);----------->returns a string to strCombo
System.out.println("Return value"+strCombo);-------------> the return values is printed here and it is not null.
req.setAttribute("strCombo",strCombo);---------------------> this attribute is always set null. here it is not setting the value in strCombo.
objQuery is the object of the class which handles all sql functionalities.
anybody who knows the solution please help me out. thank you...
with warm regards and love,
Nimil P

use
request.getSession().setAttribute("key", "value");instead of
request.setAttribute("key", "value");

Similar Messages

  • Get values from attributes of property sets

    Hi!
    Anyone know how to obtain values of attributes from property sets? Now I am using directly the EJBs but I would like to use tags (I found <ps:getPropertyNames> but it doesn´t give me the values) Any idea?
    Thanks,
    Guillermo

    Guillermo:
    I am not sure if this is exactly what you mean but you can get the values of properties with the user management tags <um:getProperty> and <um:getPropertyAsString>. You are correct, though, in that the
    <ps:getPropertyNames> tag only returns the names of the properties.
    Ted
    Guillermo wrote:
    Hi!
    Anyone know how to obtain values of attributes from property sets? Now I am using directly the EJBs but I would like to use tags (I found <ps:getPropertyNames> but it doesn´t give me the values) Any idea?
    Thanks,
    Guillermo

  • How to Change an Attribute of A SET TYPE in SAP CRM

    Hi ,
    I have created an ATTRIBUTE through comm_attrset, and assigned it to a SET TYPE. Now I wanted to change the data type of this attribute. Its not allowing me to delete it, as its already assigned to teh SET TYPE. Moreover the set type is also not getting deleted as its assigned to a category ID.
    Kindly let me know how can I change the attibute , if any one of you have come accross such situation.
    Thanks
    Asish
    Edited by: Asish Dash on Sep 8, 2009 10:57 AM
    Edited by: Asish Dash on Sep 8, 2009 10:58 AM

    Hi Manish,
    From my experience, you cannot change an existing attribute of a set type (esp. when it has a dependency).
    You need to delete the attribute, save the changes and then re-create the attribute with new value table.
    Also remove any dependencies before deleting the attribute.
    Regards,
    Vartika

  • EEWB (attributes from product set type)

    Hi gurus,
    I have a question about EEWB. Could you please help me.
    There is possibility to add components (attributes from product set type) at item level:
    Business object - BUSINESS_TRANSACTION
    Extension Type - ADD_NEW_ITEM_COMPONENT.
    I’ve created an extension with certain set type (it consists of 2 attributes). Everything was ok.  New fields with 2 attributes have been added to new tab in a sales order’s item.
    But then I’ve added 1 new attribute to the same set type. So I think this new attribute is to appear on the same tab with 2 other attributes. But it doesn't’t!
    I’ve regenerated my extension, I’ve recalled wizard for this extension. Nothing has changed. There is still only 2 attribute in the tab.
    So is it normal situation and is it necessary to create a new extension in order new fields to appear in a tab? Or I can do something else without creating the new extension?
    So could you help me and give any solutions. Appreciate any help.
    And thanks in advance.
    Sunny.

    It works already.

  • How to set Max Rows when I search extended attribute in Admin Setting?

    When I search extended attributes in Admin Setting, the default max row is 500.
    Can I change the Max rows' Setting?
    Thanks

    We don't have a feature config for this in the core application, however you can adjust the 500 limit using a ready report.  Ready Reports is a solution pack that allows you to create saved searches in the form of reports.  You can get the ready reports solution pack in the latest extensibility pack.

  • PPR - Additional attributes on existing Set type are not displayed.

    Hi Expert,
    I have requirement to add some fields to Product to display in PPR product tab. I have added attributes to existing Set type which is already configured to display on PPR - Product tab. After adding the new attributes, I regenerated Set type but still in CRMM_PPR I don't see these new fields although the existing attributes of set type are on screen.
    Any idea what I am missing?
    Thanks,
    Cheers,

    Can you show the relevant JSP code and set/get methods in the bean?
    Sometimes this error is caused by capitalization. e.g. a request param of "myName" calls setMyName(). Also, your bean must have a no arguments constructor.
    Also, if you don't specify an action,the form submits to the current URL so you should be ok. Are you sure that the JSP runs when the user submits the form?

  • The MDX function CURRENTMEMBER failed because the coordinate for the attribute contains a set

     
    How to handle this error: The MDX function CURRENTMEMBER failed because the coordinate for the attribute contains a set. when executing MDX query:
    SELECT (
    { [Measures].[Amount]}
    )ON COLUMNS,
    [OrganizationUnits].[Description].[Description].MEMBERS,
    [OrganizationUnits].[IsCURRENT].[IsCURRENT]
    ) ON ROWS
    FROM
    (SELECT [OrganizationUnits].[Description] ON 0
    FROM
    [CubeName]
    WHERE(
    {[OrganizationUnits].[Description].&[Unit1],[OrganizationUnits].[Description].&[Unit2]}
    Thanks!!

    Hi Arth81,
    Please try the query below.
    WITH MEMBER MEASURES.IsCURRENT AS [OrganizationUnits].[IsCURRENT].[IsCURRENT].CURRENTMEMBER.NAME
    SELECT
    { [Measures].[Amount],MEASURES.IsCURRENT} ON COLUMNS,
    {[OrganizationUnits].[Description].[Description].MEMBERS,
    } ON ROWS
    FROM
    (SELECT [OrganizationUnits].[Description].MEMBERS ON 0
    FROM
    [CubeName]
    WHERE(
    {[OrganizationUnits].[Description].&[Unit1],[OrganizationUnits].[Description].&[Unit2]}
    Regards,
    Charlie Liao
    TechNet Community Support

  • I cant find setting and appstore icon on my ipad

    i cant find setting and appstore icon on my ipad mini, any good suggestion please

    Search for the apps by swiping from screen to screen or by using Spotlight. If you are running iOS 7 swipe down form the middle of the home screen to get to the search, if you are using an earlier iOS, swipe to the right form your first home screen to get to the search. Type in Settings. When the app appears tap on it and it will open.
    For the App Store - Check Settings>General>Restrictions and make sure that you didn't disable it.
    You can also reset the home screen layout and the icon will reappear - but the home screen will return to the way that it looked when you first activated your iPad.
    Settings>General>Reset>Reset Home Screen Layout.

  • Setting value for attribute  'PO_NUMBER_SOLD'  using setter method

    Hi Experts,
    I need to set the value of a screen field according to some condition. I am using setter method of this attribute to set the value but it is not getting changed.
    I have written following code in DO_PREPARE_OUTPUT method of implementation class ZL_ZZBT131I_ZCREDITCHECK_IMPL using setter method of attribute
    Get Referral Authorization Code
          lv_val1 = me->typed_context->crechkresph->get_po_number( attribute_path = 'PO_NUMBER' ).
          me->typed_context->crechkresph->set_po_number( attribute_path = 'PO_NUMBER'
                                                            value     = ' ' ).
    while debugging I found that in method set_po_number set_property method has been used:--
    current->set_property(
                          iv_attr_name = 'PO_NUMBER_SOLD' "#EC NOTEXT
                          iv_value     = <nval> ).
    In set_property method  following code is getting executed
    if ME->IS_CHANGEABLE( ) = ABAP_TRUE and
               LV_PROPS_OBJ->GET_PROPERTY_BY_IDX( LV_IDX ) ne IF_GENIL_OBJ_ATTR_PROPERTIES=>READ_ONLY.
              if <VALUE> ne IV_VALUE.
                if ME->MY_MANAGER_ENTRY->DELTA_FLAG is initial.
                first 'change' -> proof that entity is locked
                  if ME->MY_MANAGER_ENTRY->LOCKED = FALSE.
                    if ME->LOCK( ) = FALSE.
                      return.
                    endif.
                  endif.
                flag entity as modified
                  ME->MY_MANAGER_ENTRY->DELTA_FLAG = IF_GENIL_CONTAINER_OBJECT=>DELTA_CHANGED.
                endif.
                ME->ACTIVATE_SENDING( ).
              change value
                <VALUE> = IV_VALUE.
              log change
                set bit LV_IDX of ME->CHANGE_LOG->* to INDICATOR_SET.
              endif.
            else.
            check if it is a real read-only field or a display mode violation
              assert id BOL_ASSERTS subkey 'READ-ONLY_VIOLATION'
                     fields ME->MY_INSTANCE_KEY->OBJECT_NAME
                            IV_ATTR_NAME
                     condition ME->CHANGEABLE = ABAP_TRUE.
            endif.
    and in debugging I found that if part ( ME->IS_CHANGEABLE( ) = ABAP_TRUE and
               LV_PROPS_OBJ->GET_PROPERTY_BY_IDX( LV_IDX ) ne IF_GENIL_OBJ_ATTR_PROPERTIES=>READ_ONLY) fails and hence else part is getting executed and hence my field a real read-only field or a display mode violation is happening according to comments in code.
    What shall I do so that I would be able to change the screen field value?
    Any help would be highly appreciated.
    Regards,
    Vimal

    Hi,
    Try this:
    data: lr_entity type cl_crm_bol_entity.
    lr_entity = me->typed_context->crechkresph->collection_wrapper->get_current( ).
    lr_entity->set_property( iv_attr_name = 'PO_NUMBER' value = '').
    Also, make sure the field is not read-only.
    Regards
    Prasenjit

  • Netgear DGND3300 Router and HP C4780 cant get set up to print wireless

    Ok I've read just about every networking post and cant solve my issue.
    History:  I recently upgraded from a 2Wire DSL router/modem to the new Netgear dual band 3300.
    After I made the change, I went through all the reinstalls and network configurations and all worked great.
    Then one day while working from home the printer stopped printing wireless for both the Apple Laptop and my Lenovo laptop.
    So I uninstall all the HP software from my Lenovo and reinstall, go through all the steps plugging in the USB cable from the printer.  I locate the correct SSID and enter the WEP on the HP printer install. 
    This is where I lose it, in the printer set up a this point it tells me the SSID on the printer and the machine have different SSID.  I know they are both on the same network as I confirm on my wireless setting on the Lenovo and when going through step by step on the printer install.
    I read where you can log into the printer with the IP address to edit settings.  so I print the HP Network configuration page, it gives me the IP address.  when I try to log onto the IP it does not take me to the printer....it goes to some google page. 
    I'm no tech but this isnt my first rodeo.  Any help would be greatly apprecaited, this is day 3 on my own.  Need the big guns.
    thank you

    OK, here are a few ideas:
    1. Don't use WEP. It is not secure and can cause connectivity problems.  Use WPA or WPA2
    2. Make sure that 802.11g is available.  802.11n and others can also be available, but g must be present.
    3. Broadcast your SSID and do not use MAC filtering.
    4. Make sure the firmware in your router is up to date.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • What are the different kind of parameter/attributes we can set in  XI ?

    Hi  Experts
        Yesterday i have attended an interview ....one question was
        1) What are the different knid of parameters we can set in XI ? Have done ?
            what and all the cases we will set the parameters/Attributes?
    and one more was
       2) How will you do Stress testing in XI ?
    Awaitng for responses
    Adv thax and regards
    Kiran lvs

    Hi,
    1) What are the different knid of parameters we can set in XI ? Have done ?
    what and all the cases we will set the parameters/Attributes?
    -First you should ask in which stage or where do you want to configure parameters ,i mean  Whatever parameters we can set in XI all comes under this question like all sort of Adapters,each of adapter can have its own set of configuration , configuration parameters,XI admin config parameters.. etc..
    and one more was
    2) How will you do Stress testing in XI ?
    In general stress tesing will be done by testing team
    Stress testing by way of sending more messages and performance also
    see the below links
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3a67c790-0201-0010-89aa-d27d97dd1374
    Rules of thumb on size of messagetypes in XI
    /people/sravya.talanki2/blog/2006/02/28/simulating-xi-messages-proto
    Measure Performance
    Regards
    Chilla..

  • Using attribute as a set of data and parsing this data

    Hi everyone,
    I present below a (little) challenge with the use of attributes in XQuery. Consider the following XML document:
    <showroom>
    <car id="1">
    <name>Clio</name>
    <family>Renault</family>
    </car>
    <car id="n">
    <name>Q5</name>
    <family>Audi</family>
    </car>
    </showroom>
    Each client of the showroom is identified by a unique Id (e.g., 1,2,3,....). Then, i want to add some data to my XML document which should represent, for each car, the set of all clients' Id that have rented this car.
    The desired XML document could look like this:
    <showroom>
    <car id="1">
    <name>Clio</name>
    <family>Renault</family>
    +*<history>*+
    +*<client id="2"/>*+
    +*<client id="23"/>*+
    +*</history>*+
    </car>
    <car id="n">
    <name>Q5</name>
    <family>Audi</family>
    +*<history>*+
    +*<client id="56"/>*+
    +*</history>*+
    </car>
    </showroom>
    However, by using elements in order to represent the rental historic, the document's size will increase significantly.
    As i use only the clients' id, are there any way to represent the history data using only attributes ?+.
    In the following document, the clients' id are represented, as a set, through the attribute +@history+:
    <showroom>
    <car id="1" history="2,23">
    <name>Clio</name>
    <family>Renault</family>
    </car>
    <car id="n" history="56">
    <name>Q5</name>
    <family>Audi</family>
    </car>
    </showroom>
    However, are there any way to check if a given car of id='x' has been rented by a client of Id='y' ?+.
    Does someone know how to represent the history data (sequence of clients' id), using only attributes, and how to look for a given client's id as explained above ?
    Please suggest. I appreciate your help.

    The two following documents represent examples of the showroom data and the clients' data respectively:
    First document:
    <showroom>
    <car id="1">
    <name>Clio</name>
    <family>Renault</family>
    </car>
    <car id="n">
    <name>Q5</name>
    <family>Audi</family>
    </car>
    </showroom>
    Second document:
    <clients>
    <client id="2">
    <name>...</name>
    <firstname>...</firstname>
    <driverLicence serialNumber="2156311"/>
    </client>
    </clients>
    The DTDs of these documents are defined as follows:
    The showroom DTD:
    <!ELEMENT showroom (car)*>
    <!ELEMENT car (name,family)>
    <!ELEMENT name (#PCDATA)>
    <!ELEMENT family (#PCDATA)>
    <!ELEMENT N3 (#PCDATA)>
    <!ATTLIST car id ID #REQUIRED>
    The clients DTD:
    <!ELEMENT clients (client)*>
    <!ELEMENT client (name,firstname,driverLicence)>
    <!ELEMENT name (#PCDATA)>
    <!ELEMENT firstname (#PCDATA)>
    <!ELEMENT driverLicence EMPTY>
    <!ATTLIST client id ID #REQUIRED>
    <!ATTLIST driverLicence serialNumber ID #REQUIRED>
    Whenever a car is rented, I must add some information either in the same showroom document (it will be better for me) or in another document which relies rented car id with the id of the client which rented this car.
    Thanks in advance for your help.

  • View Object attributes are not setting

    Hi,
    I have created a table region and attached a row header view attribute to it.I have a created a transient attribute also.
    I am setting transient vo attribute in process request of the controller but the values are not reflecting in the table.
    I am giving the complete code,please help me.
    OATableBean tableBean=(OATableBean)webBean.findChildRecursive("TableRN");
    pageContext.writeDiagnostics(this, " xxchrchecktableBean "+tableBean, 1);
    OAViewObject oaviewobject = (OAViewObject)am.findViewObject("XXCHRCwkVendorReviewVO1");
    if(oaviewobject !=null)
    oaviewobject.executeQuery();
    String vendorDetailsArray[]=new String[5];
    vendorDetailsArray[0]=pageContext.getSessionValue("XXCHRCWKRevSrcAgency").toString();
    vendorDetailsArray[1]=pageContext.getSessionValue("XXCHRCWKRevVenRepName").toString();
    vendorDetailsArray[2]=pageContext.getSessionValue("XXCHRCWKRevVenRepPhNo").toString();
    vendorDetailsArray[3]=pageContext.getSessionValue("XXCHRCWKRevVenRepEmail").toString();
    vendorDetailsArray[4]=pageContext.getSessionValue("XXCHRCWKRevVenRepAddress").toString();
    int fetchedRowCount=oaviewobject.getFetchedRowCount();
    pageContext.writeDiagnostics(this, "fetchedRowCount="+fetchedRowCount, 1);
    OARow oarow = null;
    if(fetchedRowCount >0)
    for (int i=0;i<fetchedRowCount;i++)
    oarow=(OARow)oaviewobject.getRowAtRangeIndex(i);
    if(oarow !=null)
    oarow.setAttribute("ColumnValue",vendorDetailsArray);
    Edited by: user13060916 on Aug 24, 2010 10:58 PM

    hi
    try your code in this way ,
    OATableBean tableBean=(OATableBean)webBean.findChildRecursive("TableRN");
    pageContext.writeDiagnostics(this, " xxchrchecktableBean "+tableBean, 1);
    OAViewObject oaviewobject = (OAViewObject)am.findViewObject("XXCHRCwkVendorReviewVO1");
    if(oaviewobject !=null)
    *//oaviewobject.executeQuery(); // dont execute VO*
    String vendorDetailsArray[]=new String[5];
    vendorDetailsArray[0]=pageContext.getSessionValue("XXCHRCWKRevSrcAgency").toString();
    vendorDetailsArray[1]=pageContext.getSessionValue("XXCHRCWKRevVenRepName").toString();
    vendorDetailsArray[2]=pageContext.getSessionValue("XXCHRCWKRevVenRepPhNo").toString();
    vendorDetailsArray[3]=pageContext.getSessionValue("XXCHRCWKRevVenRepEmail").toString();
    vendorDetailsArray[4]=pageContext.getSessionValue("XXCHRCWKRevVenRepAddress").toString();
    int fetchedRowCount=oaviewobject.getFetchedRowCount();
    RowSetIterator rowItr = vo.createRowSetIterator("rowItr");
    pageContext.writeDiagnostics(this, "fetchedRowCount="+fetchedRowCount, 1);
    OARow oarow = null;
    if(fetchedRowCount >0)
    for (int i=0;i<fetchedRowCount;i++)
    oarow=(OARow)rowItr.getRowAtRangeIndex(i);
    if(oarow !=null)
    oarow.setAttribute("ColumnValue",vendorDetailsArray);
    let me know case of any issues
    thanx
    Pratap

  • Self-referential attribute: how to set the value if it is NULL/unknown

    Hi,
    I am getting the following error while doing Logical Loop Check:
    self-referential attribute: b5@Rules_test_doc
    number of rules in this loop: 3
    number of attributes in loop chain: 3
    number of relationships in loop chain: 0
    The rule engine will be seeded with information from a database.
    My requirement is to set a value to the attribute (X) = "ABC" if (X) is null and (Y) is 0
    ( in 10.4 NULL is represented by unknown)

    You would have to have an intermediate field here to achieve this. It definitely is a logical loop in OPA terms, since you are trying to use X to prove X.
    To solve it you would need to do:
    attribute (X) = "ABC" if (X_input) is null and (Y) is 0
    Or for a "real" example:
    the person's processing office:
    "london" | the person's provided procesing office is currently unknown
    the person's provided procesing office | otherwise
    So if no processing office has been provided by the database, (i.e. "null") it effectively defaults to London.
    You could then use "the person's processing office" as normal throughout the rules, confident that it should never be unknown.
    Cheers,
    Ben
    Edited by: Ben Rogers on Jan 8, 2013 1:28 PM

  • Returning more attributes in search set when inviting to new event

    Hi all,
    We are currently running SunOne Calendar 5.1 and some of our users are complaining that when inviting people to an event who have a common name (i.e. John Smith), quite often, more than one result is displayed in the search set. With two "John Smiths" who have no middle name, how do you determine who the correct person is you wish to invite?
    Is there any way of displaying other attributes in the search set (i.e. e-mail address), so users can select the correct person?
    Regards,
    Paul Hughes
    University of Wales, Bangor

    I have found a solution to this issue. It seems that when using a programmatic view object which has a transient attribute as its primary key you need to override more methods in the ViewObjectImpl so that it knows how to locate the row related to the primary key when the view object records aren't in the cache. This is why it would work correctly sometimes but not all the time. Below are the additional methods you need to override. The logic you use in retrieveByKey would be on a view object by view object basis and would be different if you had a primary key which consisted of more than one attribute.
    @Override
    protected Row[] retrieveByKey (ViewRowSetImpl viewRowSetImpl, Key key, int i) {
        return retrieveByKey(viewRowSetImpl, null, key, i, false);
    @Override
    protected Row[] retrieveByKey (ViewRowSetImpl viewRowSetImpl, String string, Key key, int i, boolean b) {
        RowSetIterator usersRowSetIterator = this.createRowSet(null);
        Row[] userRows = usersRowSetIterator.getFilteredRows("UserId", key.getAttribute(this.getAttributeIndexOf("UserId")));
        usersRowSetIterator.closeRowSetIterator();
        return userRows;
    @Override
    protected Row[] retrieveByKey (ViewRowSetImpl viewRowSetImpl, Key key, int i, boolean b) {
        return retrieveByKey(viewRowSetImpl, null, key, i, b);

Maybe you are looking for

  • Can you still get a cross platform upgrade for CS3?

    I'm a mac user and recently purchased CS3 Design Premium for windows used -- does anyone know you can still get a cross platform upgrade from windows to mac without upgrading to CS4?

  • OSX 10.7.5 Finder unresponsive when using firewire 800 devices

    My system was running well until recently when my finder in OSX 10.7.5 has beccome intermittently unresponsive. Many apps, especially Mail are not very responsive either. I have multiple external hard drives (both 400 and 800) hooked into a Nitro AV

  • Content area

    Hi experts I have one problem.When i entered into portals and in "Content Area " it is frequently showing <b>"content Area"</b> mouse over text. How to avoid this. Thanks

  • Nessuna anteprima file pdf con windows 8.1 64 bit

    recentemente ho installato windows 8.1 64 bit e noto che in esplora risorse non sono più disponibili le miniature di anteprima dei file pdf. Ho installato adobe reader XI. Potete darmi indicazioni di come risolvere? Grazie

  • "Stay on this Page" "Leave this Page" pops up when using SAP URL?

    Has anyone else experience this pop-up message when an SAP URL (www.sap.com) is embedded in a Personas frame?? No problem with non-SAP URL such as from the google.com family. Same problem persist even in the WTS environment. I had a quick discussion