Defalut value in MessageChoice

Hi OAF gurus
I have to implement a task regarding MessageChoice in the table. The problem is default value. I will explain a little bit.
When there is no record in the database, in the UI it shows the messagchoice with default value 'No Approvers', when we visit that page. and we click on the save button with this default value, it should not save in the database. If any one knows how to handle this one, respond to this asap.
Thanks in advance
Thanks & Regards
U.Palakondaiah.

Put a vaildation in the EOImpl (setter or validateEntity method) and check if the value is the default value then dont let the value being set in the EO Attribute, that way this value would be bypassed from being reflected into the DB.
Thanks
Tapash

Similar Messages

  • Adding a new value to messagechoice field.

    I have a field called messagechoice type .
    I have 4 drop down list values in messagechoice type , my requirement is ,
    I have to delete existing one and need to add a new value in drop down list.
    how to achieve this . please do the needful help.
    thanks,

    I have a field called messagechoice type .
    I have 4 drop down list values in messagechoice type , my requirement is ,
    I have to delete existing one and need to add a new value in drop down list.
    how to achieve this . please do the needful help.
    thanks,

  • How to set defalut values for html:radio

    Hi all,
    can you please tell me how to set defalut values for radio buttons (html:radio) in struts?

    You may have more luck if you ask this Struts specific question in a forum devoted to Struts at their own homepage over there at apache.org. It may also help a lot to read its documentation and tutorials. I would really be surprised if they didn't even document such a trivial thing.

  • How to display selected value in MessageChoice

    HI,
    I have a messageChoice on my Update screen. I need to display the selected value when the user comes to update the data on the screen. In the Process Request when i am printing the stmt
    System.out.println("The type of bean is PortletItemID::"+webBean.findIndexedChildRecursive("PortletItemID"));
    The output is The type of bean is PortletItemID:: OAFormValueBean
    How can i set the value that is coming from database in order to show the selected value in the message choice when the user is coming to the screen for updating the data.
    Thanks,
    Mohammadi

    Hi Tapash,
    In my case, i have mentioned the value in picklist View Definition ,picklist display attribute and picklist Value attribute. Where should i be providing my database value so that i can compare and display it as selected value.
    Thanks,
    Mohammadi

  • Default the blank value for MessageChoice

    Hi,
    I have created a Message Choice Bean and I require to have a blank value as the first value followed by the original values. How to achieve this ?
    I have also tried setting through personalization 'Add Blank Value' to 'true' and also tried with the function 'setAllowBlankValue(true)' for the messagechoice bean. But its not working.
    Please help me by giving the valuable suggestions to achieve the above.
    With Thanks,
    Thiyagarajan

    The only possible case of this happening, is you might have made required property as true, which removes blank value because if value is required in messagechoiceebean, then blank alue can not be included.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Focus shifts to the top of the screen on slecting value from messagechoice

    Hi All,
    While selecting a value from message choice field, focus shifts to top of the screen and user needs to scroll down.
    Due to fireAction event on messageChoice field, I think, page has to completely render and focus shifts to top of the screen.
    As a solution, I am thinking about to regain focus on the same filed, after fireAction event gets triggered.
    For this, what changes should I do?
    Please advice.
    Thanks,
    Naresh
    Edited by: 958039 on Mar 7, 2013 7:44 PM
    Edited by: 958039 on Mar 7, 2013 7:54 PM

    Why do you have a fireAction event set? Can you change it to firePartialAction?
    Thanks
    Shree

  • Need Help to get value from MessageChoice and pass it to another MesgChoice

    Hi All,
    How to get a value from a messageChoice1 in CO into a variable. Once the messageChoice1 is selected i need to pass this variable into a VO whereClause and the page get refreshed, so that another messageChoice2 in the same page will have the values based on the messageChoice1 value.
    Kindly give me your suggestions.
    Thanks and Regards,
    Myvizhi

    I think you want to do a nested loop within each Item in the data provider, to pull out each child's (series1, series2, etc). "label" attribute.

  • Crystal report parameter defalut values in infoview

    Hi All,
                I am working on crystal reports, and  i have created a local variable in the crystal and set a default value. I aslo deploy it to the BO enterprise . When i open the report from the infoview, the default values which was set in crystal is not available.We can set this at the CMC level, but a developer may not have access to CMC other than Instance manager. Do we have any other option for the same to get the default values in infoview. Appreciate your help at the earliest.
    Thanks & Regards,
      Magesh Anandan.

    Hi Deidra,
    You can download latest service pack and hotfix from the following link:
    [https://www.sdn.sap.com/irj/boc/businessobjects-downloads]
    Have a look to Knowledge base article 1219377 - Error "ERROR: Thread was being aborted" in .NET InfoView .
    Hope this helps!!
    Regards,
    Shweta

  • How to display intial value in messagechoice

    hi, i want to show some intial value in picklist as soon as the page gets open other than the values from the VOquery, i need to show intial value like(Select). i tried giving programitically by using the property messageChoiceBean.setDefaultValue("select"), but it dint work, can any one give me an idea for this..

    Just noticed that setDefaultValue method seems to be deprecated. Instead use setSelectionValue(OAPageContext pageContext, String selectionValue) .
    --Shiv                                                                                                                                                                                                                                                                                                                       

  • How to pass the value of messageChoice as an argument to that of an lov

    Hi,
    I have a messageChoice item and an LOV item e.g
    Type---messageChoiceBean(Goods,Services)
    Catalogue--LOV(Moped,Computer,Healthcare,driving)
    So if in TYPE =Goods then in CATALOGUE only Moped and Computer should come for selection
    If i select TYPE=Services then in CATALOGUE only Healthcare,driving should come for selection.
    Please help me in this regard ,i need the answer by the end of day.
    Thanks in advance .
    Regards
    Vikram

    Thanks a lot for the advice ,but is it possible on your part to tell me in detail how to achieve what you have suggested.It will be great help me to me because i am bit confused.
    Thanks in advance
    Thanks and Regards
    Vikram

  • How to set defalut value to DB current date time in EO using sql

    HI,
    I am using below query to set default date time as DB current date
    select to_char(sysdate, 'DD-MM-YYYY HH24:MI:SS') from dual
    but it is throwing exception
    (oracle.jbo.AttributeLoadException) JBO-27021: Failed to load custom data type value at index 7 with java object of type oracle.jbo.domain.Timestamp due to java.sql.SQLException.

    Halo,
    I tested it & was able to find the values inserted in db in hiredate column.. What is that you did? Was this..
    In EO of emp -- Hire date column of datatype timestamp :
    details tab.. Default value -- expression :
    DBTransaction.currentDbTimeIf you would have done this,
    On run time when we click createInsert button , by default you will see the date.. After committing the changes, query it in db and will find the inserted record with default value..
    Sample data i tested :
    SQL Statement which produced this data:
      select * from emp where empno=1111
    EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO
    1111,null,null,null,06/05/2013 17:18:41,4500,null,nullRegards,
    Archana

  • Hide Industry Sector Field after giving it a defalut value

    Hi!!
    I want to hide industry secor field in material master initial screen . Also as industry sector is a mandatory field i want the system to take a default value all the time without ever displaying it .
    Pls tell me the settings .
    Regards ,
    Anis

    Hi,
    You can do the same by following setting :
    Go to MM02-> Defaults ( Menu) -> INdustry Sector--> Select Required Industry sector and then tick the Check box HIde Industry sector on initial screen and then continue.So always this industry sector by default will be selected and also will be stayed hidden.
    Hope this helps.
    Revert if any doubt.
    Regards,
    Tejas

  • Schedule line category defalut value in Inquiry

    Hi All
    I need to poulate default value ' Z2 'for schdule line category in Inquiry for specific document types . I am able to populate default value in inqurily . i am using MV45AFZZ.  But as per requirement if user manually changed the schedule line category then the changed value should remain and not default value Z2.
    If i change the Z2 value to some other ,after that it is immediately coming again Z2.  the changed value is not coming in XVBEP.
    Is there any way to hold the changes in same exit..
    Thanks

    Hi
    Before passing u r value to the Field. Check if has any value if so do not pass the value.
    LOOP AT XVBEP.
        IF XVBEP-ETTYP IS INITIAL.
             XVBEP-ETTYP = 'Z2'.
        ENDIF.
    ENDLOOP.
    Write this in Save_document_prepare.
    regards,
    Raghu

  • Defalut Values in BP

    Hi Guru's
    When creating Business partner for organization BP when extending sales area data requirment is to default Pricing procedure as "Customer Pricing Procedure" and ''Currency"as a default attribute instead adding maually.
    Regards,
    Raj
    Message was edited by: Andrei Vishnevsky
    Please follow the SCN Rules of Engagement http://scn.sap.com/docs/DOC-18590 and do the search before posting.

    Hello Rai,
    what I found quite helpful was the Help which you get through the Info Button (Strg + F8) in Transaction SE19. There is also a example to try it on your own.
    Regards
    Gregor

  • How to refresh values in second messagechoice based on first messagechoice?

    Hi All,
    We had a requirement where we need to populate values into second messagechoice item based on the value selected in the first messagechoice item.
    We need to take the value (first messagechoice) as output parameter and need to pass as input parameter to the second messagechoice VO.
    Can any please help me how to achieve the above.
    Regards,
    Sundeep

    Hi Sumit,
    Thanks for the reponse. I will go for the one you suggested.
    Can you please go through my new thread if you have time which is a very urgent requirement for me.
    Thread subject: "How to change VO's dynamically for a item for each row in advanced table?"
    Regards,
    Sundeep.

Maybe you are looking for

  • 0I_CUFYE pulling incorrect year (ie. instead of pulling current year period

    Hi , Since toady I am facign stragne error.. till yesterday the same query was showing restriction for 001.2010-012.2010 today it is showing 001.2011-012-2011 this variable 0I_CUFYE is dring me craz.. can anyone help... regards,.. rK

  • Verizon is charging my account for a service that was not provided.

    Verizon is charging my account for a service that was not provided. I am a LONG term Verizon customer and no one is helping..... I work in IT, with the Network and Mobility groups, so I know what I am talking about, network access, O/S, bandwidth, et

  • RCU in OBIEE 11g??

    Hi Experts, I am good at OBIEE 10g, now i want to learn OBIEE 11g ...Now, can any one explain me or guide me with the docs why we need RCU in OBIEE 11g, why this Concept came in to OBIEE 11g? as we don't have that in 10g ?? Thanks in Advance.

  • Error message when running SBO 2007B PL12 Client

    Dear Experts, Upon a fresh installation on a client of SBO2007B PL12 Client and DIAPI, when I startup the client application, it prompt me the below error: The procedure entry point ?CompareNoCase@SBOString@@QBEHPBG@Z could not be located in the dyna

  • Cursors in VIEWS

    Hi...I have created a VIEW, currently I am using static values for some comparisons but now I need to get these values from a variable, is it possible for me to make use of a implicit cursor to get these values..if not is there any other way to do so