DFF segment as LOV return item

Hi ,
I have a requirement to default the value in the fields in the page depending on LOV on another field in the Page.
But the field that needs to be defaulted is one of the fields in the DFF.
As such i am not sure what should i give in the "Return Item" property while defining the LOV mapping
Could someone please guide me in this
Thanks and Regards,
Akash

Hi Sumit,
Niot sure what you mean when you say to save the record.
I have this requirement in the iRecuitment Create Vacancy page and when i select the organization in that page , one of the segments of DFF should get autopupualted from the organizaton LOV.
Not Valueset is associated in the DFF segment
Could you please suggeest where i may be going wrong.
Thanks,
Akash

Similar Messages

  • LOV, return item, execute_query

    Dear friends,
    For searching a distinct record I wanted to provide the user following:
    - opening a LOV
    - choosing the proper record
    - Lov writes id of choosen record in datablock item of
    the id (evm_a_abteil.abteilg_id) as return item/value
    - do_key('execute_query') as the user pressed F8
    I expected to get the one choosen record in my datablock of the form, but Forms shows me all records.
    Why?
    What is wrong?`
    Thanks for your explanations
    Silke

    Create LOV that return values into control block item.
    Key-Listval trigger of data block
    if Show_LOV
    then
    Go_Block(<data block>);
    Execute_Query;
    end if;
    Pre-Query trigger of data block
    If :<control_block>.<item_name> is not null
    then
    :<data_block>.<item_name> := :<control_block>.<item_name>
    :<control_block>.<item_name> := NULL;
    end if;

  • When Press "Execute Query" LOV return Item not showing

    I created a LOV and defined return items.
    In the form I created display items, database property NO and assign variable name which is in LOV.
    When I enter a new record LOV shows the return item but when I am executing query only database record is showing and I want to show the all item even they are in database or not.
    Message was edited by:
    Kamran

    execute query populates only database items. To populate non database items after execute query, use post query trigger.

  • Lov returned items are not cleared in Jheadstart 11.1.1.4.26

    We are using Jheadstart 11.1.1.4.26 with Jdeveloper 11.1.1.4
    HR Testcase:
    Form UI
    Lov on the Manager_FirstName
    returns
    ManagerId -> ManagerId
    FirstName -> Manager_Firstname
    LastName -> Manager_Lastname
    1: Select a manager from the LOV popup. ManagerId,FirstName,LastName are filled
    2: Clear the Manager_Firstname from the Lov inputext. Returned Values should be automatically cleared (at least they used to in previous version). They dont in this version.
    I am sending a testcase to [email protected]
    Regards

    Thanks for looking at the testcase.
    I emailed you a new one with screenshots of the steps required to reproduce it.
    Conserning the previous test case I have sent, you are correct. I made a mistake by returning the
    ManagerId back to ManagerId where it should be EmployeeId copied back to ManagerId.
    However the items are not cleared in my Environment if you set a value from the LOV popup and then clear the value of the textinput. (No saving should be performed between these two steps).
    If you perform a save between these two steps the items are all cleared.
    Are you using Jdeveloper 11.1.1.4 ?
    Regards
    Vasileios
    Edited by: spooker on 6 Μαϊ 2012 10:03 πμ
    I am attaching another testcase with steps here. This is different from the one I emailed you but illustrates the same issue.
    It is as if the item the Lov is based on does not autosubmit when it loses focus (click somewhere in the page)
    steps to reproduce word document --> http://herosh.com/download/10867921/testcase.doc.html (just click the green download link)
    testcase--> http://herosh.com/download/10867918/HR.rar.html (just click the green download link)
    Edited by: spooker on 6 Μαϊ 2012 11:05 πμ

  • External LOV Return Items

    Dear Members,
    I have developed an OAF Page which has the below details:
    *1/ Employee Number*
    *2/ Salary*
    *3/ Hire Date*
    *4/ Job Title*
    I have created these items in Advanced Table Region.
    I've also created an external lov. The query of the external lov is as follows:
    SQL> select employee_number, salary,hire_date,job_title from emp;
    Now I have attached this external lov to the Employee Number field. I have also created an lov map and returned the employee_number to the Employee Number field in the page.
    Whenever user clicks on the lov of employee number, it successfully displays all the employee details and when user selects any employee_number it successfully returns as well.
    But my requirement is when user selects the employee number from the lov, I also want to return the salary,hire_date and job_title details to the respective fields of the OAF Page.
    To achieve this requirement do we need to attach the external lov and create mappings to each and every field in the page or is there some other way?
    Please help me to resolve this issue.
    Many thanks in advance.
    Best Regards,
    Arun Reddy D.

    Dear Members,
    I achieved this requirement by creating new lov mappings under Employee Number field.
    Now it works without any issues.
    Apart from this if there is any other way please let me know.
    Best Regards,
    Arun Reddy D.

  • Capturing LOV Return Item in a field of JSP Page

    Dear Members,4
    I am using JDev 10g (10.1.3.5.0)
    Requirement: I want to display a LOV for a field which is not bound to data model. To achieve this requirement I have follwed the below steps.
    Steps:-
    I have a simple JSP page in which there is a select input text field which is as follows:-
    *<af:selectInputText label="Label 1" action="dialog:Test1" windowHeight="500" windowWidth="400"*
    id="label1"/>
    I have created the necessary navigation rules to Test1 page and also the required VO for the respective LOV.
    From this Label 1 field I am able to go to the Test1 page which is a LOV Page and I am displaying the LOV records. After selecting a record, I want to come back to my main JSP Page and the selected value should appear in the field Label 1. I am not able to return the selected LOV value to the Label 1._
    The code I am using to return the value from the LOV Page is as follows:-
    public void returnObject(ActionEvent actionEvent)
    JUCtrlValueBindingRef selectedRowData = (JUCtrlValueBindingRef)getTable1().getSelectedRowData();
    if(selectedRowData==null)
    AdfFacesContext.getCurrentInstance().returnFromDialog(null, null);
    return ;
    assetCat = (String)selectedRowData.getRow().getAttribute("Name");
    AdfFacesContext.getCurrentInstance().returnFromDialog(this,null);
    Note: I want to return the assetCat value to the Label 1 field.
    Can any one please help me in resolving this issue.
    Many thanks in advance.
    Reards,
    R4S

    Hello,
    Many thanks for your reply.
    I am new to ADF. Can you please elaborate your solution.
    Regards,
    R4S

  • Assigning LOV return Value to multiple text items

    Hi all
    I have a custom form on which i have 10 text items
    text item 1,text item 2 ....text item10
    I have a table xx_querywith fields
    text_item,query
    i have inserted into the xx_query table
    insert into xx_query(text_item,query)
    values(text_item1,'select sysdate from dual');
    insert into xx_query(text_item,query)
    values(text_item2,'select sysdate-1 from dual');
    I have created a record group dynamically and i am getting the query from the query column of the xx_query table into the record group(say test_rg)
    I have created a LOV test_lov and thr set_lov_property i have populated the test_rg query into the test_LOV
    is it possible for me to set the return item of the LOV dynamically so that i can get the LOV on the item which i want to ?
    thanks
    _

    Hi All
    thanks for your responses
    I have Created a control item and assigned the return value of the LOV to the control item
    and i have assigned the LOV to the text item that i want
    Currently when i navigate to the text item the LOV is visible
    but when i select a value from the LOV the value is not getting populated into the text item
    I have assigned the value of the control item to the text item
    but i am not sure in which trigger to write the code so as when i select the value from the LOV the value should be shown on the form populating in the text item
    Thanks

  • Disable updating of DFF segment in PO form using Form Personlization

    Hi All,
    I have to make a dff segment in PO form non-updatable after the PO number has been generated.
    I tried to do form personalisation of item PO_HEADERS.ATTRIBUTE2 making its property(update_allowed) as false.
    But when I test the form, I get an error cannot set attribute of a null canvas item.
    How can I make DFF segment disabled after PO Number is generated in Form
    Regards
    Prajesh

    One approach you can try is using the custom.pll.
    You can write code that makes the attribute non-updatable if the po_num is not null.
    If that does not work, you can consider writing a before-update database trigger on po_headers.
    In the trigger, if :old.attribute1 != :new.attribute1, then you can raise an error.
    Typically, I avoid writing database triggers but if you must, this could help you achieve it.
    Hope this helps,
    Sandeep Gandhi

  • How to make a DFF segment mandatory only in one page?

    Hi All,
    We have added a DFF in 2-3 pages. One of the segments in that DFF should be made mandatory only for one particular page. Is there any way to make it mandatory via personalization?
    I can't make it mandatory in DFF settings as it will make the field mandatory in all pages where the DFF is used.
    I m aware that I can extend the controller and check wehther the value has been entered or not. But does anyone have idea whether this can be achieved without any customization?
    Regards,
    Pradeep

    We can achieve this requirement using Java script but this script is fired for every event in the page. You need to carefully choose the event(i.e. when the script should be fired).
    Sample code:
    1. create a rawText item
    2. .in text property of the rawtext item use below sample code
    <SCRIPT>if (document.getElementById("DFFFlex0").value != null) {alert('This field is required');} </SCRIPT>
    // here DFFFlex0 is the ID of the specific DFF segment-Anand

  • A Field need to be Freezed based on DFF Segment field.

    Hi,
    I have 4 DFF Segments on a page.
    And the 1st segment is having many values including "Others" in its LOV.
    The second segment (Field) is only for "Others". if some one will select "Others" from the 1st segment in that case second segment (field) should be enabled else it should be freezed.
    This can be handled if it's not a DFF. Any one has faced such kind of issue.
    Please suggest what can be done in this scenario.
    Thanks
    Bachan.

    hi
    can u please elaborate your requirement in a detailed manner ,if you want to freeze a DFF field on the basis of the value of other field then it is not possiblle after page rendering ,but yes if u want to do the same at time of page rendering then it is possible .
    thanx
    Pratap

  • Return Item and Free goods check box in purchase order

    Hi Guru:
    I just got the question regarding the return item and free goods check box,my question is that if I check the free good check box,then the price of the matieral will be charged to zero,however,if I want to issue the return purchase order to the vendor,does I need to check the return box first and then issue the return order to the vendor? Then go to MIGO transaction to select the movement type 122 to return the goods,what's the whole precedure for returning the goods to the vendor,can anybody tell me,very appriated!

    Hi,
    Retun to vendor through have two types....
    One is you have Po created, vendor send the item in that few items have rejected so you need to return the item to vendor......
    here in MIGo chose returrn to vendor selce the PO numbere.... system automaticaly take the movent type 122....
    sencond type is Retun PO..... In Po while creting the PO tick the return indication..
    If you do the GR system will pick 161mopvent type.. ( GR returns)...
    REgards
    anand

  • Unable to default DFF segment based on selection of other field value.

    Hi Gurus,
    *I have a requirement on 'Create Work Request' page (Oracle EAM), where during creating complaint, when user selects Asset Number, based on this selection, a DFF enabled to capture Tenant Info must be populated. [For testing now, I'm writing my code in PR and not in PFR to populate some thing while page loads.]*
    I have extended my CO and tried many ways (from simple to little complex) but to no success.
    Simpler way:
    *=======*
    OAApplicationModule am = oapagecontext.getApplicationModule(oawebbean);
    OAViewObject vo = (OAViewObject)am.findViewObject("RequestDetailsVO");
    Row row = vo.first();
    row.setAttribute("Attribute1","Attribute1"); //Attribute1 is the View attribute in above VO. But this doesn't work.
    row.setAttribute("DepartmentCode","CRC MAINT"); //DepartmentCode is a view attribute as well. And this works.
    This code doesn't work.
    Understanding that, DFF segments can't be set as simple bean, I have done below:
    *===================================================*
    OADescriptiveFlexBean oadescriptiveflexbean = (OADescriptiveFlexBean)oawebbean.findIndexedChildRecursive("WorkRequestDesc");//("WorkRequestDFF_p13n");
    oadescriptiveflexbean.processFlex(oapagecontext);
    if (oadescriptiveflexbean != null){
    ContextMap contextmap = oadescriptiveflexbean.getNamedChildMap();
    if(contextmap != null){
    Enumeration enumeration = contextmap.keys(oapagecontext.getRenderingContext());
    if(enumeration != null){
    do
    if(!enumeration.hasMoreElements())
    break;
    Object obj = enumeration.nextElement();
    OAWebBean oawebbean1 = (OAWebBean)contextmap.get(oapagecontext.getRenderingContext(), obj);
    oapagecontext.getParameter("WorkRequestDesc1")
    //String str = (String)oapagecontext.getNamedDataObject("WorkRequestDesc1")
    if(oawebbean1 != null)
    if(oawebbean1 instanceof OAMessageTextInputBean)
    OAMessageTextInputBean oamessagetextinputbean = (OAMessageTextInputBean)oawebbean1;//.findIndexedChildRecursive("WorkRequestDesc1__xc_");
    //oamessagetextinputbean.setReadOnly(true);
    oamessagetextinputbean.setText("Jawad");
    } while(true);
    Now the issue with above code is, during the page load, all the segments are populated with value 'Jawad'. I want to populate only the first segment.
    More info:
    *======*
    VO: RequestDetailsVO
    DFF Regions ID: WorkRequestDesc
    Attribute1 (DFF segment1) ID: WorkRequestDesc1
    Appreciate your responses,
    Jawad

    Dear Guys,
    I found out a workaround for this case (If this helps others): :)
    *1. Create a Message Text Input type field (representing each DFF segment) and map them to View Attribute (over which DFF was created) and VO instance.*
    *2. In the extended CO, in PFR, get the handle of these created fields.*
    *3. Set the values as required.*
    Since these fields are mapped onto the same view attributes as DFF was, the data goes in fine.
    But I still am hunting for the possibility of setting a single segment.
    Thanks and Regards,
    Jawad
    Edited by: Jawad on Apr 19, 2012 3:36 AM
    Edited by: Jawad on Apr 19, 2012 3:38 AM

  • Using bapi_po_create1 to create PO with return item - Order Combination

    Hello,
    There's a shipping tab that appears in a purchase return item, and in it there's a flag called Order Combination.
    Only i can't seem to find a way to change that flag using this BAPI, nor using bapi_po_change.
    Any ideas?
    Thank you in advance.
    Duarte

    Hi
    Its a setting that you maintain in the customer master reord that defaults it.
    So if you want this to be flagged for some vendors and for some no flag the you need to maintain accordingly in the Customer master data  - Sales are data  Shipping tab
    If you want it to be maintained through BAPI then populate the same in  POSHIPPINGEXP structure
    Thanks & Regards
    KK

  • Returns item from purchase order in SRM

    Hi,
    Is it possible to return item from a purchase order in SRM?
    meaning : to return goods to an external vendor.
    in ECC i know its possible. but i want to know if its possible in SRM.
    if yes, how?
    (i dont want to return by confirmation)
    we are using SRM550.
    regards,
    vered
    Edited by: Vered Madar on Aug 2, 2010 1:28 PM

    Hi,
    In SRM POs,  GR based invoice indicator for Goods item is ticked based on the Vendor Master. If the vendor master has the tick, then PO will have the tick for GR based invoice. However for a service PO/limit PO,  GR based invoice comes as default in PO and cannot be undone.
    Regards,
    Sanjeev

  • MEIS Foreign Trade - Purchase order return items ECC 6.0

    Hi Experts,
    can you explain whether there has been any change in the way that MEIS is collect data.
    I'm looking into a problem with the interstat reporting in ECC 6.0 transaction MEIS.
    The problem occurs for PO return items, when movement type 161 and 162 are posted in the same period for a PO items,
    this is actually a cancel of the return item, so in my view these posting are not to be reported as imported goods.
    But if I run the report for the next period after the posting is done the PO item are selected on the report, this problem does not occurs in ERP 4.7.
    I create a return order in period 01.2012, and do the posting in same period, run the MEIS for period 02.2012.
    Periodic Declarations is done for SE.
    Any help are appreciated.
    Regrads, Lars

    Hi Jürgen,
    Thanks for you reply.
    You are right that VI99 are for reporting returns, but my problem is that MEIS in ECC 6.0 now shows the items as a full value
    for reporting, if i do this in 4,7 they are not seleted for reporting, and i my view they should not be seleted in MEIS but they are.
    what is you opinion.
    I just check the movement type in Customizing and the "type of posting" are set to "2" the setting are the same in both 4,7 & 6,0
    Regards, Lars

Maybe you are looking for