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/

Similar Messages

  • How to add an attribute to "group" element in the DataTemplate dataStructur

    Hi,
    I want to add an attribute to the group element in the dataStructure section of DataTemplate. I want my output XML file to look like:
    <G_EMP xmlns:xsd="http://www.w3.org">
    <ENAME>John</ENAME>
    </G_EMP>
    This can be done in Oracle Reports 6i by setting a value to the XMLTag attribute in the property pallette of G_EMP group in the report. Please let me know if there is a way to do the same in the Data Template.
    So far I've observed only three attibutes that can be used with group element (name,dataType,source). Is there any other attribute that I can use to get the afore mentioned XML structure.

    Moved to the LiveCycle Designer forum: http://forums.adobe.com/community/livecycle/livecycle_modules_and_development_tools/livecy cle_designer_es?view=discussions

  • 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

  • Turnaround for having pop-up lov with redirect

    Hi to all,
    is there a way to modified somewhere pop-up lov and adding a redirect to it?
    Maybe with some javascript?
    Any suggestion would be very appreciated.
    thanx a lot

    Hi Marcello
    "onfocus" is working for simple PopUp LOVs.
    I use the following for submitting Popup LOVs:
    HTML Form Element Attributes: onfocus=javascript:doSubmit("REQUESTX")
    Thats no redirect, but you may use a simple branch for same effect or another javascript-command.
    This works with 2.2.1 only for PopUp LOVs, not for PopUp Key LOVs!
    Best regards,
    Matthias

  • How can I add an attribute to a node?

    Hi,
    How can I add an attribute to a node of a DOM Document?
    I want to add attribute Maximum="6" for all Grade node as <Grade Maximum="6">.
    Grade is a third level node in my document.
    Thanks

    Hi,
    How can I add an attribute to a node of a DOM
    Document?
    I want to add attribute Maximum="6" for all Grade node
    as <Grade Maximum="6">.
    Grade is a third level node in my document.
    ThanksGet the father of "Grade" elements as an element. Then get all elements named "Grade", and for each one set attribute "Maximum" with value "6". If you read api documentation you will know which methods to use.
    But for helping you in getting the "Grade" parent.
    1) get the root element of the Dom Doc
    2)get the father of the "Grade" father: getElementsBytagName("his name") -> it will return a Node List get the first element casting as Element if there's only one, or elese if not case
    3)the same method in 2 get the "Grade" father
    4)getElementByTagName("Grade") over the "Grade" father -> for each "grade" element on nodelist do whatever you need
    i hope u understood...

  • 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 add Custom Attributes in the SOAP header for OWSM

    Hi,
    I like to know how to add the Custom Attributes in the SOAP header for OSWM username token authentication.
    Currently we are getting the header element like
    <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    here we need to add the attribute "soap:mustUnderstand="1" , so the element will look like
    <wsse:Security soap:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    Any info on this will be helpful.
    Thanks,
    ArunM

    Hi Jay, you can make it in more than 1 way.
    I suggest you the following:
    - create an URL iview that points to any URL you want.
    - define a Resource that points to the iview (with a window name, to open in new window)
    - define an Area that points to the resource
    - add your new Area to the your current Area Group
    Regards!

  • 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
    ------------------------------------------------------------------------------

  • How to capture element/attribute

    We have an export client that converts the Frame file to xml. We are using "LightTitle" element at various places, this element also has an attribute called "LightColor".
    When I look at the output xml, I can see all LightTitle elements, but only some of them (2 out of 10) have the LightColor attribute!
    How can we capture the attribute associated with a specific element and output it to the final xml?
    Thanks.

    If your LightColor attributes do not contain ant content - then they will not be written out - you can change the rules to add a 'dummy' if you need them in the XML - OR -(and probably easier) post process your XML and add the missing elements/attribute pairs based on rules in your XSLT or program...
    have fun.
    David
    [signature link removed]

  • Using apex_item with element attributes

    I am trying to create a manual tabular form. I used the SQL below:
    select
    apex_item.text(3,code,6) "CODE
    apex_item.text(4,city_name) "CITY_NAME",
    apex_item.text(5,state_code,2) "STATE_CODE"
    I set all my columns to 'Standard Report column'. I need to add some element attributes like:
    onFocus="javascript:this.maxLength=6;" onBlur="javascript:{this.value = this.value.toUpperCase(); }" onChange="this.style.backgroundColor = 'yellow';"
    It seems to ignore this when the form is built as looking at the source doesn't have this code in with the element. How can I add these attributes to the element?

    Go to my blog
    http://www.deneskubicek.blogspot.com/
    and have a look at the
    Cascading Select List in a Tabular Form or
    Manual Tabular Form
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Two HTML in one HTML Form Element Attributes........

    In my HTML Form Element Attributes i already have one *<INPUT readonly name="Customer Code"/>*, then i tried to add another HTML onmouseover="toolTip_enable(event,this,'Customer Code')" , i.e, like this both HTML in one Element Attributes +<INPUT readonly name="Customer Code"/>+ onmouseover="toolTip_enable(event,this,'Customer Code')" but its not working .
    how do i put both HTML in one HTML Form Element Attributes?
    Skud :(

    Hi,
    I think this is duplicate post
    Delete the symbol........
    What you try archive. Form element attributes is not place where you enter HTML. You enter only attributes there like
    onmouseover="toolTip_enable(event,this,'Customer Code')"PS: when posting code wrap it to {noformat}{noformat} tags
    Regards,
    Jari

  • Editable report - Element Attributes

    Apex 4.1
    The Element Attributes field under Column Attributes is not consistent in whether it expands #COL# substitutions.
    1. Based on empirical observations, they are expanded for Select lists but not for the new Simple Checkbox type. I don't think any other editable display type works but I haven't tried all of them.
    So if we need a simple checkbox in a report, it leads to awkward constructs like this in a custom report template
           <input type="checkbox" name="f49" class="edit"
                  x:attr="foobar"
                  x:pk="#PK#"
                  value="Y"             
                  #CHECKED# />and a query like
    decode(col,'Y','checked="checked"') checked
    ...It would be so much easier/declarative if the Element Attributes were to consistently expand #COL# substitutions so we could just put any CSS class and/or custom HTML attributes and use values from the current row.
    2. Speaking of Simple Checkbox, it sometimes causes APEX to crash with the following Apache error
    /wwv_flow.accept HTTP-404 \nwwv_flow.accept: SIGNATURE (parameter names) MISMATCH\nVARIABLES IN FORM NOT IN PROCEDURE: F03_NOSUBMIT\nNON-DEFAULT VARIABLES IN PROCEDURE NOT IN FORM: I am not able to consistently reproduce this but it is definitely a problem.
    Also, it is not very obvious whether the List of Values attribute applies to the Simple Checkbox display type or not. It would appear that it uses a static LOV defined by STATIC2:;Y can someone from Oracle confirm this?
    Thanks

    Bump. Comments? Am I missing something? Thanks

  • 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

Maybe you are looking for

  • How do i get rid of an old itune user on my iphone

    my grandson put a user name on the itune account and does not remember his password so i can not use my itune icon on my iphone. How do I get rid of it?

  • URGENT HELP, How do you burn a DVD from Final Cut Pro

    This is my first video and I have to have it done by Wednesday, but I dont know how to take the movie from final cut and import to DVD Studio Pro. If anyone can help please let me know as soon as you can. Thanks Zack

  • SD Process Required to Configure

    Hello Experts, I have small requirement which i need to show the Demo to my Client.Below is the client requirement but i am quite confuse how to start and which plant which sales org shud i create.If i create 3rd party but the below requirement requi

  • Partial OCR on one page possible?

    I'm using Adobe Acrobat 9 Pro (with Windows XP). I've got a PDF page that shows various news articles. The end user should be able to use CTRL + F for some, but not all, of the articles on that page. Is it possible to apply OCR to only part of one pa

  • Profile option

    Hi Everyone, Versions : Database :11.0.1.7 Applications : R12.1.3 I want to change the below profile option at the User level(shankar) in the backend applications. Please help me. Fnd: Debug log enabled to NO from YES Fnd: Debug log level to Statemen