How to handle the LOV mapping in OAF

Hi all I am Antony .
I am trying to replace a LOV region in a Seeded page with that of Mine . I have succeeded in it ,but the LOV item is not returning to the field in the Page.Please help. I have created a new Region of type LOV and have chaged the region to that of mine in the Extended CO.Problem is Query has been changed but LOV selected item is not returning to the Page
Edited by: 807207 on Nov 12, 2010 1:01 AM

Hi
I am having a Seeded page where there is a region in which an LOV is there ,I have created a new LOV RN with that Query ,now my problem is when I click the LOV my Query is getting executed but the Value that I select is not returnign to the Main Page.The main page is Controlled by A.CO and the LOV is controlled by some other CO.
Also in the MAin page all the Values are populated from some VO where in the Query of the VO is something like this
select to_number(NULL) Project_Id,
NULL Project_Name,
NULL Project_Number,
NULL Project_Description,
NULL Project_Status_Code,
NULL Project_Status_Name,
to_date(NULL) Project_Start_Date,
to_date(NULL) Project_Completion_Date,
to_number(NULL) Probability_Member_ID,
NULL Probability_Percentage,
to_number(NULL) Project_Value,
to_date(NULL) Expected_Approval_Date,
NULL Carrying_Out_Org_Name,
to_number(NULL) Carrying_Out_Org_ID,
NULL Customer_Name,
to_number(NULL) Customer_ID,
to_number(null) bill_to_customer_id,
to_number(null) ship_to_customer_id,
null bill_to_customer,
null ship_to_customer,
NULL Customer_Relationship_Code,
NULL Public_Sector,
to_number(NULL) Key_Member_id,
NULL Key_Member_name,
NULL Key_Member_role,
NULL Distribution_Rule_Name,
NULL Distribution_Rule_Code,
NULL Class_Category,
NULL Class_code,
to_number(NULL) orig_project_id,
to_number(NULL) Key_Member_Count,
to_number(NULL) Class_Code_Count,
NULL Team_Template_Name,
to_number(NULL) Team_Template_Id,
NULL Location_Country_Code,
NULL Location_City,
NULL Location_State_Region,
NULL Location_Country_Name,
to_number(NULL) Role_List_Id,
NULL Agreement_Currency_Code,
NULL Agreement_Organization,
to_number(NULL) Agreement_Organization_Id,
to_number(NULL) Agreement_Amount,
NULL Opportunity_Currency_Code,
to_number(NULL) Org_Member_id,
NULL Org_Member_name,
NULL Org_Member_role,
to_number(NULL) Org_Member_Count,
NULL Priority_Code,
to_number(NULL) security_level,
NULL long_name
from dual
out of all I am trying to change the CustomerName attribute and the code tat I have used is
customerBean.setLovRegion(oapagecontext,"/XXXX/oracle/apps/pa/util/lov/webui/XXXXCustomersLovRN");
customerBean.addLovRelations(oapagecontext,"CustomerName","CustomerName",LOV_RESULT,LOV_REQUIRED_YES);
Edited by: 807207 on Nov 12, 2010 10:50 PM

