Pick List Value Not Working Properly

Hi Oracle Framework Gurus,
I have a strange Issue in which one of my cusom page is working properly in Jdev and not working Properly when deployed in the apps instance.
There are two custom pages with the same VO.
What I do is have a picklist from one of the custom page and depending on the value of the picklist and I navigate to the other custom page.
This is working properly in the JDev,But for some reasons it works properly in apps instance, when I try to run the first time(ie) when I run page A and pick 'X' from the picklist the Page 'B' is coming properly as per the controller code and when i pick 'Y' from the picklist in Page B, it is navigating to Page A as per the controller code.
This works fine for the first time,But when i again select 'X' from the picklist the proper value from the Picklist is not getting selected and passed to the custom package and so I get wrong values in Page 'B'
What could be the reason for it as it working fine in Jdev,I can navigate from Page A to Page B and Page B to Page A as many times possible.

Hi Anand,
Controller1 :
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
//int intPersonId = pageContext.getEmployeeId();
int intPersonId; // = pageContext.getEmployeeId();
String strPersonId = Integer.toString(277671);
//String strPersonId = Integer.toString(intPersonId);
java.util.Date sysdate = pageContext.getCurrentUserDate();
String convSysDate = pageContext.getOANLSServices().dateToString(sysdate);
// Date testdate = (Date)sysdate.dateValue();
// get the Application Module
OAApplicationModule oaAM = pageContext.getApplicationModule(webBean);
Serializable parameters[] = { strPersonId,convSysDate };
Serializable param[] = { strPersonId };
System.out.println("The Sysdate PF "+convSysDate);
//pass parameters to Application Module
oaAM.invokeMethod("insertLovRow", param);
if ((String)pageContext.getSessionValue("PFlag1") != null)
String PFlag1 =(String)pageContext.getSessionValue("PFlag1");
String SDate1 =(String)pageContext.getSessionValue("SDateSession1");
Serializable param1[] = { SDate1 };
oaAM.invokeMethod("insertLovRow", param);
oaAM.invokeMethod("initEmpLovQuery1",param1);
oaAM.invokeMethod("initEmpTransLovQuery1");
OAMessageChoiceBean orgMesgChoiceBean = (OAMessageChoiceBean)webBean.findChildRecursive("Year");
orgMesgChoiceBean.setPickListViewObjectDefinitionName("EmployeeTest.oracle.apps.per.server.EmpTransDateLov");
orgMesgChoiceBean.setListValueAttribute("StartDate");
orgMesgChoiceBean.setListDisplayAttribute("DateRange" );
orgMesgChoiceBean.setPickListCacheEnabled(false);
else
oaAM.invokeMethod("insertRow", parameters);
oaAM.invokeMethod("initQuery", param);
oaAM.invokeMethod("execQuery");
oaAM.invokeMethod("totexecQuery");
OAMessageChoiceBean orgMesgChoiceBean = (OAMessageChoiceBean)webBean.findChildRecursive("Year");
orgMesgChoiceBean.setPickListViewObjectDefinitionName("EmployeeTest.oracle.apps.per.server.EmployeeDateLovVO");
orgMesgChoiceBean.setListValueAttribute("StartDate");
orgMesgChoiceBean.setListDisplayAttribute("DateRange" );
orgMesgChoiceBean.setPickListCacheEnabled(false);
oaAM.invokeMethod("initEmpLovQuery");
OAViewObject oaviewobject1 =(OAViewObject)oaAM.findViewObject("EmployeeUtilVO1");
oaviewobject1.reset();
if (oaviewobject1 != null)
do
if(!oaviewobject1.hasNext())
break;
oaviewobject1.next();
OARow row = (OARow)oaviewobject1.getCurrentRow();
String fullName = (String)row.getAttribute("EmpDep");
System.out.println("The Name is "+fullName);
} while(true);
* Procedure to handle form submissions for form elements in
* a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
//int intPersonId = pageContext.getEmployeeId();
//String strPersonId = Integer.toString(intPersonId);
int intPersonId; // = pageContext.getEmployeeId();
String strPersonId = Integer.toString(277671);
OAApplicationModule oaAM = pageContext.getApplicationModule(webBean);
if (pageContext.getParameter("ViewDetails") != null)
pageContext.putSessionValue("strPersonId", strPersonId);
pageContext.setForwardURL("OA.jsp?page=/EmployeeTest/oracle/apps/per/webui/EmployeePanelIB",
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
null,
true, // Retain AM
OAWebBeanConstants.ADD_BREAD_CRUMB_YES, // Show breadcrumbs
OAWebBeanConstants.IGNORE_MESSAGES);
System.out.println("strPersonId "+strPersonId);
String strEvent= pageContext.getParameter(EVENT_PARAM) ;
if ( strEvent.equals("update"))
OAMessageChoiceBean DepStatus1 = (OAMessageChoiceBean) webBean.findIndexedChildRecursive("Year");
String sDate = DepStatus1.getSelectionValue(pageContext);
//String sDate = DepStatus1.getValue(pageContext).toString();
//Serializable parameters[] = { strPersonId,sDate };
Serializable parameters[] = { strPersonId,sDate };
Serializable param[] = { strPersonId };
System.out.println("The PersonId "+strPersonId);
System.out.println("The Controller Date passed is IBUtil "+sDate);
oaAM.invokeMethod("insertRow", parameters);
oaAM.invokeMethod("initQuery", param);
oaAM.invokeMethod("execQuery");
String flag = "1";
//pageContext.putSessionValue("strPersonId", strPersonId);
pageContext.putSessionValue("PFlag", flag);
pageContext.putSessionValue("SDateSession", sDate);
pageContext.setForwardURL("OA.jsp?page=/EmployeeTest/oracle/apps/per/webui/EmpTestPG",
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
null,
true, // Retain AM
OAWebBeanConstants.ADD_BREAD_CRUMB_YES, // Show breadcrumbs
OAWebBeanConstants.IGNORE_MESSAGES);
Controller 2:
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
//int intPersonId = pageContext.getEmployeeId();
int intPersonId; // = pageContext.getEmployeeId();
String strPersonId = Integer.toString(277671);
//String strPersonId = Integer.toString(intPersonId);
java.util.Date sysdate = pageContext.getCurrentUserDate();
String convSysDate = pageContext.getOANLSServices().dateToString(sysdate);
// get the Application Module
OAApplicationModule oaAM = pageContext.getApplicationModule(webBean);
Serializable parameters[] = { strPersonId,convSysDate };
Serializable param[] = { strPersonId };
System.out.println("The Sysdate PF "+convSysDate);
//pass parameters to Application Module
oaAM.invokeMethod("insertLovRow", param);
if ((String)pageContext.getSessionValue("PFlag") != null)
String PFlag1 =(String)pageContext.getSessionValue("PFlag");
String SDate1 =(String)pageContext.getSessionValue("SDateSession");
Serializable param2[] = { strPersonId, SDate1 };
Serializable param1[] = { SDate1 };
oaAM.invokeMethod("insertLovRow", param);
oaAM.invokeMethod("initEmpLovQuery1",param1);
oaAM.invokeMethod("initEmpTransLovQuery1");
OAMessageChoiceBean orgMesgChoiceBean = (OAMessageChoiceBean)webBean.findChildRecursive("Year");
orgMesgChoiceBean.setPickListViewObjectDefinitionName("EmployeeTest.oracle.apps.per.server.EmpTransDateLov");
orgMesgChoiceBean.setListValueAttribute("StartDate");
orgMesgChoiceBean.setListDisplayAttribute("DateRange" );
orgMesgChoiceBean.setPickListCacheEnabled(false);
else
oaAM.invokeMethod("insertRow", parameters);
oaAM.invokeMethod("initQuery", param);
oaAM.invokeMethod("execQuery");
oaAM.invokeMethod("totexecQuery");
OAMessageChoiceBean orgMesgChoiceBean = (OAMessageChoiceBean)webBean.findChildRecursive("Year");
orgMesgChoiceBean.setPickListViewObjectDefinitionName("EmployeeTest.oracle.apps.per.server.EmployeeDateLovVO");
orgMesgChoiceBean.setListValueAttribute("StartDate");
orgMesgChoiceBean.setListDisplayAttribute("DateRange" );
orgMesgChoiceBean.setPickListCacheEnabled(false);
oaAM.invokeMethod("initEmpLovQuery");
OAViewObject oaviewobject1 =(OAViewObject)oaAM.findViewObject("EmployeeUtilVO1");
oaviewobject1.reset();
if (oaviewobject1 != null)
do
if(!oaviewobject1.hasNext())
break;
oaviewobject1.next();
OARow row = (OARow)oaviewobject1.getCurrentRow();
String fullName = (String)row.getAttribute("EmpDep");
System.out.println("The Name is "+fullName);
} while(true);
* Procedure to handle form submissions for form elements in
* a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
OAApplicationModule oaAM = pageContext.getApplicationModule(webBean);
//int intPersonId = pageContext.getEmployeeId();
//String strPersonId = Integer.toString(intPersonId);
int intPersonId; // = pageContext.getEmployeeId();
String strPersonId = Integer.toString(277671);
if (pageContext.getParameter("ViewDetails") != null)
pageContext.setForwardURL("OA.jsp?page=/EmployeeTest/oracle/apps/per/webui/EmpPanelPG",
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
null,
true, // Retain AM
OAWebBeanConstants.ADD_BREAD_CRUMB_YES, // Show breadcrumbs
OAWebBeanConstants.IGNORE_MESSAGES);
pageContext.putSessionValue("strPersonId", strPersonId);
String strEvent= pageContext.getParameter(EVENT_PARAM) ;
if ( strEvent.equals("update"))
OAMessageChoiceBean DepStatus1 = (OAMessageChoiceBean) webBean.findIndexedChildRecursive("Year");
String sDate = DepStatus1.getSelectionValue(pageContext);
//String sDate = DepStatus1.getValue(pageContext).toString();
Serializable parameters[] = { strPersonId,sDate };
Serializable param[] = { strPersonId };
System.out.println("The Controller Date passed is CBUtil "+sDate);
System.out.println("The PersonId "+strPersonId);
oaAM.invokeMethod("insertRow", parameters);
oaAM.invokeMethod("initQuery", param);
oaAM.invokeMethod("execQuery");
String flag = "2";
//pageContext.putSessionValue("strPersonId", strPersonId);
pageContext.putSessionValue("PFlag1", flag);
pageContext.putSessionValue("SDateSession1", sDate);
pageContext.setForwardURL("OA.jsp?page=/EmployeeTest/oracle/apps/per/webui/EmpIBUtilPG",
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
null,
true, // Retain AM
OAWebBeanConstants.ADD_BREAD_CRUMB_YES, // Show breadcrumbs
OAWebBeanConstants.IGNORE_MESSAGES);
Hi Above two are the controller codes forget the rest of the codes,Concentrate on the PFR code, Just want to know what I am doing is correct or not.
First time when I select the Picklist value,the value gets passed as a parameter to the custom package and the page gets displayed properly and vice versa,But I am not able to do the same cycle again for some reasons.
Please get back to me ASAP.
Regards,
Magesh.M.K.
Edited by: user1393742 on Oct 19, 2010 11:58 PM

