Custom page with internal id as parameters: convert to names

Hi,
I am new to OAFramework... just so that you know.
I have a custom page, called from a link on a notiification, which has a number of parameers coming in. These parameters are internal ids. Do I use validation view object to translate those id's into names and numbers? Or is that usually done via a different technique?
thanks
Ronny

Ok, here is what I did.
I have a number of internal id's coming in as parameter.
Created 2 VVO's.
- InvoiceDataVVO
- personDataVVO
Actually I created 3 VVO's, because I thought I would be able to use a VVO a second time for another translation but that seemed to be wrong thinking.
So, third VVO (which is identical to personDataVVO)
- ccPersonDataVVO
Connected them to the AM (NotifySupplierAM).
Created the initQuery method in the corresponding VVOImpl classes
public void initQuery(String PersonId)
setWhereClauseParams(null); // Always reset
setWhereClauseParam(0, PersonId);
executeQuery();
In the controller NotifySupplierCO I added the following in the processRequest
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
initMailData(pageContext, webBean);
code for initMailData
* Display the proper mailing info on the page
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void initMailData(OAPageContext pageContext, OAWebBean webBean)
Enumeration num = pageContext.getParameterNames();
Hashtable hm = new Hashtable();
while (num.hasMoreElements()) {
String element = num.nextElement().toString();
hm.put(element, pageContext.getParameter(element) );
String InvoiceId = hm.get("invoiceId").toString();
String VendorId = hm.get("vendorId").toString();
String AccountantUserId = hm.get("accountantUserId").toString();
String SenderUserId = hm.get("senderUserId").toString();
String RespId = hm.get("respId").toString();
String RespApplId = hm.get("respApplId").toString();
String OrgId = hm.get("orgId").toString();
System.out.println("InvoiceId : " + InvoiceId);
System.out.println("VendorId : " + VendorId);
System.out.println("AccountUserId : " + AccountantUserId);
System.out.println("SenderUserId : " + SenderUserId);
System.out.println("RespId : " + RespId);
System.out.println("RespApplId : " + RespApplId);
System.out.println("OrgId : " + OrgId);
// Translate the parameter values into names and stuff
OAApplicationModule am = pageContext.getApplicationModule(webBean);
Serializable[] parameters = { InvoiceId, AccountantUserId, SenderUserId  };
am.invokeMethod("queryMailDataById", parameters);
// Put the values to the page fields (for the items which are not mapped
// to a VVO
OAMessageTextInputBean itemMailBodyTextBean = (OAMessageTextInputBean)webBean.findChildRecursive("MailBodyText");
OAMessageCheckBoxBean itemIncludeAttachmentBean = (OAMessageCheckBoxBean)webBean.findChildRecursive("IncludeAttachment");
itemMailBodyTextBean.setValue(pageContext,null);
itemIncludeAttachmentBean.setValue(pageContext, 'Y');
} // initMailData
This calls queryMailDataById in the AM, which looks like this.
* Translate the incoming id values into the nessecary data values
* to be displayed on the page
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void queryMailDataById( String InvoiceId
, String AccountantId
, String SenderId
InvoiceDataVVOImpl voInv = getInvoiceDataVVO1();
voInv.initQuery(InvoiceId);
personDataVVOImpl voSend = getpersonDataVVO1();
voSend.initQuery(SenderId);
ccPersonDataVVOImpl voAccount = getccPersonDataVVO1();
voAccount.initQuery(AccountantId);
The input fields on the page are mapped to the VVO's.
example:
View Instance: InvoiceDataVVO1
View Attribute: VendorEmail
That did the trick.
regards
Ronny
Edited by: Ronny Eelen on 11-Jul-2011 01:12

Similar Messages

  • Integrating Custom page with Standard Page

    Hi
    My Doubt is,
    i m working on iRec Module.
    i m integrating Custom page with Standard Page , Is it will affect the Background running Workflow.
    Thanx

    Hi 781261,
    It seems you are familiar with OTN forums, based on your profile.
    165 posts, 50+ questions and 15 unresolved.
    I hope you know forum etiquettes(you can refer http://forums.oracle.com/forums/ann.jspa?annID=914).
    Close your previous threads if they are answered/you got out of the issue yourself.
    One of your unclosed threads is:
    Re: Can we Fire PPR on DFF?
    regards,
    Anand

  • Edit wordpress custom page with style loaded

    Hello,
    I have created custom template  wordpress pages and I am succesfully editing the content in Dreamweaver.
    The only tihng is, the style.css file doesn't load into my view when editing the page. So I actually don't get to see the way the design at least approximately looks like.
    And I have the styles file on my computer downloaded and all.
    Do I need to somehow reference it?
    Thoughts and suggestions appreciated!

    If you want to see how it looks in Design view you need to add the reference. Check the link to the style.css file in the head tag. Try to link the file again by putting it in the css/styles folder of your site.

  • On OS 5, the contacts with international format do not show the names when they call me. any idea why?

    I have updated my Iphone 4 software to OS5, and since then the names of the people who call me stopped to appear and only their number is showing. after checking, i found out that the contatcs whom local phone number is saved in an international format are affected by this problem. if i save them without the country code, then their names appear.
    Also, some non local numbers that are saved in the format of 00966--------- instead of +966 ------- are also not showing the name of my contact when they call me.
    any idea about this knowing that the older OS version didn't have an issue with this?
    Thanks

    This is the same problem I have.  I thought it was my phone only, but now I realize it is a common thing.  I hope they release a fix to this, as they did in 2007 & 2007 when 3G was released.  Will be waiting and good luck to us all.

  • Submit OA page with Enter key in custom page

    Hello All,
    I have one custom page with 20+ fields and two submit buttons to do different processing.
    On this page, if enter key is pressed then I need to submit the form i.e. invoke processing corresponding to one of the submit button.
    I know that at field level I can bind enter key event. But for that I need to write same code 20 times for all 20 fields.
    Do we have any simple way to implement submit if enter key is pressed in any of the fields?
    Any help will be highly appreciated.
    Thanks,
    Ritesh

    Hi Ritesh,
    Not sure but you will want to try implementing the method mentioned by Anil using "OAPageLayoutBean" to get the enter key handle for all the fields in a page.
    i.e. try with
    OAPageLayoutBean page = pageContext.getPageLayoutBean();
    Hashtable params = new Hashtable(); 
        params.put ("Go", "value1");
        page.setAttributeValue(OAWebBeanConstants.ON_KEY_PRESS_ATTR, new OABoundValueEnterOnKeyPress(pageContext,
                                          "DefaultFormName", // enclosing form name
                                          params, // request parameters
                                          false, // client unvalidated
                                          false)); // server unvalidatedinstead of
    OAMessageTextInputBean HelloName = (OAMessageTextInputBean)webBean.findChildRecursive("HelloName");
             Hashtable params = new Hashtable(); 
             params.put ("Go", "value1");
             HelloName.setAttributeValue(OAWebBeanConstants.ON_KEY_PRESS_ATTR,
             new OABoundValueEnterOnKeyPress(pageContext,
                                          "DefaultFormName", // enclosing form name
                                          params, // request parameters
                                          false, // client unvalidated
                                          false)); // server unvalidatedand pls update the result.
    regards,
    Anand

  • Passing value of View Attribute from standard page to 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 whose value will depend on the dynamic selection by user. So how to get the currently executed value from VO.
    For ex: Vendor Id , contact id and site Id all are to be fetched which are present in three different VOs. When user select particular vendor, contact and site these values will change accordind to selection.
    Here do I need to extend the controller and application module of the standard page or it can be done by passing parameters in destination URI of submit button.
    I tried using parameters in destination URI of submit button as {VO.ViewAttributeName} and printing in custom page but it was printing " {VO.ViewAttributeName}" as it is.
    Please help..
    Thanks in advance.
    Edited by: Kittu on Nov 18, 2010 1:05 PM

    Hi Meher,
    I tried doing it by destination uri but it was not taking the value.
    I tried CO extension with the following code in my extended CO :
    public class ExtendedByrCntDirCO extends ByrCntctDirCO
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    /* I WANT TO CREATE TEH SUBMIT BUTTON PROGRAMATICALLY */
    OASubmitButtonBean oasb= (OASubmitButtonBean)pageContext.getWebBeanFactory().createWebBean(pageContext,"BUTTON_SUBMIT");
    oasb.setID("SubmitBtn");
    oasb.setUINodeName("SubmitBtn");
    oasb.setEvent("xxSubmitButton");
    oasb.setText("Submit");
    webBean.addIndexedChild(oasb);
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    String url = "OA.jsp?page=/oracle/apps/aeap/Vendors/webui/VendorContactsPG";
    OAApplicationModule am =
    (OAApplicationModule)pageContext.getApplicationModule(webBean);
    OAViewObject VendorsVO = (OAViewObject)am.findViewObject("VendorsVO1"); // To retrive the attribute of a particular VO
    Number VendorId = (Number)VendorsVO.getCurrentRow().getAttribute("VendorId"); *// But here its showing null pointer exception*
    HashMap params = new HashMap(1);
    params.put("VendorId", VendorId);
    String strEvent= pageContext.getParameter(EVENT_PARAM) ;
    if ( strEvent.equals("xxSubmitButton"))
    pageContext.setForwardURL(url,
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    params,
    true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO,
    OAWebBeanConstants.IGNORE_MESSAGES);
    So how can I retrive the value from VO . Is there any another way . Plz help...
    Edited by: Kittu on Nov 19, 2010 12:46 PM

  • Custom page issue in smartforms

    hi all,
        As per requirement custom page with 11 inch X 12 inch page size.In windows in default page setting is "letter" so when i am taking print out ,system is considering that letter format and it is not printing all the data as per form developde .
    if i maintained in window page setting as A3 size paper then all data is printing but in next page is skipping up 1/4 page and 2nd page is printing from there only.
    Requireemnt is system should not consider the windows default setting and it should consider the paeg size what defined in SAP.The users in client orgabnisation are not allowed to change any windows settings.
    Kindly guide me how we can solve the issue by doing development in SAP.
    Regards
    venkat

    Hi Venkat,
    I don't think there's such option available in smartforms unless you change the frontend (windows) settings.
    You must change your printer default settings in windows to match smartform size.
    Umakanth R

  • Problem while adding attachment in a custom page

    Hi,
    I have a custom page with a standard attachment table item. On adding an attachment the attachment fails to upload and the blue status bar continues to grow. This is happening only in one particular environment. I am not able to replicate this problem any in other environment. Error Stack shows the following Exception.
    ## Detail 0 ## java.io.EOFException at oracle.cabo.share.util.MultipartFormHandler._readLine(Unknown Source) at
    oracle.cabo.share.util.MultipartFormHandler._readLine(Unknown Source) at oracle.cabo.share.util.MultipartFormHandler._skipBoundary(Unknown Source) at
    oracle.cabo.share.util.MultipartFormHandler.(Unknown Source) at oracle.cabo.share.util.MultipartFormHandler.(Unknown Source) at
    oracle.apps.fnd.framework.webui.OAPageContextImpl.parseMultipartForm(OAPageContextImpl.java) at oracle.apps.fnd.framework.webui.OAPageContextImpl.
    (OAPageContextImpl.java:555) at oracle.apps.fnd.framework.webui.OAPageBean.createPageContext(OAPageBean.java:4458) at
    oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1224) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage
    (OAPageBean.java:509) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430) at oa_html._OA._jspService(_OA.java:84) at
    oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119) at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417) at oracle.jsp.JspServlet.doDispatch
    (JspServlet.java:267) at oracle.jsp.JspServlet.internalService(JspServlet.java:186) at oracle.jsp.JspServlet.service(JspServlet.java:156) at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:588) at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456) at
    org.apache.jserv.JServConnection.run(JServConnection.java:294) at java.lang.Thread.run(Thread.java:595) java.io.EOFException at
    oracle.cabo.share.util.MultipartFormHandler._readLine(Unknown Source) at oracle.cabo.share.util.MultipartFormHandler._readLine(Unknown Source) at
    oracle.cabo.share.util.MultipartFormHandler._skipBoundary(Unknown Source) at oracle.cabo.share.util.MultipartFormHandler.(Unknown Source) at
    oracle.cabo.share.util.MultipartFormHandler.(Unknown Source) at oracle.apps.fnd.framework.webui.OAPageContextImpl.parseMultipartForm
    (OAPageContextImpl.java) at oracle.apps.fnd.framework.webui.OAPageContextImpl.(OAPageContextImpl.java:555) at
    oracle.apps.fnd.framework.webui.OAPageBean.createPageContext(OAPageBean.java:4458) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage
    (OAPageBean.java:1224) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509) at
    oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430) at oa_html._OA._jspService(_OA.java:84) at
    oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119) at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417) at oracle.jsp.JspServlet.doDispatch
    (JspServlet.java:267) at oracle.jsp.JspServlet.internalService(JspServlet.java:186) at oracle.jsp.JspServlet.service(JspServlet.java:156) at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:588) at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456) at
    org.apache.jserv.JServConnection.run(JServConnection.java:294) at java.lang.Thread.run(Thread.java:595)
    Could anyone tell why is this exception raised and what is the solution to this problem?

    The first step to the solution would be for you to post your question to the OA Framework forum; you won't get the specialized help you need in this forum.
    Regards,
    John

  • 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

  • Posting of Perks with internal order

    Hello
    We have maintained cost distribution infotype with subtype 01 for all employees. The regular salary as well as perks are posted using this distribution. Now we have a requirement to post mobile expenses with internal order. In FI Side profit centre is maintained in internal order master, one to one relationship. In IT 27 multiple cost centres are maintained, each cost centre is having separate profit centres, So when we are trying to maintain the internal order in It 27, system is restricting us.
    If we maintain another record in It 27 with custom subtype with internal order and one cost centre which is being maintained in internal order master.How to link one particular wagetype with custom subtype of IT27, so that it will get posted with internal order.
    Thanks
    Swapna

    Thank you.
    Customizing in ACSET  was missing.
    It is working fine now

  • How to develop custom page using Hgrid

    Hi,
    I have to develop one custom page with hierarchy. I think it will reach through hgrid. So how to develop page using hgrid.
    Thanks in advance,
    Hanimi....

    Hi,
    I have to develop Custom OAF page like following navigation for an employee position hierarchy from bottom to top. Can we achieve this requirement through custom OAF Page, If achieve How?
    If you go to HRMS Manager --> Work Structures --> Position --> Diagrammer. Here you can able to see the position hierarchy. Same as like this i have to develop one custom page. Pls let me know how to achieve this requirement.
    Thanks in advance,
    Hanimi...

  • Uploading custom pages to iPhoto photo books

    I am trying to upload a custom page with photos and text to my iPhoto photo book. I am a digital scrapbooker.  But I need to know the exact size with bleed to make sure that the text and photos appear the way I have designed. Is it possible to find out the size of the photo books with bleeds?
    I am using version 9.5.1 of iPhoto.

    I've not seen that in iPhoto '08 - iPhoto '09 does have a thumbnail bug like that that has not been fixed yet
    Try clicking on the blank thumbnail and seeing what it shows in the main window
    And remember the sure way to know what is going to print is to preview it according to this article - http://support.apple.com/kb/HT1040 - and save the resulting PDF for reference
    LN

  • Issue custom page printing

    Hi all,
    As per requirement custom page with 11 inch X 12 inch page size.In windows in default page setting is "letter" so when i am taking print out ,system is considering that letter format and it is not printing all the data as per form developde .
    if i maintained in window page setting as A3 size paper then all data is printing but in next page is skipping up 1/4 page and 2nd page is printing from there only.
    Requireemnt is system should not consider the windows default setting and it should consider the paeg size what defined in SAP.The users in client orgabnisation are not allowed to change any windows settings.
    Kindly guide me how we can solve the issue by doing development in SAP.
    Regards
    venkat

    Hi Guys,
    This issue is resolved by setting the clipper / ruler of dotmatrix printer.
    Sorry for not doing enough R&D before posting the issue. Actually the issue was very critical, so couldn't afford to take a chance.
    Regards,
    Vinit

  • Customizing pages of book

    Can the sizes of the individual photos (on a book page) be changed? Can they be moved?
    Eric

    If you have a 3rd party image editor that can handle layers you can create customized pages for any theme as described in Old Toad's Tutorial #19 - Creating a Custom Page, with the Theme's Background for an iPhoto Book.
    OT

  • I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    I am changing from Word to Pages. I have created my custom template with all my styles etc and that is what comes up when I go for a New Document. Fine. How do I get it to use the same Custom Template when I use Pages to open a Word document?

    The template is a document in itself, it is not applied to an existing document whether it is a Pages document or a Word document converted to a Pages document.
    You would need to either copy and paste content, using existing styles, or apply the styles to the converted Word document.
    You can Import the Styles from an existing document and those imported Styles can be used to override the current document's styles:
    Menu > Format > Import Styles
    The process is simplified if the styles use the same names, otherwise you will need to delete the style you don't want and replace it with the one that you do want when asked, then the substitution is pretty straightforward.
    Peter

