How to use SSHRParams in a custom page

Hi
I have been trying to use SSHRParams in my custom page. I need to use this to get AssignmentId and PersonID. Initially I tried using the SSHRParam package by just importing it. But it did not help. Below is the code that I had in my controller
import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.framework.webui.OAControllerImpl;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import oracle.apps.per.selfservice.arch.webui.PerOAControllerImpl;
import oracle.apps.per.selfservice.common.SSHRParams;
* Controller for ...
public class PtoRequestDeleteCO extends PerOAControllerImpl
public static final String RCS_ID="$Header$";
public static final boolean RCS_ID_RECORDED =
VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
* Layout and page setup logic for a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
SSHRParams localSSHRParams = new SSHRParams(pageContext.getRootApplicationModule());
//localSSHRParams.initCtx();
String personType = localSSHRParams.getSelectedPersonType();
String personID = localSSHRParams.getSelectedPersonId();
* Procedure to handle form submissions for form elements in
* a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
I am new to OAF and I have tried almost everything that I can think of.
Thanks
Kumar
Edited by: kvsankar on Feb 15, 2011 6:30 PM

Here this is what you need to do
1. get all the files from $PER_TOP/mds folder onto your pc.
2. create folder structure called oracle/apps/per and put all the files from step1.
3. zip above oracle folder and move it to jdevhome/jdev
4. Attach this .zip file to the project by going into project properties -> libraries -> add libraries ( select the file in class path and source path example both these paths should be .../jdevhome/jdev/filename.zip)
5. see my control code below ( remove any unnecessary code lines from below and use what u need, i am just pasting as is )
package oracle.apps.pay.w4.webui;
import java.io.Serializable;
import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.framework.OAViewObject;
import oracle.apps.fnd.framework.OAApplicationModule;
import oracle.apps.fnd.framework.server.OADBTransactionImpl;
import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
import oracle.apps.fnd.framework.webui.OAControllerImpl;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import oracle.apps.per.selfservice.common.SSHRParams;
* Controller for ...
public class W4mainCO extends OAControllerImpl
public static final String RCS_ID="$Header$";
public static final boolean RCS_ID_RECORDED =
VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
* Layout and page setup logic for a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
OAApplicationModule oaapplicationmodule = pageContext.getRootApplicationModule();
OADBTransactionImpl oadbtransactionimpl = (OADBTransactionImpl)oaapplicationmodule.getOADBTransaction();
OAApplicationModule oaapplicationmodule1 = pageContext.getApplicationModule(webBean);
OAViewObject oaviewobject = (OAViewObject)oaapplicationmodule1.findViewObject("W4VO1");
SSHRParams sshrparams = new SSHRParams(pageContext.getApplicationModule(webBean).getOADBTransaction());
String s = sshrparams.getPersonId();
OAApplicationModule am = pageContext.getApplicationModule(webBean);
Serializable[] parameters = { s };
am.invokeMethod("initDetails", parameters);
let me know if you need any help.
Thanks
Karan

