Need - Search page with LOV based flexfield item as search criteria

Our requirement is to make a flexfield item as search criteria.
Flexfield is having 2 segments Applicaiton and Responsibility, where 2nd segment *(Responsibility) is dependent on 1st (Application).*
Accordingly, an LOV must get displayed for each flex segment in the search panel.
We tried to create a page having this flex (DFF) item as a search criteria, but cannot proceed to get results in results region - we tried to use both properties in the query region - resultsbasedSearch and autocustomizationCriteria:
Any ideas how to make a search functionality having LOV based flexfield items in the search criteria?
Any other suggestions regarding the solution are welcome.
Thank you very much.
Regards,
May B.

Hi,
try a SQL query that uses bind variables as follows
... where column1 like '%:col1param%' and '%:column2%' like :col2param
Then in the implementation (session facade) check for null values and add '%' in case a value is null.
The query in EJB is defined in the entity
Frank

Similar Messages

  • Null pointer exception in Search page with ADF

    Hi,
    I have an entity and view object for table1. I created one more viewobject for the same entity object. And the viewobject has the following query with a bind variable.
    select * from table1 where table1.value = :bindVar
    I added this view object into my application module. I dragged and dropped the 'ExecutewithParams' option into my jsp page. I was trying to run this page to atleast get the search field. But I am getting following exception.
    javax.faces.el.EvaluationException: java.lang.NullPointerException     at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:190)     at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)     at com.sun.faces.util.Util.evaluateVBExpression(Util.java:974)     at com.sun.faces.taglib.jsf_core.ConvertNumberTag.evaluateExpressions(ConvertNumberTag.java:256)     at com.sun.faces.taglib.jsf_core.ConvertNumberTag.createConverter(ConvertNumberTag.java:219)     at javax.faces.webapp.ConverterTag.doStartTag(ConverterTag.java:130)     at com.sun.faces.taglib.jsf_core.ConvertNumberTag.doStartTag(ConvertNumberTag.java:205)     at resources.jsp._CRSCF001._jspService(_CRSCF001.java:149)     [resources/jsp/CRSCF001.jsp]
    I tried the same search page with a new workspace. But it worked well.
    I am not able to figure out what went wrong with the application.
    Could anyone please help me with this issue?
    Thanks,
    Priya.S

    Hi,
    drag it as a parameter form and it should work as you expect it.
    Frank

  • Why is my internet search page gray?  I am able to search a topic, but the 'results' part of the screen is a medium gray color and it won't respond.  Any ideas?

    Why is my internet search page gray?  I am able to search a topic, but the 'results' part of the screen is a medium gray color and it won't respond.  Any ideas?

    Try clearing Safari's cache : Settings > Safari > Clear Cache (and Clear History)
    If that doesn't work then try closing Safari completely and then re-open it : from the home screen (i.e. not with Safari 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Safari app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    A third option is a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • When I am on my home screen on the iPhone, swipe left to the search page. Put a letter in the search field. then scroll down. eventually you get to all your texts previously deleted or not. The are all there. How can I clear the entire text from the phone

    When I am on my home screen on the iPhone, swipe left to the search page. Put a letter in the search field. then scroll down. eventually you get to all your texts previously deleted or not. The are all there. How can I clear the entire text from the phone

    When I am on my home screen on the iPhone, swipe left to the search page. Put a letter in the search field. then scroll down. eventually you get to all your texts previously deleted or not. The are all there. How can I clear the entire text from the phone

  • Search Page with navigation

    Hello,
    I have a custom Portal Application that displays UCM-content using a Content Presenter Template.
    What type of approach should I use to create a keyword search page that will display links to the Content Presenter Template?
    Thank you!
    Mitch

    Alright, finished MovieLibrary V2 :)
    http://www.yonaweb.be/MovieLibrary_v2.zip
    This project is the same as the first MovieLibrary but i added a search page.
    Like you suggested, i used UCM for the data control of a table. I also bound an inputText to the keyword parameter of the search. This however is not working properly... I will look into this a bit further and see if i can make this to work.
    The result table shows the result. The last column contains a link which will link to the item.jspx page. item.jspx Contains the content presenter.
    First of all, i had to add an additional attribute to the data control because i needed the dDocName to pass it to my presenter. dDocName is not included in the DC by default so you need to add it. Just right click the UCM DC and press edit definition. Add an additional attribute so it points to the dDocName. I already done that in the project so when you edit the definition of the UCM DC, you will see the docname attribute added to the list.
    This is the goLink in the search.jspx that will provide the link to the item.jspx:
    <af:goLink destination="/faces/oracle/webcenter/portalapp/pages/item.jspx?dID=#{row.docname}" text="#{row.ID}"/>As you can see i just add the docname attribute to the URL so we can retreive this later.
    Because we are passing the dDocName to the URL, we need to use a managed bean to retreive it and pass it to the content presenter workflow.
    When you look at the parameters of the content presenter taskflow in item.jspx you will notice that the datasource is set to the managed bean itemBean.
    In itemBean I have following code to return the correct value:
    public String getDataSource(){
          FacesContext ctx = FacesContext.getCurrentInstance();
          String did = (String)ctx.getExternalContext().getRequestParameterMap().get("dID");
          System.out.println("dID: " + did);
          return "UCM#dDocName:" + did;
        }The format of the datasource field in the content presenter taskflow is
    <connectionName>#<filter>:<value>
    so in my case i use the connection with the name UCM and i want the content with the dDocName provided in the URL.
    This will result in something like
    UCM#dDocName:myName
    This is also the value you will see in the table with the link.
    I hope my explenation is a bit clear :)
    If not, just ask.
    Edited by: Yannick Ongena on Apr 14, 2011 10:19 AM

  • UIX - Showing search page with no results as default

    I modified the uix page to create a search page for a simple uix page according to the code give in the forum.
    But this shows initially with results.
    I want the results to be shown only when a search condition is given.

    What u have said was exactly mentioned as a solution when I had searched the Forum.
    Ok these were the steps I followed:-
    1. A uix data page created (datapage1.uix) in Struts pagelayout.
    2. Drag and Drop EmployeesView1 from datacontrol pallete.
    3. Added the rendered property for the table in the source code.
    <table rendered="${requestScope.showResults?true:false}" model="${bindings.EmployeesView1}" id="EmployeesView10" partialRenderMode="multiple" partialTargets="_uixState">
    4. Then drag and drop textinput from component pallete for the search value and named it value
    5. Drag and drop a submit button from componet pallete and named it Query also named an event query.
    6. In the handeler for this event i added a go
    7. also added a set in the source code for the handeler
    <event name="query">
    <compound>
    <set target="requestScope" property="showResults" value="${true}"/>
    <go name="query"/>
    </compound>
    </event>
    8. Added a DataAction to which i added my method that was exposed to the client. The code for the method is :
    public final void setCondition(String p_cond)
    ViewObject empvo = findViewObject("EmployeesView1");
         //Creating a Where clause for the query
    String whereclause = "LAST_NAME like '%"+ p_cond +"%'";
    empvo.setWhereClause(whereclause);
    empvo.executeQuery();
    9. then I set the parameter value property in the stuts structure panel for the action top ${param.value}
    10. When I run this page from struts pagelayout The initial display is only the testinput field and the button. After I feed the value and hit the button. The screen just blinks thats it. but no results shown.
    Could some one tell me where have I gone wrong?
    Need help! Urgent

  • Search page with Non-Mandatory Fields

    JDev 11.1.2.3.0 ADF BC
    I have a Search page that has 12 fields where Nothing is mandatory while inputting at least one(any of the fields) is mandatory. I am looking to reduce the code in this case, I don't want to use a Stored procedure or backing bean method to handle the if and else's. I would be excited to handle this at the Model part itself(Writing a proper SQL query or by means of bind variables/view criteria).
    Hope the use case is clear.

    You can use ViewCriteria with Validation property set to "Selectively Required"
    Dario

  • Search Page with TopLink + ADF Faces

    Hi,
    I develop a project with JDeveloper 10.1.3.1.0.3984 using Toplink and ADF Faces.
    I test with the embedded OC4J Server.
    I must search in a table with 100 000 rows.
    I follow the tutorial ADF Faces (Chapter 7) :
    http://www.oracle.com/technology/obe/ADF_tutorial_1013/10131/index.htm
    The search page contains a search form with the table of results.
    I add a Refresh Condition ${adfFacesContext.postback} that keeps the form from executing the query until the user clicks the search button. (Page 7-10)
    It works, but when I launch the search with some parameters, I have a "out of memory" exception, and the good results are displayed in the table.
    I activate the Toplink log, make a new research, and I see 2 sql requests.
    The first one had the default parameters "%" :
    select ... from company where name="%" and cp = "%" and town="%"
    The second one had the good parameters written in the search form :
    select ... from company where name="Uno%" and cp = "65000" and town="%"
    How to avoid the first sql request ?
    Thanks a lot for your help.
    Greetings
    PM

    Hi Shay,
    Thank for your response. I have followed your advice :
    Re: Search Page - Toplink - Double queries
    After several tests, I simplify the problem. I think that the problem doesn't come from Toplink but ADF lifecycle.
    1 - With JDeveloper, I create a simple named query with two parameters (Toplink).
    2 - After, I generate my facade EJB Session Class, add some debug ouputs to see the parameters in the search method and deactivate the code which call the named query (It was not nessary), and create a JSP page using ADF components.
    3 - I drag and drop the search method from the data control panel to the jsp page and create a parameter form.
    4- I run the application. The search page appears with the parameter form. There is no debug output. When I complete the search form and click on the search button, I see the parameter values in the log console. It's normal.
    5- Now, I drag and drop the collection from data control panel to the jsp page and create a ADF Read-Only Table.
    6- I complete Refresh condition :
    <methodIterator id="searchComp2Iter"
    Binds="searchComp2.result"
    DataControl="SessionEJBLocal" RangeSize="10"
    BeanClass="test.model"
    RefreshCondition="${adfFacesContext.postback &amp;&amp; ( bindings.argum1 != null) &amp;&amp; (bindings.argum2 != null) }"
    Refresh="ifNeeded"/>
    7- When I launch the application, There is no debug output. The refresh condition works.
    8- I fill parameters and I click on the search button. I obtain the log :
    07/01/03 11:21:49 TEST 2
    07/01/03 11:21:49 argum1 :null
    07/01/03 11:21:49 argum2 :null
    07/01/03 11:21:49 TEST 2
    07/01/03 11:21:49 argum1 :a
    07/01/03 11:21:49 argum2 :b
    The EJB Session search method is called twice. It's the problem. Why the first call?
    9- When I click a second time on the search button, the EJB Session search method is called once.
    07/01/03 11:22:03 TEST 2
    07/01/03 11:22:03 argum1 :a
    07/01/03 11:22:03 argum2 :b
    How can I have only one call in paragraph 8 ?
    Thank you for your help.
    P.M. MARTIN

  • Cannot create dynamic page with cursor based on linked table

    I get the following error when i try to create a dynamic portal page that uses a pl/sql cursor:
    ORA-06550: line 1, column 24:
    PL/SQL: ORA-00980: synonym translation is no longer valid
    ORA-06550: line 1, column 24:
    PL/SQL: SQL Statement ignored (WWV-11230)
    Failed to parse as REPORTS - DECLARE CURSOR C1 IS SELECT * FROM
    [email protected]; BEGIN FOR R1 IN C1 LOOP HTP.P(','||'<BR>');
    END LOOP; END; (WWV-08300)
    Dynamic page:
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY>
    <H2>Example of A Dynamic Page</H2>
    <ORACLE>
    declare
    cursor c1 is
    select * from [email protected];
    begin
    for r1 in c1 loop
    htp.p('hello<br>');
    end loop;
    end;
    </ORACLE>
    </BODY>
    </HTML>
    When i use the sql query from the cursor in the page below, i get no errors:
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY>
    <H2>Example of A Dynamic Page</H2>
    <ORACLE>select * from [email protected]</ORACLE>
    </BODY>
    </HTML>
    I tried a dynamic page with a cursor on session_roles and had no problems. I assume that there is an issue with the database link or the privileges. The queries seem to get executed under portal_public;
    Oracle Portal Version: 9.0.4.0.99

    I get the following error when i try to create a dynamic portal page that uses a pl/sql cursor:
    ORA-06550: line 1, column 24:
    PL/SQL: ORA-00980: synonym translation is no longer valid
    ORA-06550: line 1, column 24:
    PL/SQL: SQL Statement ignored (WWV-11230)
    Failed to parse as REPORTS - DECLARE CURSOR C1 IS SELECT * FROM
    [email protected]; BEGIN FOR R1 IN C1 LOOP HTP.P(','||'<BR>');
    END LOOP; END; (WWV-08300)
    Dynamic page:
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY>
    <H2>Example of A Dynamic Page</H2>
    <ORACLE>
    declare
    cursor c1 is
    select * from [email protected];
    begin
    for r1 in c1 loop
    htp.p('hello<br>');
    end loop;
    end;
    </ORACLE>
    </BODY>
    </HTML>
    When i use the sql query from the cursor in the page below, i get no errors:
    <HTML>
    <HEAD>
    <TITLE>Example</TITLE>
    </HEAD>
    <BODY>
    <H2>Example of A Dynamic Page</H2>
    <ORACLE>select * from [email protected]</ORACLE>
    </BODY>
    </HTML>
    I tried a dynamic page with a cursor on session_roles and had no problems. I assume that there is an issue with the database link or the privileges. The queries seem to get executed under portal_public;
    Oracle Portal Version: 9.0.4.0.99

  • How to create a page with LOV and a Go Button that calls a sproc

    I'm new to Apex but not Oracle. I've done some VB, C and other programming.
    I have read the 2 Day + and worked through most of the advanced tutorials as well as the Apex 3.0 ermployee task OBE. I'm looks for an OBE or assistance in doing the following:
    I need to create a page that has a dynamic LOV that pulls CUSTOMER NAME as d, and ID as r (this I can do).
    I need a button on the page "Go". Here's the use case.
    User selects a customer from the LOV
    User presses Go
    Go invokes myschema.go_sproc and passes in LOV selected Cust ID
    myschema.go_sproc does some work and passes back a Status
    Status is displayed to the user
    Any pointers are appreciated.

    Great.
    Two last questions:
    #1 Is there a Apex Reference, like the SQL Reference, that lists all the various settings and options and their meanings, for instance on the create region page there are many different region types. Is this information centralized in one place? I don't see (or I am missing it) in the list of Apex 3.2 books.
    #2 For my use case would you use a HTML region or some other type of region?
    Thanks again.
    George

  • Calling a page with ajax based on url parameter

    please can anyone help me with this problem that i've encountered. i'm able to capture a url parameter with javascript and i want to add it to my jquery code which calls a page in a div  but i'm able to do it. here's my code:
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
    <script language="javascript" type="text/javascript">
    function urlink()
    var tlink = window.location.search.substring(1)
    jQuery(function($){
        $('#mydiv').load('real_news.asp?'+ urllink());
    </script>

    Your jquery is trying to add data by calling a function. Also, you're just getting the value of the parameter. There's not a key to trigger anything on your server-side script. Make sure real_news.asp is processing correctly, looking for key (some-key) AND value (tlink). You might want to simply try concatenating the value of the var like this though:
    <script>
    var tlink = window.location.search.substring(1);
    $('document').ready(function() {
    $("#mydiv").load("real_news.asp?some-key=" + tlink);
    </script>
    Another way you could do it is use server side scripting to look and see if the URL-PARAM is set and if it is then echo value of URL-PARAM into load() method. php example below. I'm sure you can find an asp equivalent to achieve the same result. I think the key (pun) to this problem is that you do not have a key to associate the value with in order to process anything.
    <script>
    <?php if (isset($_GET['URL-PARAM'])) { ?>
    $('document').ready(function() {
    $("#mydiv").load("real_news.asp?some-key=<?php echo $_GET['URL-PARAM']; ?>");
    <?php }else{ ?>
    alert ("there is no ?URL-PARAM=something in the URL!!!");
    <?php } ?>
    </script>
    best,
    Shocker

  • Issue with File Download(messageDownload) on Search Page.

    Hi,
    I created a custom OAF search page which fetches values from one table. The document in getting stored in my custom table in a BLOB colums and NOT in FND_LOBS.
    The table has 3 collumns along with others:
    1st is primary key (Record_Seq) ==> number data type
    2nd to store actual file name (File1Name) ==> varcahar2 data type
    3rd to store the actual uploaded data (File1Data) ==> BLOB data type
    The reason for having the “File1Name” is so that I can display the original file name of the document that was uploaded, instead of just the “view” in the search page results .
    On the File1Data BLOB and created a messageDownload for that under query results table with following details:
    ID : File1Data
    ItemStyle : messageDownload
    FileMIME Type : pdf
    Datatype : BLOB
    View Instance : LacEmpExposureVO1
    view Attribute : File1Name
    File View Attribute : File1Data
    When I click on the "File1Name" data hyperlink, it is opening only the first document corresponding to the first record in the search page results.
    For example, If my search page returns 10 rows then when I click on the file1name on any row, It is open the first row file name only.
    I have a primary key column(RECORD_SEQ) in the Table / EO / VO which is displayed in the search page results.
    Also one weird thing is happening:
    If I try to do this more than 2 times then it is opening the update page with the first record from the search page results…
    I tried to print the context and it is nul the first time, But the second time then context is changing to "update". Dont know how this is happening????
    Any advice is greatly appreciated as it is very crucial for me to get this resolved ASAP. I have looked at several forums and did a lot of things as advised in the forums . But nothing seems to work for me.
    Thanks,
    Mir
    CO code for the search page
    ===========================
    if (pageContext.getParameter("Create")!= null)
    System.out.println("Into LacEmpExposureCO in PROCESS FORM REQUEST with Context of CREATE");
    pageContext.setForwardURL
    ("OA.jsp?page=/lac/oracle/apps/lac/lacempexposure/webui/LacEmpExposureCreatePG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, //Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
    OAWebBeanConstants.IGNORE_MESSAGES);
    else if ("update".equals(pageContext.getParameter(EVENT_PARAM)))
    System.out.println("Into LacEmpExposureCO in PROCESS FORM REQUEST with Context of UPDATE");
    System.out.println("LacEmpExposureCO ==> RecordSeq in PROCESS FORM REQUEST is: " + RecordSeq);
    HashMap params = new HashMap(1);
    params.put("RecordSeq", RecordSeq);
    pageContext.setForwardURL
    ("OA.jsp?page=/lac/oracle/apps/lac/lacempexposure/webui/LacEmpExposureUpdatePG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    params,
    true, //Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO, // Do not display breadcrumbs
    OAWebBeanConstants.IGNORE_MESSAGES);
    else {           
    String strEvent = pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM);
    System.out.println(strEvent);
    System.out.println("Into the last ELSE part in LacEmpExposureCO.java");

    Duplicate post -- Issue with File Download(messageDownload) on Search Page.

  • Search page displaying all records after create

    Hi,
    I have created the search and the create page using the help of tutorial example. I have run into a 2 problems.
    1. After I create the a transaction and click on apply button it directs me to the search page and diaplays all the records in the table. Instead I was looking to display only the record that I created in the create page.
    I tried to change the parameter of the "pageContext.forwardImmediately" to "false" for retainAM, it is working fine, but at the same time it is not displaying the confirmation message that it ised to display.
    2. Is there a spellchecker that I could add to my page for 3 columns that are of "CLOB" type. Any advise.
    Thanks,
    Ali

    Hi Shiv,
    I have added this in the processformrequest method. I do not know how and where to add it in the processrequest methos. Can you please guide me through it. I am pasting my CO file.
    Thanks in advance for all your help.
    Ali
    package saf.oracle.apps.saf.jobperf.server.webui;
    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.fnd.framework.OAApplicationModule;
    import oracle.apps.fnd.framework.webui.OADialogPage;
    import oracle.apps.fnd.framework.webui.TransactionUnitHelper;
    import oracle.jbo.domain.Number;
    import oracle.apps.fnd.common.MessageToken;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.OAViewObject;
    import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
    import com.sun.java.util.collections.HashMap;
    import oracle.bali.share.util.IntegerUtils;
    * Controller for ...
    public class ReviewCreateCO 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)
    // Always call this first
    super.processRequest(pageContext, webBean);
    // If isBackNavigationFired = false, we are here after a valid navigation
    // (the user selected the Create Review button) and we should proceed
    // normally and initialize a new Review.
    if (!pageContext.isBackNavigationFired(false))
    // We indicate that we are starting the create transaction(this
    // is used to ensure correct Back button behavior).
    TransactionUnitHelper.startTransactionUnit(pageContext,"jobperfCreateTxn");
    // This test ensures that we don't try to create a new review if we
    // had a JVM failover, or if a recycled application module is activated
    // after passivation. If this things happen, BC4J will be able to find
    // the row you created so the user can resume work.
    if (!pageContext.isFormSubmission())
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    am.invokeMethod("createReview",null);
    // Initialize the ApplicationpropertiesVO for PPR.
    // am.invokeMethod("init");
    else
    if (!TransactionUnitHelper.isTransactionUnitInProgress(pageContext,"jobperfCreateTxn", true))
    // We got here through some use of the browser "Back" button, so we
    // want to display a stale data error and disallow access to the page.
    // if this were a real application, we would propably display a more
    // context-specific message telling the user she can't use the browser
    //"Back" button and the "Create" page. Instead, we wanted to illustrate
    // how to display the Applications standard NAVIGATION ERROR message.
    OADialogPage dialogPage = new OADialogPage(NAVIGATION_ERROR);
    pageContext.redirectToDialogPage(dialogPage);
    } // end processRequest()
    * 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);
    // Always call this first.
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    // Pressing the "Apply" button means the transaction should be validated
    // and committed.
    if (pageContext.getParameter("Apply") != null)
    // Generally in the tutorial application and the labs, we've illustrated
    // all BC4J interaction on the server (except for the AMs, of course). Here,
    // we're dealing with the VO directly so the comments about the reasons
    // why we're obtaining values from the VO and not the request make sense
    // in context.
    OAViewObject vo = (OAViewObject)am.findViewObject("jobperfVO1");
    // Note that we have to get this value from the VO because the EO will
    // assemble it during its validation cycle.
    // For performance reasons, we should generally be calling getEmployeeName()
    // on the EmployeeFullVORowImpl object, but we don't want to do this
    // on the client so we're illustrating the interface-appropriate call. If
    // we implemented this code in the AM where it belongs, we would use the
    // other approach.
    String employeeName = (String)vo.getCurrentRow().getAttribute("FullName");
    // We need to get a String so we can pass it to the MessageToken array below. Note
    // that we are getting this value from the VO (we could also get it from.
    // the Bean as shown in the Drilldwon to Details lab) because the item style is messageStyledText,
    // so the value isn't put on the request like a messaqeTextInput value is.
    String employeeNumber = (String)vo.getCurrentRow().getAttribute("EmployeeNumber");
    //ma String employeeNum = String.valueOf(employeeNumber.intValue());
    //ma Number employeeNumber = (Number)vo.getCurrentRow().getAttribute("EmployeeNumber");
    //ma String employeeNum = String.valueOf(employeeNumber.intValue());
    // Simply telling the transaction to commit will cause all the Entity Object validation
    // to fire.
    // Note: there's no reason for a developer to perform a rollback. This is handled by
    // the framework if errors are encountered.
    am.invokeMethod("apply");
    // Indicate that the Create transaction is complete.
    TransactionUnitHelper.endTransactionUnit(pageContext, "jobperfCreateTxn");
    // Assuming the "commit" succeeds, navigate back to the "Search" page with
    // the user's search criteria intact and display a "Confirmation" message
    // at the top of the page.
    MessageToken[] tokens = { new MessageToken("EMP_NAME", employeeName),
    new MessageToken("EMP_NUMBER", employeeNumber) };
    OAException confirmMessage = new OAException("PER", "LAC_FWK_TBX_T_EMP_CREATE_CONF", tokens,
    OAException.CONFIRMATION, null);
    // Per the UI guidelines, we want to add the confirmation message at the
    // top of the search/results page and we want the old search criteria and
    // results to display.
    pageContext.putDialogMessage(confirmMessage);
    HashMap params = new HashMap(1);
    // Replace the current employeeNumber request parameter value with "X"
    params.put("employeeNumber", "employeeNumber");
    // IntegerUtils is a handy utility
    params.put("employeeNumber",IntegerUtils.getInteger(5));
    pageContext.forwardImmediately(
    "OA.jsp?page=/saf/oracle/apps/saf/jobperf/webui/jobperfPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    params, //null,
    true, // retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES);
    else if (pageContext.getParameter("Cancel") != null)
    am.invokeMethod("rollbackReview");
    // Indicate that the Create transaction is complete.
    TransactionUnitHelper.endTransactionUnit(pageContext, "jobperfCreateTxn");
    pageContext.forwardImmediately("OA.jsp?page=/saf/oracle/apps/saf/jobperf/webui/jobperfPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    false, // retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
    } // end processFormRequest()
    }

  • How to add Column field in the custom Query Link search page as a header

    Hi,
    I have created a Query page link in web layout editor. Now, I want to customise the view of the result. I see an option to change the "Text1" and "text2", but how do I add other fields as a colum in the search result ?
    The only column I see by default Id, Title, release date and author. I want to see some of the custom metadata in the search result. I don't wan't to apply user specific custom search page.
    Overall, I want a common search view across all the user such that each user doesn't have to create a custom search view.
    Please help.
    Thanks

    hi
    By adding context node, you will not be able to fetch value. To fetch value in BTSubject, you need to have following nodes in your context node.
    Node          Relation                  Higher level node
    BTAdminH
    BTBOSSet  BTHeaderBOSSet   BTAdminH
    BTSubjectSet BTSubjectSet_A BTBOSSet
    BTSubject BTSubjectAll  BTSubjectSet_A
    Right now you dont have BTBOSSet and BTSubjectSet in your view. That is why component is unable to pull data in BTSubject.
    My suggestion would be to create cuco with above nodes
    Bind BTAdminH with BTAdminH of Component controller
    and bind BTSubject of details view with BTSubject of your Cuco.
    If you want code code gp catalog as it comes in complaint then there is seperate procedure for that.
    Best regards
    Pankaj Kumar

  • Shipping point determination based on item category

    Dear
    we have a requirment which needs to determine shipping point based on item category. anyone could share how to achieve that? I am familiar with sap standard shipping determination rule: shipping condition in sold-to-party MMD or shipping condition within sale document type + loading group + delivery plant. However those condtions wouldnt fullfill our needs. the items within a sales order are exactly same except item category, such as item 10 is TAN , item 20 is TAB item.I want the system get different shipping point for those two different item category.
    any though would be appreciated and thank you,
    best regards
    peng. tang

    As already suggested, you can consider going with differentiating the Loading Group in material master, so that via standard configuration itself, you can achieve the desired result.  On the other hand, if this is not possible, then, you can try with USEREXIT_MOVE_FIELD_TO_LIPS in include MV50AFZ1
    G. Lakshmipathi

Maybe you are looking for

  • IPhone 5s in-call problems

    I received my iPhone 5s last week and because I am the mother of an infant (and am clumsy), I thought I would get a very protective case. I bought a Lifeproof case but in calls, it would vibrate on and off the entire time. I thought something was wro

  • How do I make a new Bookmarks folder in Firefox 4?

    I upgraded to Firefox 4 for the MacBook Pro and now cannot see how to create a new Bookmarks folder. The new look doesn't have a "New Folder" button. How do I create a new Bookmarks folder in 4?

  • Re: Subscription to India not activated?

    Hi, I am using India 2500 minutes subscription since last year each month renewed. This month it has just renewed on 4th of March 2014. My payment histry is showing that my oder has delivered and my bank account has a debit for that. However, when i

  • Session attributes

    I have a JSP page that calls itself multiple times and passes information back to itself using a vector passed as a session attribute. I am attempting to clear the attribute by using the removeAttribute() method and also calling the setAttribute() me

  • Why ADF Application passivate ?

    Hi Experts, I am new to ADF, I have read document which says that "ADF works with two pools, Application (via AMs) and Database (via your database connection)". So my doubt is passivation happed because of "Database connection shortage " or "Applicat