Alerts in Project

Hi,
Requirement is to generate alerts for delay in starting/completion major activities/milestones and to generate alerts for monitoring variations from schedules .
How this can be achieved?
Regards,

Amit,
You can make use of the Workflow triggering in the milestone function for this to trigger the alerts with the status and CRTD and a z-task created as per your requirement( to check if the activity /milestone dates  are getting delayed). Get in touch with your ABAPer.
Regards
K Ramaiah

Similar Messages

  • Alerts for Projects

    The Vision Instance shows 6 Alerts for Projects Modules.
    However, my Development Instance doesn't show any alert for projects .
    we are implementing costing , billing & Prj Contracts.
    Pls help.

    Hi dina,
    First of all ..thanks for your prompt replies..
    In my question i am refering to Seeded Alerts(triggered to mails) provided by Oracle for each module.
    Run the following query to view Oracle seeded Alerts for projects in Vision Instance:
    SELECT DISTINCT fef.APPLICATION_NAME,
    aa.ALERT_NAME,
    aa.DESCRIPTION
    FROM
    FND_EXECUTABLES_FORM_V fef,
    ALR_ALERTS aa
    WHERE
    aa.APPLICATION_ID=fef.APPLICATION_ID
    and fef.application_name IN('Projects')
    AND aa.ALERT_NAME NOT IN '%'
    ORDER BY
    fef.APPLICATION_NAME,
    aa.ALERT_NAME
    this query returns 6 alerts for vision instance
    But none for my development Instance !!

  • How to enable Alerts in Project Server 2013

    Dears,
    I am using Project Server 2013 trial edition to manage project in my organization. The problem is that no alert emails are sent to team members when there tasks expire.
    I have check relevant settings in both SharePoint server side and project server side.
    btw, members can receive  notification email when project manager updates the project or assign new tasks to them.

    Hi,
    The Alerts and Reminders Project Server settings page in SharePoint Central Administration is used to configure notification email settings in your Project Server 2013 environment.
    You can refer this article which explains about alerts and notifications in Project Server 2013
    https://technet.microsoft.com/en-us/library/jj635886(v=office.15).aspx
    Thanks,
    Phani

  • Setting Alert for Project Plan deviation and changes

    Hi
    I am trying to figure out if there is any alert function (automatic email sent) for project plan deviation
    For example:  original planned milestone date reached while the status has not yet marked complete
    Also, I would like to check if there is any notification to senior management can be set if somebody change the project plan.
    Many thanks,
    Norine

    You need to create a UDM based on a SQL Query.
    If you want an alert of elapsed_time of a sql query, you can to query the v$sql and if you want history results you can query the dba_sql_history.
    If you need help with the sql send me a mail to [email protected]

  • Issue Alert created with workflow (Prasanna Adavi posts) - Error project site creation in EPT

    Hi,
    in PROJECT SERVER 2013, after following the Prasanna Adavi  posts on "Setting up an alert for Project Site Issue (and Risk) Alerts using SharePoint
    Designer Workflow" i've saved the site template.
    If i create a site from the template the site creates correctly and workflow Issue Alert works fine. BUT if i add the new template in an EPT, when i create a new Project i receive error in ProjectSiteUpdate (Failedbutnot blocking) and the site failed
    to be created.
    This is the error:
    General•CreateWssSiteContent: Creating project site failed! Project Uid=6fc7f531-8ad7-e311-9415-005056ab29ed, site URL=https://project.companygroup.org/PWA/20140509-TestIssueAlert10, site name=20140509-TestIssueAlert10. System.Runtime.InteropServices.COMException
    (0x8107058A): <nativehr>0x8107058a</nativehr><nativestack></nativestack>Microsoft.SharePoint.SPException: We_re sorry, we weren_t able to complete the operation, please try again in a few minutes. If you see this message repeatedly,
    contact your administrator. ---> System.Data.SqlClient.SqlException:
    The EXECUTE permission was denied on the object _proc_AM_PutAppPrincipal_, database _App_Management_db8e4bc2-bb34-4cc7-be57-a3b620a3abc5_, schema _dbo_. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1
    wrapClos at Microsoft.SharePoint.Library.SPRequestInternalClass.ApplyWebTemplate(String bstrUrl, String bstrWebTemplateContent, Int32 fWebTemplateContentFromSubweb, Int32 fDeleteGlobalListsWithWebTemplateContent, Int32 fIgnoreMissingFeatures, String& bstrWebTemplate,
    Int32& plWebTemplateId) at Microsoft.SharePoint.Library.SPRequest.ApplyWebTemplate(String bstrUrl, String bstrWebTemplateContent, Int32 fWebTemplateContentFromSubweb, Int32 fDeleteGlobalListsWithWebTemplateContent, Int32 fIgnoreMissingFeatures, String&
    bstrWebTemplate, Int32& plWebTemplateId)Microsoft.SharePoint.SPException: Microsoft.SharePoint.SPException: We_re sorry, we weren_t able to complete the operation, please try again in a few minutes. If you see this message repeatedly, contact your administrator.
    ---> System.Data.SqlClient.SqlException: The EXECUTE permission was denied on the object _proc_AM_PutAppPrincipal_, database _App_Management_db8e4bc2-bb34-4cc7-be57-a3b620a3abc5_, schema _dbo_. at System.Data.SqlClient.SqlConnection.OnError(SqlException
    exception, Boolean breakConnection, Action`1 wrapClos ---> System.Runtime.InteropServices.COMException: <nativehr>0x8107058a</nativehr><nativestack></nativestack>Microsoft.SharePoint.SPException: We_re sorry, we weren_t able to complete
    the operation, please try again in a few minutes. If you see this message repeatedly, contact your administrator. ---> System.Data.SqlClient.SqlException: The EXECUTE permission was denied on the object _proc_AM_PutAppPrincipal_, database _App_Management_db8e4bc2-bb34-4cc7-be57-a3b620a3abc5_,
    schema _dbo_. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapClos at Microsoft.SharePoint.Library.SPRequestInternalClass.ApplyWebTemplate(String bstrUrl, String bstrWebTemplateContent, Int32 fWebTemplateContentFromSubweb,
    Int32 fDeleteGlobalListsWithWebTemplateContent, Int32 fIgnoreMissingFeatures, String& bstrWebTemplate, Int32& plWebTemplateId) at Microsoft.SharePoint.Library.SPRequest.ApplyWebTemplate(String bstrUrl, String bstrWebTemplateContent, Int32 fWebTemplateContentFromSubweb,
    Int32 fDeleteGlobalListsWithWebTemplateContent, Int32 fIgnoreMissingFeatures, String& bstrWebTemplate, Int32& plWebTemplateId) --- End of inner exception stack trace --- at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx) at Microsoft.SharePoint.Library.SPRequest.ApplyWebTemplate(String
    bstrUrl, String bstrWebTemplateContent, Int32 fWebTemplateContentFromSubweb, Int32 fDeleteGlobalListsWithWebTemplateContent, Int32 fIgnoreMissingFeatures, String& bstrWebTemplate, Int32& plWebTemplateId) at Microsoft.SharePoint.SPWeb.ProvisionWebTemplate(SPWebTemplate
    webTemplate, String webTemplateToUse, SPFeatureWebTemplate featureWebTemplate, Page page, SPFeatureDependencyErrorBehavior featureDependencyErrorBehavior, ICollection`1& featureDependencyErrors) at Microsoft.SharePoint.SPWeb.ApplyWebTemplate(SPWebTemplate
    webTemplate, Page page, SPFeatureDependencyErrorBehavior featureDependencyErrorBehavior, ICollection`1& featureDependencyErrors) at Microsoft.SharePoint.SPSite.CreateWeb(String strUrl, String strTitle, String strDescription, UInt32 nLCID, String strWebTemplate,
    Boolean bCreateUniqueSubweb, Boolean bConvertIfThere, Guid webId, Guid rootFolderId, Boolean createSystemCatalogs, Guid appInstanceId, String appWebDomainId) at Microsoft.SharePoint.SPSite.SPWebCollectionProvider.CreateWeb(String strWebUrl, String strTitle,
    String strDescription, UInt32 nLCID, String strWebTemplate, Boolean bCreateUniqueSubweb, Boolean bConvertIfThere, Guid appInstanceId) at Microsoft.SharePoint.SPWebCollection.Add(String strWebUrl, String strTitle, String strDescription, UInt32 nLCID, String
    strWebTemplate, Boolean useUniquePermissions, Boolean bConvertIfThere, Guid appInstanceId) at Microsoft.Office.Project.Server.BusinessLayer.AdminProjectSiteAllocator.CreateSPWeb(ProjectSiteConfigurationInfo configInfo, SPSite topSite):?WSSCreateSiteFailure
    (16400). Details: id='16400' name='WSSCreateSiteFailure' uid='cb09143a-8ad7-e311-9415-005056ab29ed' projectUID='6fc7f531-8ad7-e311-9415-005056ab29ed' workspaceUrl='https://project.companygroup.org/PWA/20140509-TestIssueAlert10/20140509-TestIssueAlert10' projectWorkspaceName='20140509-TestIssueAlert10'.
    •Queue:?GeneralQueueJobFailed (26000) - CreateWssSite.CreateWssSiteMessage. Details: id='26000' name='GeneralQueueJobFailed' uid='cc09143a-8ad7-e311-9415-005056ab29ed' JobUID='bcc7f531-8ad7-e311-9415-005056ab29ed' ComputerName='4c7454d7-d6c8-42e7-a071-01921e89dbd5'
    GroupType='CreateWssSite' MessageType='CreateWssSiteMessage' MessageId='1' Stage='' CorrelationUID='9b3a8f9c-a1f4-e0a1-9dbd-59e8ea307386'. For more details, check the ULS logs on machine 4c7454d7-d6c8-42e7-a071-01921e89dbd5 for entries with JobUID bcc7f531-8ad7-e311-9415-005056ab29ed.
    Can someone help me?
    Regards
    Daniele
    Daniele

    Thanks Adavi,
    i've created the workflow in a placeholder template for test purpose and it works. I confirm you dependence from:
    - App Configuration Management Service (hidden in TechNet but you receive error if is not active);
    - User Profile Service and Sync Service active;
    - Profile Syncronization started;
    The error occurs when i create a new project with the site template created with the issue list workflow inside.
    I'll wait for your test and tomorrow i'll test it in an other environment to exclude installation dependence.
    Daniele

  • Project with profit center was not created for entire period

    Hi everybody,
    I need a help with a problem here.
    The alert mesage "project with profit center was not created for entire period" was displayed.
    Then I searched for the creation dates and the profit center was created before the project gets its firsts postings. Therefore, some line itens don't exist in profit center (ledgers).
    My two questions:
    The first one, is it possible to input line itens in a retroactive way?
    Everytime I need to use the project master data this alert is displayed. How can I fix avoid this message?
    Thanks,

    Hi,
    Regarding your issue, it is theoretically possible to reverse all settlements up to the start of the project and then to settle again it
    is a must to check in standard if the profit center is valid from the project start date onwards.
    Check the attached note 1048945.
    The system generates error message KM700 ('Profit center <PRCTR> does not exist for <date>') when you enter a profit center on a project definition if the profit center is not valid in the entire period between the basic start and the basic finish date of the project definition . However, only one warning message should only be generated in this case.
    regards
    Waman

  • Alerts for certificate expiry?

    Hello everyone, I have a quick question: is there any way to get alerts for certificate expiry before a threshold number of days? If so, can the alert be for certificates that are required for the PI environment, SAP Portal or infrastructure ones that are in the VIP.
    We are on PI 7.1, Solution Manager 7.01, Netweaver 7.0
    Thanks for any pointers.
    Regards.
    Ravi,

    Hi dina,
    First of all ..thanks for your prompt replies..
    In my question i am refering to Seeded Alerts(triggered to mails) provided by Oracle for each module.
    Run the following query to view Oracle seeded Alerts for projects in Vision Instance:
    SELECT DISTINCT fef.APPLICATION_NAME,
    aa.ALERT_NAME,
    aa.DESCRIPTION
    FROM
    FND_EXECUTABLES_FORM_V fef,
    ALR_ALERTS aa
    WHERE
    aa.APPLICATION_ID=fef.APPLICATION_ID
    and fef.application_name IN('Projects')
    AND aa.ALERT_NAME NOT IN '%'
    ORDER BY
    fef.APPLICATION_NAME,
    aa.ALERT_NAME
    this query returns 6 alerts for vision instance
    But none for my development Instance !!

  • Alerts for conc managers

    Hi,
    We installed apps pack for our R12 env. Now it's sending alerts for ICM only. How to setup for other managers like Standarad manager? Please help
    Regards

    Hi dina,
    First of all ..thanks for your prompt replies..
    In my question i am refering to Seeded Alerts(triggered to mails) provided by Oracle for each module.
    Run the following query to view Oracle seeded Alerts for projects in Vision Instance:
    SELECT DISTINCT fef.APPLICATION_NAME,
    aa.ALERT_NAME,
    aa.DESCRIPTION
    FROM
    FND_EXECUTABLES_FORM_V fef,
    ALR_ALERTS aa
    WHERE
    aa.APPLICATION_ID=fef.APPLICATION_ID
    and fef.application_name IN('Projects')
    AND aa.ALERT_NAME NOT IN '%'
    ORDER BY
    fef.APPLICATION_NAME,
    aa.ALERT_NAME
    this query returns 6 alerts for vision instance
    But none for my development Instance !!

  • Project was not deleted error

    Hi,
    We are using MII 12.0 version. I imported one project into it and after some modifications in query templates, when i tried to delete it from System Management -> Projects page , it is showing alert as "Project was not deleted".
    I am able to delete other projects. I tried to delete from work bench there it is showing error as "Error On Delete: org.xml.sax.SAXParseException: Content is not allowed in prolog".
    What is the problem and how to delete that project.
    Regards,
    Senthil
    Edited by: senthil kumar on Nov 16, 2010 1:00 PM

    Hi,
    We found the problem and deleted the project.
    We tried it by deleting folder by folder. While deleting In one folder it showed same prolog error and it is coming when one particular transaction is being deleted. When we analysed, we found that this transaction is not loaded successfully as it contains error data as letters like @#$@$@*$@&&!#$ as continously. we replaced this transaction with new empty transaction with same name and we tried again to delete and it is deleted. after that we were able to delete the project from Project page.
    Thanks.
    Regards,
    Senthil

  • The project could not be imported

    OK my wife and I filmed most of our vacation using iMovie on my ipad but I can't seem to export the file. I tried everything to possible open the file. I unfortunately made the error of removing imovie and reinstalling it which made the matter worse. I have the file which is pretty big but can't do anything with it. I can't put it back into iMovie and I can't import it. On the iPad it will not see it. And when I try to open it on I get an alert "the project could not be imported." I just want to be able to open the files is it anyway to do so with out using iMovie? Please help.

    There is a little trick you can do to extract the videos from an .imoviemobile file.
    Rename the extension to .zip
    Then double click the file, it will "uncompress" it.
    This will create a folder called "My Project",
    inside that folder is one called "assets".
    This will have you video and any photos from the project.
    In future I would suggest you do not record within the iMovie app.
    If something goes wrong, or you delete the app then the video is gone.

  • How do I debug scriptlet code?

    Hi,
    My code crashes everytime I submit to the page below which as you can tell is a mix of scriptlet code and html (not the best design but that's what I inherited). When I put a breakpoint where it says [breakpoint] (for illustrative purposes), save the file and run the app (it's a JSF webapp) in 10.1.3 debugger, the breakpoint is never hit even though the code is undoubtedly being executed. Any ideas on why this is?
    Thanks
    <%@ page import="java.sql.*,java.util.*" errorPage="error.jsp"  %>
    <%@ page import="com.cde.fedapp.EmpStatus.*,com.cde.fedapp.PrincipalLevel.*"%>
    <%@ page import="com.cde.fedapp.common.*,com.cde.fedapp.contract.*"%>
    <%@ page import="com.cde.fedapp.TeachSub.*,com.cde.fedapp.AdminArea.*"%>
    <%@ page import="com.cde.fedapp.District.*,com.cde.fedapp.JobClassl.*"%>
    <jsp:useBean id="user" class="com.uisecurity.User" scope="session"/>
    <jsp:useBean id="staff" class="com.cde.fedapp.staff.StaffVO" scope="request"/>
    <jsp:useBean id="ods" class="oracle.jdbc.pool.OracleDataSource" scope="application" />
    <jsp:useBean id="staffHelper" class="com.cde.fedapp.staff.StaffHelper" scope="session"/>
    <!-- addStaffRecord.jsp -->
    <%--=============================================================================
    --               Fed App - Add Staff Page
    -- Type:         Dynamic Java Server Pages (JSP) Document
    -- Name:         addStaffRecord.jsp
    -- Installation: Colorado Department of Education (CDE) - IMS      
    -- Author:       Eldirdiri Abueldahab (Dee)
    -- Date:         September 5, 2007
    -- Summary:      This is the add staff page. FedApp application is implementing the
                     Composite View Pattern. Each page has a menu, header and footer.
                     Refere to http://java.sun.com/blueprints/patterns/CompositeView.html
    =============================================================================--%>
    <%
    [breakpoint]
      String fn = user.getFullName();
      String role = user.getRole();
      String agencyCode = user.getAgencyCode();
      String partbApprovalInd = user.getPARTB_APPROVAL_IND();
      String prescApprovalInd = user.getPRESC_APPROVAL_IND();
      if(fn == null ){
    %>
        <jsp:forward page="login.jsp" /><%}
    %>
    <%
      Connection conn = null;
      Page mypage = null;
      Page Principalpage=null;
      Page EmpStatuspage=null;
      Page Districtpage=null;
      Page Distpage=null;
      Page JobClasspage= null;
      Page TeachSubpage= null;
      Page AdminAreapage = null;
      Principalpage = staffHelper.getCurrentPrincipalpage();
      EmpStatuspage = staffHelper.getCurrentEmpStatuspage();
      Districtpage  = staffHelper.getCurrentExistingDistrictPage();
      Distpage      = staffHelper.getCurrentExistingDistPage();
      JobClasspage  = staffHelper.getCurrentJobClasspage();
      TeachSubpage  = staffHelper.getCurrentTeachSubpage();
      AdminAreapage = staffHelper.getCurrentAdminAreapage();
      String myTitle  = "Add End User Devices";
      String infoMessage = request.getParameter("infoMessage");
      String alertMessage = infoMessage;
      if(null==infoMessage){
        infoMessage = "";
      String m_ssn = null;
      String m_fname = null;
      String m_mname = null;
      String m_lname = null;
      String m_dist = null;
      String m_sal = null;
      String m_ben = null;
      String m_fte = null;
      String m_begmn = null;
      String m_endmn = null;
      String m_job = null;
      String m_sub = null;
      String m_adm = null;
      String m_princ = null;
      String m_stat = null;
      String contractInd = request.getParameter("contractInd");
      String holdValues = request.getParameter("holdValues");
       if(contractInd != null || holdValues != null){
      m_fname = request.getParameter("fname");
      m_mname = request.getParameter("mname");
      m_lname = request.getParameter("lname");
      m_dist = request.getParameter("dist");
      m_sal = request.getParameter("sal");
      m_ben = request.getParameter("ben");
      m_fte = request.getParameter("fte");
      m_begmn = request.getParameter("begmn");
      m_endmn = request.getParameter("endmn");
      m_job = request.getParameter("job");
      m_sub = request.getParameter("sub");
      m_adm = request.getParameter("adm");
      m_princ = request.getParameter("princ");
      m_stat = request.getParameter("stat");
      m_ssn = request.getParameter("ssn");
      if (m_ssn == null) m_ssn = "";
      if (m_fname == null) m_fname = "";
      if (m_mname == null) m_mname = "";
      if (m_lname == null) m_lname = "";
      if (m_dist == null) m_dist = "";
      if (m_sal == null) m_sal = "";
      if (m_ben == null) m_ben = "";
      if (m_fte == null) m_fte = "";
      if (m_begmn == null) m_begmn= "";
      if (m_endmn == null) m_endmn = "";
      if (m_job == null) m_job = "";
      if (m_sub == null) m_sub = "";
      if (m_adm == null) m_adm = "";
      if (m_princ == null) m_princ = "";
      if (m_stat == null) m_stat = "";
      if (contractInd== null) {
        m_stat = "";
        //.contractInd = "";
       boolean viewOnly = false;
       if(staff.getFundCode().equals("4027") && partbApprovalInd.equals("Y")) viewOnly = true;
       if(staff.getFundCode().equals("4173") && prescApprovalInd.equals("Y")) viewOnly = true;
    %>
    <html>
    <head><title>Fed App - Adding New Staff Records</title>
    <link href="edstyle.css" rel="stylesheet" type="text/css">
    </head>
    <body onload="sf()">
    <SCRIPT LANGUAGE="JavaScript1.1" SRC="script/FormChek.js"></SCRIPT>
    <SCRIPT LANGUAGE="javascript">
    <!--
    function sf() {
    document.staffAdd.ssn.focus();
    function ssnfoc(){
    window.status = "Social Security Number is a unique number assigned to individual. It must be numeric (9 digits, no hyphens)."
    function fnamefoc(){
    window.status = "First Name is a name given to an individual at birth, baptism, or during another naming cermony, or through legal change."
    function mnamefoc(){
    window.status = "Middle Name is a secondary name given to an individual at birth, baptism, or during another naming cermony, or through legal change."
    function lnamefoc(){
    window.status = "Last Name is the name borne in common by members of a family."
    function distfoc(){
    window.status = "District/BOCES name is a unique name."
    function subfoc(){
    window.status = "Teaching Subject Area is a description of an area course for which an individual has the responsibilty to teach or to assist a teacher."
    function jobfoc(){
    window.status = "Job Classification is a description of the specific group of duties and responsibilities of a job classification."
    function admfoc(){
    window.status = "Administrator/Instructional Area is a description of the system outlining instructional or non-instructional activities."
    function ftefoc(){
    window.status = "For each person employed, report the total FTE for his/her special education assignment."
    function salfoc(){
    window.status = "For each person employed, report the total salary (excluding benefits) for his/her special education assignment."
    function benfoc(){
    window.status = "Enter the appropriat amount if the administrative unit uses federal funds to pay for benefits for this staff person."
    function begmnthfoc(){
    window.status = "Please report the beginning month the employee will be paid for services performed during school year."
    function endmnthfoc(){
    window.status = "Please report the ending month the employee will be paid for services performed during school year."
    function princfoc(){
    window.status = "Report the appropriate level of the person's assignment."
    function statfoc(){
    window.status = ""
    function buttonClick(){
    if(document.staffAdd.ssn.value=="") {
    alert("Please Enter Social Security Number!");
    document.staffAdd.ssn.focus();
    return false; }else if(document.staffAdd.fname.value==""){
    alert("Please Enter First Name!");
    document.staffAdd.fname.focus();
    return false; }else if(document.staffAdd.lname.value==""){
    alert("Please Enter Last Name!");
    document.staffAdd.lname.focus();
    return false; }else if(document.staffAdd.dist.value==""){
    alert("Please Select District/BOCES!");
    document.staffAdd.dist.focus();
    return false; }else if((document.staffAdd.fte.value=="") && (document.staffAdd.sal.value!="")){
    alert("Please Enter FTE!");
    document.staffAdd.fte.focus();
    return false; }else if((document.staffAdd.fte.value!="") && (document.staffAdd.sal.value=="")){
    alert("FTE must be blank if salary is blank!");
    document.staffAdd.fte.focus();
    return false; }else if(document.staffAdd.begmn.value==""){
    alert("Please Select Begining Month!");
    document.staffAdd.begmn.focus();
    return false; }else if(document.staffAdd.endmn.value==""){
    alert("Please Select Ending Month!");
    document.staffAdd.endmn.focus();
    return false; }else if(document.staffAdd.job.value==""){
    alert("Please Enter Job Class Code!");
    document.staffAdd.job.focus();
    return false; }else if(document.staffAdd.sub.value=="" && (document.staffAdd.job.value=="202" || document.staffAdd.job.value=="416")){
    alert("Please Enter Teaching Subject Area!");
    //document.staffAdd.sub.focus();
    return false; }else if(document.staffAdd.sub.value!="" && document.staffAdd.job.value!="202" && document.staffAdd.job.value!="416"){
    alert("Teaching Subject Area must be null for this Job Classification Code! Please leave it at 'Select Teaching Subject Area'");
    document.staffAdd.sub.focus();
    return false; }else if((document.staffAdd.adm.value=="") && (document.staffAdd.job.value >= 100) && (document.staffAdd.job.value < 300)){
    alert("Please Enter Adminstrator/Instructional Area!");
    document.staffAdd.adm.focus();
    return false; }else if(document.staffAdd.adm.value!="" && ((document.staffAdd.job.value < 100) || (document.staffAdd.job.value >= 300)) ){
    alert("Adminstrator/Instructional Area must be null for this Job Classification Code! Please leave it at 'Select Adminstrator/Instructional Area'");
    document.staffAdd.adm.focus();
    return false; }else if(document.staffAdd.princ.value==""){
    alert("Please Select Principal Level!");
    document.staffAdd.princ.focus();
    return false; }else if(document.staffAdd.princ.value!="1" && document.staffAdd.job.value=="202" && document.staffAdd.adm.value=="0034"){
    alert("Please Principal Level MUST be 'Infant' for this record!");
    document.staffAdd.princ.focus();
    return false; }else if(document.staffAdd.princ.value!="2" && document.staffAdd.job.value=="202" && document.staffAdd.adm.value=="0035"){
    alert("Please Principal Level MUST be 'Preschool' for this record!");
    document.staffAdd.princ.focus();
    //return false; }else if((document.staffAdd.princ.value=="1" || document.staffAdd.princ.value=="2") && (document.staffAdd.adm.value!="0034" && document.staffAdd.adm.value!="0035")){
    //alert("Please Principal Level MUST NOT be Infant or Preschool for this record!");
    //document.staffAdd.princ.focus();
    return false; }else if(document.staffAdd.stat.value==""){
    alert("Please Select Employment Status!");
    document.staffAdd.stat.focus();
    return false; }else if((document.staffAdd.sal.value=="") && (document.staffAdd.ben.value=="")){
    alert("Salary and Employee Benefits MAY NOT both be blank!!");
    document.staffAdd.sal.focus();
    return false; }else if((document.staffAdd.stat.value=="04" ||document.staffAdd.stat.value=="06") && (document.staffAdd.ben.value!="")){
    alert("Employee Benefits MUST be blank for Purchased Service Staff!!");
    document.staffAdd.ben.focus();
    return false; }else if((document.staffAdd.fte.value > 0.25) && (document.staffAdd.stat.value=="05" || document.staffAdd.stat.value=="06" || (document.staffAdd.job.value=="202" && document.staffAdd.adm.value=="0032"))){
    alert("FTE must be less than or egual to 0.250 for this record!");
    return false; }else if((document.staffAdd.project.value =="B - Extended School Year or Summer School") && (document.staffAdd.stat.value!="05" && document.staffAdd.stat.value!="06")){
    alert("For Project B - Extended School Year or Summer School, Employment Status Code must be 05 or 06!");
    document.staffAdd.stat.focus();
    return false; }else if((document.staffAdd.project.value !="B - Extended School Year or Summer School") && (document.staffAdd.stat.value=="05" || document.staffAdd.stat.value=="06")){
    alert("For Project A and C, Employment Status Code must not be 05 or 06!");
    document.staffAdd.stat.focus();
    return false; }
    return checkFTE(document.staffAdd.fte);
    function checkAmount(textObj){
         return isAmountNumber(textObj.value);
    function isAmountNumber(strValue){
       if(!isWhitespace (strValue)){
       if(!isInteger(strValue)){  
            alert("Enter a valid amount!");
            return false;
       return true;
    function checkFTE(textObj){
         return isFTEFloat(textObj.value);
    function isFTEFloat(strValue){
       if(!isWhitespace (strValue)){
       if(!isFloat(strValue)){  
            alert("Enter a valid FTE!");
            return false;
       }else if( strValue > 1 || strValue < 0.001 ){
       alert("FTE cannot be greater than 1 or less than 0.001!");
       return false;
       var result=Math.round(strValue*1000)/1000
       document.staffAdd.fte.value = result;
       return true;
    function checkJobClass(textObj){
         return isJobClassInt(textObj.value);
    function isJobClassInt(strValue){
       if(!isInteger(strValue)){
            alert("Enter a valid Job Class Code!");
            return false;
       return true;
    function ssnTab(){
        var num = document.staffAdd.ssn.value;
        if((num.length)==document.staffAdd.ssn.maxLength)
        document.staffAdd.fname.focus();
    //-->
    </SCRIPT>
    <table width="100%" border="0" cellpadding="2" cellspacing="0">
      <tr>
        <td width="15%" rowspan="3" valign="top"><jsp:include page="menu.jsp" flush="true" />     </td>  
      </tr>
      <tr>
        <td valign="top">
             <form  name="staffAdd" id="staffAdd" method="post" action="addStaffRecordAction.jsp">
            <table width="100%" border="0" cellspacing="0" cellpadding="2"  >
              <tr>
                <td><jsp:include page="header.jsp" flush="true" /></td>
              </tr>
                    <tr>
                <td align="center"></td></tr>
              <tr>
                <td>
                  <table width='100%' border=0 cellspacing=0 cellpadding=2 align=center>
                    <tr>
                      <td align=center>
                        <table id="staffTable" width="100%" border="0" cellpadding="2" cellspacing="0">
                          <tr>
                            <td align="center">
                              <table width="100%" border="0" cellpadding="2" cellspacing="0">
                                <tr>
                                <td><span STYLE="color: #990000; font-family: verdana, arial, helvetica; font-size: 12pt; font-weight: bold">Add New Staff Record</span>
                                    <br><br>This page allows the user to add a staff record to the system database. Enter all required
                                    data <font style=color:rgb(0,0,255)>marked in blue with *</font>, then click on the "Add Staff" button.<br>
                                </td>
                                </tr>
                                <tr>
                                  <td align="center"><b><span style="font-size: 11pt; color: #FF0000"/> <%= infoMessage%><span id="divMessage"/></b>
                                  </td>
                                </tr>
                              </table>
                              <br>
                    <table width="100%" border="0" cellspacing="1" cellpadding="2" >
                           <tr   >
                         <td align="right" width="15%"><b>Federal Funds: </b></td>
                          <td align="left" ><span style="color:rgb(128,0,0);" >
                          <input name="fundSourceDesc" value="<%=staff.getFundDesc()%>"  readonly style="border-style:outset; background-repeat:repeat; text-align:center;" size="30" />
                          <input name="fundSourceCode" value="<%=staff.getFundCode()%>"  type="hidden"/>
                                </span></td>
                           <td align="right" width="10%"><b>Project: </b></td>
                           <td align="left" ><span style="color:rgb(128,0,0);" >
                           <input name="project" value="<%=staff.getProjectCode() + " - " + staff.getProjectDesc()%>"  readonly style="border-style:outset; background-repeat:repeat; text-align:center;" size="50" />
                           </span></td> </tr>
                      </table>
                              <br>
                              <table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="#e1e1e1">
                                <tr bgcolor="#ccccff" >
                                  <td  align="center"><span style="font-size: 8pt; color:rgb(0,0,255)"><b>*SSN</b></span></td>
                                  <td  align="center"><span style="font-size: 8pt; color:rgb(0,0,255)"><b>*First Name</b></span></td>
                                  <td  align="center"><span style="font-size: 8pt; color: #990000"><b>Middle Name</b></span></td>
                                  <td  align="center"><span style="font-size: 8pt; color:rgb(0,0,255)"><b>*Last Name</b></span></td>
                                  <td  align="center"><span style="font-size: 8pt; color:rgb(0,0,255)"><b>* School District/BOCES</b></span></td>
                                </tr>
                                <tr bgcolor="white">
                                  <td align="center" ><span style="font-size: 8pt">                                
                                  <input type="text" align="left" name="ssn" value="<%= m_ssn %>" size="15" maxlength="9" onchange="return checkSSN(this)" onkeyup="return ssnTab()" onfocus="ssnfoc()"/>
                                  </span></td>
                                  <td align="center" ><span style="font-size: 8pt">                                
                                  <input type="text" align="left" name="fname" value="<%= m_fname %>" size="15" maxlength="20" onchange=" return validateFirstName(this)" onfocus="fnamefoc()"/>
                                  </span></td>
                                  <td align="center" ><span style="font-size: 8pt">                                
                                  <input type="text" align="left" name="mname" value="<%= m_mname %>" size="15" maxlength="20" onchange="return validateMiddleName(this)" onfocus="mnamefoc()"/>
                                  </span></td>
                                  <td align="center" ><span style="font-size: 8pt">                                
                                  <input type="text" align="left" name="lname" value="<%= m_lname %>" size="15" maxlength="20" onchange="return validateLastName(this)" onfocus="lnamefoc()"/>
                                  </span></td>
                                  <td align="center"><span style="font-size: 8pt">                                      
                                  <select name="dist"  style="width: 200px" onfocus="distfoc()">
                                  <%
                                  if(role.equals("1")){
                                  %>
                                  <option value="" selected>Select District/BOCES</option>
                                  <%
                                  Iterator it = Districtpage.getList().iterator();
                                  while(it.hasNext()){
                                  DistrictVO distVO = (DistrictVO)it.next();
                                  String distName = distVO.getDistrictName();
                                  String distCode = distVO.getDistrictCode();
                                  if ((distCode != null) && (m_dist.equals(distCode))){
                                  %>
                                  <option value="<%=distCode%>" selected><%=distName%></option>
                                 <% }else{ %>
                                  <option value="<%=distCode%>" ><%=distName%></option>
                                 <%} }
                                 }else if(role.equals("3")){
                                 Iterator it = Districtpage.getList().iterator();
                                  while(it.hasNext()){
                                  DistrictVO distVO = (DistrictVO)it.next();
                                  String distName = distVO.getDistrictName();
                                  String distCode = distVO.getDistrictCode();
                                  m_dist = agencyCode;
                                 if ((distCode != null) && (m_dist.equals(distCode))){
                                  %>
                                  <option value="<%=distCode%>" selected><%=distName%></option>
                                 <%} }
                                 }else if(role.equals("2")){
                                 %>
                                 <option value="" selected>Select District/BOCES</option>
                                 <%
                                  Iterator it = Distpage.getList().iterator();
                                  while(it.hasNext()){
                                  DistrictVO distVO = (DistrictVO)it.next();
                                  String distName = distVO.getDistrictName();
                                  String distCode = distVO.getDistrictCode();
                                 if ((distCode != null) && (m_dist.equals(distCode))){
                                  %>
                                  <option value="<%=distCode%>" selected><%=distName%></option>
                                 <%}else if(distCode != null){
                                 %>
                                  <option value="<%=distCode%>" selected><%=distName%></option>
                                 <%} }
                                 }%>
                                  </select>
                                  </span></td>
                                </tr>
                              </table>                         
                              <br>
                              <table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="#e1e1e1">
                                <tr bgcolor="#ccccff" >
                                <td width="20%" align="center"><span style="font-size: 8pt; color: #990000"><b>FTE</b></span></td>
                                <td width="20%" align="center"><span style="font-size: 8pt; color: #990000"><b>Salary</b></span></td>
                                  <td width="20%" align="center"><span style="font-size: 8pt; color: #990000"><b>Employee Benefits</b></span></td>
                                  <td width="20%" align="center"><span style="font-size: 8pt; color:rgb(0,0,255)"><b>*Payroll Beg Month</b></span></td>
                                  <td width="20%" align="center"><span style="font-size: 8pt; color:rgb(0,0,255)"><b>*Payroll End Month</b></span></td>
                                </tr>
                                <tr bgcolor="white"><td align="center"><span style="font-size:8pt">
                                  <input type="text" align="left" name="fte" size="9" value="<%= m_fte %>" onchange="return checkFTE(this)" onfocus="ftefoc()"/></span>
                                  </td>
                                <td align="center"><span style="font-size:8pt">
                                  <input type="text" align="left" name="sal" size="15" value="<%= m_sal %>"  onchange="return checkAmount(this)" onfocus="salfoc()"/></span>
                                  </td>
                                  <td align="center"><span style="font-size: 8pt">
                                  <input type="text" align="left" name="ben" size="15" value="<%= m_ben %>" onchange="return checkAmount(this)" onfocus="benfoc()"/></span>
                                  </td>
                                  <td align="center"><span style="font-size: 8pt">                                      
                                  <select name="begmn" style="width: 160px"  onfocus="begmnthfoc()">
                                  <% if(m_begmn.equalsIgnoreCase("")){%>
                                  <option value="" selected>Select Begining Month</option>
                                   <option value="January">January</option>
                                   <option value="February">February</option>
                                   <option value="March">March</option>
                                   <option value="April">April</option>
                                   <option value="May">May</option>
                                   <option value="June">June</option>
                                   <option value="July">July</option>
                                   <option value="August">August</option>
                                   <option value="September">September</option>
                                   <option value="October">October</option>
                                   <option value="November">November</option>
                                   <option value="December">December</option>
                                   <%}else if(m_begmn.equalsIgnoreCase("January")){%>
                                   <option value="" >Select Begining Month</option>
                                   <option value="January" selected>January</option>
                                   <option value="February">February</option>
                                   <option value="March">March</option>
                                   <option value="April">April</option>
                                   <option value="May">May</option>
                                   <option value="June">June</option>
                                   <option value="July">July</option>
                                   <option value="August">August</option>
                                   <option value="September">September</option>
                                   <option value="October">October</option>
                                   <option value="November">November</option>
                                   <option value="December">December</option>
                                   <%}else if(m_begmn.equalsIgnoreCase("February")){%>
                                   <option value="" >Select Begining Month</option>
                                   <option value="January" >January</option>
                                   <option value="February" selected>February</option>
                                   <option value="March">March</option>
                                   <option value="April">April</option>
                                   <option value="May">May</option>
                                   <option value="June">June</option>
                                   <option value="July">July</option>
                                   <option value="August">August</option>
                                   <option value="September">September</option>
                                   <option value="October">October</option>
                                   <option value="November">November</option>
                                   <option value="December">December</option>
                                   <%}else if(m_begmn.equalsIgnoreCase("March")){%>
                                   <option value="" >Select Begining Month</option>
                                   <option value="January" >January</option>
                                   <option value="February" >February</option>
                                   <option value="March" selected>March</option>
                                   <option value="April">April</option>
                                   <option value="May">May</option>
                                   <option value="June">June</option>
                                   <option value="July">July</option>
                                   <option value="August">August</option>
                                   <option value="September">September</option>
                                   <option value="October">October</option>
                                   <option value="November">November</option>
                                   <option value="December">December</option>
                                   <%}else if(m_begmn.equalsIgnoreCase("April")){%>
                                   <option value="" >Select Begining Month</option>
                                   <option value="January" >January</option>
                                   <option value="February" >February</option>
                                   <option value="March" >March</option>
                                   <option value="April" selected>April</option>
                                   <option value="May">May</option>
                                   <option value="June">June</option>
                                   <option value="July">July</option>
                                   <option value="August">August</option>
                                   <option value="September">September</option>
                                   <option value="October">October</option>
                                   <option value="November">November</option>
                                   <option value="December">December</option>
                                    <%}else if(m_begmn.equalsIgnoreCase("May")){%>
                                   <option value="" >Select Begining Month</option>
                                   <option value="January" >January</option>
                                   <option value="February" >February</option>
                                   <option value="March" >March</option>
                                   <option value="April" >April</option>
                                   <option value="May" selected>May</option>
                                   <option value="June">June</option>
                                   <option value="July">July</option>
                                   <option value="August">August</option>
                                   <option value="September">September</option>
                                   <option value="October">October</option>
                                   <option value="November">November</option>
                                   <option value="December">December</option>
                                   <%}else if(m_begmn.equalsIgnoreCase("June")){%>
                                   <option value="" >Select Begining Month</option>
                                   <option value="January" >January</option>
                                   <option value="February" >February</option>
                                   <option value="March" >March</option>
                                   <option value="April" >April</option>
                                   <option value="May" >May</option>
                                   <option value="June" selected>June</option>
                                   <option value="July">July</option>
                                   <option value="August">August</option>
                                   <option value="September">September</option>
                                   <option value="October">October</option>
                                   <option value="November">November</option>
                                   <option value="December">December</option>
                                   <%}else if(m_begmn.equalsIgnoreCase("July")){%>
                                   <option value="" >Select Begining Month</option>
                                   <option value="January" >January</option>
                                   <option value="February" >February</option>
                                   <option value="March" >March</option>
                                   <option value="April" >April</option>
                                   <option value="May" >May</option>
                                   <option value="June" >June</option>
                                   <option value="July" selected>July</option>
                                   <option value="August">August</option>
                                   <option value="September">September</option>
                                   <option value="October">October</option>
                                   <option value="November">November</option>
                                   <option value="December">December</option>
                                   <%}else if(m_begmn.equalsIgnoreCase("August")){%>
                                   <option value="" >Select Begining Month</option>
                                   <option value="January" >January</option>
                                   <option value="February" >February</option>
                                   <option value="March" >March</option>
                                   <option value="April" >April</option>
                                   <option value="May" >May</option>
                                   <option value="June" >June</option>
                                   <option value="July" >July</option>
                                   <option value="August" selected>August</option>
                                   <option value="September">September</option>
                                   <option value="October">October</option>
                                   <option value="November">November</option>
                                   <option value="December">December</option>
                                   <%}else if(m_begmn.equalsIgnoreCase("September")){%>
                                   <option value="" >Select Begining Month</option>
                                   <option value="January" >January</option>
                                   <option value="February" >February</option>
                                   <option value="March" >March</option>
                                   <option value="April" >April</option>
                                   <option value="May" >May</option>
                                   <option value="June" >June</option>
                                   <option value="July" >July</option>
                                   <option value="August" >August</option>
                                   <option value="September" selected>September</option>
                                   <option value="October">October</option>
                                   <option value="November">November</option>
                                   <option value="December">December</option>
                                   <%}else if(m_begmn.equalsIgnoreCase("October")){%>
                                   <option value="" >Select Begining Month</option>
                                   <option value="January" >January</option>
                                   <option value="February" >February</option>
                                   <option value="March" >March</option>
                                   <option value="April" >April</option>
                                   <option value="May" >May</option>
                                   <option value="June" >June</option>
                                   <option value="July" >July</option>
                                   <option value="August" >August</option>
                                   <option value="September" >September</option>
                                   <option value="October" selected>October</option>
                                   <option value="November">November</option>
                                   <option value="December">December</option>
                                   <%}else if(m_begmn.equalsIgnoreCase("November")){%>
                                   <option value="" >Select Begining Month</option>
                                   <option value="January" >January</option>
                                   <option value="February" >February</option>
                                   <option value="March" >March</option>
                                   <option value="April" >April</option>
                                   <option value="May" >May</option>
                                   <option value="June" >June</option>
                                   <option value="July" >July</option>
                                   <option value="August" >August</option>
                                   <option value="September" >September</option>
                                   <option value="October" >October</option>
                                   <option value="November" selected>November</option>
                                   <option value="December">December</option>
                                   <%}else if(m_begmn.equalsIgnoreCase("December")){%>
                                   <option value="" >Select Begining Month</option>
                                   <option value="January" >January</option>
                                   <option value="February" >February</option>
                                   <option value="March" >March</option>
                                   <option value="April" >April</option>
                                   <option value="May" >May</option>
                                   <option value="June" >June</option>
                                   <option value="July" >July</option>
                                   <option value="August" >August</option>
                                   <option value="September" >September</option>
                                   <option value="October" >October</option>
                                   <option value="November" >November</option>
                                   <option value="December" selected>December</option>
                                   <%}%>
                                  </select>
                                  </span></td>
                                  <td align="center"><span style="font-size: 8pt">                                      
                                  <select name="endmn" style="width: 160px"  onfocus="endmnthfoc()">
                                  <% if(m_endmn.equalsIgnoreCase("")){%>
                                  <option value="" selected>Select Ending Month</option>
                                   <option value="January">January</option>
                                   <option value="February">February</option>
                                   <option value="March">March</option>
                                   <option value="April">April</option>
                                   <option value="May">May</option>
                                   <option value="June">June</option>
                                   <option value="July">July</option>
                                   <option value="August">August</option>
                                   <option value="September">September</option>
                                   <option value="October">October</option>
                                   <option value="November">November</option>
                                   <option value="December">December</option>
                                   <%}else if(m_endmn.equalsIgnoreCase("January")){%>
                                   <option value="" >Select Ending Month</option>
                                   <option value="January" selected>January</option>
                                   <option value="February">February</option>
                                   <option value="March">March</option>
                                   <option value="April">April</option>
                                   <option value="May">May</option>
                                   <option value="June">June</option>
                                   <option value="July">July</option>
                                   <option value="August">August</option>
                                   <option value="September">September</option>
                                   <option value="October">October</option>
                                   <option value="November">November</option>
                                   <option value="December">December</option>
                                   <%}else if(m_endmn.equalsIgnoreCase("February")){%>
                                   <option value="" >Select Ending Month</option>
                                   <option value="January" >January</option>
                                   <option value="February" selected>February</option>
                                   <option value="March">March</option>
                                   <option value="April">April</option>
                                   <option value="May">May</option>
                                   <option value="June">June</option>
                                   <option value="July">July</option>
                                   <option value="August">August</option>
                                   <option value="September">September</option>
                                   <option value="October">October</option>
                                   <option value="November">November</option>
                                   <option value="December">December</option>
                                   <%}else if(m_endmn.equalsIgnoreCase("March")){%>
                                   <option value="" >Select Ending Month</option>
                                   <option value="January" >January</option>
                                   <option value="February" >February</option>
                                   <option value="March" selected>March</option>
                                   <option value="April">April</option>
                                   <option value="May">May</option>
                                   <option value="June">June</option>
                                   <option value="July">July</option>
                                   <option value="August">August</option>
                                   <option value="September">September</option>
                                   <option value="October">October</option>
                                   <option value="November">November</option>
                                   <option value="December">December</option>
                                   <%}else if(m_endmn.equalsIgnoreCase("April")){%>
                                   <option value="" >Select Ending Month</option>
                                   <option value="January" >January</option>
                                   <option value="February" >February</option>
                                   <option value="March" >March</option>
                                   <option value="April" selected>April</option>
                                   <option value="May">May</option>
                                   <option value="June">June</option>
                                   <option value="July">July</option>
                                   <option value="August">August</option>
                                   <option value="September">September</option>
                                   <option value="October">October</option>
                                   <option value="November">November</option>
                                   <option value="December">December</option>
                                    <%}else if(m_endmn.equalsIgnoreCase("May")){%>
                                   <option value="" >Select Ending Month</option>
                                   <option value="January" >January</option>
                                   <option value="February" >February</option>
                                   <option value="March" >March</option>
                                   <option value="April" >April</option>
                                   <option value="May" selected>May</option>
                                   <option value="June">June</option>
                                   <option value="July">July</option>
                                   <option value="August">August</option>
                                   <option value="September">September</option>
                                   <option value="October">October</option>
                                   <option value="November">November</option>
                                   <option value="December">December</option>
                                   <%}else if(m_endmn.equalsIgnoreCase("June")){%>
                                   <option value="" >Select Ending Month</option>
                                   <option value="January" >January</option>
                                   <option value="February" >February</option>
                                   <option value="March" >March</option>
                                   <option value="April" >April</option>
                                   <option value="May" >May</option>
                                   <option value="June" selected>June</option>
                                   <option value="July">July</option>
                                   <option value="August">August</option>
                                   <option value="September">September</option>
                                   <option value="October">October</option>
                                   <option value="November">November</option>
                                   <option value="December">December</option>
                                   <%}else if(m_endmn.equalsIgnoreCase("July")){%>
                                   <option value="" >Select Ending Month</option>
                                   <option value="January" >January</option>
                                   <option value="February" >February</option>
                                   <option value="March" >March</option>
                                   <option value="April" >April</option>
                                   <option value="May" >May</option>
                                   <option value="June" >June</option>
                                   <option value="July" selected>July</option>
                                   <option value="August">August</option>
                                   <option value="September">September</option>
                                   <option value="October">October</option>
                                   <option value="November">November</option>
                                   <option value="December">December</option>
                                   <%}else if(m_endmn.equalsIgnoreCase("August")){%>
                                   <option value="" >Select Ending Month</option>
                                   <option value="January" >January</option>
                                   <option value="February" >February</option>
                                   <option value="March" >March</option>
                                   <option value="April" >April</option>
                                   <option value="May" >May</option>
                                   <option value="June" >June</option>
                                   <option value="July" >July</option>
                                   <option value="August" selected>August</option>
                                   <option value="September">September</option>
                                   <option value="October">October</option>
                                   <option value="November">November</option>
                                   <option value="December">December</option>
                                   <%}else if(m_endmn.equalsIgnoreCase("September")){%>
                                   <option value="" >Select Ending Month</option>
                                   <option value="January" >January</option>
                                   <option value="February" >February</opti

    I'm not sure if this is an artefact of the way you're representing the breakpoint, but it looks like you're putting it on a blank line inside the scriptlet. Breakpoints in Java code only work if there's an actual line of code to break at. Try putting your breakpoint on the same line as
    String fn = user.getFullName();Note that even that will only work because it contains an assignment; you can't break at a plain declaration either.

  • Java Script behaviour in different browsers

    On an entry form(MD) on the javascript handler onClick for
    Insert button I have the following piece of Javascript:
    if (document.forms(0).item(12).value==0)
    var y=window.alert('No project selected');
    So I am checking the value of a number field and if is zero , a
    warning is shown.
    The form is working properly on IE5 or 5.5 but not on some
    Nescape browsers versions(4.6 and up).
    Can anybody show me what is wrong and how can be corrected.
    Thanks
    Lawrence

    If your item type is a combox box, you'll need to write your
    JavaScript like this:
    if (this.options[this.selectedIndex].value == 0)
    alert('put message here');
    You can also write it in pl/sql as:
    htp.p('<SCRIPT LANGUAGE="JavaScript">
    if (this.options[this.selectedIndex].value == 0)
    alert('put message here');
    </SCRIPT>');
    Fran

  • HTTPService using e4x

    I'm trying to use HTTPService to receive xml data from a
    website, using e4x, then put it in a datagrid (and do other things
    with it later). I can get it to populate the datagrid using object,
    but need it in xml form to use it in other places. I've tryed using
    an XMLListCollection, but can't seem to get it working.
    /********************* XML *******************/
    <?xml version="1.0" encoding="iso-8859-1" ?>
    <tool>
    <projects>
    <project>
    <projectName>Project 1</projectName>
    <active>true</active>
    </project>
    <project>
    <projectName>Project 2</projectName>
    <active>true</active>
    </project>
    </projects>
    </tool>
    /***************** This works ****************/
    <mx:HTTPService id="list_request" url="myxml.xml"
    showBusyCursor="true" resultFormat="object"
    fault="Alert.show('Project listing could not be
    retrieved!','Error');"/>
    <mx:DataGrid y="0" width="508" height="291"
    horizontalCenter="0"
    dataProvider="{list_request.lastResult.tool.projects.project}"
    id="dgProjects">
    <mx:columns>
    <mx:DataGridColumn headerText="Projects"
    dataField="projectName"/>
    </mx:columns>
    </mx:DataGrid>
    Thanks in advance.

    Using that I get these console warnings:
    warning: unable to bind to property 'projects' on class 'XML'
    (class is not an IEventDispatcher)
    warning: unable to bind to property 'project' on class
    'XMLList' (class is not an IEventDispatcher)
    Also, I can't figure out why lastResult is returning null if
    I work with it in the same function list_request was called from.
    public function GotoStartPage():void{
    list_request.send();
    // If the query contained a value for project_request...
    if(Application.application.parameters.project_request!=null){
    // Check to see if the query matched one of the listed
    projects
    project_request=Application.application.parameters.project_request;
    currentState="Main Project Page";
    }else{
    trace(list_request.lastResult); // <-
    this gives null
    project_request="";
    currentState="Project Selection Screen";
    Is the trace statement getting called before
    list_request.send() is finished getting the data?

  • Variable becomes invalid during loop (CS6 based)

    First off I know that CC fixed this, but unfortunately my hands are tied and I have to use CS6 for this process. The script below is built to allow user to select precomp layers within a master comp. It then strips each precomp down to just itself and then the project is reduced to just the master comp and associated assets. It's actually inspired by Jeff Almasol's script he made for me years ago. I've just customized my own variation due to an issue in CS6 with the Reduce Project function. The issue arrising is that the loop goes off and processes the first selected precomp properly, but the master comp variable becomes invalid upon the second precomp processed. The script involves saving the project file and reopening the main source project during the loop process. Any thoughts as to why the variable is becoming invalid? The lines marked BOLD and ITALIC are the trouble spots.
         function compToProjectsScript(thisObj){
              try{
                   var masterComp, curItem, selLayerIndices, selLayerIndicesLength, curLayer, curLayerName, saveFolder, newFileInfo, curLayerIndex, folderString, allItems;
                   ///FUNCTIONS
                   //retrieveSelectedLayersIndex
                   function retrieveSelectedLayersIndex(compObj){
                        var selLayers, selLayersLength, layerIndex;
                        layerIndex = new Array();
                        selLayers = compObj.selectedLayers;
                        selLayersLength = selLayers.length;
                        for(var l=0; l<selLayersLength; l++){
                             if(selLayers[l].source instanceof CompItem){
                                  layerIndex.push(selLayers[l].index);
                        return layerIndex;
                   //reduceCompToLayer
                   function reduceCompToLayer(layerObj, compObj){
                        var layerCount = compObj.numLayers;
                        var lastLayer = compObj.layer(layerCount);
                        layerObj.moveBefore(lastLayer);
                        for(var i=1; i<=layerCount-2; i++){
                             firstLayerLocked = compObj.layer(1).locked;
                             if(firstLayerLocked == true){
                                  firstLayerLocked = false;
                                  compObj.layer(1).remove();
                             }else{
                                  compObj.layer(1).remove();
                   //retrieveParentCompIndexNum
                   function retrieveParentCompIndexNum(){
                        var proj, openedComp, parentComp, itemcount;
                        proj = app.project;
                        openedComp = proj.activeItem;
                        itemcount = proj.numItems;
                        if(openedComp instanceof CompItem){
                             parentComp = {'name': openedComp.name, 'id': openedComp.id};
                             for(var i=1; i<=itemcount; i++){
                                  if(proj.item(i).name == parentComp.name && proj.item(i).id == parentComp.id){
                                       return i;
                  masterComp = app.project.item(retrieveParentCompIndexNum());     //VARIABLE SET
                   selLayerIndices = retrieveSelectedLayersIndex(masterComp);
                   selLayerIndicesLength = selLayerIndices.length;
                   var curProjFile = app.project.file;
                   if(curProjFile != null){
                        saveFolder = Folder.selectDialog("Choose a \"save to\" folder.");
                        if(saveFolder != null){
                             folderString = Folder.decode(saveFolder).toString();
                             app.project.save(new File(folderString + "/_Duplicate_" + curProjFile.name));
                             var dupFile = app.project.file;
                             app.beginUndoGroup("compToProject");
                                  for(var i=0; i<selLayerIndicesLength; i++){
                                            app.beginSuppressDialogs();
                                                 curLayerIndex = selLayerIndices[i];
                                                 curLayer = masterComp.layer(curLayerIndex);     //BECOMES INVALID ON SECOND PASS
                                                 curLayerName = curLayer.name;
                                                 reduceCompToLayer(curLayer, masterComp);
                                                 app.project.reduceProject(masterComp);
                                                 newFileInfo = folderString + "/" + curLayerName + ".aep";
                                                 app.project.save(new File(newFileInfo));
                                            app.endSuppressDialogs(true);
                                       app.open(curProjFile);
                             app.endUndoGroup();
                             writeLn("All done.");
                   }else{
                        alert("Save project first, then try again.");
              }catch(err){alert("Error at line #" + err.line.toString() + "\r" + err.toString());}
         compToProjectsScript(this);

    Here's that final setup I went with:
    //START
         function compToProjectsScript(thisObj){
              try{
                   var masterComp, curItem, selLayerIndices, selLayerIndicesLength, curLayer, curLayerName, saveFolder, newFileInfo, curLayerIndex, folderString, allItems;
                   ///FUNCTIONS
                   //retrieveSelectedLayersIndex
                   function retrieveSelectedLayersIndex(compObj){
                        var selLayers, selLayersLength, layerIndex;
                        layerIndex = new Array();
                        selLayers = compObj.selectedLayers;
                        selLayersLength = selLayers.length;
                        for(var l=0; l<selLayersLength; l++){
                             if(selLayers[l].source instanceof CompItem){
                                  layerIndex.push(selLayers[l].index);
                        return layerIndex;
                   //reduceCompToLayer
                   function reduceCompToLayer(layerObj, compObj){
                        var layerCount = compObj.numLayers;
                        var lastLayer = compObj.layer(layerCount);
                        layerObj.moveBefore(lastLayer);
                        for(var i=1; i<=layerCount-2; i++){
                             firstLayerLocked = compObj.layer(1).locked;
                             if(firstLayerLocked == true){
                                  compObj.layer(1).locked = false;
                                  compObj.layer(1).remove();
                             }else{
                                  compObj.layer(1).remove();
                   //retrieveParentCompIndexNum
                   function retrieveParentCompIndexNum(){
                        var proj, openedComp, parentComp, itemcount;
                        proj = app.project;
                        openedComp = proj.activeItem;
                        itemcount = proj.numItems;
                        if(openedComp instanceof CompItem){
                             parentComp = {'name': openedComp.name, 'id': openedComp.id};
                             for(var i=1; i<=itemcount; i++){
                                  if(proj.item(i).name == parentComp.name && proj.item(i).id == parentComp.id){
                                       return i;
                   compIndex = retrieveParentCompIndexNum();
                   masterComp = app.project.item(compIndex);
                   selLayerIndices = retrieveSelectedLayersIndex(masterComp);
                   selLayerIndicesLength = selLayerIndices.length;
                   var curProjFile = app.project.file;
                   if(curProjFile != null){
                        saveFolder = Folder.selectDialog("Choose a \"save to\" folder.");
                        if(saveFolder != null){
                             folderString = Folder.decode(saveFolder).toString();
                             app.project.save(new File(folderString + "/_Duplicate_" + curProjFile.name));
                             var dupFile = app.project.file;
                             app.beginUndoGroup("compToProject");
                                  for(var i=0; i<selLayerIndicesLength; i++){
                                            app.beginSuppressDialogs();
                                                 sourceComp = app.project.activeItem;
                                                 curLayerIndex = selLayerIndices[i];
                                                 curLayer = sourceComp.layer(curLayerIndex);
                                                 curLayerName = curLayer.name;
                                                 reduceCompToLayer(curLayer, sourceComp);
                                                 app.project.reduceProject(sourceComp);
                                                 newFileInfo = folderString + "/" + curLayerName + ".aep";
                                                 app.project.save(new File(newFileInfo));
                                            app.endSuppressDialogs(true);
                                       app.open(dupFile);
                             app.endUndoGroup();
                             writeLn("All done.");
                   }else{
                        alert("Save project first, then try again.");
              }catch(err){alert("Error at line #" + err.line.toString() + "\r" + err.toString());}
         compToProjectsScript(this);
    //END

  • Remove folders in array

    Hello everyone,
    I am currently troubleshooting the piece of code below. When I run this script, the second while loop is causing the script to break.
    The first while loop figures out which items in my project is folderItems and put those in an array but it makes sure not to put folder called "Cleaning" in there by identifying it by its ID.
    The second while loop runs through once and let's me, accurately, know how many folders is about to be deleted. It then deletes the first folder in the array, then gets rid of the first element in the array so the lenght of the array shrinks. The second time through the while loop, it again lets me know how many items remain to be deleted and then it breaks on "removeFolders[0].remove();".
    Any ideas whats going on?
    Cheers!
    var j = 1;
    var removeFolders = new Array();
    while (j <= app.project.numItems) {
        //alert(app.project.numItems);
        if(app.project.item(j) instanceof FolderItem && app.project.item(j).id != cleaning.id) removeFolders.push(app.project.item(j));
        //if(app.project.item(j) instanceof FolderItem && app.project.item(j) != cleaning.id) removeFolders.push(app.project.item(j));
        ++j;
    while (removeFolders.length != 0){
            alert("How many folders to be removed: " + removeFolders.length);
            removeFolders[0].remove();
            removeFolders.splice (0, 1);

    Hello,
    i just tried your code with a dummy project (10 folders with various names, some comps with some solids), got no error, it deleted all folders except the one called 'cleaning'.
    What is your error message when the script breaks ?
    You can try deleting last to first, it might change something although it's not clear why it would, it's essentially the same:
    while (removeFolders.length)
        alert("How many folders to be removed: " + removeFolders.length);
        removeFolders.pop().remove();
    Xavier

Maybe you are looking for

  • Error FF 711 raised during posting of items in FI-AP

    Hello Friends, we are getting error message FF 711 when trying to post from the ICM module into FI-AP using the BAPI_ACC_INVOICE_POST funcation Module. We have both service tax and withholding tax calculation switched on and everythings seems to work

  • Utter failure on Comcast's Part to convert me from Dish.

    I have been a Dish Customer for 10 years. I foolishly thought Comcast might be able to offer me better technology/value.more than a month later, and i still do not have the most basic local TV channels. 6 phone calls, and 3 chat people (Non Americans

  • Can we send mails using Oracle

    Hi Everybody, Can we send mails using Oracle (like java mail)?? Can I a write a procedure/stored procedure to send a mail if there is any change in the database tables null

  • ABAP CRM

    HI GURU'S, can any one give tell path or file for ABAP CRM TECHNICAL complete documentation...........

  • Application batch job running got error ORA-03113

    Problem: when application batch job running, application system always receive this error: ORA-03113 and job stop. Application system: dynamic system AX ORACLE system: ORACLE 10.2.0.4.0 The listener configuration setting is : INBOUND_CONNECT_TIMEOUT_