Similar Messages

  • How to call & pass values to custom page from seeded page table region

    Hi All,
    can anyone tell me how to call & pass values to custom page from seeded page table region(Attribute is not available in seeded page VO)
    it is urgent. plssss
    Regards,
    purna

    Hi,
    Yes, we do this by extending controller, but you can also try this without extending controller.
    1. Create Submit Button on TableRN using personalization.
    2. Set "Destination URI" property to like below
    OA.jsp?page=/<yourname>/oracle/apps/ak/employee/webui/EmpDetailsPG&employeeNumber={@EmployeeId}&employeeName={@EmployeeName}&retainAM=Y&addBreadCrumb=Y
    Give your custom page path instead of EmpDetailsPG.
    EmployeeId and EmployeeName are VO attributes(Table Region)
    If you dont have desired attribute in VO, then write logic in your custom page controller to get required value using parameters passed from URL path.
    In this case, only personalization will do our job. Hope it helps.
    Thanks,
    Venkat Y.

  • How to use *MonitorManager* to add custom messages in channel monitoring?

    Hi experts,
    How to use MonitorManager to add custom messages in channel monitoring for custom adapter development(Not in audit log).
    like
    Type   Time Stamp   Message ID   Explanation 
      6/25/11 6:39:47 AM 00199942-6e43-02df-96ca-8b538c63dd98 Message processing completed successfully
      6/25/11 6:39:47 AM 00199942-6e43-02df-96ca-8b538c63dd98 Message with ID 00199942-6e43-02df-96ca-8b538c63dd98 processed
      6/25/11 6:39:46 AM 00199942-6e43-02df-96ca-8b538c63dd98 Message processing started
      6/24/11 6:43:26 AM 00199942-6e43-02ef-96b1-7650f3495e03 Message processing completed successfully
      6/24/11 6:43:26 AM 00199942-6e43-02ef-96b1-7650f3495e03 Message with ID 00199942-6e43-02ef-96b1-7650f3495e03 processed
      6/24/11 6:43:24 AM 00199942-6e43-02ef-96b1-7650f3495e03 Message processing started
      6/23/11 6:45:52 AM 00199942-6e43-02df-9698-5be345a9ddf5 Message processing completed successfully
      6/23/11 6:45:52 AM 00199942-6e43-02df-9698-5be345a9ddf5 Message with ID 00199942-6e43-02df-9698-5be345a9ddf5 processed
      6/23/11 6:45:50 AM 00199942-6e43-02df-9698-5be345a9ddf5 Message processing started
      6/22/11 6:43:30 AM 00199942-6e43-02ef-95ff-2c03493dc078 Message processing completed successfully
    Edited by: SAP_PI_D on Jun 28, 2011 12:10 PM

    Solve by myself

  • How to use search term2 in customer master record

    hi
    how to use search term2 in customer master record. can anyone tell me plz
    thanks
    monica

    Hi,
    Search Term 2
    Label used for search helps.
    Only uppercase letters are stored in this field. Your entries are converted automatically to uppercase letters.
    There are two of these fields for search terms. These fields can be used independently of each other.
    Procedure
    You can use your own criteria for entering the search term.
    Example
    You can enter the main part of the name or an organizational ID.
    For example, for the company "Hechinger & Sons", you could enter "Hechinger" as the first search term.
    The second search term could then be the name ID you use within your company, to help you identify your data later.
    Please check out the following link:
    http://help.sap.com/saphelp_47x200/helpdata/EN/01/a9b331455711d182b40000e829fbfe/frameset.htm
    Hope this helps.
    Please assign points as a way to say thanks.
    Regards,

  • Oepe-12.1.2.1-kepler how to use ADF Templates in JSP page

    Hi all,
        I use oepe 12.1.2.1 kepler 4.3 and creating JSP page but I can't see any ADF Rich Faces Page in JSP Templates Page of Preferences Dialog. How to use ADF Templates in JSP page?
    Thanks,
    Thomas

    Select the JSP Templates link. Is the ADF Rich Faces Page template listed? Refer Creating the Login Page/4.
    Introduction to the Oracle Enterprise Pack for Eclipse (OEPE) IDE

  • How to use a webservice in  JSPDyn page

    hai,
       I have created one webservices but i donot how to use that webservices in JSPDyn page.
      can anyone give solution for this problem
    Rds
    Shanthakumar

    Check out the Axis user's guide at: http://ws.apache.org/axis/java/user-guide.html

  • How to use application item in the page template

    How to use application item in the page template.
    Thanks,
    rajendra

    Hi,
    You can refer application item value in template like &MY_ITEM. (note period at end)
    http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35125/concept_sub.htm
    Regards,
    Jari

  • How to use parameter passed from standard page in VO query of custom page

    Hi everyone,
    I have a custom page which needs to be called from a standard page. Now this custom page is based on some parameters passed from standard page.
    How do I catch those parameters i my custom page .
    And how to use those parameters in the VO query of my custom page.
    Edited by: Bunny on Nov 11, 2010 9:16 AM

    Hi,
    Bunny wrote:
    I have a custom page which needs to be called from a standard page. Now this custom page is based on some parameters passed from standard page.
    How do I catch those parameters i my custom page .---If standard page the button style is :Button,Then u can set Destination URL in personalization.
    Destination UR:"OA.jsp?page=/xxx/oracle/apps/po/msg/webui/CustomUpdatePG&Flag=" +Value  ---Like u can pass params
    ---IF the button style is :Submitbutton ,Then u need to customization of the co.
    ---In co processFormReq call a cutom page like below.
    pageContext.setForwardURL("OA.jsp?page=/xxx/oracle/apps/po/msg/webui/customUpdatePG&Flag=" +Value, null, (byte)0, null, null, true, "N", (byte)0);
    ---In custom page co in processRequest u can get these value :String value=pageContext.getParameter("Flag");
    And how to use those parameters in the VO query of my custom page.---Get the vo and set where clause
    String where="valueAttr="+value;
    vo.setWhereClauseParams(null);
    vo.setWhereClause(where);
    vo.executeQuery();
    Regards
    Meher Irk
    Edited by: Meher Irk on Nov 11, 2010 11:53 PM

  • How to use getContent() method in custom JSP Provider to display a HTML Pag

    Hi,
    If anybody knows how to use getContent() method to use in custom jsp providers (developed by ourselves) so that it can be used to retrieve a jsp page (a simple html page) ..
    I want the code in the provider java file to for the getContent method...
    Pls. get back to me asap....if any body has implemented a custom jsp provider...as it's urgent...
    I have alreday placed the JSP file in the directory structure /etc/opt/SUNWps/desktop/default/channel_dir..But still the jsp is not being displayed..
    Pls get me the getContent() method code to retrive the JSP file..
    satyabrata

    Hi,
    You don't have to do anything in the custom JSPProvider's getContent method except the call {  return super.getContent(request,response); } . If all you want is just to show your jsp, then create a channel from the default JSPProvider, and edit the property contentPage of that channel from samplecontent.jsp to your jsp name, save the changes and login again. You should see your JSP.
    Sanjeev.

  • Cannot print using RDP, with a custom page size ,on HP Laserjet M1217nfw MFP

    Dear Team,
    i have on the server win 2008 R2 standard , i have installed the drivers of HP Laserjet M1217nfw MFP printer , 
    on the client i have win pro 7 SP1.
    i need to print through RDP the documents generated in my application which i access remotely using RDP.
    i know the printer drivers are installed on client and server both.
    the issue is of creation of custom pages to print the document in proper format so that it prints in the client PC with proper formatting.
    we are currently successfully printing on HP Laserjet P3015 printer but at a different location. and i have 5 branches still to be able to print this document from the application,
    I need you advise and assistance as to how do i go about achieving my objective with this printer,
    Thanking you in advance
    regards
    Vibes

    Hello JBC666,
    I understand that you are having an issue with printing wireless from your M1217nfw. I can understand how frustrating this can be. I would like to confirm a couple of things with you to get better understanding of your setup.
    1) How far away from the printer is the router?
    2) Has there been an recent changes that could have caused the issue?
    As well printing a network test report, is an excellent option to find out if there is any issues with the connection at all. I have included the following steps to print the test.
    1) Press the wrench button
    2) Press the right arrow until you see Network Config
    3) Press Ok
    4) Press the right arrow until you see Network Test
    5) Press Ok
    1) Does anything fail on this test?
    2) What is the signal quality?
    3) Are you able to view the printers embedded web server?
        Steps to accessing the embedded web server
        1) Open up your internet browser
        2) Type the IP address (from the test report) into the address bar
        3) Press Enter
    Thank you.
    I worked on behalf of HP

  • How to use single frame in a page

    Hello, i would like to now how to make a frame in a page
    without having two or more, i was used to work with GoLive and
    there i could use the grid an put a single frame and make links to
    other pages that would open in that frame, it worked wel for me,
    but since I switched from golive to dreamweaver CS3 i am not able
    to do so. Is there some one how could tel me how to do so, since i
    use a lot of single frames in my pages,
    greetings

    why are you wanting to use single frames?
    They allow having the initial frame address stay in the
    address bar, and not
    show the linked page's address. The problems they cause
    usually override any
    value.
    Or- if we aren't using the same words the same way, please
    give an example
    site of what you want to do.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • How to use the design tools in pages 5.2 on Macbook Pro

    How do you use the alignment tools for placing and inserting images in pages 5.2?

    Hi Ivy Janelle,
    Thanks for visiting Apple Support Communities.
    In Pages 5, you can insert images using the Media browser at the top of the document window. Once you insert them, you can edit and arrange images using the Format inspector--the paintbrush icon in the top right. You can find detailed information about inserting and using images at these links:
    Pages for Mac 5.0: Add and edit images
    http://support.apple.com/kb/PH15345
    Pages for Mac 5.0: Align and position objects
    http://support.apple.com/kb/PH15351
    Best Regards,
    Jeremy

  • How to use Resever Field for Customer Master

    Hi
    My Client Requirement. Price should be determine with Sales ORG, Distribution channel, Division, Districts, Talukas and Villages.
    But Talukas and villages are not available in SAP standard systems.
    Is it possible to use reserver field in Customer Master for this purpose?
    If it is ok then please give suggestion how to use this reserve fields.
    Thanks in Advance
    Madhu

    Hello,
    the system-behavior that you describe is standard behaviour, because   
    the fields which you are describe (village and ..) doesn't exist in structure KOMG.                                                                               
    For using this field in the field catalog you can proceed like this:   
    1. create a new field for example ZZvillage...                             
    2. add the new field in the table T681F for the application 'V' and the
       usage 'A'                                                           
    3. add the field to the include-structure KOMKAZ                       
    4. fill the new fields in the userexit for pricing                     
       (Pricing_Prepare_TKOMK (TKOMP)                                                                               
    I hope that the information are helpful for you.    
    regards
    Claudia

  • How to use I18N with a custom validator?

    This is my custom validator:
        public void validate(FacesContext context, UIComponent component, Object value) throws ValidatorException
            Pattern pat=Pattern.compile(".+@.+\\.[a-z]+");
            Matcher m= pat.matcher(value.toString());
            if(!m.find())
                FacesMessage message = new FacesMessage("Not a valid e-mail address");
                throw new ValidatorException(message);
        }Instead of providing the text "Not a valid e-mai address", I'd like to get the text out of my ApplicationResources property file.
    How can I do this?
    I know how to use it with the provided validators, but not with own custom ones
    Please help me out, thanks

    I found a solution for this problem, I don't know it's best practice but here it is :
        public void validate(FacesContext context, UIComponent component, Object value) throws ValidatorException
            String errortext;
            Pattern pat=Pattern.compile(".+@.+\\.[a-z]+");
            Matcher m= pat.matcher(value.toString());
            if(!m.find())
                ResourceBundle bundle =
                ResourceBundle.getBundle("be.vdab.resources.ApplicationResources", context.getViewRoot().getLocale());
                errortext = bundle.getString("erroremail");
                FacesMessage message = new FacesMessage(errortext);
                throw new ValidatorException(message);
        }

  • How to use Javascript to load random pages?

    I wonder if anyone knows how to use Javascript to load a list
    of links stored in the text file.
    Every address will take a line, and the Javascript will
    randomly select one of the addresses to load.
    The user will click the button "random" and access the page
    randomly selected by the script.

    Addition note:
    I forgot to say this because my computer froze......(how
    lame)
    I got the code for random accessing the links.
    But now the problem is, is there anyway to parse a text file
    into the array in Javascript?

Maybe you are looking for

  • Help me to run JDBC program

    hi friends, my problem is i am unable to run JDBC prg. i set classpath of classes12.zip, still my problem is unsolved....... how i have to set classpath

  • IPhone 4s viber

    Hi I downloaded Viber on my new iPhone 4S. But when it asked me to allow push notifications I accidentally pressed don't allow and now I can't seem to allow these push notifications and obviously viber doesn't work without allowed push notifications

  • Can I back up with Time Machine to a previously used hard drive?

    I've just replaced an old MacBook Pro with a new one and used Time Machine to get the new MBP set up.  All is well and it looks like my new computer is a mirror of the old (tested for a week now).  If I turn on Time Machine with the new MBP using the

  • How to find out what time I took a picture

    A big monster truck's bumper went up onto my car's hood at the grocery store the other week and I snapped a picture of it. Now the lady is claiming that I decided to park my car underneath hers and that my car was not there when she parked. I have my

  • Error in web service creation : java.io.IOException: Non nillable element

    hi, i am new to web service, and i have to create web service. i have wsdl file and i have to develop web service using that file only. i am using eclipse 3.2 WTP, and apache tomcat server. After importing file, when i am cretaing web service, i am g