Help in Controller Code-Urgent

Navigation:
By Clicking on HR UAE Employee SelfService responsibility,
We get Professional Details
In the Professional Details, we have to Click Competence Profile.
By clicking on Competence Profile, it will navigate another page.
In that Screen .there will list of Competences, Skills for particular Employee.
Both Competence and Skill are going to Store in a same Column
i.e. Attribute1 (column) in table per_competences.
Based on the Attribute1 value we can differentiate the Skill and Competence.
If Attribute1----Yes means it’s a Skill
Attribute1-----No means it’s a Competence.
For both Skill and Competence we have individual Correct marked pencil symbols are there.
By Clicking on pencil Symbol we can edit the competences, skills.
Imp Note: Both Skills, Competence having separate Pencil Symbols.
Requirement:
Now the Requirement is, the competence’s pencil marked Correct Symbol should be inactive,
Skill Correct button should be active for an employee.
Competence Correct button inactive means, the correct button should be visible in Shaded format. By Clicking on that nothing should be happen.
And all the above requirement is specific to UAE Business Group only.
Solution prepared by me:
I have extended the Controller; I have defined one VO in Controller.
I have moved this Extended Controller to the server path, and I bounced the apache, opmn servers.
And I have added Custom Controller path in Personalization page.
Result:
The result im getting is, when login as an employee, In the Competence Screen it is allowing me when Im Clicking on Competence Correct box. It is navigating to another Page,
In that Page there is Dropdown box (Profesiciency level).
Previously it is having values like
1-Unaware
2-Aware
3-perform under supervision
4-perform Unsupervised
5-lead / Coach perform Unsupervised
Before to extending CO, it is showing like as above.
After extending Controller, In the proficiency level (drop down box) the above values (1- Unaware, 2- Aware, 3- perform under supervision, 4- perform Unsupervised, 5- lead / Coach perform Unsupervised) are not coming. They are disabled.
I think the controller code is effecting here. But it has to effect in the before screen, at correct box. The correct button should not allow when we clicked on that.
OA Framework     12.1.1
Oracle OA Extension     10.1.3 - build 1089
Business Components     10.1.3.3
Im giving Extended Controller Code. For code see below.
package petrofac.oracle.apps.per.selfservice.competency.profile.webui;
//petrofac.oracle.apps.per.selfservice.competency.profile.webui.xxskillupdationCO
import oracle.apps.fnd.framework.OAApplicationModule;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
//import oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean;
import oracle.apps.per.selfservice.competency.profile.webui.OverviewPageCO;
import oracle.apps.fnd.framework.OAFwkConstants;
//import oracle.apps.fnd.framework.webui.beans.OAImageBean;
import oracle.apps.fnd.framework.webui.beans.OAImageBean;
//import oracle.apps.fnd.framework.webui.beans.OASwitcherBean;
import oracle.jbo.ViewObject;
import oracle.jbo.Row;
public class xxSkillUpdationCO extends OverviewPageCO {
public xxSkillUpdationCO() {
public void processRequest(OAPageContext pageContext, OAWebBean webBean) {
// String apprSysType = pageContext.getParameter("pSystemType");
String apprSysType = pageContext.getParameter("pSystemType");
super.processRequest(pageContext, webBean);
//Get the Application Module
OAApplicationModule am = pageContext.getApplicationModule(webBean);
if (am.getOADBTransaction().isLoggingEnabled(OAFwkConstants.STATEMENT)) {
pageContext.writeDiagnostics(this, "pSystemType = " + apprSysType,
OAFwkConstants.STATEMENT);
//Create a VO to query employee related information.
ViewObject SkillUpdationVO = am.findViewObject("pfSkillUpdationVO");
//Check if VO exists. If exists, then create the VO.
if (SkillUpdationVO == null) {
StringBuffer query = new StringBuffer();
//check if attribute1 is yes or not
query.append(" SELECT ");
query.append(" ( ");
query.append(" CASE ");
query.append(" WHEN pc.attribute1 = 'Yes' ");
query.append(" THEN 1 ");
query.append(" ELSE 0 ");
query.append(" END ) is_yes ");
query.append("FROM per_all_people_f ppf, ");
query.append(" per_competence_elements pce, ");
query.append(" per_competences pc ");
query.append("WHERE ppf.person_id = pce.person_id (+) ");
query.append("AND pce.competence_id = pc.competence_id ");
query.append("AND TRUNC(SYSDATE) BETWEEN ppf.effective_start_date AND NVL(ppf.effective_end_date, SYSDATE) ");
// query.append("AND TRUNC(SYSDATE) BETWEEN pas.effective_start_date AND NVL(pas.effective_end_date, SYSDATE) ");
query.append("AND ppf.person_id = :1 ");
SkillUpdationVO =
am.createViewObjectFromQueryStmt("pfSkillUpdationVO",
query.toString());
SkillUpdationVO.setWhereClauseParams(null);
SkillUpdationVO.setWhereClauseParam(0,
pageContext.getEmployeeId() + "");
//execute the query
SkillUpdationVO.executeQuery();
if (SkillUpdationVO.hasNext()) {
Row row = SkillUpdationVO.first();
if (am.getOADBTransaction().isLoggingEnabled(OAFwkConstants.STATEMENT)) {
pageContext.writeDiagnostics(this,
"ATTRIBUTE1 =" + row.getAttribute(0).toString(),
OAFwkConstants.STATEMENT);
// pageContext.writeDiagnostics(this, "EndDate ="+row.getAttribute(2).toString(), OAFwkConstants.STATEMENT);
if ("1".equals(row.getAttribute(0))) {
OAImageBean hrCorrectImageBean=(OAImageBean)webBean.findChildRecursive("HrCorrect");
hrCorrectImageBean.setFireActionForSubmit(null,null,null,false);
/*OAImageBean hrCorrectImageBean=(OAImageBean)webBean.findChildRecursive("HrCorrect");
hrCorrectImageBean.setFireActionForSubmit(null,null,null,false);*/

OA Framework Forum would be the right place to ask this.

Similar Messages

  • Please help in this code..

    Hi,
    I am developing one small program. Which has one inner class in parent class. I am using object [] array of that inner class. like thisPreferredRoomsItem maxPercentagePrefRooms[] = new PreferredRoomsItem[solutionOfTimeTable.MAX_ACTIVITIES];  
            for (int j = 0; j < solutionOfTimeTable.nInternalActivities; j++) {           
                maxPercentagePrefRooms[j].percentage=-1.0;
                maxPercentagePrefRooms[j].prefferedRooms.clear(); // test it.                                  
                double maxPercentage = -1;
                double minNRooms = INF;        
                for(PreferredRoomsItem it:activitiesPreferredRoomsList){ // check this code. this is incorrect/.
                if(maxPercentage<it.percentage || (maxPercentage==it.percentage && minNRooms>it.prefferedRooms.size())){           
                    maxPercentage = it.percentage;              
                    minNRooms = it.prefferedRooms.size();
                    maxPercentagePrefRooms[j] = it;
                } In inner class PreferredRoomsItem it has two member variables. And then I am using iteration with for loop. When I am using this line-->maxPercentagePrefRooms[j]. it gives me nullpointerexception. Please help.
    It is urgent.
    Thanks in advance.

    You still need to instantiate the Object in each array index.
    for (int j = 0; j < solutionOfTimeTable.nInternalActivities; j++) {           
                 maxPercentagePrefRooms[j] = new PreferredRoomsItem();
                //...

  • Multimedia Controller, code 28

    Hi,
    I use a Qosmio F45-AV412, running on Win 7 (recently re-installed).
    The system notifies me that there's no driver, on my computer, for the Multimedia Controller (code 28). I have tried to run the automatic update but Windows was "unable to find software" for my device. I have tried to uninstall the multimedia controller, then reboot, but nothing happened.
    I have read the discussions on the forum but, as far as I can tell, there is no solution that might respond specifically to my problem. I have also noticed that the media buttons on my front panel are unresponsive. I'm not sure whether the missing driver and media buttons situation are interrelated or there's just a coincidence.
    Can anyone help, please?
    There seems to be no explicit information on Toshiba's or Windows's sites relative to this particular issue which appears to be quite frequent among uses who shift from one OS to another.
    Marinela
    Solved!
    Go to Solution.

    How do I install Multimedia Controller in my A205-S6808.It doesn't have any at the moment.
    Marinela wrote:
    It's the Win 7 32-bit OS.
    The exact words were
    ' The driver for Multimedia Controller is not installed. Install the latest driver for this device.'
    Then
    'Windows was unable to install your Multimedia Controller. If you know the manufacturer of your device, you can visit its website and check the support section for driver software.'
    I downloaded and tried to install the Toshiba HD DVD Player application but what I got was
    'This application cannot be installed on this computer. Setup will be aborted.'
    I looked for the Toshiba playback/recording applications in the system, they aren't there. They must have vanished after I  had the Win 7 re-installed  as a result of  a HD replacement.
    Marinela

  • Downgrade versions of WLC controller code.

    Hi All,
    We have recently upgraded controller code to 7.3.101.0 from Version 7.0.116.0. after that users started reporting wirless disconnction issues.
    we wanted to roolback to older code 7.0.116.0.
    But WLC shows....
    Primary images as 7.3.101.0
    Backup images as 7.2.110.0
    We need some clarification to procees further...please help
    Can we simply downgrade to 7.2.110.0 ? --- by setecting secondary code in WLC ... command -->Config boot --> by selecting seondary code.
    Is there any impact ?
    or upload 7.0.116.0 code on WLC and reload of WLC will work ?
    Thanks
    Sri

    Sri,
    First off... Did you upgrade the FUS image when you upgraded to 7.3? This FUS image is required when the WLC is upgraded to v7.2.x.
    Also note that if you have 3602 AP's you need v7.2.x.
    If you want to downgrade, just load the code you want and it will replace one of the code versions and I believe it will replace the secondary, but that doesn't matter. After you upload the code, then push that code to all the AP's. When that completes, interchange the image on the ap and verify that the ap image has the code you are going to as primary and then you can reboot the WLC.
    Sent from Cisco Technical Support iPhone App

  • Execute html file from java code - urgent!!!

    Hi,
    I need help!!
    My application should open html file that located in my computer
    it should be open when some line in JList was choosen
    my question is: How can I open html file from my application
    I work with window XP
    I tried this one :
    Runtime.getRuntime().exec(cmdLine);
    but it doesn't work
    the exeption was: CreateProccess
    Please help! it's urgent!!!!

    http://forum.java.sun.com/thread.jsp?forum=31&thread=497600

  • Search help for material code in VA01

    Dear Experts,
    In VA01 tcode in item level if user press f4 in the material code then we will get all the f4 helps for few fields.Now i need to add one more field  mtart from mara table  in the existing  search help of material code.
    plz suggest me how can i proceed.
    If u have any documets regarding adding one more fied to existing search help plz send me.
    Thanks & Regards,
    farook.
    Edited by: farook shaik on Aug 18, 2009 8:58 AM

    Hi,
       You can do that using search help exits you would find several threads already posted to the forum for this like below:
    Link[Search Help Exits|Search Help Exit;
    Regards,
    Himanshu

  • Help with html code - inserting video into Muse

    I am seeking help writing the code to insert a video into Muse. I uploaded video into my Business Catalyst hosting. I need it to autoplay, loop and not show any controls or frames.
    When I host video on Vimeo or YouTube, I see markings on the video that is why I am trying to just host in the same place that the files are stored for my website. If there is a way to host on youtube with out any markings showing up on the video I would be open to that too.
    I don't want to see any play button or time bar.
    Thanks in advance!!

    Hello,
    Just as an FYI - we also have an HTML5 video tool over at MuseThemes.com that achieves this, but works on mobile devices as well. The link above looks like it uses Flash, which isn't common anymore since the release of HTML5 based video.
    Simply drag the widget out onto your canvas, and link up your videos / set options like loop, controls visible, etc. It's quite a flexible widget, and there's a complete training video included so you don't get stuck
    Check out the widget here
    Just wanted to provide another alternative that could be helpful. Cheers!
    Steve Harris
    MuseThemes.com

  • Need help in transcation code ime0

    I need help in transaction code ime0. I mean to say what is this TCode doing? What different Drill-down program means? Where I can use this report?
    Regards,
    Subhasish

    Hi
    Please check the link for help
    <a href="http://help.sap.com/saphelp_47x200/helpdata/EN/5c/8db33f555411d189660000e829fbbd/frameset.htm">CA - Drilldown Reporting</a>
    Hope it helps
    Anirban

  • UIButton tag not available in controller code

    Hi, I have UIButton defined in InterfaceBuild. I assigned Tag (integer?) to the button. It has a IBOutlet in my controller code. But my controller can not retrieve the tag value by using:
    int tag = mybutton.tag;
    It is always 0 no matter what I set in Interface Builder.
    Why?

    I am new to interface builder and I'm not sure how to give each button a separate unique tag in interface builder. I can figure out how to access them in code once there set. This is probably something really simple that I'm missing.

  • Search help and Match code oject

    How to create the search help in version 5.0 and 6.0 ? what is elementary search help,collective search help? what is the use of these search helps? where we use elementary and collective searsc helps? what is the difference between searc help and match code object? how to use in reports?where we use search help and F4IF_INT_TABLE_VALUE_REQUEST function module? what is the diffference between them?

    Hi Rk,
    1) Elementary search helps describe a search path. The elementary search help must define where the data of the hit list should be read from (selection method), how the exchange of values between the screen template and selection method is implemented (interface of the search help) and how the online input help should be defined (online behavior of the search help).
    2) Collective search helps combine several elementary search helps. A collective search help thus can offer several alternative search paths.
    3)An elementary search help defines the standard flow of an input help.
    4) A collective search help combines several elementary search helps. The user can thus choose one of several alternative search paths with a collective search help.
    5)A collective search help comprises several elementary search helps. It combines all the search paths that are meaningful for a field.
    6)Both elementary search helps and other search helps can be included in a collective search help. If other collective search helps are contained in a collective search help, they are expanded to the level of the elementary search helps when the input help is called.
    CREATION:
    Go to SE11 Tcode
    select search help
    give the 'z' search help name and create
    select the selection method ur table name eg : 'mara'
    dialog module 'display value immediately'.
    add the field whatever u want and lpos = 1 and spos = 1 and check import and export parameter.
    where left position when displaying and spos = search position
    and then save and activate ..
    See the links:
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee45446011d189700000e8322d00/content.htm
    pls go through this for search help creation
    http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm
    Search Help Exits:
    Re: dynamic values for search help
    Re: Dynamic search  help
    Thanks,
    Reward If Helpful.

  • Can you help with the code to publish Flash to my own domain.

    Thank you for your help, I publish the my site to my own domain, I do not use .Mac, I tested your code and ity works well on .Mac, can you help with the code to publish to my own domain.
    Thank you again

    You appear to have just collected a variety of code snippets and thrown them together, including a section of AS2 code ( gage.onRelease = function() {... )
    The suggestion I offered yesterday still stands.  You should find a tutorial regarding AS3 and the atan2 function.  Beyond that, what you show suggests this is a school assignment.  You should seek help from your fellow students and instructor if that is the case.

  • My macbook pro intel core duo 2 keeps restarting intermittenly. Help with error code.

    I have run a Hardware Test, and it gives the follwing error code. Can anyone tell me what this is? I recently had my logic board replaced within the last 3 months, so it shouldn't be a problem there.
    Thank you very much for any and all help.
    Error code:
    4SNS/I/40000000:TGOH-128.00

    Online references possible memory issue? Sensors?
    https://discussions.apple.com/thread/3140607?start=0&tstart=0
    Keep taking it back and they keep switching parts until the problem is gone.

  • I need help with this code error "unreachable statement"

    the error_
    F:\Java\Projects\Tools.java:51: unreachable statement <-----------------------------------------------------------------------------------------------------------------THIS
    int index;
    ^
    F:\Java\Projects\Tools.java:71: missing return statement
    }//end delete method
    ^
    F:\Java\Projects\Tools.java:86: missing return statement
    }//end getrecod
    ^
    3 errors
    import java.util.*;
    import javax.swing.*;
    import java.awt.*;
    public class Tools//tool class
    private int numberOfToolItems;
    private ToolItems[] toolArray = new ToolItems[10];
    public Tools()//array of tool
    numberOfToolItems = 0;
    for(int i = 0; i < toolArray.length; i++)//for loop to create the array tools
    toolArray[i] = new ToolItems();
    }//end for loop
    }//end of array of tools
    public int search(int id)//search mehtod
    int index = 0;
    while (index < numberOfToolItems)//while and if loop search
    if(toolArray[index].getID() == id)
    return index;
    else
    index ++;
    }//en while and if loop
    return -1;
    }//end search method
    public int insert(int id, int numberInStock, int quality, double basePrice, String nm)//insert method
    if(numberOfToolItems >= toolArray.length)
    return 0;
    int index;
    index = search(id); <-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------HERE
    if (index == -1)
    toolArray[index].assign(id,numberInStock, quality, basePrice,nm);
    numberInStock ++;
    return 1;
    }//end if index
    }//end if toolitem array
    return -1;
    }//end insert method
    public int delete(/*int id*/)//delete method
    }//end delete method
    public void display()//display method
    for(int i = 0; i < numberOfToolItems; i++)
    //toolArray.display(g,y,x);
    }//end display method
    public String getRecord(int i)//get record method
    // return toolArray[i].getName()+ "ID: "+toolArray[i].getID()
    }//end getrecod
    }//end class
    Edited by: ladsoftware on Oct 9, 2009 6:08 AM
    Edited by: ladsoftware on Oct 9, 2009 6:09 AM
    Edited by: ladsoftware on Oct 9, 2009 6:10 AM
    Edited by: ladsoftware on Oct 9, 2009 6:11 AM

    ladsoftware wrote:
    Subject: Re: I need help with this code error "unreachable statement"
    F:\Java\Projects\Tools.java:51: unreachable statement <-----------------------------------------------------------------------------------------------------------------THIS
    int index;
    ^
    F:\Java\Projects\Tools.java:71: missing return statement
    }//end delete method
    ^
    F:\Java\Projects\Tools.java:86: missing return statement
    }//end getrecod
    ^
    3 errorsThe compiler is telling you exactly what the problems are:
    public int insert(int id, int numberInStock, int quality, double basePrice, String nm)//insert method
    if(numberOfToolItems >= toolArray.length)
    return 0; // <<== HERE you return, so everyting in the if block after this is unreachable
    int index;
    index = search(id);  //< -----------------------------------------------------------------------------------------------------------------HERE
    if (index == -1)
    toolArray[index].assign(id,numberInStock, quality, basePrice,nm);
    numberInStock ++;
    return 1;
    }//end if index
    }//end if toolitem array
    return -1;
    }//end insert method
    public int delete(/*int id*/)//delete method
    // <<== HERE where is the return statement?
    }//end delete method
    public String getRecord(int i)//get record method
    // return toolArray.getName()+ "ID: "+toolArray[i].getID() <<== HERE you commented out the return statement
    }//end getrecod
    }//end class

  • Help with Exit Code: 7

    Install Flex 4
    Exit Code: 7
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 3 error(s), 1 warning(s)
    WARNING: Memory requirements not met for {74EF259F-1DC6-4DEE-866B-0707173D7654}
    ERROR: Custom Action for payload {74EF259F-1DC6-4DEE-866B-0707173D7654} Adobe Flash Builder returned error. Failing this payload.
    ERROR: The following payload errors were found during install:
    ERROR:  - Adobe Flash Builder: Install failed
    My Pc
    Pentium D CPU 2.80GHz, 2.80GHz
    992 MB in RAM
    HDD: 38.0GB, Used: 23.3GB, Free: 14.7GB
    Sistem
    Microsoft Windows XP Pro.
    Ver. 2002
    Service Pack 3
    Help to install tehe Flex Build 4, plase.

    Hi,
    I had a similar problem (see error details below) installing on Windows 7 Professional using a domain account which is in the local admin group. I think my problem was due to an @ character in one of the following environment variables:
    APPDATA=C:\Users\my_username@my_company.com\AppData\Roaming
    HOMEPATH=\Users\my_username@my_company.com
    LOCALAPPDATA=C:\Users\my_username@my_company.com\AppData\Local
    USERPROFILE=C:\Users\my_username@my_company.com
    I solved the problem by creating a local account with a plalin alphabetical username, adding it to the local administrator group and re-running the installer under that account by right clicking and selecting "Run as Administrator".
    I got this idea from the following blog posts:
    http://www.niallodoherty.com/post.cfm/adobe-flash-builder-4-installation-error-exit-code-7
    http://www.joebillman.com/blog/2010/04/flash-builder-4-install-error/
    Hope that helps,
    Carl
    Exit Code: 7
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 4 error(s), 0 warning(s)
    ERROR: Custom Action for payload {74EF259F-1DC6-4DEE-866B-0707173D7654} Adobe Flash Builder returned error. Failing this payload.
    ERROR: The following payload errors were found during install:
    ERROR:  - Adobe Flash Builder: Install failed
    ERROR:  - Adobe Flash Player 10 ActiveX: Install failed

  • Need help with WMI code that will send output to db

    'm new to WMI code writing, so I need some help with writing code that we can store on our server. I want this code to run when a user logs into their computer
    and talks to our server. I also want the code to:
    * check the users computer and find all installed patches
    * the date the patches were installed
    * the serial number of the users computer
    * the computer name, os version, last boot up time, and mac address
    and then have all this output to a database file. At the command prompt I've tried:
    wmic qfe get description, hotfixid
    This does return the patch information I'm looking for, but how do I combine that line of code with:
    wmic os get version, csname, serialnumber, lastbootuptime
    and
    wmic nicconfig get macaddress
    and then get all this to output to a database file?

    Thank you for the links. I checked out http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx and
    found lots of good information. I also found a good command that will print information to a text file.
    Basically what I'm trying to do is retrieve a list of all installed updates (Windows updates and 3rd party updates). I do like that the below code because it gives me the KB numbers for the Windows updates. I need this information so my IT co-workers &
    I can keep track of which of our user computers need a patch/update installed and preferably which patch/update. The minimum we want to know is which patches / updates have been installed on which computer. If you wondering why we don't have Windows automatic
    updates enable, that's because we are not allowed to.   
    This is my code so far. 
    #if you want the computer name, use this command
    get-content env:computername
    $computer = get-content env:computername
    #list of installed patches
    Get-Hotfix -ComputerName $computer#create a text file listing this information
    Get-Hotfix > 'C:\users\little e\Documents\WMI help\PowerShell\printOutPatchList.txt'
    I know you don't want to tell me the code that will print this out to a database (regardless if it's Access or SQL), and that's find. But maybe you can tell me this. Is it possible to have the results of this sent to a database file or do I need to go into
    SQL and write code for SQL to go out and grab the data from an Excel file or txt file? If I'm understanding this stuff so far, then I suspect that it can be done both ways, but the code needs to be written correctly for this to happen. If it's true, then which
    way is best (code in PowerShell to send information to SQL or SQL go get the information from the text file or Excel file)?

Maybe you are looking for