SPEL Binding in OAF .

Dear Folks ,
I have a simple OAF Page developed, its nothing but a lov search page , i am programmatically executing the query .
And i would like to share my (VO) query with you :
SELECT code,
description,
action,
sequence_number,
mfgrag-crew,
action, description ComponentDescription, url
FROM lotus_lines_tab
the output of this query in one of the column consist of URL in each row , the URL is obtained with the SPEL binding attached to button as below :
${oa.smtpacelineValueVO1.Url}
Now when the user clicks on the button in the table , depending on the URL it should get redirected to specific page .
My URL Looks as following .
http://stm326.am.joe.com:8080//Upload/page.jsp?result=1&instance=mfgtest&TYPE=prog1
But its redirecting to my local machine the URL in the browser looks as below :
http://43.88.78.114:8989/OA_HTML/${oa.smtpacelineValueVO1.Url}
Please Suggest me how to redirect to specific URL and attach the correct SPEL Binding .
Thanks in Advance ,
Antony Raj . M

Thanks Gyan,
It helped lot, SPELL binding is not resolved properly , Therefore am hard coding the URL in Destination URI. specifying the protocal,host name,domain name passing only the parameter at runtime after symbol "?".
Thanks ,
Antony.

Similar Messages

  • Is SPEL binding not supported on TableSelection Buttons ?

    Hi
    I have an AdvancedTable with multiple selection Checkboxes.
    I have a button 'AddToCompare' which adds the selected items into a list
    which compares those items.
    we have set a limit that the CompareList can contain a max of 5
    items,so whenever the 'AddToCompare'
    is pressed we add the item and check if the CompareList now has five
    items then we hide the button and
    if no. of items in the list is less than five then let the button be
    displayed.
    For hiding the button we have attached a SPEL binding and the
    corresponding PVO attribute is set to true
    or false as required .
    When I place this 'AddToCompare' button as a TableAction button the
    SPEL is working fine but if I put it
    as a TableSelection button the SPEL is not working.
    Is SPEL binding not supported on TableSelection Buttons ?
    Thanks,
    Naveen

    Selection buttons are generated automatically. If your UI allows poplists or messageChoice in the place of selection buttons, you can add handle this.

  • Deleting a row from advance table:urgent

    Hi All,
    I am using Advance table with "Add Another Row" button.Situation is like this, i have an empty row and an exsist row in my Table. Against each row i have a Delete image.Now my problem is, when I am clicking on the Delete image, i am getting the empty row id which is there is the VO cache,not the one against which i have clicked on the Delete image.Please help me to solve this problem.
    Thanks in Advance,
    Vikram

    For the Delete image, why dont you enable a firePartialAction on that and use SPEL binding to pass a unique id (like an <object>_id) as an EVENT PARAM to the Controller. From there on you can pass it to the AM and delete that particular row.
    For adding a new row, if you use the default add row feature in the advanced table and set the Insert Rows Automatically property to true, it should take care of inserting the rows by default at the end of your existing rows, without you having to write any code for it.
    If, on the other hand, you want to manually add the new row yourself, such as for defaulting some values into the new row, then you might want to explore if insertRowAtRangeIndex will work.

  • How to perform row level changes in a region of table type

    Hi Gurus,
    I am having a region of type table. In this table I have added a details section. In the details section I want to display an item only when its not null. So I have changed the code in controller to make the render as false for this field when it is null. But this is applied to the item present in all the rows in the table.
    For example: If there are two rows in the table and first has some value in X item while second has null value for the same item. Then both the rows do not show the item X (render is set as false by controller).
    Is there any way to have the item visible in first row and invisible in second row?
    Thanks,
    Manish

    You have to go for SPEL binding. Create a transient attribute in the same VO of the table and set the value of the each row to true or false depending on the value of the attribute of the first, say using decode statement ( DECODE(firstattr, null, false, true)) and then bind this attribute to the RENDERED_ATTR attribute of the second item using SPEL binding. Please refer Dynamic User Interface section of the Chapter 4 of OA Framework Dev. Guide.
    Regards,
    Guru.

  • Multiple Column hiding in advance table using Switcher

    Hi All,
    I am having requirement of hiding multiple columns in advance table using swithers.
    Lets says I am searching for the the parties in party search page. If the party is of type person then two columns should be visible one is firstName and LastName.
    and If party is of type organization then firstName and lastName column shpould be hidden and only the PartyName column should be visible.
    Is this possible through switchers if yes please explain?
    Br, 903096

    Hi ,
    This can be done through switcher case , along with switcher you also need to use SPEL binding the each of those attribute
    that you wish to hide .
    Go through delete exercise to understand how to implement switchers case .
    Let me know if you need any help .
    --Keerthi                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Handle the selective search criteria in LOV region based on profile.

    I have a requirement in LOV that the "selective search criteria" functionality should work on basis of the some profile option. Please help me out how I handle it through the controller which is attached with LOVRN.

    Hi
    then is no method provided in OAMessageLovInputBean class to set the criteria programmatically ,SPEL binding too is not possible ,but you can do it in tricky way
    1.) If this is standard LOV than hide this standard lov and
    2.) Create two LOVs one with Selective Search Criteria true and second with Selective Search Criteria false ,both will have same view instance and view attribute.
    3.) Do controller extension and make them conditionaly rendred true or false in process request method ,if you want to this in PFR method then bind them with SPEL.
    thanks
    Pratap

  • Unable to make Quantity Column Read-Only in PO Lines in R12 iProcurement

    Hello Everyone,
    My Requirement is if a PO is coming from a requisition and it has Requisition Number populated in PO Distribution, I want to make Quantity column Read only in the PO Lines. This column can be updated for all the lines in standard page by clicking Update button(which makes Quantity enterable).
    I have tried following using SPEL Binding. But it seems SPEL Binding is not working as expected. I am pasting the code below :
    I have created a Transient Attribute of Boolean Type in the VO and have placed it in SPEL Binding for the Quantity Bean. On click of Update button I am conditionally setting the transient VO attribute to False.
    if(oapagecontext.getParameter("UpdateButton") != null){
    super.processFormRequest(oapagecontext, oawebbean);
    OAViewObject vo=(OAViewObject)am.findViewObject("PoDistributionsMergeVO");
    String x=(String)vo.first().getAttribute("OnlineReqNumber");
    OAMessageTextInputBean msgTextBean = (OAMessageTextInputBean)oawebbean.findIndexedChildRecursive("QuantityOrdered");
    Row row=vo.first();
    if (x!=null) {          
    do{
    row.setAttribute("QuantityRendered",Boolean.FALSE);
    row=vo.next();
    }while(row!=null);
    Thanks in Advance,
    Abhishek Mishra

    Abhishek,
    Your code seems pretty fine. There are few things
    1) Post the Spell, which you have attached with the rendered property.
    2) Had you initialized your VO (where your transient variable exists).
    For a work around i would suggest you to create a new VO and create a transient variable. Now try the same using this VO.
    Regards,
    Gyan

  • Best way to make all the items read-only in many pages for a resposibility?

    Hi,
    We have the following requirement:
    We need to make all the fields read-only in 5 standard self-service pages for a particular responsibility. One way is to personalize these pages at responsibility level. Is there any other quick/better way to do it?
    Highly appreciate your suggestions on this.
    thanks,
    Hem

    Hem,
    Personalisation is easiest and fastest way of doing this. The same requirement can be acheieved by extensions of CO by setting the bean properties rr by SPEL binding by extending VO.
    But when I can get something done without coding at all that approach is best, I am sure u agree :)!
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Which Properties we can set dynamically

    Which Properties we can set dynamically (e.g. Rendered) in property inspector of a attribute or region???
    Edited by: 1001813 on Apr 23, 2013 1:43 PM

    Hey hi there ,
    Setting rendered property to true / false will make field or region displayed or hidden at design time .
    If you would like to show / hide dynamically then you have to make use of SPEL binding to be attached in the rendered property .
    the syntax would be ( *${oa.EmployeePVO1.EmpManagerRender}* ) in additional to SPEL binding property you have use PVO to decide
    when to hide or show the field on the page .
    You can go through partial page rendering in Jdev guide .
    --keerthi                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Can we implement any spell check against Forms/OAF Page screen fields

    Hi,
    I know its a weird requirement, but any chance that we can achieve this functionality?
    We nee to do the spell check on few fields in forms/OAF Pages. Any guidance is very much appreciated.
    thanks,
    Rajkiran.

    Hi Rajkiran,
    There is a spell checker for ie :
    http://www.iespell.com/
    Hope this helps.
    Kristofer Cru

  • Is Spell check possible in OAF Applications

    Hi,
    This is a typical question but need to be get clarified
    Does OAF Application has the property of spell check . And if it is there how can we achieve that.
    Regards,
    Krishna

    Hey, hows it goin?
    Just to say all bets are back on!
    Right click the desktop icon
    Run as Administrator
    Uncle Bob!!!
    Works for me anyway! Good Luck!

  • Unable to bind integer value to VO in OAF

    Hi all,
    I was trying to bind a integer value to a VO using setWhereClauseParam(1, myId); but it gave error while compiling.
    Can anyone please tell me the reason why i got error?
    Thanks,
    Sukesh

    Three things:
    1) OAF has it'S own forum!
    2) which exception you got?
    3) which exact version?
    Timo

  • SPEL Field should be blank in R12 OAF Personalization

    Hi,
    I have a personalization requirment to remove the default values populating from "Labor Start Time" field and it should be blank. This field has Required property as *"${oa.current.StartEndTimeRequired}"* in original definition . I am trying to set the Required property as "False" or "No" at responsibility level. But there is no option to disable the default value, only had the following options :
    1. Inherit
    2. Yes
    3. SPEL
    How to resolve my issue. Is there any other way to solve this by personalization itself.
    Pl share your knowledge about this...
    Thanks,
    Mini.

    Wanted to know if there was ever a resolution to this question.  I need a solution for the same thing.  We do not want the complaint quantity of a QM notification to default to the order quantity.  We need the inspector to fill in this quantity.

  • SPEL and PPR

    Hi ,
    I am learning OAF.I came across the chapters of SPEL and PPR.
    what exactly PPR/SPEL is? what kinds of things can be acheived through this SPEL/PPR.
    I am follwoing OAF Guide,but not able to understand the mail goal of acheiving results using these two terms.(SPEL/PPR).

    PPR as the name says does partial page rendering. There are requirements where upon a selection or some user action, you will like to dynamically change only a few portion of the page. As only a portion is getting changed, there is no need to redraw the whole page by issuing a form submit. In this scenario PPR comes handy where only a selected set of Beans gets refreshed and the corresponding processing gets done.
    SPEL stands for Simplest Possible Expression Language and is used to bind the values of some bean properties to view object attributes, function, function security in a declarative way. It gives a very dynamic control.
    But there are a few things to keep in mind :
    PPR is not enabled on all the beans.
    SPEL can be used to set the following properties Read Only, Rendered, Required, Disabled
    And lastly, the explanantions provided in Dev guide are not enough :-)
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • To get date Parameter from an OAF page

    Hi,
    I want to get a date parameter from an OAF page and pass them to a query in Vo as binding variables.
    How can that be done.
    I tried this to get the date from my page but it gives an error when I pass it to the query-
    String v_date = pageContext.getParameter("StartDate");

    My CO --------------------------
    if( pageContext.getParameter("Submit") != null)
    String userid = (new Integer(pageContext.getUserId())).toString();
    String personid = (new Integer(pageContext.getEmployeeId())).toString();
    String v_date = pageContext.getParameter("StartDate")+"";
    String v_end_date = pageContext.getParameter("EndDate")+"";
    System.out.println("call to process request0 : " + userid);
    System.out.println("call to process request0 : " + personid);
    System.out.println("call to process request0 : " + v_date);
    System.out.println("call to process request0 : " + v_end_date);
    Serializable[] params = {personid,v_date,v_end_date};
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    String empUserid = pageContext.getUserName();
    System.out.println(pageContext.getUserName());
    System.out.println("Calling initMoverQuery");
    am.invokeMethod("initMoverQuery", params);
    System.out.println("Call out of initMoverQuery");
    My AM------------------------------------------------------------
    public void initMoverQuery(String pid,String sd,String ed)
    System.out.println("In init Query of AM" +pid);
    EmployeeMoverVOImpl vorep = getEmployeeMoverVO1();
    Number personid = new Number(Integer.parseInt(pid));
    System.out.println("user id"+ personid);
    System.out.println("start date"+ sd);
    System.out.println("end date"+ ed);
    if (vorep == null)
    MessageToken[] tokens = { new MessageToken("OBJECT_NAME", "EmployeeMoverRepVO1")};
    throw new OAException("AK", "FWK_TBX_OBJECT_NOT_FOUND", tokens);
    if (!vorep.isPreparedForExecution())
    // vorep.initQuery(personid,sd1,ed1);
    vorep.setWhereClauseParam(0,personid);
    vorep.setWhereClauseParam(1,sd);
    vorep.setWhereClauseParam(2,ed);
    vorep.executeQuery();
    System.out.println("End SP VO Query");
    }

Maybe you are looking for