Similar Messages

  • Pick activity is not working properly while creating two or more file adapt

    Hi,
    pick activity is not working properly while creating two or more file adapter for bpel process.
    bpel process compiled and deployed succesfully but while observing the wsdl file of deployed process you can find only one file adapter. so it polls only from that location.
    can anybody help on over this? or it's limitation of jdev to use only one file adapter at time while using Pick.
    Thanks
    sagar

    Does anybody tried this?
    Thanks
    sagar

  • Pick color feature not working properly -- how do I reset?

    Pick color feature not working properly -- how do I reset?

    You need to contact Adobe for you billing problem this is a user four not adobe customer support.
    For your Photoshop Problems this user community may be helpful. 
    Supply pertinent information for quicker answers
    The more information you supply about your situation, the better equipped other community members will be to answer. Consider including the following in your question:
    Adobe product and version number
    Operating system and version number
    The full text of any error message(s)
    What you were doing when the problem occurred
    Screenshots of the problem
    Computer hardware, such as CPU; GPU; amount of RAM; etc.

  • Select List - checkbox not working properly

    Hi,
    Can anyone help? I'm able to insert one record into the table with the code listed below, if I select only one checkbox. I get this error message, if I select more than one checkbox: ORA-01722: invalid number ORA-02063: Error ERR-1003 Error executing computation query . Note - Employee number is numeric in table. This is my select list/checkbox field being used in application. Thanks.... Elaine
    Procedure being used is:
    create or replace procedure "SAF_INSERT_MEETING_RECORDS"(
    EMPNUMBER_in IN SAF_MEETING_INFO_V.EMPNUMBER%TYPE,
    COURSEID_in IN SAF_MEETING_INFO_V.COURSEID%TYPE,
    TRAINDATE_in IN SAF_MEETING_INFO_V.TRAINDATE%TYPE,
    HOURSTRAINED_in IN SAF_MEETING_INFO_V.HOURSTRAINED%TYPE,
    NEXTTRAINDATE_in IN SAF_MEETING_INFO_V.NEXTTRAINDATE%TYPE,
    DATEADDED_in IN SAF_MEETING_INFO_V.DATEADDED%TYPE,
    ADDEDBY_in IN SAF_MEETING_INFO_V.ADDEDBY%TYPE,
    DATEMODIFIED_in IN SAF_MEETING_INFO_V.DATEMODIFIED%TYPE,
    MODIFIEDBY_in IN SAF_MEETING_INFO_V.MODIFIEDBY%TYPE,
    CURDEPT_in IN SAF_MEETING_INFO_V.CURDEPT%TYPE,
    CURDEPTDESC_in IN SAF_MEETING_INFO_V.CURDEPTDESC%TYPE,
    SEQNUM_in IN SAF_MEETING_INFO_V.SEQ_NUM%TYPE)
    is
    myHoursTrained NUMBER;
    mySeq NUMBER;
    vCHECKBOXES APEX_APPLICATION_GLOBAL.VC_ARR2;
    BEGIN
    vCHECKBOXES := APEX_UTIL.STRING_TO_TABLE(EMPNUMBER_in);
    myHoursTrained := TO_NUMBER(HOURSTRAINED_in);
    FOR i IN 1..vCHECKBOXES.COUNT
    LOOP
    BEGIN
    SELECT SAF_MEETING_SEQ.nextval
    INTO mySeq
    FROM dual;
    END;
    INSERT INTO SAF_MEETING_INFO_V
    (EMPNUMBER,COURSEID,TRAINDATE,HOURSTRAINED,NEXTTRAINDATE,DATEADDED, ADDEDBY,DATEMODIFIED,MODIFIEDBY,CURDEPT,CURDEPTDESC,SEQ_NUM)
    VALUES
    (vCHECKBOXES(i) , COURSEID_in, TRAINDATE_in, myHoursTrained, NEXTTRAINDATE_in, SYSDATE,
    ADDEDBY_in, DATEADDED_in, MODIFIEDBY_in, CURDEPT_in, CURDEPTDESC_in, mySeq);
    END LOOP;
    END;

    varad,
    Thank you so much for your response. I had a few issues with numeric vs character data that I needed to address. I was able to resolve them all, based on the information you provided. I'm posting my new working code. Thanks again. Elaine
    Working code is:
    CREATE OR REPLACE procedure "SAF_INSERT_MEETING_RECORDS"(
    EMPNUMBER_in IN VARCHAR2,
    COURSEID_in IN SAF_MEETING_INFO_V.COURSEID%TYPE,
    TRAINDATE_in IN SAF_MEETING_INFO_V.TRAINDATE%TYPE,
    HOURSTRAINED_in SAF_MEETING_INFO_V.HOURSTRAINED%TYPE,
    NEXTTRAINDATE_in SAF_MEETING_INFO_V.NEXTTRAINDATE%TYPE,
    DATEADDED_in IN SAF_MEETING_INFO_V.DATEADDED%TYPE,
    ADDEDBY_in IN SAF_MEETING_INFO_V.ADDEDBY%TYPE,
    DATEMODIFIED_in IN SAF_MEETING_INFO_V.DATEMODIFIED%TYPE,
    MODIFIEDBY_in IN SAF_MEETING_INFO_V.MODIFIEDBY%TYPE,
    CURDEPT_in IN SAF_MEETING_INFO_V.CURDEPT%TYPE,
    CURDEPTDESC_in IN SAF_MEETING_INFO_V.CURDEPTDESC%TYPE,
    SEQNUM_in IN SAF_MEETING_INFO_V.SEQ_NUM%TYPE
    is
    mySeq NUMBER;
    vCHECKBOXES APEX_APPLICATION_GLOBAL.VC_ARR2;
    BEGIN
    vCHECKBOXES := APEX_UTIL.STRING_TO_TABLE(EMPNUMBER_in);
    FOR i IN 1..vCHECKBOXES.COUNT
    LOOP
    BEGIN
    SELECT SAF_MEETING_SEQ.nextval
    INTO mySeq
    FROM dual;
    END;
    INSERT INTO SAF_MEETING_INFO_V
    (EMPNUMBER,COURSEID,TRAINDATE,HOURSTRAINED,
    NEXTTRAINDATE,DATEADDED,
    ADDEDBY,DATEMODIFIED,MODIFIEDBY,CURDEPT,CURDEPTDESC,SEQ_NUM)
    VALUES
    (to_number(vCHECKBOXES(i)), COURSEID_in, TRAINDATE_in, HOURSTRAINED_in,
    NEXTTRAINDATE_in, DATEADDED_in,
    ADDEDBY_in, DATEMODIFIED_in, MODIFIEDBY_in, CURDEPT_in, CURDEPTDESC_in, mySeq);
    END LOOP;
    END;
    /

  • SharePoint 2013 Community members list is not working properly.

    Hello All,
    We have a community site at our office. It is having a discussion list which has almost 2000 discussion. The problem is the members who have raised questions or discussions should get added in community members list. But its not happening. There was only
    11 members were added. The remaining members are not there. So It is showing the wrong top contributors. I really weird due to this issue.
    Please help me.
    Gore T.Richard

    Hi Gore,
    Please try to use the following code to get the members count, then check whether it corrects or not.
    SPWeb web = SPContext.Current.Web;
    SPList Members = web.Lists.TryGetList("Community Members"));
    try
    SPQuery query = new SPQuery();
    query.Query = "<Where><Eq><FieldRef Name="MemberStatusInt"/><Value Type="Integer">1</Value></Eq></Where>";
    SPListItemCollection colection = Members.GetItems(query);
    int membersJoined = colection.Count
    catch (Exception)
    http://sharepoint.stackexchange.com/questions/76973/number-of-memebers-inside-my-community-site-is-wrong
    Or try to reactivate the "community feature" feature and activate "Site Feed" feature at site level.
    If this issue still exists, you can also try to update the latest CU for SharePoint 2013.
    http://blogs.technet.com/b/stefan_gossner/archive/2015/04/14/april-2015-cu-for-sharepoint-2013-has-been-released.aspx
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Binding gateway service with List not working properly with expand

    Hi all,
    We have an orderlist with details, we use the splitapp for it, it's working nicely with a gatewayservice. We have now added with expand 2 orderpartners. I see the 2 partners, only is it completly the same data. I checked the oData structure and I see indeed that the 2 partners are the same. This is weird, because when I execute the service, via my browser, I see 2 different partners.
    If I execute the service directly via the read function, I see in the oData that I also have 2 different partners. So my conclusion is that the direct read of the service is working and executing the service via the sap.m.List is not working with the expand.
    Now my question is, does somebody know what's going wrong here, or is it a bug in the sap.m.List? Below you find code snippets how I call the service.
    This call is working:
    oModel.read("/OrderListSet", null, ["$orderby=BegTstmp asc&$filter=Userid eq 'user' and DateFrom eq datetime'2014-04-20T00:00:00' and DateTo eq datetime'2014-04-27T00:00:00'&$expand=OrderPartners"], null, function(oData, oResponse){  
      }, null );
    The binding via the sap.m.list is:
    var oList = new sap.m.List("orderList", {
      mode: "{device>/listMode}",
                items: {
            path: "/OrderListSet",
               parameters: {expand: "OrderPartners"},
            template : new sap.m.StandardListItem({
            title: {
                   parts: [
                           {path: "BegTstmp", type: new sap.ui.model.type.DateTime({pattern: "H:mm"})},
                           {path: "DataCol2"}
                   formatter : function(strDate, strDescription) { return strDate + " - " + strDescription; }
            description: {
            parts: [
                          "DataCol3",
                          "DataCol4",
                          "DataCol5",
                          "DataCol6"
            type: sap.m.ListType.Navigation,
            icon: "{icon}",
            customData: [
            new sap.ui.core.CustomData({
            key: "orderId",
            value: "{Orderid}"
            new sap.ui.core.CustomData({
            key: "type",
            value: "{Type}"
            // Sort the list on date and group the list on day
                   sorter: new sap.ui.model.Sorter("BegTstmp", false, oGrouper),
                   // Filter the list, this directly refrenced to the gatewayservice
            filters: [
                     util.Filter.getUserId(),
                     util.Filter.getCurrentWeekFromFilter(),
                     util.Filter.getCurrentWeekToFilter(),

    Fine. If you're trying to bind any attributes of OrderPartners, bind it as OrderPartners/attribute-name. Say if "BegTstmp" an attribute of OrderPartners bind it as OrderPartners/BegTstmp.
    Regards
    Sakthivel

  • Sum function not working properly in Crystal XI. Its showing total count of the values

    We have migrated one application from .net framework 1.0 to .net framework  2 (from Visual studio 2003 to Visual STUDIO 2005). Now after migration we are facing some problem related to the sum function in Crystal report 10. It is not working properly.
    So we migrated to Crystal report XI release 2 (though still using evaluation version for testing purpose), the problem is not yet resolved.
    The problem we are facing is while using the summary in the group field, it is showing the number of rows instead of the sum of the values.
    We have checked the same with min-max functions, and it is working properly with those.
    We have tried to make the sum by formula field. In such case, it is not showing any syntactical error but at execution time, it is throwing an error saying "A number field or currency amount field is required here".
    In the  the report the datatype of the field on which we are applying the sum function, is number, and in the table from where the data is fetched, the datatype is numeric(9,6).
    Any idea why sum function is not working ?
    I was browsing the net and saw running totals can be a work around for such summation issues in Crystal Report XI.
    Can you please provide insight of how to implement running totals for summation purpose in solving such issues.

    Are you seeing this happen in the Crystal designer as well, outside of any .NET application?

  • List of Character which cause Query not work properly

    I want the List of characters and resolution which can leads the SQL query to not work properly
    LIKE
    Problem: Single Quotes " ' " in SQL query.
    Solution: Use one more single Quotes
    Example: Select 'D''Sa'as EName from dual;
    Please provide all Such special cases so I take care while developing my application.

    That's what I ment by 'copied to every other iBook I have to create in this series' ( I mean 'linked in ePub export pop up').
    I use a small CSS file containing what I need and have no surprises anymore. I learned a lot this weeks...
    And concerning InDesign (as I always say in the IT-world): For every solution there is a problem...
    Cees
    information designer

  • Skrolu mouse does not work properly in the list of bookmarks

    skrolu mouse does not work properly in the list of bookmarks
    yer imleri listesinde maus skrolu düzgün çalışmıyor

    A possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    You can also try to move (delete) the Firefox plist file.<br />
    See [http://www.macfixit.com/article.php?story=20060606082246983 How .plist files become corrupt and troubleshooting the results]
    Go to "Library > Preferences" and remove the plist file for Firefox (org.mozilla.firefox.plist).

  • Af:setActionListener not working properly with resource bundle value

    Hi,
    I am making a ADF-BC JSF project in which I have a commit button a page. On click of this Commit button I am setting some value (Status) through setActionListener. But as this value(Status) is subject to change, so I have stored it in the resource properties file and I'm assigning it from the resource properties file.
    Now when I hardcode the value, it works properly but when I give it from the properties resource file it sets this value to NULL. Here is my code.
    <af:commandButton text="Commit" action="some action”}>
    <af:setActionListener to="#{bindings.SP11DeliveryWarrantView1WarrantStatus.inputValue}"
    from="#{res['warrantstatus.InProcess']}"/>
    </af:commandButton>
    If I write #{'Some hardcoded value'} instead of #{res['warrantstatus.InProcess']}. It works fine. May I know what is wrong here or is it a bug?
    Neeraj.

    Hi,
    I had the same problem and many thanks Frank - yes this does work. Just for clarity here is what I did with my implementation:
    In my session level managed bean (SystemState) I added the relevant values from the bundle:
    public class SystemState
      public static final String RESOURCE_BUNDLE = "gpl.viewcontroller.resources.UIResources" ;
      private HashMap<String,String> formTypeStatuses = new HashMap<String,String>() ;
      public SystemState()
        formTypeStatuses.put("live",JSFUtils.getResourceBundleValue("home.menu2.livestatus.value",RESOURCE_BUNDLE)) ;
        formTypeStatuses.put("archive",JSFUtils.getResourceBundleValue("home.menu2.archivestatus.value",RESOURCE_BUNDLE)) ;
        formTypeStatuses.put("all",JSFUtils.getResourceBundleValue("home.menu2.allstatuses.value",RESOURCE_BUNDLE)) ;
      public HashMap<String, String> getFormTypeStatuses()
        return formTypeStatuses;
    }I then referenced these values from my jspx page:
                <af:commandLink actionListener="#{bindings.ExecuteWithParams1.execute}"
                                action="ExecuteWithParams1"
                                text="#{res['home.menu2.livestatus.text']}"
                                disabled="#{!bindings.ExecuteWithParams1.enabled}">
                  <af:setActionListener from="#{session_system_state.formTypeStatuses.live}"
                                        to="#{requestScope.status}"/>
                </af:commandLink>
                <af:commandLink actionListener="#{bindings.ExecuteWithParams1.execute}"
                                action="ExecuteWithParams1"
                                text="#{res['home.menu2.archivestatus.text']}"
                                disabled="#{!bindings.ExecuteWithParams1.enabled}">
                  <af:setActionListener from="#{session_system_state.formTypeStatuses.archive}"
                                        to="#{requestScope.status}"/>
                </af:commandLink>
                <af:commandLink actionListener="#{bindings.ExecuteWithParams1.execute}"
                                action="ExecuteWithParams1"
                                text="#{res['home.menu2.allstatuses.text']}"
                                disabled="#{!bindings.ExecuteWithParams1.enabled}">
                  <af:setActionListener from="#{session_system_state.formTypeStatuses.all}"
                                        to="#{requestScope.status}"/>
                </af:commandLink>Dave

  • Copy Function is Not Working properly In Order Management

    Hi,
    Description-
    When an order with remnant model is copied, it copied only the topple model line and they include items attached to the top model line. It doesn’t copy the
    option class lines and the option item lines (unshipped and shipped).
    Example-
    Enter an order with for pd-pto-model. See order#21231.The ordered quantities and structure of the model is shown below:
    pd-pto-model 5 qty
    pd-std-item1 (included item) 5 qty
    pd-pto-oc (option class) 5 qty
    pd-std-item1 (included item with rfr checked) 5 qty
    pd-std-item2 (option item with rfr checked) 5 qty
    pd-std-item3 (option item) 5 qty
    Booked the order and pick relased the order. While shipconfirming only shipped 5 qty of pd-std-item3 and staged the rest. On querying the sales order, the line status is seen correctly as follows:
    pd-pto-model Closed
    pd-std-item1 (included item) Picked
    pd-pto-oc (option class) Closed
    pd-std-item1 (included item with rfr checked) Picked
    pd-std-item2 (option item with rfr checked) Picked
    pd-std-item3 (option item) Partially Interfaced to receivables
    Copied this order from the order header. The new order# is 21232.On querying the order, I see only 2 lines as follows:pd-pto-model.
    Anyone can help me on this issue.
    Thanks,
    Chinna

    haisrig wrote:
    Hi ,
    We are facing an issue with select() in Solaris 10. we had written a sample program to this issue.
    Program name :- sel.cpp
    int main()
    struct timeval sleeptime;
    sleeptime.tv_sec = 60;
    printf("1\n");
    select(0,NULL,NULL,NULL,&sleeptime);
    printf("2");
    return 0;
    When i run this program in Solaris 9, its printing 1 and after one minute its printing 2.
    When i run this program on Solaris 10, its printing 1 and 2 without waiting for 60 seconds.
    When i tried to print tv_usec, its printing as 0 in solaris 9 and some garbage values in solaris 10.
    I think because of that the above select function is not working properly in solaris 10.
    Why the tv_usec is not taking 0 as default values in Solaris 10?
    We are using our legacy code for past 20 years. So, before going to do any changes we are trying to find why this happenig like this.Hi
    It sounds to me that you've been lucky for 20 years then.
    Local POD variables on the stack that aren't explicitly initialized can contain any value. Here's what I see in your app with dbx
    (dbx) run
    Running: sel
    stopped in main at line 9 in file "sel.cpp"
        9      sleeptime.tv_sec = 60;
    (dbx) print sleeptime
    sleeptime = {
        tv_sec  = -4198732
        tv_usec = 0
    }That's on a Solaris 10 SPARC machine. If I try it on a Solaris 10 x86 box then I get
    (dbx) print sleeptime
    sleeptime = {
    tv_sec = -830490588
    tv_usec = 134510556
    and I see the behaviour that you describe.
    Paul

  • Evaluate variable Not working properly

    Hi
    When i used Evaluate variable , It is having list of Operator (=,<>,IN etc).
    When is specified operator '=' and give one value its working properly.
    eg. Select name from table ;
    O/p = AA
    In ODI , Operator =AA its working .
    But when i specified Operator "IN" and giving value ('AA','AB') Or value (AA,AB) its not working propelry.
    Any other operator or any other option to use IN operator.
    Thanks
    Ashwini

    Hi,
    I never saw that "IN" woks!
    There is a workaround, use a at variable refresh tab a command like: (you can refresh the variable from itself)
    select case when '#project_code.my_var' in ('ab','a','x')
    then 'OK'
    else 'KO'
    end
    from dual
    put it as refresh step and add a new instance as evaluate "= OK"
    Does it help you?
    Edited by: Cezar Santos on 05/02/2009 08:59

  • Enable/Disable Library Filters not working properly

    I am running LR 3.4.1 on OS X 10.6.8.  The Library>Enable Filters command does not work properly when I have a Library Filter set up to  filter on more than on criterion. For example, I have a Library Filter preset called "Needs Location  Keywords" that selects all images for which don't have "Location" as one  of their keywords and which are not flagged as Rejected.  In other  words, there are two filter criteria applied: 1) TEXT: Keywords "Don't Contain" "Location"
    2) ATTRIBUTE: Flag = Flagged OR Flag = Unflagged Toggling the Filter State by choosing Library>Enable Filters works as  desired when the Filter State is changed to OFF; all images in the  selected folder are displayed.  However, when Library>Enable Filters is selected a second time, changing the Filter State back to ON, only  one of the original filter criteria is applied, namely: 1) TEXT: Keywords "Don't Contain" "Location" However,  ATTRIBUTE Filtering is NOT re-enabled as one would expect. 
    This is repeatable with different filter settings and different folders.
    Is this behavior unique to my system or are other seeing the same thing?
    Thanks,
    Michael

    It is a known problem, but certainly not widely-known. The filter columns don't work properly on custom fields when the field is text and when the entered value consists of more than one word. IIRC they work if the possible values are listed in the plug-in's field definition, or with "enum" fields.
    Smart collections do work as expected with text custom fields.
    John

  • Eclipse-cdt debugger not working properly

    I have the latest versions of eclipse, eclipse-cdt, and gdb via pacman, and when I go to debug a simple program in Eclipse, I get the following errors:
    Stopped due to shared library event
    Stopped due to shared library event
    Single stepping until exit from function __libc_start_main,
    which has no line number information.
    mi_cmd_stack_list_frames: No stack.
    The debugging functions properly (for the most part, I noticed that I can't step into the standard C++ headers, though), but after the debug ends it displays the above error. Any idea what's wrong? The relevant part of the gdb trace is:
    [1,139,908,307,875] 5-gdb-show prompt
    [1,139,908,307,876] (gdb)
    [1,139,908,307,877] 5^done,value="(gdb) "
    [1,139,908,307,883] 6-stack-list-frames
    [1,139,908,307,883] (gdb)
    [1,139,908,307,884] &"mi_cmd_stack_list_frames: No stack.n"
    [1,139,908,307,886] 6^error,msg="mi_cmd_stack_list_frames: No stack."
    [1,139,908,308,072] 7-gdb-set auto-solib-add on
    [1,139,908,308,073] (gdb)
    [1,139,908,308,074] 7^done
    [1,139,908,328,397] ~"Single stepping until exit from function __libc_start_main, nwhich has no lin
    e number information.n"
    [1,139,908,328,437] 112*stopped,reason="exited-normally"
    [1,139,908,328,582] 113-gdb-exit
    [1,139,908,328,608] (gdb)

    Originally posted by: ccvural.cerenbilgisayar.com.tr
    nexus yazmış:
    > Hi:
    >
    > I am currently trying to debug a multi-threaded program writtten in C++,
    > with CDT and Eclipse. But, debugger seems to be not working properly.
    > Since, debugger sometimes stops in different lines that are not actually
    > breakpoints. And also debugger turns back in the code, miss some
    > breakpoints.
    > Below, I give information about what I use for developing:
    >
    > Eclipse 3.1.1
    > Plug-in: CDT 3.0.2
    > gcc (GCC) 3.4.4
    >
    > Debugger: GDB debugger Shared Libraries: None
    > Protocol: mi
    >
    > Thanks...
    >
    What is your Operating System. Linux , Windows ?
    If it's windows cygwin is better than MinGW while debugging, especiallly
    with multithreading
    Regards
    CC Vural

  • Wait for field to equal to value not working in Sharepoint desginer 2013

    Hi ,
    I have two Work flow
    WF1 & WF2
    In below image WF2 it will update a list column where WF1 work flow In Progress
    In WF1
    It wait for Other Task Parallel value equal to started.
    WF2 Update the list correctly but WF1 not work properly but
    when I update list Item then it works fine for WF1 .
    Please let me know if any thing wrong.
    Regards
    Sachin

    Hi cameron,
    We have two list as mention below
    Agent list -Attach WF1
    Task list-Attach WF2
    WF1 one wait for action change column value from WF2
    WF2 update a column value as show in fig above perfectly fine, where WF1 in waiting state to get the status.
    but status is already updated.
    When I have edit the same  item in which WF2 update its column value then my WF1 working fine for " wait for Other Task Parallel value equal to started" action in my Agent list.
    Regards
    Sachin

Maybe you are looking for

  • Debit and Credit notes not to update COPA cost of sales when doing price ad

    Hi Experts, Please help me to fix the below issue. When we correct price adjustments on customer accounts we use debit and credit notes to do these price corrections. We first process a ZCR order type with reference to the original invoice to reverse

  • How to prevent changes to SOLD TO in sales order

    Hi, Can someone remind how to stop users from changinf the address of the SOLD TO in a sales order? We allow users to change the SHIP TO address but sometimes they select the wrong partner and update the SOLD TO and then the delivery is made to the w

  • WHAT ARE THE  SETTINGS FOR AN ICLOUD EMAIL ACCOUNT

    I am trying to create an iCloud email account on my iPad with IOS 6.0.1 what are the settings for Host name in incoming and outgoing mail servers?

  • Inkscape/X11 Problems with external Monitor

    Hello, I´m using Inkscape to create vector art on my MacBook Pro. Since my update to Mavericks I´m having problems with X11. I have the version 2.7.5 of XQuartz installed currently. After some troubles, Inkscape opens up just fine. But I cannot drag

  • Why do i keep getting pop ups?

    everytime i click on something i keep getting pops up on a mac keeper with a little robot or just other junk how do i stop this?