How to validate values from selectInputDate in backing bean

I have two selectInputDate fields, arrivalDate and departureDate.
I want to validate that arrivalDate cannot be greater than departureDate.
java.lang.ClassCastException is raised at below line in the backing bean:
Timestamp newArrivalDate = (Timestamp)newValue;
I tried to use below in the backing bean for arrivalDate validation.
import java.sql.Timestamp;
public void arrivalDateValidator(FacesContext facesContext,
UIComponent uiComponent, Object newValue) {
//The new value is passed into us
try {
Timestamp newArrivalDate = (Timestamp)newValue; --> java.lang.ClassCastException raised at this line.
//Get the Departure Date which is already bound on this screen
Timestamp departureDate =
(Timestamp)ADFUtils.getBoundAttributeValue("departureDate");
// Now compare and raise an error if the rule is broken
if (newArrivalDate.compareTo(departureDate) > 0)
throw new ValidatorException(JSFUtils.getMessageFromBundle
("Arrival Date cannot be greater than Departure Date", FacesMessage.SEVERITY_ERROR));
} catch(Exception e) {
System.out.println("Some exception raised");
e.printStackTrace();
08/12/26 13:30:08 Some exception raised
08/12/26 13:30:08 java.lang.ClassCastException
08/12/26 13:30:08      at opera.activity.view.backing.app.TestApp.arrivalDateValidator(ActivityMain.java:1524)
08/12/26 13:30:08      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
08/12/26 13:30:08      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
08/12/26 13:30:08      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
08/12/26 13:30:08      at java.lang.reflect.Method.invoke(Method.java:324)
08/12/26 13:30:08      at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXEditableValue.validateValue(UIXEditableValue.java:400)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXEditableValue.validate(UIXEditableValue.java:206)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXEditableValue._executeValidate(UIXEditableValue.java:522)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXEditableValue.processValidators(UIXEditableValue.java:302)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXShowDetail.processValidators(UIXShowDetail.java:86)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
08/12/26 13:30:08      at javax.faces.component.UIForm.processValidators(UIForm.java:190)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:855)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.validateChildren(UIXComponentBase.java:839)
08/12/26 13:30:08      at oracle.adf.view.faces.component.UIXComponentBase.processValidators(UIXComponentBase.java:689)
08/12/26 13:30:08      at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:932)
08/12/26 13:30:08      at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:362)
08/12/26 13:30:08      at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:98)
08/12/26 13:30:08      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
08/12/26 13:30:08      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
08/12/26 13:30:08      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
08/12/26 13:30:08      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
08/12/26 13:30:08      at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
08/12/26 13:30:08      at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
08/12/26 13:30:08      at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
08/12/26 13:30:08      at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
08/12/26 13:30:08      at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
08/12/26 13:30:08      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
08/12/26 13:30:08      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
08/12/26 13:30:08      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
08/12/26 13:30:08      at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
08/12/26 13:30:08      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
08/12/26 13:30:08      at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
08/12/26 13:30:08      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
08/12/26 13:30:08      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
08/12/26 13:30:08      at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
08/12/26 13:30:08      at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
08/12/26 13:30:08      at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
08/12/26 13:30:08      at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
08/12/26 13:30:08      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
08/12/26 13:30:08      at java.lang.Thread.run(Thread.java:534)
Can someone suggest a solution?
Thanks in advance.

Hi user:
Use the class oracle.jbo.domain.Date in the date component then is very easy using the compareTo Method (Returns -1 if DATE is less than date, 0 if DATE and date are equal (==), 1 if DATE is greater than date).
Good Luck.

