LOV on Dept Name

Hi Evrybody
I need LOV on DeptID but it should come DeptName.
In Employee Form we will show DeptID as LOV and retrive the Name show the DeptName.
This issue how we can handle using HR schema.
And also we can create own Entity Objects , if yes how we can get those on Forms

Hi,
which type did you define for the lov-attribute in the UI Hints tab,"Combo Box with List of Values"? (View Object Editor --> Attribute --> List of Values-Section -> double-click the LOV_XYZ entry)
When you drag and drop the attribute (for which you defined the lov) from the datacontrol-panel to the ui, you can choose the af:inputListOfValues.
"And here i need deptName" --> You can define the LOV for the deptName-attribute (when the view object include the Dept-EO too), so you can hide the id-columns and show only user-friendly names.

Similar Messages

  • Automatic LOV refresh Dept drop down on EMP table

    I have a editable DEPT table and editable EMP table on the same page. Each table have their own corresponding insert and delete buttons. There is a common commit and rollback button for the both tables.
    In my EMP VO I have a view accessor linked to the DEPT VO . The dept column in the EMP table on the page has a drop down list. I'm trying to get the LOV drop down to refresh on the EMP table after an insert/delete and subsequent commit on the DEPT table. Has any body had the same requirement ? I tried the partial triggers between the commit button and the LOV on the EMP table and no luck ! :-(
    thanks in advance

    Just discovered that the my LOV was pointing to the wrong VO. I had 2 VO for the DEPT table. Re-pointed the LOV to the same VO as the DEPT on the corresponding page. it's all solved !

  • Creating fields as LOV (using alternate names) on OTL timecards

    Hi,
    I would really appreciate if someone can help me understand the process of being able to add fields on OTL timecard as LOV fields using alternate names. These are COST segments which I need to add on OTL timecard. The part which is most confusing to me is modifying the .ldt to get these fields working.
    Appreciate if anyone can point me to related documents.
    Thanks,
    Maddy
    --

    Hi Maddy
    Ramsys has pointed you towards a very useful document, the timecard configuration guide. But, the guide is very complicated and it shows you what to do, but doesn't really explain 'why' you have to do it.
    I run training courses on OTL, and this is a complex area to understand. It is possible to display almost anything on the timecard if you put your mind to it! Your example fo the cost centre is quite straightforward. Youi can create a value set to display the cost codes you want. A suitable one might already exist. You then need to have a view object (VO) to use this on the timecard. OTL provides 10 dummy VOs which you can use. The guide explains how to do this. The VO links your value set to the timecard. This step accounts for displaying the data on the timecard.
    You also need to have somewhere to store the values selected by the user. To do this you need to define a contect in the OTL_INFORMATION_TYPES DFF to store the data. You will also need to have a mapping component to link the data on the screen to the OTL_INFORMATION_TYPES context. Usually, you can use an existing mapping component.
    Good luck!
    Regards
    Tim

  • LOV of column names with a report's custom column headings?

    I have a list ov values definition that looks like this:
    select column_name d, column_name r from all_tab_columns where table_name = 'DATABASE_LIST'
    I'd like to list the custom column headings from a report as d, rather than repeating the column_name. How can I do this?

    As Anton said, the best thing is to store your custom headings in a table so that you can use the table for your LOV as well as for your report headings.
    To use dynamic report headings, you can use the 'PL/SQL function body returning colon-delimited headings' feature on the Report Attributes page.
    So, if your report headings are stored in table t that function body can be
    declare
    l_headings varchar2(4000)
    begin
    for rec in (select heading from t) loop
       l_headings := l_headings||':'||rec.heading;
    end loop;
    return ltrim(l_heading,':');
    end;Hope this helps.

  • I love a game name Magic line on the first generation IPAD but now I can not download this Magic line on the app store for my new iPad Air. How can I transfer the game on OLD IPAD to my New IPAD Air ??

    I have a game name MAGIC LINE on my first generation IPAD which I can not find on APP store now. How can I transfer that game to my new IPAD AIR ??

    You don't say which store you are looking in but I found this in the US store:  https://itunes.apple.com/us/app/magic-line/id410551094?mt=8

  • Custom LOV or How to selct a Employe and their Dept is passed into a prompt

    I have been given a change request to enhance an existing Webi report built over a universe with a BEx query as the source.
    Currently they are prompted to enter an "employee name" but they now want to select the employee name but the result set to come back for the complete data set for they department they work in.  For example select Andrew and the data for all employees in the consulting dept to be returned.
    In old school BOBJ a work around was to put the prompt on the department name and amend the LOV to show 2 columns, Dept Name and Employee Name. So the users would scan down the list of employees ( column 2 in the LOV) and select them which would in fact select the department name and pass that back to the query to restrict the data set.
    Is there any work around or thought you can suggest to help out in the new world of a universe over BEx ?

    Hi,
    Sound like something that is easier implemented in the BEX query with a user exit variable.
    Ask your BW developers if you want to know more...
    Another option is to (ab)use the hierarchical display of prompts;
    create an LOV object for department with a built in (XMLfilter) condition on employee (use the normal employee LOV).
    set the LOV to use hierachical display.
    create a custom (XML) filter for department and point to the LOV for this prompt to the new LOV object for department.
    (hide the LOV object from the end-user...)
    What that should give you is a list of employees with a plus sign in front.
    Clicking on the plus will show the department.
    This they can select...
    Hope this helps,
    Marianne

  • Using Lov display name but save id

    problem: using Lov display name but save id

    solution: put the LOV on the name and use formValue item for the ID with the viewInstance and viewAttribute, and make a mapping for the form value

  • Select item on a Tabular form with a different dynamic LOV on each row

    I would like to use a tabular form where one of the columns is a dynamic LOV based Select, and where that dynamic LOV refers to one of the column values on each row.
    So if the tabular form represented a list of teams and the LOV-based Select column was the current team leader, I would want that select list to be populated only with the members of that team (different for each row). Since the list of team members is in some other table (all_players or something) I would want to populate the LOV with a query with a where clause that selected only those players records with a team-membership equal to the current tabular form's team id. So, on each row that select list's contents would be different.
    -- Justin

    I'm beating a dead horse here but I did get something to work with "less" code. My current needs do not require me to cascade drop downs, I only want 1. You can use the query like the in the first reply (but I don't have a table with joins) I created a simple two column table dept_emp with 4 records 10,null 20,null .... I want to fill the nulls with an employee but ONLY an employee that matches the dept. (Same concept of team leader and members).
    Here's the query:
    select apex_item.display_and_save(1,dept) dept,
    apex_item.select_list_from_query(2, name, 'select ename from emp where deptno='||dept) name
    from dept_emp
    I removed the code that was there already (ApplyMRU) and just put in this code:
    BEGIN
    FOR i IN 1..HTMLDB_APPLICATION.G_F01.COUNT LOOP
    UPDATE dept_emp
    SET
    name=HTMLDB_APPLICATION.G_F02(i)
    WHERE dept=to_number(HTMLDB_APPLICATION.G_F01(i));
    END LOOP;
    END;
    The G_F01 matches the column 1 and so forth. There's more documentation but little explanation at:
    http://download.oracle.com/docs/cd/B25329_01/doc/appdev.102/b25309/api.htm#sthref2171
    The thing I could not get to work was a dynamic message
    #MRU_COUNT# row(s) updated, #MRI_COUNT# row(s) inserted.
    Not sure when the MRU_COUNT gets populated (probably in the routine I removed ;))
    You're probably way past me by now but I like to have as little code as possible when it comes to maintaining an app. That's why I liked oracle forms so much. This kind of stuff was pretty easy to do.
    Thanks again everybody!

  • Dependant LOV is not working sometimes???

    Hi Everyone,
    i have created one dependant LOV. Lov1(Dept) and Lov2(Eno).
    When i select any dept from first LOV it will trigger one OnChange() Event and there i am taking the dept name passing to the Employee table to filter corresponding ENOs in Lov2.
    It works sometimes fine but sometimes it shows blank records in Lov2 but in backed Lov2 is having records.
    what can be the issue?
    Thanks.

    Kumar,
    mention your jdev version and teck stack always before asking any query.
    what do you mean by 'sometimes' it is not working? in which case it's not working? when you are getting blank values in you dependent lov, have you checked that the query (for the dependent lov) is returning any record?
    ~Abhijit

  • Cascading LOV behavior

    Hi,
    I have created a Cascading LOV for Employee-> Dept No and unchecked Hierarchical View in u201CCreate Cascading List of Valuesu201D option.
    Then I created a Webi report and applied u201CDept Nou201D as Prompt with LOV option enabled.
    When I refresh the report it is displaying two prompts, one for Dept No and other for Employee.
    I selected the value for Dept No. Then accordingly Employee prompt is also filtered based on Dept No, and I selected one employee number.
    When I view the report after specifying prompt values, it is showing all the employees under that Dept, but I would like to see only for the Dept No and Employee selected in the prompt window.
    When I check the Report Query, I find a where condition only on Dept No, and not on Employee.
    Is this the kind of behavior one would expect in BOXI 3.1. Please let me know.
    Thank you.

    Hi Mohamed,
    The Employee parameter should appear only once. You might have done some thing additional.
    Had you tried to create any cascading LoVs? If yes then delete it. The definition of the objects should be as given below.
    Please check the definitions of the objects as:
    Employee: tobe dragged in the query
    Select: Table Emp.Name
    Lov Employee
    Select: Table Emp.Name
    Where: @Select(Table Dept.\Name) In @prompt('Select Employee','A','Table Dept.\Name,multi,constrained)
    Dept
    Select: Table Dept.Name
    Prompt (Predefined Condition): to be dragged in the query
    @Select(Emp\Name) InList @prompt('Select Employee','A','LoVs\Lov Employee',multi,constrained)
    Regards,
    Rohit
    Edited by: rohit12 on Mar 9, 2010 5:54 AM

  • LOV creation.

    I have just started using the JSP from ORACLE and really like it. I am trying to create a LOV for a field but do not know how. Is there a standard way of doing it?
    Thanks in advance.
    null

    Let's take example of employee-dept schema and use as LOV department's names:
    Iddept:
    <select name="iddept1">
    <% DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn
    =DriverManager.getConnection("jdbc:oracle:thin:@IP:1521:instance","scott","tiger");
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery("select * from dept");
    if (rset!=null)
    while (rset.next()) {
    String iddept = rset.getString("iddept");
    String namedept = rset.getString("namedept");
    %>
    <option value='<%=iddept %>'> <%=namedept %>
    <%
    %>
    </select>
    <%
    stmt.close();
    conn.close();
    %>
    Hope this helps...

  • Populating another field from lov

    Is it possible to select say a dept no
    from lov and populate the dept no field and
    dept name field as well?

    Amarshall,
    You may want to search the Oracle9iAS Portal Applications forum for an answer to this question.
    Thanks,
    Sue

  • Error in generating LOVs

    I have a report and I have defined few parameters and I used one parameter to generate an LOV for the report.
    But it is giving me an error?..
    Paramter name: pName java.io.IOException: prepare query failed[nQSError: 27002] Near : Syntax error [nQSError: 26012] .
    it works SQL Developer when I hard code the parameter.

    I have under LOV Tab
    1.Names
    2.Departments
    Parameters as:
    pName - (parameter type-Menu , List of values -Names, ticked on- Refresh Other parameters on Change)
    pDept -(parameter type -menu, List of values -Departments, ticked on -Multiselect)
    and I used pName in the query for 'Departments' and addressed it as :pName in the query.
    Hope I gave a clear picture.
    I didnot understand the problem. is it with hardcoding?..because, this query qorked fine when I hardcoded

  • Problem writing a sql query for a select list based on a static LOV

    Hi,
    I have the following table...
    VALIDATIONS
    ID          Number     (PK)
    APP_ID          Number     
    REQUESTED     Date          
    APPROVED     Date          
    VALID_TIL     Date
    DEPT_ID          Number     (FK)
    I have a search form with the following field item variables...
    P11_DEPT_ID (select list based on dynamic LOV from depts table)
    P11_VALID (select list based on static Yes/No LOV)
    A report on the columns of the Validations table is shown based on the values in the search form. So far, my sql query for the report is...
    SELECT v.APP_ID,
    v.REQUESTED,
    v.APPROVED,
    v.VALID_TIL,
    d.DEPT
    FROM DEPTS d, VALIDATIONS v
    WHERE d.DEPT_ID = v.DEPT_ID(+)
    AND (d.DEPT_ID = :P11_DEPT_ID OR :P11_DEPT_ID = -1)
    This query works so far. My problem is that I don't know how to do a search based on the P11_VALID item - if 'yes' is selected, then the VALID_TIL date is still valid. If 'no' is selected then the VALID_TIL date has passed.
    Can anyone help me to extend my query to include this situation?
    Thanks.

    Hello !
    Let's have a look at my example:create table test
    id        number
    ,valid_til date
    insert into test values( 1, sysdate-3 );
    insert into test values( 2, sysdate-2 );
    insert into test values( 3, sysdate-1 );
    insert into test values( 4, sysdate );
    insert into test values( 5, sysdate+1 );
    insert into test values( 6, sysdate+2 );
    commit;
    select * from test;
    def til=yes
    select *
      from test
      where decode(sign(trunc(valid_til)-trunc(sysdate)),1,1,0,1,-1)
           =decode('&til','yes',1,-1);
    def til=no
    select *                                                                               
      from test                                                                            
      where decode(sign(trunc(valid_til)-trunc(sysdate)),1,1,0,1,-1)
           =decode('&til','yes',1,-1);  
    drop table test;  It's working fine, I've tested it.
    The above changes to my first idea I did because of time portion of the DATE datatype in Oracle and therefore the wrong result for today.
    For understandings:
    1.) TRUNC removes the time part of DATE
    2.) The difference of to date-values is the number of days between.
    3.) SIGN is the mathematical function and gives -1,0 or +1 according to an negative, zero or positiv argument.
    4.) DECODE is like an IF.
    Inspect your LOV for the returning values. According to my example they shoul be 'yes' and 'no'. If your values are different, you may have to modify the DECODE.
    Good luck,
    Heinz

  • Addition of one column in LOV through Form Personalization

    Hi
    While approving a purchase order when we click on Forward check box the forward to field becomes enabled and it has the LOV containing employee names and employee numbers. I want to add another column in this LOV for employee positions through form personalization.
    Can any one guide me how to do this.
    Regards

    Hello,
    To set another LOV, you should change the property of your combobox, named LOV_NAME with Forms perso, but you need some PL SQL code to create a new LOV.
    See this example : [http://oracle.ittoolbox.com/groups/technical-functional/oracle-apps-l/custom-lov-using-custompll-883870]
    One pre-requisite is that your new LOV should have the same number of rows and the same datatype, so I'm afraid you won't be able to do this just using Forms perso
    Kind regards,
    Xavier

Maybe you are looking for

  • IPhone 4S Battery life issue, worth returning?

    Hi All, I have had my iPhone 4S for a few days now. I have tried all the tips and tricks posted on here (turn off locations, notifications, system restore etc....). But nothing seems to work. I just about get one days battery out of my 4S, with very

  • Safari and other browsers slow to load and wont load https (secure)

    Since the last update of Safari 5, we have noticed that we can't load https pages. So we went to Firefox, that seemed to help for awhile. Now we can't always load https in either. We are also seeing that http pages wont load quickly in either browers

  • Report to view the attachment in PO/OA

    Dear all, Would like to check if there is SAP Standard report to list out the attachment that attched to Purchase order or Outline agreement? Please comment.

  • Why does this prpgram keeps crashing? this is unacceptable

    I am using firefox 35, it says beta channel. This program freezes 10 times a day, i have to relaunch. What is wrong here??

  • Color management on an external display

    I'm using a ColorEdge CE210W monitor as an external display for an Apple MacBook, and I'm having trouble getting images to display on the CE210W consistently *across applications*. According to OS X's ColorSync Utility, the CE210W is the default disp