Maybe you are looking for

  • XI 2.0 problem: scenario xml - xi - idoc

    Hi! my scenario is xml -> xi -> idoc1, idoc2. when the interface start, if I call SXMB_MONI I see that idoc1 is correct; for idoc2 the system generate an error: idoc.adapter.generic, "MSGGUID 587E007DA385D54697B3F02220A78987: Tag ORDERHEADER found in

  • Group by order by in same query

    Hi, I am wondering whether it is possible to use group by and order by in same query For example if i have a table like the one below Col1 Col2 col3 C 36 2 A 25 5 B 12 8 A 25 6 B 12 9 C 36 1 A 25 7 I need a result like below A 25 5 A 25 6 A 25 7 B 12

  • Creating a collection / arraylist

    Hi, i'm pretty new to java and am finding it hard going, so much to learn! I would like to know how to store elements in groups (eg. storing the details of a CD which contains Artist, Title, Genre etc.) so that i can access a group from all the group

  • Unnamed/named faces unsticking in few select photos

    Please let me know if anyone has experienced this or know why this may be happening. Out of about 4000 photos, 3 photos if I name the face, click done, and then go back into it, the face is gone (the name of the face as well as the recognition that a

  • HT1296 my phone is disabled and i am trying to get it bavk working how do i complete the sync when my phone has a passcode

    Need help to unlock my diabled iphone have tried to connect with itunes its not helping its only poping up unable to sync to enter my password