How to Change Messages inline attribute value Dinamically

Hi
I'm using Jdev 11.3
Our requirement is if the facesmesage having onlly one message it should come like inline message
else it should come as a popup.
i tried EL for inline attribute but the problem is the method is calling only when submition
public boolean isInline()
boolean flag = true;
Iterator it = FacesContext.getCurrentInstance().getMessages();
if (it.hasNext())
flag = false;
return flag;
regards Abhilash

duplicate

Similar Messages

  • How to change default Current Flag values for SCD2?

    I'd be curious to find out how to change default Current Flag values for SCD2 (instead of 0/1 to use N/Y)
    Probably I can change IKM module .... is there another way?
    Thanks

    Hi,
    You need change the IKM. This values are hardcode in the IKM.
    You can create a new IKM and the values used are a options of the IKM.
    Regards
    Edited by: Uthred on May 18, 2009 4:27 PM

  • How to change set type attribute of a product

    Hi ;
    I created additional fields for products by using "COMM_ATTRSET". It created a table and functions but I dont know how to change this additional attributes.I cant use these attribute set functions because i dont know fragment_id yet. I think there must be a function encapsulates them.
    Is there any BAPI to change set type attributes?
    PS: In forums , I found an FM "COM_PRODUCT_MAINTAIN_MULT_API" but I think it hasnt been used anymore in CRM7.0
    Thanks

    Thanks for your reply ;
    but FM 'COM_PRODUCT_UI_MAINTAIN' doesnt have any generic import parameters to send my data to it in form of  newly created attribute set type table "ZPRODUCT".
    I want to set some fields of ZPRODUCT and i need to send them in this structure,  this table has column FRG_ID , if you set an additional  parameter for the first time , it generates new GUID..I think  'COM_PRODUCT_UI_MAINTAIN'  generates this GUID but i dont know how to use it.
    Can you give an example about using this FM?

  • How to change the Credential domain Value in XML gateway?

    How to change the Credential domain Value in XML gateway?
    configured the XML Gateway trading partner . It is generating the header as given below. but need to change the Credential domain to DUNS.
    <Header>
    <From>
    <Credential domain="olgridap1.lan">
      <Identity>53369415-cxml</Identity>
    </Credential>
    </From>
    Desired XML header
    <Header>
    <From>
    <Credential domain="DUNS">
      <Identity>53369415-cxml</Identity>
    </Credential>
    </From>

    You might want to check WLP 10.3 & deployment plan & log4j.xml for a similar topic.

  • Failed to verify AS2 message Reason message-digest attribute value

    Hi All,
    I have scenario from AS2---->PI--
    >ECC(AS2 to Proxy) .I tested in QA system successfully but messages not reached to PI system.Communcation channel montering error message is Failed to verify AS2 message. Reason: message-digest attribute value does not match calculated value (Software version: 1.0.2). This scenario working fine producation server using with receiver file adapter.After transported from QA to PROD error got occured.Please provide your inputs on this issue
    Regards,
    Ramesh

    Thank you,
    I've followed all the steps in the link for the section : For a new wallet, please follow.
    SSL is not used, the B2B sends to a proxy server which uses SSL to the Trading Partner.
    This is a future production system; the same setup and configuration has been successfully used in development and test.
    The configuration all looks the same between environments, but dev and test work while this fails.
    The previous configuration did not have the TP's public cert in the wallet, so I added it according to the link.
    However the same error occurs.
    Is there any chance this behaviour is related to this : metalink docid : 803466.1 / Oracle B2B certificate for ebMS will expire July 17 2009
    This is AS2, not using ebXML, but I do see references to the phaos security tool kit in the logs.
    Currently all environments use MLR#7.
    Edited by: tdba2 on Aug 1, 2009 11:58 PM

  • In Jsp TagLib how can I get the Attribute value (like JavaBean) in jsp

    Dear Friends,
    TagLib how can I get the Attribute value (like JavaBean) in jsp .
    I do this thing.
    public void setPageContext(PageContext p) {
              pc = p;
    pc.setAttribute("id", new String("1") );
              pc.setAttribute("first_name",new String("Siddharth")); //,pc.SESSION_SCOPE);
              pc.setAttribute("last_name", new String("singh"));
    but in Jsp
    <td>
    <%=pageContext.getAttribute("first_name"); %>
    cause null is returing.
    Pls HELP me
    with regards
    Siddharth Singh

    First, there is no need to pass in the page context to the tag. It already is present. How you get to it depends on what type of tag:
    Using [url http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/tagext/SimpleTagSupport.html]SimpleTagSupport
    public class MyTag extends SimpleTagSupport
      public void doTag()
        PageContext pc = (PageContext)getJspContext();
        pc.setAttribute("first_name", "Siddharth");
        pc.setAttribute("last_name", "Singh");
        pc.setAttribute("id", "1");
    }Using [url http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/tagext/TagSupport.html]TagSupport or it's subclass [url http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/tagext/BodyTagSupport.html]BodyTagSupport the page context is aleady declared as an implicit object:
    public class MyTag extends TagSupport
      public void doStartTag()
        pageContext.setAttribute("first_name", "Siddharth");
        pageContext.setAttribute("last_name", "Singh");
        pageContext.setAttribute("id", "1");
    }In each case, this sort of thing should work:
    <mytags:MyTag />
    <%= pageContext.getAttribute("first_name") %>I

  • How to remove the XML attribute value in Indesign file by javascript

    Hi all,
    How to remove the XML attribute value in Indesign file.

    Try this,
    if(elm.xmlElements[i].xmlAttributes[j].name == "aid:pstyle" || elm.xmlElements[i].xmlAttributes[j].name == "aid:cstyle")
    Vandy

  • How to chang message "W" to "E"

    Dear all,
    During creating Delivery for sales order, I am facing the following waring message.
    Delivery quantity must be entered for the item
    Message no. VL361
    Diagnosis
    The delivery quantity must be greater than zero, as defined in Customizing for the item category of this delivery item.
    Procedure
    Enter a quantity greater than zero in delivery processing.
    Should this error message appear when you are confirming a WMS transfer order that you want to close with a quantity of zero, it could be that the delivery item does not allow a quantity of zero. If necessary, ask the person responsible for Customizing if this is intentional. If so, you cannot confirm the transfer order with a quantity of zero.
    I hope the message is eror.
    How to chang message "W" to "E"?
    colin

    Hi
    SAP has given some messages which can be converted from waring to error and vice versa thro customization
    All that SD related messages which is offered by standard SAP you can find in OVAH and OVM1
    your message VL361  will not be there in OVM1 which means that standard SAP has hardcoded this message type thro its program and not available for customization
    Go to SE91 and do the following:-
    input VL in Message Class
    input 361 in Number and execute.
    select the message number and click on "Where-Used List" (press Cntrl + Shift + F3)
    Deselect all boxes excepting "Programs"
    List of programs will be displayed where this error message is used
    Double click on the description in right side of the screen
    You can see the codings written for the error message as W361 which may be changed to E361.
    This is a modification of the codings of the standard program which standard SAP does not recommand and if still you want to go with it it needs to be done thro ABAPer which will ask for developer access key etc
    Regards
    Raja

  • How can I add cursor attribute values or change the size?

    I am using the SetCursorAttribute and would like to create and add additional cursor attribute values insteasd of the current 24 that are available. In particular, I would like to number each cursor in my list to each cursor on a graph so it can be identified easily by the user. Making each cursor a different value from the available 24 Attribute Value's is not desired since they are not easily identified due to the size of the cursor. (it's hard to discern a square box to a square box with an X).
    OR
    Another possiblity could be to allow for modification of the current size of the Attribute Values, is this possible?

    Hi Dennis,
    Unfortunately there is currently no way to change the size of a graph cursor, or to beyond the 24 point styles you mentioned. However, there are many other ways to differentiate cursors beyond point style. You can use differing crosshair styles and colors. Additionally, you can use "PlotBitmap(...)" to plot a bitmap image to the control using relative X and Y coordinates. With a little creative programming, you can use this function to simulate a graph cursor.
    regards,
    Eric Meyer
    Applications Engineer
    National Instruments

  • How to Change the Document Condition Values in PO print

    HI,
    I have a requirement to change the document condition values in PO printout. We are using the copied form of MEDRUCK.
    Please tell me how can i change the Document Condition Values at run time.
    Thanks....

    hi
    hence you have copied standard script you cant able to change the driver program for this you have to use itcsy structure.
    go to the page window and select the window which you have the amount field. open the text editor of the windoiw here write
    /:           PERFORM CONTACT IN PROGRAM ZAMOUNT_ZF110_IN_AVIS1_C
    /:           USING &REGUH-ZALDT&
    /:           CHANGING &DT&
    /:           ENDPERFORM
    now create a report program with name  ZAMOUNT_ZF110_IN_AVIS1_C.
    and follow as the example program is .
    *&      Form  CONTACT
          text
         -->IN_TAB     text
         -->OUT_TAB    text
    FORM contact TABLES in_tab STRUCTURE itcsy
                       out_tab STRUCTURE itcsy.
      DATA : v_telf1 TYPE telf1.
      DATA : v_telfx TYPE telfx.
      DATA : v_adrnr TYPE ad_addrnum.
      DATA : v_flagcomm6 TYPE ad_flgcm06.
      DATA : v_datum(10) TYPE c.
      DATA : v_sydatum TYPE sy-datum.
      DATA : v_lifnr TYPE lifnr .         " Santosh Rawat , 19th Feb
      DATA : v_email TYPE ad_smtpadr .   " Santosh Rawat , 19th Feb
      LOOP AT in_tab.
        IF in_tab-name = 'REGUH-LIFNR'.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' " Santosh Rawat , 19th Feb
            EXPORTING
              input  = in_tab-value
            IMPORTING
              output = v_lifnr.
          SELECT SINGLE telf1 telfx adrnr FROM lfa1
            INTO (v_telf1, v_telfx, v_adrnr)
            WHERE lifnr = v_lifnr.
          SELECT SINGLE smtp_addr FROM adr6    " Santosh Rawat ,19th Feb
         INTO v_email WHERE ADDRNUMBER = v_adrnr. " Santosh Rawat ,19th Feb
         SELECT SINGLE flagcomm6 FROM adrc INTO v_flagcomm6
           WHERE addrnumber = v_adrnr.
        ELSEIF
          in_tab-name = 'REGUH-ZALDT' OR in_tab-name = 'REGUP-BLDAT'   .
          MOVE in_tab-value TO v_datum.
          REPLACE ALL OCCURRENCES OF '.' IN v_datum WITH ' '.
          CONDENSE v_datum.
          MOVE v_datum TO v_sydatum.
    *CALL FUNCTION 'CONVERSION_EXIT_INVDT_INPUT'
    EXPORTING
       input         = V_DATUM
    IMPORTING
      OUTPUT        = V_DATUM
          CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
            EXPORTING
              date_internal            = v_sydatum
            IMPORTING
              date_external            = v_datum
            EXCEPTIONS
              date_internal_is_invalid = 1
              OTHERS                   = 2.
          IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
        ENDIF.
      ENDLOOP.
      LOOP AT out_tab.
        IF out_tab-name = 'TEL'.
          MOVE v_telf1 TO out_tab-value.
        ELSEIF out_tab-name = 'FAX'.
          MOVE v_telfx TO out_tab-value.
        ELSEIF out_tab-name = 'EMAIL'.
          MOVE v_email TO out_tab-value.        " Santosh Rawat , 19th Feb
        ELSEIF out_tab-name = 'DT'.
          MOVE v_datum TO out_tab-value.
        ENDIF.
        MODIFY out_tab FROM out_tab.
    *MODIFY TABLE OUT_TAB .
      ENDLOOP.
    ENDFORM.             }
    reply for any query.
    regards,
    venkat.

  • Change the Summary Attribute Value through Java code

    Hi ,
    I am working on a requirement where I need to set the Attribute value on the final Summary Screen through Java Code.
    Code :
            InterviewUserData data = new InterviewUserData();
            InterviewEntityInstance globalInstance = data.getGlobalInstance();
            globalInstance.setValue("Name", value_to_set);
    On completion of the interview session Name is displaying as NULL.
    I need to set NAME = value_to_set and display it on the final summary screen.
    Any help on this will be appreciated.
    Regards

    The InterviewUserData object is effectively a change set, to apply this to a session you use the InterviewSession.submit(InterviewUserData) method. You don't say how you are invoking this code but if it's inside an event Interview Engine handler the InterviewSession object should be accessible.
    Regards
    Ian

  • How to change the groupType attribute of a user group object?

    I'm trying to change the "groupType" attribute, of a user group object, from 'Distribution' to 'Security' (and the group scope is set to 'Global').
    The CAD bit mask value needed would be: 0x80000002 (Decimal -2147483646).
    How to change/modify the "groupType" attribute for this user group object?
    Thanks,
    UD

    Attribute attr= new BasicAttribute("groupType", "-2147483646");
    items[0]=new ModificationItem(DirContext.REPLACE_ATTRIBUTE, attr);
    ctx.modifyAttributes(dn, items);
    --does not work.
    javax.naming.OperationNotSupportedException: [LDAP: error code 53 - 00002141: SvcErr: DSID-031A0B56, problem 5003 (WILL_NOT_PERFORM)
    Is it possible to modify it?
    Thanks,
    UD.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How can I access the Attribute Values from the Search Region

    Hi all,
    I have a table which contains Company id, department id, and PositonId. For a particular Company and Department there may be multiple records.
    I have to pupulate a table which contains the position and other details that comes under a particular Department and Position based on the selection in the Three comboBoxes.
    Also I have to populate a select many Shuttle to add new postions and records under a particular Department.
    I created a query panel *(Search Region)* for the serch and a table to display the data. That is working fine.
    Now the issue is I am using a view criteria to populate the shuttle with two bind variables ie, DepartmentId and CompanyId.
    If the serach will return a resuktant set in the table it will also pupulate the correct records, otherwise ie, if the if the serch result is empty the corresponding iterator and the attribute is setting as null.
    SO I want to access the attribute values from the Search Region itsef to populate the shuttle.
    I don't know how can I access the data from the Search Region.
    Please Help.
    Regards,
    Ranjith

    you could access the parameters entered in search region by the user as follows:
    You can get handle to the value entered by the user using queryListener method in af:query.
    You can intercept the values entered as described
    public void onQueryList(QueryEvent queryEvent) {
    // The generated QueryListener replaced by this method
    //#{bindings.ImplicitViewCriteriaQuery.processQuery}
    QueryDescriptor qdes = queryEvent.getDescriptor();
    //get the name of the QueryCriteria
    System.out.println("NAME "+qdes.getName());
    List<Criterion> searchList = qdes.getConjunctionCriterion().getCriterionList();
    for ( Criterion c : searchList) {
    if (c instanceof AttributeCriterion ) {
    AttributeCriterion a = (AttributeCriterion) c;
    a.getValues();
    for ( Object o : a.getValues()){
    System.out.println(o.toString());
    //call default Query Event
    invokeQueryEventMethodExpression("#{bindings.ImplicitViewCriteriaQuery.processQuery}",queryEvent);
    public void onQueryTable(QueryEvent queryEvent) {
    // The generated QueryListener replaced by this method
    //#{bindings.ImplicitViewCriteriaQuery.processQuery}
    QueryDescriptor qdes = queryEvent.getDescriptor();
    //get the name of the QueryCriteria
    System.out.println("NAME "+qdes.getName());
    invokeQueryEventMethodExpression("#{bindings.ImplicitViewCriteriaQuery.processQuery}",queryEvent);
    private void invokeQueryEventMethodExpression(String expression, QueryEvent queryEvent){
    FacesContext fctx = FacesContext.getCurrentInstance();
    ELContext elctx = fctx.getELContext();
    ExpressionFactory efactory = fctx.getApplication().getExpressionFactory();
    MethodExpression me = efactory.createMethodExpression(elctx,expression, Object.class, new Class[]{QueryEvent.class});
    me.invoke(elctx, new Object[]{queryEvent});
    Thanks,
    Navaneeth

  • How to change message v1 501 to be an error message ?

    Hi guys,
    When i  use VA01  creating a sales order reference to contact, if sales order's quantity is larger than contact's quantity, the system gives an warning message :
    Target qty of reference: 100 PC (total referenced: 101 PC)
    Message no. V1501
    I can't find V1 501 with tcode OVAH , anyone knows how to change Warning  to Error  for this message?
    Thanks.

    Dear wayne,
    Please refer to my post (3rd post):
    [Message Control - Warning/ Error|Well done Amit;
    Your Message V1 501, can't be customized to Error from Warning, in customizing. Instead, chnages needs be done in Standard Code, to achieve the same.
    Best Reagrds,
    Amit.
    Note: I think, following thread have the same relevance;
    [Message control|Re: error/warning message]

  • Tricky! Change of navi-attribute values in ABAP and use in selections

    Hi gurus,
    now I have a teaser that really keeps me busy, and which might be interesting for some of you:
    we use several statuses in our <u>Demand Planning in SCM 5.0</u>, some of which can be switched by using a user-function macro which just basically is a ABAP function module that <u>changes navigation attribute values directly on the database</u>, meaning in the master data tables of the respective characteristic.
    Now, the code works, the values are changed accordingly, leaving the data set in object status "active" - <b>BUT</b>:
    <i>when we call a selection, it still shows the old values, even after activating master data or running the attribute change run!</i>
    This is not what we expected. Our wish was, that once the table was updated with the correct field values, we would also see them in our selections.
    <u>Details:</u>
    we have two statuses as navi-attributes to an article:
    <i>DP:</i> YES/NO, and
    <i>oDP:</i> YES/NO
    Combinations originally are: <i>DP</i> YES/<i>oDP</i> NO
    After the status change macro, the table shows the following, as expected:
    <i>DP</i> NO/<i>oDP</i> YES
    As we have two selections, one on DP status "YES", the other one on oDP status "YES", we would like to see the article vanish in the first selection and show up in the other one...
    Does anybody have an idea what is wrong and what we can do to have to proper navi-attribute values from the master data table in the selection? Does the selection not read from the database but from a buffer?
    Looking forward to your answers,
    Klaus

    Hi Fabrice,
    yes indeed, I did check the object version, and it is A.
    Problem is, the function module changes the data record which is "A" anyway. So the changed data record is active - however, I just had a look at the SID master data table, and it looks that direct changes to the P-table do not affect the X-table where the SIDs are stored. So I guess I will also have to update the X-table with the correct SID-values.
    If this works, I let you know. We will be using this change by ABAP quite often, it is rather useful.
    Regards and thanks for your prompt reply,
    Klaus

Maybe you are looking for

  • How to get  selected records from an ALV  Grid in some other internal table

    I am using a standard SAP program (RFKKMA02) in a Z program. Now i want to select some rows in ALV and after doing some modification, i want to store those records in some other internal table. I am not using OO concept. Thanks in advance.

  • Result Caching in Business Service

    Hi, We have a web service to the provider system and need to do the web service result in the Business service. We have enabled the caching and used the Cache token expression as given below. concat($body/sch:Request/sch:ID/text(),'-',$body/sch:Reque

  • Loading PDF and Video Files in BLOB Column

    Hi, Below is my database version Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production The Requirment is In a web page ( developed using Java Spring ) end user has the funtionality to upload a pdf/video file by browse the requi

  • Executing a DDL statement from java code

    Hi all, this is code from jdev11.1.1.3 version. I am trying to execute a DDL statement in oracle db from java code, but "ORA-00900: invalid SQL statement" error is coming. I am trying to create a table in same schema in same db by using 'Copy' comman

  • Performance impact with Parent Hierachy 2 and a new dimension

    Hello all I have a Consolidation requirement for which I have two solutions. These are: Sol A>> Create a new dimension for reporting on accounts. Sol B>> Create a new Parent Hierarchy in Account dimension. Please help me on two open questions: 1. If