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;
/

Similar Messages

  • Select() function is not working properly in solaris 10.

    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.
    Thanks a lot.
    Regards,
    Srikanth.

    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

  • Select list pagination not working for big tables

    Hi,
    i am trying to view a table with large amount of data using tabular form. the pagination using select list is not working in this page. i have selected select list kind of pagination but it is showing "row range 1-15 16-30(with set pagination)' type of pagination. when i lowered the amount of data in the table the pagination type will automatically change to select list pagination. could you please tell me why this happens and any possible work around if any.
    Thanks,
    Jo

    Hi Jo,
    I don't know what you call a large amount of records, but the effect you describe might be intentional by apex.
    The select list pagination would generate a selection tag with (number of records in table/15) options in your page HTML.
    Although there isn't a hard limit to the number of options a select list can have there certainly is a limit to what your browser/pc can render.
    Think about it
    Let's say you table contains a million rows. this would result to a select list with 66666 options. Which your browser won't handle :)
    I very possible the apex team resolved this by simply reverting to row range pagination when the number of select options would grow to large.
    Geert

  • 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

  • Print Button Derived From a Select List Is Not Working

    Hello,
    I followed the instructions "Creating a PDF Report from Derived Output Format" http://www.oracle.com/technology/obe/apex/apex31nf/apex31rpt.htm#t2
    Steps
    In order to derive the output format, you need to create an item that contains the list of formats to select from. Perform the following steps:
    1. Under Items, click the Create icon.
    2. Click Select List.
    3. Make sure Select List is selected for Select List Control Type and click Next.
    4. Change the Name to P<#>OUTPUTLIST and click Next.
    5. You need to specify the list of output types for the report and the bottom of the page. Select the Create or edit static List of Values
    6. Enter the following values and click Apply.
    Display Value Return Value
    PDF PDF
    Word RTF
    Excel XLS
    HTML HTM
    XML XML
    7. Select No for Display Null Option and Click Next.
    8. Change the Label to Output Format and click Next.
    9. Enter PDF for the Default and click Create Item.
    10. Now that the list of output formats is created, you need to change the Output Format when the Print link is selected. Under Regions, select the Print link.
    11. Under Printing, select Derive from Item for Output Format and select the item you just created P<#>OUTPUTLIST for Item and click Apply Changes.
    12. Click Run Page.
    13. When the report is displayed, select Excel from the list of Output Formats. Note: In Oracle Application Express 3.1, the XML format was added
    14. At the bottom of the report, select the Print link.
    15. A window appears asking you which program you want to open the Excel file with. Click OK (or Open depending on what browser you have) . Excel is open and the report is displayed. Close the Excel window.
    16. You can also create a button to produce the report based on the output format rather than clicking the Print link at the bottom of the report. Click Edit Page.
    17. Under Buttons, click the Create icon.
    18. Accept the default and click Next
    19. Select Create a button displayed among this region's items and click Next
    20. Enter P<#>_Print for the Button Name, enter Print for the Label and Request and select HTML Button for Button Style. Then click Create Button
    21. The region printing link contains the id of the region. Since you want to invoke the print from a button instead of the link you need to create a branch and specify the FLOW_XMLP_OUTPUT_R### parameter in the Request field for the Action so the application knows what to do when the Print button is pressed. Under Regions, select the Print link.
    22. Ctrl-C the FLOW_XMLP_OUTPUT_R### section of the Print URL field. Since you are going to invoke the print from the button, you can remove the Print in the Label Link field and click Apply Changes.
    23. Under Branches, select the Create icon.
    24. Accept the default and click Next
    25. Enter the current page for the Page and paste the FLOW_XMLP_OUTPUT_R### parameter that you copied into the Request field and click Next.
    26. Select P<#>_PRINT for When Button Pressed and click Create Branch
    27. Click Run Page
    28. Select XML for the Output Format and click Print.
    If I use the link at the bottom of the report region when I set the print options on the print tab of a report, it will print out in both pdf and rtf formats. I get an error with the Excel format. The print button isn't even working. When I select the button, nothing happens.
    Any help is appreciated.

    Hello Andy,
    I ended up putting in a ticket with Metalink. It is a known bug it seems. This is what the rep said:
    UPDATE
    =======
    These bugs are fixed in the next ApEx patch 3.1.2. Patch 3.1.2 is expected (tentatively) in 2 weeks at the
    earliest.
    The bug fixes for these bugs have been backported to 3.1.1 and the one-off patches (patch 7202883 & 7156139) can be downloaded from metalink. One-of
    f patches do not undergo the normal full regression testing, as is done for the
    full APEX 3.1.2 patch set.
    Once 7202883 and 7156139 were applied, I was able to download in all formats.
    Kelly

  • LOV single selection list is not working in my JDeveloper 10.1.2.3

    Hi!
    I'm stumped with this. I'm also new to JDeveloper. I used the sample tutorial from the OTN website entitled "JSPDataBoundLists.jws" to learn how to create drop-down lists in JDeveloper.
    My problem is I created a single selection list LOV from DepartmentListView Data Control and pasted it into an EmployeesView Input form. This is so I can just select the Department names to populate the DepartmentID field in Employees table. I setup the data binding in the UI Model of my jsp using the "List Binding Editor". I checked the UIModel file and it looks as follows:
    <DCControl
    id="DepartmentId2"
    SubType="DCListSingleSel"
    IterBinding="EmployeesViewIterator"
    DTClass="oracle.adf.dt.objects.JUDTCtrlListLOV"
    ApplyValidation="false"
    isDynamic="false"
    ListOperMode="0"
    ListIter="DepartmentsListViewIterator" >
    <AttrNames>
    <Item Value="DepartmentId" />
    </AttrNames>
    <ListAttrNames>
    <Item Value="DepartmentId" />
    </ListAttrNames>
    <ListDisplayAttrNames>
    <Item Value="DepartmentName" />
    </ListDisplayAttrNames>
    </DCControl>
    I run the jsp, selected a value from the drop-down list, do a submit and do a commit, but the DepartmentId from the DepartmentsListView was not stored in Employees. What is wierd here is that there is an exact same single selection list defined a row above mine which is working fine. How come that one is working and mine is not?

    Eureka! I finally found the answer to my own question!
    This simple problem of adding a drop-down list into a jsp page cost me 3 whole days (around 24 full working hours) to find the answer. Normally it only takes me a few minutes with the other web app languages I've learned. And I just stumbled into the answer just a few minutes ago (maybe all thanks should be given to God whom let me stumble into the answer since me and my wife have been praying for several weeks now ever since I started trying to learn Oracle JDeveloper. It is really very very difficult and time consuming to learn compared to other web app languages and tools).
    Anyway, the reason why my LOV does not work in my jsps using JDeveloper 10.1.2.3 is because JDeveloper 10.1.2.3 seems to allow only one input-form-element for the same field of the input table!
    For example, what happened to me was I had an input form created for the Employees table in the HR schema. I did this simply by drag-and-drop from the "Data Control Palette". This feature I like very much with JDeveloper. It is really easy and works instantly. And then, I drag-and-drop the departmentname field from the Departments table as a "single selection list" into the jsp and setup its bindings. So when I run the jsp, viola! The drop-down list does not populate the DepartmentId field of the Employees table. IT DOES NOT WORK! I've tried reinstalling both JDev and Oracle db and JDKs to no avail! I tried posting in this forum to no avail! I tried experimenting with newly created jsps to no avail! Then suddenly after repeatedly experimenting on this on different tutorials, guides and my own web app, it works! Why did it work? It was because I tried to add an LOV-single-selection-list on another sample tutorial with a READ-ONLY FORM on the jsp! Thus only the LOV is the input-form-element in the jsp for the table's field.
    So why can't you find such a simple and basic fact anywhere in the web, the tutorials, guides or the forum? I do not know. Maybe only I am using such an old version of JDev? But what about the users who used it when it just got out a couple of years ago? Didn't they have the same problem? Anyway, it seems like the answer to a lot of my simple basic questions about JDeveloper is not documented, or is buried very deep beneath all the other words of all these documents. Hopefully JDeveloper's documentations would get a lot easier to use very very soon!

  • DA for Select List is not working

    Hi friends,
    I have a two fields in my form.
    <li>person id
    <li>Manager Name(Select List)
    I have given a default value for person id as'270'. So i need to write an dynamic action so that it will fetch the manager name according to the person id '270'.
    Since My manager Name is an Select List type, i have given the following query in the LOV definition of this item
    select papf.full_name d, papf.person_id r
    from per_all_people_f papf,
         per_all_assignments_f paaf,
         per_all_people_f supf, hr_all_positions_f hapf, hr_all_organization_units haou
    where papf.business_group_id = 216 
    and papf.person_id = paaf.person_id and hapf.position_id=paaf.position_id and haou.organization_id=paaf.organization_id
    and  NVL(paaf.supervisor_id, papf.person_id) = supf.person_id
    and sysdate between papf.effective_start_date and papf.effective_end_date
    and sysdate between paaf.effective_start_date and paaf.effective_end_date
    and sysdate between supf.effective_start_date and supf.effective_end_date
    and sysdate between hapf.effective_start_date and hapf.effective_end_date
    and papf.person_type_id = 5145
    order by 1   This is the DA, that i wrote for the person id column.
    For the true action, i have given as 'Set Value' and given the following query
    select supf.full_name
    from per_all_people_f papf,
         per_all_assignments_f paaf,
         per_all_people_f supf, hr_all_positions_f hapf, hr_all_organization_units haou
    where papf.business_group_id = 216 
    and papf.person_id = paaf.person_id and hapf.position_id=paaf.position_id and haou.organization_id=paaf.organization_id
    and  NVL(paaf.supervisor_id, papf.person_id) = supf.person_id
    and sysdate between papf.effective_start_date and papf.effective_end_date
    and sysdate between paaf.effective_start_date and paaf.effective_end_date
    and sysdate between supf.effective_start_date and supf.effective_end_date
    and sysdate between hapf.effective_start_date and hapf.effective_end_date
    and papf.person_type_id = 5145 and papf.person_id = :P6_PERSON_IDPage item to submit: P6_PERSON_ID
    Affected Element: P6_MANAGER_NAME.
    Soon after the page load, the manger field has to show the corresponding manager name in the LOV according to the value '270' which is in the person id item. But it is not showing the corresponding name in the select list item.
    Suppose, if the manager name item is in 'display only' means it is working, but if the manager name field is in LOV means it is not fetching the value and it is displaying only the null display value in that field.
    I dont know why the DA is not working if the field is in LOV.
    Brgds,
    Mini

    Hi Patrick,
    Thanks, and this is the mistake that i made and it worked now fine.
    I have Certain questions for you:
    <li> Currently, i can able to send mails from APEX using APEX_MAIL, but APEX_MAIL will support only in the unauthenticated mail server. Since in our organization we have configured an unauthenticated mail server and we are using that server for the APEX mail process. The problem that im facing now is, this mail server is been used in our organization entirely for all the purpose, except the official mail.[For official mail purpose we are using Yahoo server, which is an authenticated server, and we are using that Yahoo mail server only for your official mail purpose].
    For remaining all the purpose including the APEX mail process too we are using the unauthenticated mail server that we configured. Since we are make using of unauthenticated mail server for all the purpose and due to that, the mail process is getting very slow and i couldnt able to receive the mail from the APEX in time(via) this unauthenticated mail server.
    So, due to that i thought of using the Yahoo mail server(which is an authenticated mail server). But APEX_MAIL doesnot support for the authenticated server, then how i can use the authenticated mail server for sending the mail via APEX. How i can able to access the Yahoo mail authenticated server from Oracle Database.(i have also enabled ACL in my DB too).
    <li> Second question, is how i can able to refer the APPLICATION PROCESS in my application. Other than calling that APPLICATION PROCESS In javascript, it is possible to call that APPLICATION PROCESS in the plsql anonymous block.
    Brgds,
    Mini

  • PS CS5: select color range not working properly

    The color range is a grate command but it doesn't work properly when dragging the eye dropper across the image. This is especially noticeable with a low range value. When you start the selection (without pressing the shift key) and drag across the image only the end point is selected instead of the whole trace. Second, when dragging with the shift key pressed not the trace is added to the selection but a rectangular area. You can easily try this out by creating any one color image and lower the range value to about 5.
    In my opinion this is a bug or am I missing something?

    Hello,
    When you start the selection (without pressing the shift key) and drag across the image only the end point is selected instead of the whole trace.
    This behavior is as designed.  When you make a selection without holding the shift key, and you have the first eyedropper selected in the menu (the one that doesn't have a plus or minus sign) you are a making an initial selection on the image.  If you hold and drag this selection, it will just change the initial selection to match whatever destination you prefer on the image.
    Second, when dragging with the shift key pressed not the trace is added to the selection but a rectangular area.
    I can reproduce this behavior, too.  I believe this is also as designed, because the range is too small to make an organic looking selection.  I think the more standard workflow is to start with the range high (100%), make the selection of the localized color area you want to mask, and then reduce the range value as needed.
    Color Range isn't terribly intuitive to me, but it can be a powerful selection tool.  Photoshop Evangelist Russell Brown has a really good tutorial on Adobe TV about using color range.  Have you seen this before?
    http://tv.adobe.com/watch/the-russell-brown-show/the-secret-life-of-color-range/
    Hope this helps!

  • Cascading Select List Doesn't work properly

    I am trying to use Cascading Select List in My Application. It works for the first time when I run the page afterwards when I try to open the same page in a different window it doesn't work afterwards it doesn't work at all.My code is as follows.
    1) Application Process with name getDet
    DECLARE
    lv_os_List varchar2(32000) := '';
    platform varchar2(50);
    err_code number;
    err_msg varchar2(200);
    BEGIN
    owa_util.mime_header('text/xml', FALSE );
    htp.p('Cache-Control: no-cache');
    htp.p('Pragma: no-cache');
    owa_util.http_header_close;
    htp.prn('<select>');
    HTP.prn ('<option value="' || 1 || '">' || '- All OS -' || '</option>');
    select platform into platform from platform where platformid =:P139_PLATFORM;
    if platform = 'Sun SPARC' then
    for i in (select os , osid from ostype where os like '%Sola%' order by os) loop
    htp.prn('<option value="' || i.osid || '">' || i.os || '</option>');
    end loop;
    ELSIF (platform ='Linux (x86 & x86-64)') then
    for i in (select os ,osid from ostype where os like '%Linux%' or os like '%RH%' or os like '%SLES%' or os like '%OEL%' order by os) loop
    htp.prn('<option value="' || i.osid || '">' || i.os || '</option>');
    end loop;
    ELSIF (platform ='TRU64') then
    for i in (select os ,osid from ostype where os like '%Tru64%' order by os) loop
    htp.prn('<option value="' || i.osid || '">' || i.os || '</option>');
    end loop;
    ELSIF (platform ='Windows') then
    for i in (select os ,osid from ostype where os like '%Windows%' order by os) loop
    htp.prn('<option value="' || i.osid || '">' || i.os || '</option>');
    end loop;
    ELSIF (platform ='IBM Linux on Power') then
    for i in (select os ,osid from ostype where os like '%Linux%' or os like '%RH%' or os like '%SLES%' or os like '%OEL%' order by os) loop
    htp.prn('<option value="' || i.osid || '">' || i.os || '</option>');
    end loop;
    ELSIF (platform ='IBM System z') then
    for i in (select os ,osid from ostype where os like '%Linux%' or os like '%RH%' or os like '%SLES%' or os like '%OEL%' order by os) loop
    htp.prn('<option value="' || i.osid || '">' || i.os || '</option>');
    end loop;
    ELSIF (platform like 'HP%') then
    for i in (select os ,osid from ostype where os like '%HP%' order by os) loop
    htp.prn('<option value="' || i.osid || '">' || i.os || '</option>');
    end loop;
    ELSIF (platform ='Itanium') then
    for i in (select os ,osid from ostype where os like '%HP%' or (os like '%Windows%' and osid <> 201) or os like '%Linux%64%' or os like '%RH%64%'
    order by os) loop
    htp.prn('<option value="' || i.osid || '">' || i.os || '</option>');
    end loop;
    ELSIF (platform ='AIX') then
    for i in (select os ,osid from ostype where os like '%AIX%' order by os) loop
    htp.prn('<option value="' || i.osid || '">' || i.os || '</option>');
    end loop;
    ELSE
    for i in (select os ,osid from ostype order by os) loop
    htp.prn('<option value="' || i.osid || '">' || i.os || '</option>');
    end loop;
    END IF;
    htp.prn('</select>');
    EXCEPTION
    WHEN OTHERS THEN
    err_code := SQLCODE;
    err_msg := substr(SQLERRM, 1, 200);
    INSERT INTO ERROR_TABLE (error_number, error_message)
    VALUES (err_code, err_msg);
    END;
    2) Application Item
    CASCADING_SELECTLIST_ITEM_1
    3) In the Footer of the region which contains the items the following Java Script
    <script>
    function get_select_list_xml(pThis,pSelect){
    var l_Return = null;
    var l_Select = html_GetElement(pSelect);
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=getDet',0);
    get.add('CASCADING_SELECTLIST_ITEM_1',pThis.value);
    gReturn = get.get('XML');
    if(gReturn && l_Select){
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = gReturn.getElementsByTagName("option");
    appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
    l_Opt_Xml.firstChild.nodeValue)
    get = null;
    function appendToSelect(pSelect, pValue, pContent) {
    var l_Opt = document.createElement("option");
    l_Opt.value = pValue;
    if(document.all){
    pSelect.options.add(l_Opt);
    l_Opt.innerText = pContent;
    }else{
    l_Opt.appendChild(document.createTextNode(pContent));
    pSelect.appendChild(l_Opt);
    </script>
    <script>
    get_select_list_xml($x('P139_PLATFORM'),'P139_OS');
    </script>
    For the first Select list form element properties
    onchange="get_select_list_xml(this,'P139_OS')"
    Please let me know what change I need to make in the code.

    Vikas,
    Is your page 0 a public page or it requires authentication? I remember having the same
    problem a while ago.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/apex/f?p=107:7
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • 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]

  • 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

  • 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

  • Clip inspector in imovie not working properly - when I select a picture - and select clip adjustment it tells me that I need to select one or more clips to view Inspector tools and in a clip the audio adjustment only shows a speaker? help

    Clip inspector in imovie not working properly - when I select a picture (in project library) - and select clip adjustment it tells me that I need to select one or more clips to view Inspector tools and when I select a movie clip and then click on audio adjustments the audio adjustment appears as a speaker icon and I don't know how to get to the various audio options? It was working fine one minute and then I seemed to lose the functionality. Also editing a photo in a photo or getting rid of ken burns effect etc does not seem to work. help

    Can anyone shed any light on this as I am having the same problem? One minute it works fine, the next you get the error message above.
    Many thanks.

  • My mail on iMac is not working properly. Click on email, it hangs, showing previous email. Takes forever to load. "No message selected" showing in a blank screen

    My mail is not working properly: when I click on an email it hangs, frequently showing the previous email, often for up to a minute. Or it shows "loading" and just sits there showing nothing. OR there is a blank screen saying "no message selected". It's slow to load, and I'm not happy. Recently switched from Windows PC, not impressed so far. Very frustrating.
    Any suggestions would be gratefully received. (I upgraded to Mountain LIon, and don't think I had problems before I did so, though I hadn't had the computer for long.)

    Hi Sarah,
    Open Console in Utilities & see if there are any clues or repeating messages when this happens.

  • Selection tools not working properly -- Illustrator CS6

    The two selection tools in CS6 Illustrotor not working properly.  They don't select the object when I click and drag a box around them and the handles on drawing path won't stay highlighted when I use the direct selection tool so I can adjust them -- Worked in Illustrator for about 12 years and never had this problem.

    Have you tried:
    View > Show edges

Maybe you are looking for

  • Pair Remote ONLY with universal dock

    need some helb guys, i have a macbook pro with the remote of course. now i recently bought a universal dock for my ipod. i heard that you can pair the remote with the dock, by pressing the menu button for a while. but that didn't work, at least not t

  • How do i get to the actual map for Find my IPod

    I am hearing lots about how amazing the Find My Ipod app is, but it's useless if I  can't get to the map. So i'm hoping someone can tell me how to view the actual map, not send me to different links that show you how to install or get the app for fin

  • List of tables count and Views count in schema wise

    Hi All, I want to get all tables count and views count in Schema wise, What is the query for that? Thanks in Advance.

  • Sync from 2 Different Computers

    I want to be able to sync the iPhone Music from one machine (mac) and video from another (PC). Reason is my work PC at this time is much faster and I convert videos to iPhone format (using Handbrake) on the PC versus the Mac and is about 15 times fas

  • Archiver  Issue| Automatic replication process | Archiver thread blocking

    Hi, Recently, we are facing a strange issue with Archiver auto replication process. Sometime, archiver thread is blocking and auto replication is stalling. We observed this issue after we apply latest OUCM patches downloded from Oracle support site.