Customizing default pop up LOV template

Hi team,
i was tampering with the pop-up LOV default template and I see there are many options for controlling various element, but curiously I can't see anything to control the format of the individual lines returned by the query.
If I inspect the source generated by the htmldb, I see indeed that these lines are generated by means of javascript.
Is there any simple way to add a class attribute for instance?
Just my curiousity, why is necessary to use inline javascript to output such lines?
Bye,
Flavio

Ahhhg!
Gotta love the fact that the preview and post buttons of this forum are side by side.
Anyway there is no easy way to add a class to the output link tags but you can add some javascript to do it in the header or add class tags in the header.
Carl

Similar Messages

  • How to Create a Page LOV Template and a Region LOV Report Template in APEX

    Hi All,
    Thanks in advance ..
    I am new to APEX , Currently working in APEX 3.2
    Can any one please guide me How to Create a Page LOV Template and a Region LOV Report Template in APEX
    So that I can create dynamic Multi column LOV in APEX
    Cheers
    Sachin

    Sachin,
    I think you are en-quiring about 'Custom pop-up page'. See this link. You will get all required info there.
    Regards,
    Hari

  • PopUp LOV Template Modifications

    Hi,
    I want to show TOTAL_ROWS in the pagination of PopUp LOV Template where it shows Row(s) X - Y by default. For example, By default it shows, Row(s) 1 - 10. But I want to show Row(s) 1 - 10 of TOTAL_ROWS so that it should also show total number of fetches that Popup has.
    What is the syntax for that. I am trying with keyword TOTAL_ROWS, but its not serving my purpose.
    Please help me sorting out this.
    Thanks & Regards,
    -Ajay

    Phil,
    That is a limitation... Probably because there is no place where you can set what popup template you want to use. However, you could put in the pop-up onload event something like this:
    if(opener.pre_pop_up_function) {opener.pre_pop_up_function(this);}
    And in the onunload event:
    if (opener.post_pop_up_function) {opener.post_pop_up_function(this);}
    I.e. if functions with those names are defined in the calling page, they will be called; if not, nothing happens. Generic enough I think.
    I havent' tested it but it may work...
    Luis

  • Pop-up LOV, add Element Attributes?

    Hello again,
    I have a pop-up LOV (named LOV) on a column in the detail section of a master-detail form (imagine the "Employee Num" being a pop-up LOV in the image linked below[1]). This field also allows normal user entry just like any input field (this is, input is not disabled).
    However, while viewing the source HTML this field just an ordinary input field, I cannot seem to add an element attribute via the usual means. Just for arguments sake I want an alert box on each keypress, usually I would just add the line: onkeypress="javascript: alert('hello');" in the Element Attributes under the "Column Attributes" section. This is not working for me, however.
    How would I go about calling a JavaScript function (on a keypress, say) using this pop-up LOV input method?
    Thank you for you time.
    I am using APEX version: 4.0.2.00.09
    [1] http://imageupload.co.uk/viewer.php?file=yu7i83h5dpk5cy0npsy0.png
    Edited by: 986065 on Feb 14, 2013 1:51 PM

    Hello Bob,
    Sure you can enter a button on the template, but the problem is how to find out which page to call when the Add button is pressed.
    You can write your own LOV page(s) and attach those to a field (i.e. by adding a clickable image in the post element text) and then you can have all the control you want.
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    http://www.bloggingaboutoracle.org/
    http://www.logica.com/

  • Change Popup LOV template to put more spacing between rows

    I am trying to change the popup lov template to include a bit more spacing between the rows in the result set. So instead of seeing
    Test 1
    Test 2
    I want to see
    Test 1
    Test 2
    Looking at the html produced the rows are returned from a bit of javascript (using arrays and passback) and I can't figure out where to add anything that will change the spacing ie cellspacing doesn't do anything.
    The line I am interested in is - replace ( for < and ) for >
    document.writeln("(br /)(a href=\"javascript:passBack(v[1], v2[1]);\")Test(/a)");
    If I could just add a br at the close a tag...
    Does anyone have any ideas on this. I'm not keen to code a new popup lov, I was just wanting to tweak the existing.
    many thanks

    Hello,
    " I know this style isn't directly related to the t5PopupBody as you have suggested but it doesn't seem to make a difference"Your syntax will apply the new style to every link on your pop-up window. As there is non-others then the results, in this case it will make no difference.
    " I did something slightly different so I didn't have to worry about changing the css"That is OK, as long as you remember all the changes you are making to the original templates, because after upgrading – like in the near future to version 3 – some of the changes might disappear. That is why I prefer to use my own CSS file, on top of the original one.
    Regards,
    Arie.

  • Pop-up LOV - Internal Server Error

    I have a pop-up LOV with the query as below:
    select distinct a1 d, a1 r
    from temp
    where ((:P10111_X1 = 2 or :P10111 is null) or
    (:P10111_X1 = 1
    and (col1 like :P10111_col1 or :P10111_col1 is null)
    and (col2 like :P10111_col2 or :P10111_col2 is null)
    and (col3 like :P10111_col3 or :P10111_col3 is null)
    and (col4 like :P10111_col4 or :P10111_col4 is null)
    and (col5 like :P10111_col5 or :P10111_col5 is null)
    and (col6 like :P10111_col6 or :P10111_col6 is null)
    and (col7 like :P10111_col7 or :P10111_col7 is null)
    and (col8 like :P10111_col8 or :P10111_col8 is null)
    and (col9 like :P10111_col9 or :P10111_col9 is null)
    and (col10 like :P10111_col10 or :P10111_col10 is null)
    and (col11 like :P10111_col11 or :P10111_col11 is null)
    and (col12 like :P10111_col12 or :P10111_col12 is null)
    and (col13 like :P10111_col13 or :P10111_col13 is null)
    and (col14 like :P10111_col14 or :P10111_col14 is null)
    and (col15 like :P10111_col15 or :P10111_col15 is null)
    and (col16 like :P10111_col16 or :P10111_col16 is null)
    and (col17 like :P10111_col17 or :P10111_col17 is null)
    and (col18 like :P10111_col18 or :P10111_col18 like '3')
    and (col19 like :P10111_col19 or :P10111_col19 like '3')
    and (col20 like :P10111_col20 or :P10111_col20 like '3')
    and (col21 like :P10111_col21 or :P10111_col21 like '3')
    and (col22 like :P10111_col22 or :P10111_col22 like '3')
    and (col23 like :P10111_col23 or :P10111_col23 like '3')
    and (col24 like :P10111_col24 or :P10111_col24 like '3')
    and (col25 like :P10111_col25 or :P10111_col25 like '3')
    and (col26 like :P10111_col26 or :P10111_col26 like '3')
    and (col27 like :P10111_col27 or :P10111_col27 like '3')
    and (col28 like :P10111_col28 or :P10111_col28 like '3')
    and (col29 like :P10111_col29 or :P10111_col29 like '3')))
    order by col1;
    The query is fine and works properly.
    But when i try to open the POP-UP window, instead of displaying the List of values it gives a message "Internal Server Error" .
    The error on the error log at the server is as belows:
    [Fri Aug 11 14:46:04 2006] [error] [client 192.162.1.173] [ecid: 1155287764:192.162.1.227:5037:0:3454,0] mod_plsql: /pls/ilclpdv3/wwv_flow_utilities.gen_popup_list HTTP-500 ORA-02005: implicit (-1) length not valid for this bind or define datatype
    When I remove any 3 'AND' conditions from the where clause it works properly.
    I hope its with the size of the LOV query.
    is there aany way to overcome it.
    Thanks
    Ameya.

    Ameya - That is correct. You may have to call a function from within the query to shorten it. The function can refer to the page items using v('ITEM') notation. In APEX 2.2, the popup LOV implementation has been improved somewhat so that this kind of thing should not occur.
    Scott

  • Error while opening supplier/customer forms and payment manager templates

    we are having 11.1.0.7 database and 12.1.1 E-business suite with 10.1.2.3 forms
    user is getting
    Error Page
    You have encountered an unexpected error. Please contact the System Administrator for assistance.
    while accessing supplier/customer forms and payment manager templates and this gets resolved after bouncing the application. the current instance is a staging one and this will be replicated to production so please help or suggest any solution or work around
    thanks
    pankaj

    There should be a link on the error page for further details about the error. Can you post the contents of that error link page ?
    Pl also check the Apache logs for any errors - see MOS Doc 419839.1 (How to enable Apache, OC4J and OPMN logging in Oracle Applications R12) for name and location of the Apache log files.
    HTH
    Srini

  • Error while Using a POP-UP LOV

    Hi ,
    I am using the below query for my pop-lov , the query works fine with a select list but when i change it to a pop-lov (which is my requirement) I get the following error:
    "Popup List of Values query is invalid, a display and a return value are needed, the column names need to be different" . I am not sure why ??
    Query :-
    If :p22_region = 'N' then
    return
    'select 1 d , 1 r
    from dual ';
    else
    return
    select distinct name d , name r
    from tab1@ dblink X
    where
    (X.end_date>=sysdate or X.end_date is null)
    and X.room_id > 0
    and X.region in (''NORTH AMERICA'',''LATIN AMERICA'')
    and upper(X.country) like decode(:p22_country,''N'',''%'',upper(:p22_country))
    order by 1
    End If;
    Thanks,
    DJ
    Message was edited by:
    Deepa J

    I need the dblink reference as part of the query
    That's not important. You do not need the reference if without the reference you can demonstrate the same problem. Anytime you present a technical problem, you should reduce it to the most concise example possible so that those whose help you seek can focus on the real problem and not have to waste time eliminating extraneous information. This is a key part of posing a proper technical question.
    As I already said, the additional advantage of losing the dblink reference (if you can) is so you can demonstrate the same problem (greatly reduced, I would hope) on apex.oracle.com.
    Now, maybe this all has to do with the dblink reference but it's important that you do the leg work to prove or disprove that. And then you can incrementally get rid of other elements of the query that prove not to be relevant to the basic problem.
    ...does pop up lov support pl/sql syntax like the select list ?
    Yes there should be no difference.
    Scott

  • How to default values in LOV

    Hi,
    I have created a page in which I have two different LOVs. My requirement is to default some value in the First LOV i.e. "ALL"
    and the second LOV which is dependent on the first LOV will gets populated with the values based on the first one on the page load itself.
    Both the LOVs have "autoSubmit" and "partialTriggers"realtion between them.
    The problem I am facing is that I am able to set some default value to the first LOV with value as "ALL" by using "setSubmiitedValue" on LOV from backing bean on the page load but the second LOV popup (dependent LOV) is coming blank on page load.
    But if i select same value "ALL" form the first LOV popup after page load then second LOV popup gets populated with values based on first LOV
    Please provide some urgent help that how to default any LOV with some value and based on that second LOV gets populated on the page load itself.
    Thanks in Advance
    Kanika Dhamija

    Hi,
    Can you please explain a bit more the ' ... is to default some value.. ' part?
    When exactly do you want to set a default Value?
    Depending on your case, there is always the declarative way to consider through BC
    some approaches on different cases:
    How to set a default value in an ADF table when adding a new row
    http://www.youtube.com/watch?v=9WQ0SDVVWtE
    http://adfcodebits.blogspot.co.uk/2010/04/bit-13-overriding-create-to-set-default.html
    cascading LOVs
    http://andrejusb.blogspot.co.uk/2012/11/cascading-lovs-in-jdeveloper-111230.html
    hope this helps
    Regards,
    Dimitrios.

  • Displaying item value on basis of pop up lov value

    Hi ,
    I have created a form on which i have a pop up lov item whose values are getting displayed on basis of a table column.Now my requirement is that when a user select a value(for ex: say an code i.e 123) from pop up lov then on basis of this value an another value pops up which shows the description related to this code.I have this description in another column of same table from which i have displayed pop up lov values.
    I tried to implement this by creating a display only item on form and taking source value of this item from sql query returning single value as code is primary key but I am unable to fetch value.I have written the following query:
    select model_code from BL_VEHICLE_ENGINE_NAME where catalog_code=:p9_catalog_code
    Here p9_catalog_code is the item displaying pop up lov.
    when i am specifying a particular value rather than bind value as (select model_code from BL_VEHICLE_ENGINE_NAME where catalog_code=123) then the description corresponding to this value is getting displayed through display only item.
    How can i fetch value from pop up lov and utilize that value to display required description.Is displaying description through display only item correct or is there any other way around through which this description could be displayed more effectively.
    Thanks
    Abhi

    Hi Abhi,
    Instead of pop up lov you can use cascade lov ie when u have data like say if u select code from ur table 123 and it has more than one description then u can use cascade lov it will query upon the first lov what u required.
    Or coming to ur problem
    for code pageitem say p1_code u are using pop lov (you can try select list instead of pop up lov )
    and for description u r using display column.
    and give the source as return single query only
    select descp from table where code=:P1code.
    Hopes this helps you
    Thanks & Regards
    Srikkanth.M

  • Custom Interactive adobe form as template in PMS

    Hi Experts,
    In PMS i want to use custom interactive adobe form as template instead of standard.My issue is after creating Int.Adobe form how we can call custom form instead of standard form?
    Any BADI's i have to use?
    How we can map the fields?
    Please help me.
    Regards,
    Arun.

    Hi Arun
    Step 1: Go Tcode: OOHAP_BASIC
                Enchancement Area -  AP     Print Layout
                Define your Enhancement
                Example:
                ZPRINT     XXX print form
                PMP                          PMP PDF
                SMARTFORM     Print Appraisal Documents: Old (with Smart Forms)
                STANDARD     Standard
    Step 2: Go Tcode: PHAP_CATALOG
                On your Template under Layout Tab
                Further - Print Layout -> Plug in your Custom Print Form
    You should be all set.
    Thanks
    RAjdeep

  • Sharepoint 2013 custom search results grouping display template

    Hi,
    I am trying to implement custom grouping for search result items. I would like to group them by a managed property, but without using result blocks (query rules). The idea is to sort the results by the property and then compare the current item (ctx.CurrentItem)
    with the previous item using ctx.CurrentItem.ParentTableReference. If a new property value is detected we insert a new 'group header' (just some simple html). The problem is the ParentTableReference is undefined. Shouldn't there be such a property in current
    item object?
    I'm implementing this in a custom search result item display template...
    Thanks in advance.

    Hi,
    According to your post, my understanding is that you want to customize search result items display template.
    I suggest you get enumerate all properties of JavaScript context object and debug you code to watch the
    ctx.CurrentItem object.
    The following articles for your reference:
    Debugging Display Templates in SharePoint 2013 Search
    http://powersearching.wordpress.com/2013/01/25/debugging-display-temlates-in-sharepoint-2013-search/
    Enumerate all properties of JavaScript context object in display templates in SharePoint 2013
    http://sadomovalex.blogspot.co.uk/2013/06/enumerate-all-properties-of-javascript.html
    How to Define a Custom Group Display Template (GroupTemplateId) for the Search Results WebPart via JavaScript
    http://www.eliostruyf.com/how-to-define-a-custom-group-display-template-for-the-search-results-webpart-via-javascript/
    Creating customized search results in SharePoint 2013
    http://www.abelsolutions.com/totm/creating-customized-search-results-in-sharepoint-2013/
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Specify image for a pop-up LOV in a tabular form?

    Hi,
    I am using a tabular form for users to edit data. One of the fields has too many options to use a select list, so I have to use a pop-up lov (query based)... grrrr
    The lov shows up in my form as [Field value]List
    I would like to remove the text "List" and put a small icon there. Where can I specify the image source?
    Thanks,
    Rob

    Hi Denes,
    Thanks for your reply. I looked at your page, but I'm not sure if it relates to my issue.
    Here's a piece of the generated HTML for the pop-up lov:
    &lt;span class="lov"&gt;
    &lt;label class="hideMe508" for="f03_0004"&gt;f03_0004&lt;/label&gt;
    &lt;input id="f03_0004" type="text" value="U41" maxlength="2000" size="8" name="f03"/&gt;
    &lt;img align="middle" style="vertical-align: middle; cursor: pointer;" alt="List"/&gt;
    &lt;/span&gt;Notice that there is an image tag, but the src attribute is not there...as a result the browser displays the alt text List.
    If I missed your solution I apologise...

  • Implement a Pop-Up LOV in a report.

    Hi,
    I would like to use the 'HTMLDB_ITEM' item to generate a textfield with a link to a Pop-Up LOV in an Apex report. Anyone ever tried that before? Thanks.
    Edited by: Jacky411 on Jan 14, 2009 2:49 PM

    Hi Denes,
    Thanks for your reply. I looked at your page, but I'm not sure if it relates to my issue.
    Here's a piece of the generated HTML for the pop-up lov:
    &lt;span class="lov"&gt;
    &lt;label class="hideMe508" for="f03_0004"&gt;f03_0004&lt;/label&gt;
    &lt;input id="f03_0004" type="text" value="U41" maxlength="2000" size="8" name="f03"/&gt;
    &lt;img align="middle" style="vertical-align: middle; cursor: pointer;" alt="List"/&gt;
    &lt;/span&gt;Notice that there is an image tag, but the src attribute is not there...as a result the browser displays the alt text List.
    If I missed your solution I apologise...

  • Returned Value from a POP-UP LOV

    Hi,
    I have a tabular form and i am running into problems when i make use of the POP-UP LOV column type. Basically i have a license and my users have to be able to add conditions to their licence. There are too many conditions for the users to choose from to simply use a select list so i have been forced to use POP-LOV. My problem is that because my query for my POP-LOV is:
    Select COND_DESC d, COND_CODE r
    From LICENCE_CONDITION
    The condition code is returned to my tabular form. This is not much use to my clients (an id of 1466 means nothing to them ) and i really need them to see the condition description in the form and then return condition code to the database.
    Can any one help me with this, or point me in the right direction? I tried searching the forum but its quite a hard problem to describe and i didnt find anything.
    thanks,
    Rad

    See my proposal in this thread:
    Long LOV for editable column
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

Maybe you are looking for

  • Error 400 - Photoshop services are not available

    I keep getting this error messge every time I try to log in. Help?

  • NEW iTUNES RELEASE 7.5.0.20 AVAILABLE

    I was somewhat surprised with the RonAnnArbor semi-formal OP announcement in this thread that there was a new version of iTunes. Of course had I been looking at the Download section of Apple.Com I may have picked it up. Unfortunately, I do not spend

  • Capturing from a dvd

    I have a new Macbook pro with FCE and am wondering how I would be able to capture some footage into my computer from an authored DVD. Could I do it through FCE? iMovie?

  • Do I need a script?

    Hi, I have to import a bunch of small images, curiously enough from Excel, and save them individually as gifs.  When doing this manually I copy the image in Excel, move to PSE, paste it in via File / New / Image from Clipboard, then Save for Web, and

  • Viber app for symbian

    i recently installed viber on my nokia x7 running symbian belle os. But when i started it i came to know that it doesn't have a calling option unlike android and ios phones. This is utter disappointment for me and i think for many nokia users. I woul