Similar Messages

  • How to pass value from jsp to java bean

    I have huge problem . How to pass value from jsp value to java bean.Please replay me soon

    Use the <jsp:setProperty> tag. There are several ways to use it. The one you probably want is:
    <jsp:setProperty name="bean_name"  property="property_name"  value="the_value_you_want_to_set"/>

  • How to pass object from JSF to backing bean

    Hi,
    I have a JSF page using repeater and RichFace Toolbar:
            <h:form id="professional-profile">
                <a4j:repeat value="#{profilesBean.profiles}" var="lang" binding="#{profilesRepeaterBean.repeater}">
                    <rich:togglePanel styleClass="data-input-panel" switchType="client" stateOrder="closed, opened">
                        <f:facet name="closed">
                            <rich:toolBar>
                                <rich:toggleControl switchToState="opened">
                                    <h:graphicImage style="border-width:0" value="../Images/open_btn.gif" />
                                    <rich:toolTip value="#{pp_msg.tooltipOpensPanel}" direction="top-right" showDelay="${config.toolTipDelay}" styleClass="tool-tip"/>
                                </rich:toggleControl>
                                <h:outputText value="#{lang.language}"/>
                            </rich:toolBar>
                        </f:facet>
                        <f:facet name="opened">
                            <h:panelGrid style="width: 100%" columns="1">
                                <rich:toolBar>
                                    <rich:toolBarGroup location="left">
                                        <rich:toggleControl switchToState="closed"
                                                            onclick="if(!ConfirmUnsavedForAction('#{common_msg.unsavedDataWarning}')){return false;}">
                                            <h:graphicImage style="border-width:0" value="../Images/close_btn.gif" />
                                            <rich:toolTip value="#{pp_msg.tooltipClosesPanel}" direction="top-right" showDelay="${config.toolTipDelay}" styleClass="tool-tip"/>
                                        </rich:toggleControl>
                                        <h:outputText value="#{lang.language}"/>
                                        <font class="counterColor">
                                        (#{pp_msg.remainingChars}:</font><h:outputText class="counterColor" id="charsCounter" value="${config.profestionalProfileMaxLength-fn:length(lang.profile)}"/>
                                        <font class="counterColor">)</font>
                                    </rich:toolBarGroup>
                                    <rich:toolBarGroup location="right">
                                        <a4j:commandLink id="submit"
                                                         action="#{cvData.editUsr}"                           <<<<<<<<<<<<<<<<<< THIS LINE
                                                         value="#{common_msg.buttonSave}"
                                                         messagePlace="textarea"
                                                         onclick="CommandOnClick(#{rich:element('textarea')},'#{common_msg.dataSaving}','#{common_msg.dataSaved}');"
                                                         data="#{facesContext.maximumSeverity.ordinal ge 2}"
                                                         oncomplete="CommandOnComplete(#{rich:element('textarea')},data,1500); DataSaved();">
                                        </a4j:commandLink>
                                    </rich:toolBarGroup>
                                </rich:toolBar>
                                <h:inputTextarea
                                    id="textarea"
                                    rows="10"
                                    styleClass="professional-profile-input-area"
                                    binding="#{profilesRepeaterBean.profileInput}"
                                    value="#{lang.profile}"
                                    label="#{pp_msg.header}"
                                </h:inputTextarea>
                            </h:panelGrid>
                        </f:facet>
                    </rich:togglePanel>
                    <br/>
                </a4j:repeat>
            </h:form>Currently all data are stored for all panels at "Save" button click. I want to change it to save only changed panel. For each toolbar an instance of "lang" object is created which i want to send to backing bean where I planned to merge with JPA.
        public void SaveCVProfile(ICvProfileLang profile) {
            cvData.editChangedProfile(profile);
        }All combinations I try gave me just String as parameter value, not an Object reference.
    Any ideas?

    Thanks BalusC,
    I must have messed up my previous tries.
    I used you hint with "f:setPropertyActionListener ".
    <a4j:commandLink id="submit"
                     value="#{common_msg.buttonSave}"   <<<<<< "action"  - REMOVED
                     messagePlace="textarea"
                     onclick="CommandOnClick(#{rich:element('textarea')},'#{common_msg.dataSaving}','#{common_msg.dataSaved}');"
                     data="#{facesContext.maximumSeverity.ordinal ge 2}"
                     oncomplete="CommandOnComplete(#{rich:element('textarea')},data,1500); DataSaved();">
        <rich:toolTip value="#{pp_msg.tooltipButtonSave}" direction="top-left" showDelay="${config.toolTipDelay}" styleClass="tool-tip"/>
        <f:setPropertyActionListener target="#{profilesBean.saveCVProfile}" value="#{lang}" />
    </a4j:commandLink>I removed "action" from commandLink and passed the object to action listener.
    It works as intended now, even without using UIData#getRowData().

  • How to retrieve value from xml file

    hi all,
    can somebody pls tell me how to retrieve value from xml file using SAXParser.
    I want to retrieve value of only one tag and have to perform some validation with that value.
    it's urgent .
    pls help me out
    thnx in adv.
    ritu

    hi shanu,
    the pbm is solved, now i m able to access XXX no. in action class & i m able to validate it. The only thing which i want to know is it ok to declare static ArrayList as i have done in this code. i mean will it affect the performance or functionality of the system.
    pls have a look at the following code snippet.
    public class XMLValidator {
    static ArrayList strXXX = new ArrayList();
    public void validate(){
    factory.setValidating(true);
    parser = factory.newSAXParser();
    //all factory code is here only
    parser.parse(xmlURI, new XMLErrorHandler());     
    public void setXXX(String pstrXXX){          
    strUpn.add(pstrXXX);
    public ArrayList getXXX(){
    return strXXX;
    class XMLErrorHandler extends DefaultHandler {
    String tagName = "";
    String tagValue = "";
    String applicationRefNo = "";
    String XXXValue ="";
    String XXXNo = "";          
    XMLValidator objXmlValidator = new XMLValidator();
    public void startElement(String uri, String name, String qName, Attributes atts) {
    tagName = qName;
    public void characters(char ch[], int start, int length) {
    if ("Reference".equals(tagName)) {
    tagValue = new String(ch, start, length).trim();
    if (tagValue.length() > 0) {
    RefNo = new String(ch, start, length);
    if ("XXX".equals(tagName)) {
    XXXValue = new String(ch, start, length).trim();
    if (XXXValue.length() > 0) {
    XXXNo = new String(ch, start, length);
    public void endElement(String uri, String localName, String qName) throws SAXException {                    
    if(qName.equalsIgnoreCase("XXX")) {     
    objXmlValidator.setXXX(XXXNo);
    thnx & Regards,
    ritu

  • How to move value from one tlist to another tlist in same form?

    how to move value from one tlist to another tlist in same form on button press?
    Same like in data block wizard when we select value from 1st list it will go to 2nd list and can be move back. Please help i am new to forms .
    Regards

    just call the following proc in your add & add all buttons. Reverse the code for REMOVEs
    this proc will move one item at a time from list_item1 to list_item2.
    PROCEDURE add_an_item
    IS
      v_list_count    NUMBER;
      v_item1_label  VARCHAR2(60);
    BEGIN
      IF :list_item1 IS NOT NULL THEN v_list_count := nvl(Get_List_Element_Count('list_item1'),0);
          IF v_list_count >= 1 THEN FOR i IN 1..v_list_count
          LOOP
             IF   :list_item1    = Get_List_Element_Value('list_item1', i)
             THEN
                  v_item1_label := Get_List_Element_label('list_item1', i);                 
                  Add_List_Element('list_item2',1,v_item_label,:list_item1);         
               Delete_List_Element('list_item1',i);
               Exit;
             END IF;
          END LOOP;
           END IF;
       END IF;
    END;
    *********************************************************************************this proc will move all items from list_item1 to list_item2.
    PROCEDURE add_all_items
    IS
      v_list_count NUMBER;
      v_item_label VARCHAR2(60);
      v_item_value VARCHAR2(60);
    BEGIN
    v_list_count := nvl(Get_List_Element_Count('list_item1'),0);
    IF    v_list_count = 1 AND Get_List_Element_Value('list_item1', 1) IS NULL THEN NULL;
    ELSIF v_list_count >= 1 THEN
           FOR i IN 1..v_list_count
           LOOP
            v_item_value  := Get_List_Element_Value('list_item1', i);
            v_item_label  := Get_List_Element_label('list_item1', i);       
            Add_List_Element('list_item2',i,v_item_label,v_item_value);
           END LOOP;
           clear_list('list_item1');
    END IF;
    END;I added [ code ] tags to make this easier to read.
    Message was edited by:
    Jan Carlin

  • How to get value from list item

    Hi all,
    How to get value from list item?
    I have a problem with the List Item object
    in the Oracle forms.
    How can I retrieve the selected item from
    a list ?
    I didn't find any function like 'list.GET_
    SELECTED_ITEM()'...
    thanks
    Bala

    Hello,
    You get the value as for any other Forms item:
    :value := :block.list_tem ;Francois

  • HT4211 How do you switch from multitasking mode back to normal display mode?

    How do you switch from multitasking mode back to normal display mode?

    You mean switch from showing the recently used apps bar or dock back to regular home screen display mode?
    If so, select the Home button.

  • How To : Sync playlists from iOS device back to itunes - Windows

    How To : How To : Sync playlists from iOS device back to itunes - Windows (May work on Mac too)
    NOTE - THIS WILL ONLY WORK IF YOU HAVE THE MUSIC FILES ON THE COMPUTER ALREADY
    If your like me and format your computers only to discover that you've lost all those time consuming playlists that you spent hours on, well your in luck.
    Without any Third-Pary programs it's possible to save those awesome playlists, and pull them back from the blink of oblivion.
    Step 1 - Connect iDevice to your computer and then open iTunes.
    Step 2 - Locate your iDevice on the left side bar on iTunes under the heading 'Devices', click the arrow on the left of the devices name and select a playlist.
    Step 3 - Right-Click the selected playlist and choose 'Export playlist', Save it as a Text file.
    Step 4 - In iTunes, up the top click 'File' then locate Library, move across to 'Import Playlist...', Select the playlist you just created and click open.
    Step 5 - Your playlist will appear on the left side bar under the heading 'Playlists', Select the playlist and attempt to play one of the songs contained.
    Step 6 - You would have been prompted that iTunes doesnt see the file, select 'Locate' and then go to the location of your music and locate the file.
    (Sorry dont have an image for this one due to having all my music already found)
    Step 7 - Doing this once will find all the music in the playlist given that it's in a similar location of the song you found.
    Congrats you have successfully moved a playlist back from oblivion

    There's a different method.
    1. On iTunes -> Devices -> <your device> -> Summary -> Check Manually manage music and videos.
    2. On iTunes -> Devices -> <your device> -> Summary -> uncheck Manually manage music and videos.
    done.

  • How to read values from DMM4040

    Hi,
       I am using DMM4040, NI PXI 6509 device.
    I need to make some port pins high which i have already done and now i have to read value captured by DMM then i have to make my port pins low if my value is within limits.
    Can u suggest me how to read values from DMM and then by notification i ll make my port pins low.
    '' A professional is someone who can do his best work when he doesn't feel like it''...........

    What language are you using?  If using LabVIEW, you use the NI-DMM API to communicate with the 4040.  Just take your reading, do your limit comparison, and set your lines based on the comparison results.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How can i revert from iOS 5 back to iOS 4.3

    how can i revert from iOS 5 back to iOS 4.3?

    my handsfree in the car worked fine until i installed the ios5.1 update and now although it says its connected iy drops the connection if someone calls.
    having looked online it seems to be a common fault with this update so really om looking to go back to a previous ios to allow it to work again

  • How to set value from LOV only as a default reference not enforce validate check?

    In jdev 11.1.2.3,
    By creating  List of Value(LOV) for an attribute of a VO, I can get default value for the current VO's attribute from the lookup table, but it will also enforce a validate check for that value.
    If I input a value which is not in the lookup table, then errors will raised.
    Now I hope I can get default value from LOV, and can also input some new value (and this new value can be insert into the lookup table by a database trigger) for the attribute/field without failure to pass the check.
    Any one can help?
    Thanks!

    Hi, Arun
    Your suggestion let me get to know how to create a new record in the customeActions facet of inputComboBoxListOfValues, which I donot know before. It's great. and thank you very much.
    However, my current issue is a different requirement, let me describe it clearly as:
    I have a formlayout to input a field value which can be from a lookup table, or if this value is not in the lookup table then it can also be input without raising value validation check failure.and this new value can be added to the lookup table at the same time.
    for example, there is a FK attribute deptno in the EMP table, in a form for editing EMP attributes, user can input deptno value which is already in the DEPT lookup table by selecting from a LOV. also can input some new value which cannot be selected from the LOV, and this new deptno value will be posted to database both in EMP and DEPT table.
    The issue is, after create a LOV for deptno attribute in EMP VO, there will be a enforced value validation check, so new values cannot be input in EMP unless it is input into DEPT first.
    (http://docs.oracle.com/cd/E37975_01/web.111240/e16182/lists.htm#BABBJFBB)
    List of values are designed to return valid values only. As a result, validation rules defined on data source view object attributes will be suppressed.
    My question is: how to disable this enforced value validation for a LOV-enabled field?
    (There is other means to ensure user will input valid value for this field, for example ask him to double input.)
    Thanks again!
    bao

  • Getting parameter values from ITS to back end Modulepool program

    Hi,
    I worked on external ITS developments for SRM project
    I  was passing values from and to between ITS front end template and corresponding back end module pool program.
    I was using filed-set and field-get macro for passing values. It was working perfectly.
    Now i am in new  SRM 5.0 project where we are using integrated ITS and i developed small screen in which I am trying to read the value which I am entering in template text filed.
    In debug mode i could see that ,when it execute FIELD-GET macro  getting SY-SUBRC is equal to 1. I am not able to get the template value in PAI because of macro failure.
    I just copied the same program which i developed in external ITS system still same problem.
    Please some one help me  if I am missing some thing in this.
    Code which i am using.is
    in ITS:
    <form method="post"  name="zebp_rrcode" action="`WGateURL()`" >
    <textarea name="FREE_TEXT_DES" cols="35" rows="10" onKeyPress=fmlength()> </textarea>
    <input type=submit name="~OKCode=TEXT" value="Send text">
    </form>
    In Back end code of PAI.
    move sy-ucomm to ok_code.
      data: len type i.
       data: idx type i.
      data: wide_row(80)  occurs 0 with header line.
       data: wide_text(80) occurs 0 with header line.
       idx = 1.
          field-get 'FREE_TEXT_DES' idx wide_row len.
          if sy-subrc <> 0.
             exit.
          endif.
    Regards
    Srikanth Akula
    Message was edited by:
            Srikanth Akula

    Hi Srikanth,
    Can you please explain us how you were able to get and set the values.
    And may i know what for you have developed a Internet Service ie Scenario...?
    If you have any help documents for developing ITS application... plz forward it to this mail id...
    [email protected]
    Thanks
    Srinivasan K

  • JSF:how to get value from dinamically generated HtmlInputText components�H�H

    <h:panelGroup binding="#{dynamicInputGroupBean.group}"/>
    public HtmlPanelGroup getGroup() {
              if (this.getSelectedComp() == null) {
                   return this.group;
              FacesContext facesContext = FacesContext.getCurrentInstance();
              Application application = facesContext.getApplication();
              this.group = new HtmlPanelGroup();
              Set pSet = this.getSelectedComp().getParameterses();
              int size = pSet.size();
              this.instanceValue = new String[size];
              int i = 0;
              for (Iterator it = pSet.iterator(); it.hasNext();) {
                   Parameters tempP = (Parameters) it.next();
                   HtmlOutputLabel outputLable = new HtmlOutputLabel();
                   HtmlInputText inputText = new HtmlInputText();
                   inputText.setId("p" + i);
                   String valueBindingExpression = "#{dynamicInputGroupBean.instanceValue["+i+ "]}";
                   System.out.println(valueBindingExpression);
                   ValueBinding valueBinding = application
                             .createValueBinding(valueBindingExpression);
                   inputText.setValueBinding("value", valueBinding);
                   outputLable.setFor(inputText.getId());
                   outputLable.setValue(tempP.getParaname() + ": ");
                   group.getChildren().add(outputLable);
                   group.getChildren().add(inputText);
                   i++;
              // group.getChildren().add(new HtmlInputText());
              return group;
         }as codes show above, i successfully genera HtmlInputText dinamicaly�C
    but i got problems while i try to print those values...
    after the the jsp page presents in my browser,
    i input some words in the input components,
    and then click a commandButton hold an action to print their value
    action code :
    String[] tempArray = this.getInstanceValue();
    for (int i = 0; i < tempArray.length; i++) {
    System.out.println(tempArray);
    only NULL has been printed in the consol ....not the word i inputed!!!
    so my question is how can i get values from those
    dinamically generated HtmlInputText ????

    This approach is odd. What's the functional requirement after all? You normally attach the inputtext value to a backing bean property and do the desired command button action which is attached to a backing bean action method. In this method you then use the value for the query.

  • How to read value from Key flexfield added on to the newly created SIT

    Hi Experts,
    I have a requirrment to display a new structure in the Special Information Types (SIT) screen in SSHR. The data entered into the segment needs to be validated using PL/SQL function.
    I have performed below steps to display the structure/field on SIT Page
    1. Created new flexfield structure as XX_LEAVE_ENCASHMENT under the "HUMAN RESOURCE" Application (Application id- 800) and flexfield TITLE "Personal Analysis Flexfield" (PEA).
    2. Added a new segment "Encash Days" for the newly created flexfiled structure "XX_LEAVE_ENCASHMENT".
    3. Added this new structure in the Special Information Types form in HRMS responsibility
    4. The structure is enabled on the SIT screen.
    Now I want to validate the data entered in Encash Days field in this page by calling a PL/SQL function. This can be done by extending the SIT page Controller.
    But how should the ID of the newly enabled segment (in the new Flexfield strucuture) be retrieved in the controller inorder to read the user-entered value (to further call the validation program)? Or is there any other way of achieving this functionality in OAF?
    Please help.
    Thanks.

    Hi,
    Yes, u can get the value from the SIT and perform the relevant validation too.
    Refer http://apps2fusion.com/at/43-ss/453-oaf-extension-case-study
    Regards,
    Gyan

  • How to get values from a table(in jsp) for validation using javascript.

    hi,
    this is praveen,pls tell me the procedure to get values from a table(in jsp) for validation using javascript.
    thank you in advance.

    Yes i did try the same ..
    BEGIN
    select PROD_tYPE into :P185_OFF_CITY from
    magcrm_setup where atype = 'CITY' ;
    :p185_OFF_CITY := 'XXX';
    insert into mtest values ('inside foolter');
    END;
    When i checked the mtest table it shos me the row inserted...
    inside foolter .. Now this means everything did get execute properly
    But still the vallue of off_city is null or emtpy...
    i check the filed and still its empty..
    while mtest had those records..seems like some process is cleaining the values...but cant see such process...
    a bit confused..here..I tried on Load after footer...
    tried chaning the squence number of process ..but still it doesnt help
    some how the session variables gets changed...and it is changed to empty
    Edited by: pauljohny on Jan 3, 2012 2:01 AM
    Edited by: pauljohny on Jan 3, 2012 2:03 AM

Maybe you are looking for

  • The N97, Ovi, and some of my hatred.

    This is what's pi$$es me most off at the moment. There's more, but I can't be arsed to mentally whip myself by reminding myself about it. But this should cover my main points of bloodraging fury.  The camera. Why is the production N97 equipped with a

  • 2nd Gen iPad Mini stopped working yesterday.  Won't startup under and configuration and is not recognized by my iMac.

    2nd Gen iPad Mini stopped working yesterday.  Won't startup under and configuration and is not recognized by my iMac.  I believe it upgraded itself to iOS 8 (????)

  • Xbox 360 Help

    I bought a wireless adapter for my xbox 360, but my router apparantly rejects the transmission. it says on my 360 that im connected but when i try to connect to live, it says im not connected. the light on the back of the adapter is red, i cant get a

  • No of transactions in BDC session

    Hi Do we have any limitation on no of transaction a single session can handle. I mean I have writtena BDC and I am running it using generate session method, which will generate a session in sm35. I have more than 2 million reocrds to update. which me

  • 850E and P4C 2.4?!

    is it possible (fsb 800)