Similar Messages

  • How to Handle the LOV AM in the page level Controller

    Hi All,
    I have standard page ,In that page there is LOV in which user can select any value.
    But the client requirement is the value in the lov has to be displayed has to be displayed automatically the first record of the LOVwhen page is rendered.
    For that i am trying to handle the Lov AM in the extended controller by using
    OAApplicationModule rootAM = pageContext.getRootApplicationModule();
    OAApplicationModule childAM1=(OAApplicationModule)rootAM.findApplicationModule("CsfPoLovAM");
    Here CsfPoLovAM is the AM of the LOV
    when i am doing this i am getting the value of childAM1 as null.
    Could you please let me know is there any other way of handling the AM of lov on the extended controller
    And there is controller is defined for the LOV .
    Thanks
    Ajay

    If there is no CO than you can put a new custom controller in the LOVRN ,in the PR method of new controller get the VO and call the firs() method of this VO like
    LOVVO.first() ;this will full fill your requirement .
    HI Pratap,
    I had created a new custom controller in the LOVRN and in the Process Request.of the controller i am getting the first record.
    like follows
    OAViewObjectImpl vo=(OAViewObjectImpl)am.findViewObject("CsfInstallLotNumberVO1");
    oapagecontext.writeDiagnostics("IN LOV CO Process Request ","vo:"+vo,4);
    if(vo!=null)
    vo.executeQuery();
    Row row=vo.first();
    oapagecontext.writeDiagnostics("IN LOV CO Process Request ","row:"+row,4);
    if(row!=null){
    String lotnumber=(String)row.getAttribute("LotNumber");
    oapagecontext.writeDiagnostics("IN LOV CO Process Request ","lotnumber:"+lotnumber,4);
    oapagecontext.putSessionValue("LotNumberParam",lotnumber);
    i am able to get this lov value in the lov window when the lov item is clicked
    and i am trying to handle that value in my exteded co its getting that value
    Thanks
    Ajay

  • How the handle the LOV in oracle forms 10g

    Hi All,
    Could anyone can tell how to handle the LOV error in blocks as no data is there in db..while clicking on button, the LOV message is getting continously and its not allowing me to close the screen, this makes me to forcefully close the applicaiton...
    please suggest how to handle this..
    Regards,
    Badri.

    You should ask this in the Forms forum (this is the Reports forum) and when doing that, mention your Forms version etc. Also, explain what you mean by this:
    LOV error in blocks as no data is there in dbWhat error do you get? An LOV can return no records without a problem, so you probably did not use standard LOV funtionality.
    while clicking on buttonWhat is the code behind this button?

  • How to handle the control records in case of file to idoc scenario.

    Hi All,
    can you please clarify me how to handle the control records in case of file to idoc scenario.

    Hi,
    In File to Idoc scenario even though you selected apply control record values from payload and you are not getting those correct values which you have provided in the mapping.
    Also check the checkboxes Take sender from payload and Take receiver from payload along with the Apply control record values from payload checkbox
    Regards
    Seshagiri

  • How to handle the 500 Internal Server Error + ADF

    Hi,
    How to handle the 500 Internal error ADF application? I tried with giving the error page in web.xml but it does not work
    Please advice

    i'm not sure if this is related, but we also have the following in the web.xml file
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <url-pattern>*.jsp</url-pattern>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>ERROR</dispatcher>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <url-pattern>*.jspx</url-pattern>
    <dispatcher>REQUEST</dispatcher>
    <dispatcher>ERROR</dispatcher>
    </filter-mapping>

  • How to remove an LOV Mapping in iProcurement Page..

    Hi All,
    In the iProcurement page, there is an LOV mapping for the LOV Expenditure Type. I need to remove the criteria item for one of the LOV mapping. Can any one please help me on how to remove Criteria Item in the LOV mapping.
    Regards,
    Ramakrishnan

    Hi Amit,
    Requirement:
    I have to display the LOV Expenditure Type in iProcurement screen based on the value entered by user in the LOV Task Number. I worte the following SQL statement in the VO of the expenditure type
    SELECT et.expenditure_type, et.sys_link_start_date_active, et.sys_link_end_date_active, 1 AS dummy_number FROM xxpa_exp_types_expend_v et WHERE et.system_linkage_function = 'VI' AND (SYSDATE BETWEEN et.sys_link_start_date_active AND NVL (et.sys_link_end_date_active, SYSDATE)) AND DECODE (et.billable_flag, 'No', 'N', 'Yes', 'Y', 'Both', 'Y') = (SELECT billable_flag FROM pa_tasks WHERE task_id = :2 AND project_id = :1)
    I am passing the value of parameter 1 and 2 from CO of the LOV region. But the LOV mapping 'Expenditure Type' has an criteria which gets added to the above query and does not display any row in runtime.
    SELECT * FROM (SELECT et.expenditure_type, et.sys_link_start_date_active, et.sys_link_end_date_active, 1 AS dummy_number FROM xxpa_exp_types_expend_v et WHERE et.system_linkage_function = 'VI' AND (SYSDATE BETWEEN et.sys_link_start_date_active AND NVL (et.sys_link_end_date_active, SYSDATE)) AND DECODE (et.billable_flag, 'No', 'N', 'Yes', 'Y', 'Both', 'Y') = (SELECT billable_flag FROM pa_tasks WHERE task_id = :2 AND project_id = :1)) QRSLT WHERE (( UPPER(EXPENDITURE_TYPE) like UPPER( :3) ))
    There is an similar functionality available in iSupplier-->Banking Details page where the bank branch LOV dsiplays value based on the Bank Name entered by user in Bank Name LOV.
    Now I have to use the same functionality available in isupplier page in my requirement to pass value from Task LOV to Expenditure Type LOV. Please let me know how to solve the issue.
    Regards,
    Ramakrishnan

  • How to handle the OK button of the parameters prompt of a crystal report

    Hi,
    how to handle the OK button of the parameters prompt of a crystal report in vba.NET?
    I want to use the parameter prompt from the crystal report itself and I want to know when the report is ready. I need to export programatically by sending email to a list of employees after the parameters has been set. The emails I send depends on the results of the report.
    Im using a CrystalReportViewer control  in VS2010 and Crystal Report for VS2010 v13.0.1.220.

    Right. But the parameter screen is driven by the viewer. Unless you create your own parameter screen and pass the parameters to the report via code.
    Another thing I am not sure about:
    "Then by code I want to read all the employees id from the report and send email to them with specified pages of the report. (1 page per employee)"
    How do you plan on reading the employee ID from the report? I am not aware of any API that will read a value in a report so that you can then decide what page to send to whom.
    I think you're approaching this kinda backwards. A question to ask is; can you do what you are trying to do in code in the CR designer? If not, using APIs will not work either. I suspect your approach should be a report that uses an employee filter. Run the report for employee x, get the report populated with the data for that employee and email it. Repeat for employee x1, employee x2, etc.
    - Ludek

  • How to handle the different pricing conditions changes in BI.

    Dear Friends
    can any one send me  Regarding
                    How to handle the different pricing conditions changes in BI.
    Thanks & Regards
    Ramana

    Hi,
    Take a look at the 0sd_o06 ODS and 2lis_13_vdkon datasource for sales billing conditions.
    http://help.sap.com/saphelp_nw70/helpdata/EN/36/8188408bc0bb4de10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/EN/7f/0f8c4037fba62be10000000a1550b0/frameset.htm
    Regards.

  • How to call the second mapping in the first mapping fails in the BPM

    Hi All,
    I have a scenario like this.
    There are two mappings. There is a one condition while genearying the root element of the first mapping. If this condition is not satisfies the first mapping will fail. If this mapping fails i want to trigger another mapping.
    How to achieve this functionality.
    If it is possible with BPM. how to call the second mapping in the BPM.

    Hi
    you can not create the containter for the synchronous interfaces.
    you have to craete the two asysnchronous abstact interfaces .
    thenusing those two abstract interfaces you have to define the containers in the BPM.
    and you also have to define the interface mapping b/w those two abstract interfaces.
    once you define the interface mapping you will be able to select the interface mapping using the transformation step in BPM.
    once you select the interface mapping in BPM then you will be able to selece the interfaces
    if you still face the problenm please reply me back.
    Thanks
    Rinku Gangwnau

  • How to handle the stale cheques in EBRS

    Dear Guru's
    Can any bady explain me how to handle the stale cheque cases in EBRS, and what are the possible transaction codes using for that.
    Any help can be greatly appreciated.
    Regards,
    kishroe

    Hi
    any bady know about this plz respond.
    Thanks in Advance
    kishore

  • How to handle the extended vo in the extended controller

    Hi,
    I want to know how to handle the extended vo attributes in the extended controller.
    I extended CompetenceElementsVO as 'CompetenceElementsEx' with 2 transient attributes called col1 and col2.
    Here i want to pass value according based on some condition. for this i want to know how to handle these attributes.
    I tried by using the extended vo name in the controller, if i use means then it is throwing error after the extended controller is implemented.
    Same time if i try to refer this attributes from the original vo definition, jdev itself showing error.
    please tell me how to handle this?
    Thanks in advance,
    SAN

    Hi San,
    You have to extend the controller where your region is associated with,
    And in that controller you get the AM(if there is more than one AM and your VO is associated with a child AM, first you have to get your required AM) and then
    get the ViewObject(standard).
    Then you should be able to get your newly added attributes.
    Please find the below sample code to get the AM handle and VO from there, update the code according to your requirement,
         Get all the VOs under the Root AM
         writeLog(pageContext, "Room AM"+ pageContext.getRootApplicationModule());
    String[] rootViewNames = pageContext.getRootApplicationModule().getViewObjectNames();
    /* writeLog(pageContext," Length of the VOs from Rootm AM "+rootViewNames.length);
    for (int j =0 ;j<rootViewNames.length ;j++ )
    writeLog(pageContext,j +" Value "+rootViewNames[j]);
         // Get requested AM from Root am
    public OAApplicationModule getRequestedAM(OAPageContext pageContext, String requestedAMName)
    writeLog(pageContext,"Requested AM called to check the AM "+requestedAMName );
    String amName = "";
    String objectivesAMName = requestedAMName;//"ObjectivesAM";
    String nestedAMArray[] = pageContext.getRootApplicationModule().getApplicationModuleNames();
    pageContext.writeDiagnostics(this,"Root AM=>"+pageContext.getRootApplicationModule().getName() + " Child AMs=>"+ nestedAMArray.length,1);
    OAApplicationModule currentAM = null;
    currentAM = (OAApplicationModule)pageContext.getRootApplicationModule();
    for(int i = 0; i < nestedAMArray.length; i++)
    amName = nestedAMArray;
    pageContext.writeDiagnostics(this,"Nested AM Name=>"+amName + "and amName.indexOf(objectivesAMName) "+amName.indexOf(objectivesAMName),1);
    currentAM = (OAApplicationModule)pageContext.getRootApplicationModule().findApplicationModule(amName);
                        //Get the view names
                   String[] viewNames = currentAM.getViewObjectNames();
    for (int i =0 ;i<viewNames.length ;i++ )
    writeLog(pageContext,i +" Value "+viewNames[i]);
    if(!(amName.indexOf(objectivesAMName)==-1))
    pageContext.writeDiagnostics(this,"Found Handle to My Nested AM " + amName ,1);
    break;
    return currentAM;
    Get the VO from the AM
    OAViewObject objAssessmentVO = (OAViewObject)yourAM.findViewObject("yourVO");
    Thanks.
    With Regards,
    Kali.
    OSSi.

  • How to handle the call transaction in method of a custom business object

    Hello all,
    There is a custom report " RPTCORAPP" for approving leaves . As per my requirement i have develop a copy of leave workflow and for approval process i have call  "RPTCORAPP" in Custom method of custom object. i have made a transaction for this custom report for approving attendances. I am calling this method though call transaction statement within method.
    Problem: while approving the attendance workitem is not disappearing from the portal. Problem is due to call transaction statement.
                   once workitem come to the user, user click on it. control goes to the report, which display all the leave to approve on
                   the portal.
                   If after approving/ rejecting attendance user close the screen.workflow remain in the "process" status.Control wont come  back after call transaction statement in the method.
                 At the same time if user clicks on back button inspite of closing the screen. it is working fine. workitem disappears from the portal.
    How to handle the scenarion. if after approving/rejecting, i want the control to come back to the NEXT STATEMENT after call transactionstatement in my method.
    Please help it out........:)

    Hi swami,
    thanks for reply. but i am not using BDC in my method. iam just calling a custom transaction thriugh statement
    Call transaction 'ZHR_APPROVE_CLINOUT'. This transaction directly run the report RPTCORAPP and display all the request.

  • How to handle the table control in bapi?

    how to handle the table control in bapi? example va01.
    i pass multiple line item what is the procedure?
    header detail same .
    eample ship to party
           sale to party.
    line item mulptiple
    10 mat1
    2o mat2
    30 mat3.
    in bapi we can pass sinle line item.
    any way to handle multiple line item pass through the bapi.
    Message was edited by:
            Karthikeyan Pandurangan

    BAPI is not going through the screen flow logic so you need not to worry about the table control. Just check in the BAPi there must be one table parameter for line items just pass one int table with your data to that table parameter it will automatically update the tables.
    Regards
    shiba dutta

  • How to handle the #error in ssrs expression

    hi 
    Please any one help me to resolve this #error ,
    I have a calculated filed in that expression i given a if condition like below 
    data of column is coming like this 0 , 0.0 
    =IIF(Fields!Column1.Value=0,0,((Fields!Column2.Value - Fields!Column1.Value)/( Fields!Column1.Value)))
    how to handle the #error 
    Please let me know any one 

    Hi deepuk23,
    According to your description, when you use the IIF() function in the report you got some error,right?
    The issue can be caused by the column1 and column2 have different datatype, I assumed that one is integer and another is float, when the Column1 is 0 or null,  because IIF() function always evaluates both the true part and the false part, even
    though it returns only one of them, it will throw out the error. 
    To resolve the issue, you should use a nested IIF() function to avoid the zero-divisor in any rate like below:
    =IIF(Fields!Column1.Value=0,0,((Fields!Column2.Value - Fields!Column1.Value)/(IIF(Fields!Column1.Value=0,1,Fields!Column1.Value))))
    For more information, please refer to this article:
    FAQ: Why does the “Attempted to divide by zero” error still happen?
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • How to handle the errors in transformations

    Hi
    I am using SOA, JDev 10.1.3.3.
    How to handle the exceptions in transformations.
    If any thing goes wrong in transformation then how to handle that situation.
    I am not getting any kind of instances like errored out..
    Please help me out
    Regards
    Pavankumar

    I think your issue is that your process is going into manual recovery.
    In the console click on the tab BPEL processes. There is a link on the left for manual recovery. Do you see your processes there?
    What happens if you put your transformation into a scope. The in that scope you have a catch All. In this catch All routine just do a terminate. This will error your process but you should see it appear in the console.
    cheers
    James

Maybe you are looking for

  • Subcontracting material issues

    Dear Experts Let me know wether is there any transaction code that would give me the material that is provided to the vendor with reference purchase order specifying the requirement qty and issued qty. Eg: PO    material    Required qty     withdrawl

  • Problem in deleting row from database in table component

    Hi, I have a table component that its content change by diffrent links. in this table i have a hyperlink in each row to deleting that row from dataBase. so i must get the current row . i do it like this: define a rowset in the page that have a delete

  • Scroll film strip

    Hi, I'd like to be able to have a film strip of thumbnail slides scroll up and down, and also be able to click on any of the thumbnails. Once a thumbnail is clicked, it should open the larger (full) version of that respective slide. I can do a scroll

  • What is the Diff bet partner functions and business partner?

    Hi friends what is the Diff bet partner functions and business partner Regards Abirath

  • Which Soap version does Flex support

    Hello, I have a flex application trying to talk (via web service) to a gSoap server. If I send this: <SOAP-ENV:Envelope xmlns:SOAP-ENV=" http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd=" http://www.w3.org/2001/XMLSchema" xmlns:xsi=" http://www.w