LOV with custom popup in af:query

Hi,
We have a use case where we need to display an LOV field in Search Panel (af:query). But, the LOV in Search Panel should be displayed with a custom popup.
Is it possible display a field in Search Panel as input LOV with custom popup ?

Hi,
Is it possible display a field in Search Panel as input LOV with custom popup ?
Yes. You assign a LOV definition to the attribute that then you display in the af:query component. You can also have dependnet LOV implemented this way. However, you cannot have a custom (your own) list of value popup dialog used
See page 8 and following in http://www.oracle.com/technetwork/developer-tools/adf/learnmore/jan2011-otn-harvest-300940.pdf
Frank
Edited by: Frank Nimphius on Jun 29, 2011 11:36 AM

Similar Messages

  • Leading zeros problem with custom popup

    I've implemented a custom popup page following the How-To docs on the topic. The value I'm return to the calling page in the passback function most often will have leading zeros. So from the custom popup I do a call like this: javascript:passback(00363644). When my value arrives back on the calling page it's converted to 124836 (haven't yet figured out what kind of conversion is happening there).
    I realize this is not a javascript forum (and I've Googled for leading zeros in javascript to no avail - yet) but the HTML DB field type Popup LOV seems to accomplish this just fine so I was wondering how Oracle might be doing it. Anyone have any ideas?
    Earl

    Vikas,
    See
    http://tinypic.com/ibbfoy.jpg
    So, just use
    javascript:passback("00363644")and it should do what you want.You would think. But I've tried:
    wrapping it in single quotes:
    opener.document.getElementById('P6_CONTACT_ID').value = "'" + myVal + "'";
    wrapping it in single quotes:
    opener.document.getElementById('P6_CONTACT_ID').value = """ + myVal + """;
    and the other 'trick' that I've seen mentioned several places, concatenating an empty string to the value:
    opener.document.getElementById('P6_CONTACT_ID').value = "" + myVal;
    All to no avail! This is really frustrating. Supposedly, any string concatenation action will 'force' the value to retain it's original 'string-ness'.
    Working off this assumption and thinking that the conversion had already taken place by the time I assigned the value I backed up a step and assigned the value to a variable before trying to set the value, ala:
    var myVal = p_Value.toString();
    opener.document.getElementById('P6_CONTACT_ID').value = myVal;
    and still no joy.
    Following this logic one step further, do I need to get the value to a string in the original call. This will be a challenge because the link in the popup report is a is set to a URL with javascript call, like this: javascript:passback(#CONTACT_ID#);
    Further, when I float over the links with the mouse I can see the URL in the status bar of the browser as javascript:passback(00363644); So, how do I go about wrapping this in quotes in the link?
    Any help???
    Earl

  • Problem using multiple choice LOV with custom attribute in IAS 10.1.2.0.2

    Hi
    When aplying a multiple choice and selecting multiple selection and saving in the content area , everything looks fine .
    However when looking at the page the selection is only the first one selected and not the miltiple choices I made
    can someone tell me what is going on , does the miltiple selection with custom attribute
    works ??
    thanks in advance
    Igal

    Hi there,
    I don't really understand what you're doing but I used lot of LOV in custom attributes on my custom items and everything works fine.
    Can you explain more your problem ?

  • LOV with Custom Entries

    I am converting a PDF form to apex. The PDF form had the option of having one field that you could type a custom value in or click the box on the side to select an option from a list of values..
    I can do this with List Manager (popup LOV) but it has a huge box underneath the field that you add values to..
    I only want them to do one value either custom or chosen and I don't want to take up that much space on the page..
    any ideas?

    Hi,
    I have this as an alternative: http://i36.tinypic.com/11j59gy.png
    LOV & New button are displayed. If the value isn't in LOV then the user clicks New and the text field appears using javascript (page doesn't load so data isn't lost). I can talk you through it if you want something similar~
    Mike

  • Problem with custom code in infoset query

    Hi,
    I have created a infoset. In the infoset i added a few additional fields and wrote code in the field code for those fields. I saved and generated the infoset. But in the output of the query, i am getting blank values for those additional fields. When i checked the generated program (SE38), the code is not present in the program.
    If anyone has encountered a similar problem and resolved it, please let me know where i am going wrong.
    Thanks.

    Hello,
    After adding the code for additional fields in Infoset, please syntax check and then activate the Infoset. Then the program will be regenerated with your custom code.
    Thanks,
    Venu

  • Problem using multiple choice LOV with custom attribute

    v 9.0.2
    I cannot find how to use a LOV as a check box or a multiple select for a custom attribute. It shows up as a combo box whatever setting I choose for the default format field in the LOV wizard.
    I need to give the opportunity to choose more than one option from the LOV for the attribute when adding the custom item associated with the attribute. How do I do this?

    Oops wrong forum - have reentered this in content mgmt forum. Disregard this entry.

  • Working with Custom SQL Using Descriptor Query Manager Queries

    Hi All,
    I am Working on Descriptor Query Manager Queries
    Configuring Custom SQL Using Java and Workbench
    Using Java I wrote a static method as in the code given below.
    public static void insertEmployee(ClassDescriptor descriptor){
    descriptor.getQueryManager().setInsertSQLString(
    "insert into EMPLOYEE (EMP_ID, EMP_NAME, EMP_JOB, SAL, DEPTNO) values (#EMP_ID, #EMP_NAME, #EMP_JOB, #SAL, #DEPTNO)"
    I wrote a insert SQL Query in the custom SQL tab of the Toplink workbench .
    Using java and Using Toplink Workbench I had a problem how to call this insert query in the sessionEJBBean .
    Can any one suggest me in this regard.
    Thanks in advance
    regards,
    Satish

    What is the problem you are experiencing?
    Normally you can just execute the query by calling
    'executeQuery(queryName, domainclass) on the session.
    See also
    http://www.oracle.com/technology/products/ias/toplink/
    doc/10131/main/_html/qrybas003.htm#BCFIBGGJ
    Just out of curiosity: why do you need a custom SQL
    to insert something? Can't you use persist()?
    regards,
    LonnekeOr even UnitOfWork ? Why go down the route of using custom inserts to insert objects unless you have some business logic that Toplink's UnitOfWork API cannot provide ?

  • Criteria with out Operator in af:Query

    Hi,
    We are using af:query in our application and our application uses POJO based data controls. It does not implement BC4J. Is it possible to display a critieria in af:query WITH OUT a criteria operator? For example we want City as on the criteria and we would not want display any criteria operator. The assumption is it should always be searched with Equals. If it is possible can some one let me know how to achieve this?
    Thanks,
    Rama
    Edited by: user9954330 on Apr 24, 2012 10:59 PM

    Hi,
    Is it possible display a field in Search Panel as input LOV with custom popup ?
    Yes. You assign a LOV definition to the attribute that then you display in the af:query component. You can also have dependnet LOV implemented this way. However, you cannot have a custom (your own) list of value popup dialog used
    See page 8 and following in http://www.oracle.com/technetwork/developer-tools/adf/learnmore/jan2011-otn-harvest-300940.pdf
    Frank
    Edited by: Frank Nimphius on Jun 29, 2011 11:36 AM

  • LOV with different query values

    Hi,
    I am using JDeveloepr 11.1.1.1.4 and ADF-BC in my project.
    In my project,in one of the pages,I need to open a popup on click of button[near an input box] and show an LOV in the popup.
    On selection of the value in the LOV and some business logic,the value has to be set to the input box in the calling page.
    I have 10 input fields in my page,with 10 buttons besides them and I have to open the same popup and same kind of business logic needs to be implemented to return and set the values
    in the calling page except that the query to display the LOV values is different each time.
    Basically same popup page needs to be displayed every time,but the query to display the values for LOV is different every time.
    If LOV is built through read only view object,then I cannot the change query :(
    Please advice on how to achieve this.
    Thanks,
    Praveen

    Assume the following sample as per your use-case.
    Departments VO is to shown as a LOV for ten different attributes in Employees VO, but the set of departments to be shown are different for each LOV/attribute.
    For each of the attributes in Employees VO, while defining the LOV, create separate view accessor for each of the attributes. In your case, as each of the LOV are totally distinct, you might need 10 different accessors for each of the attributes defined as a LOV in Employees VO.
    For applying view criteria, you could apply different view criteria for different view accessors created as follows:
    As for example, for attribute1 in employees VO, you would like to show only departments starting with 'A'. In this case, define a view criteria in Departments VO as DeptWithStartingA.
    Now in the Employees VO, for attribute1, select the view accessors created by moving to the view accessor tab & shuttle the VC to be executed.
    Similarly do for all other attributes.
    Why can't we use single view accessor for all the attributes? - you cannot because while you select a value for one attribute defined as LOV in employeesVO, the corresponding row is set as selected. But when you choose the other attribute using LOV, all other previous selections would point to the same.
    Thanks,
    Navaneeth

  • Error while trying to Execute the Query with Customer Exit

    Hi Experts,
           I am having a Query with Customer Exit, it is working fine for all the Employess, except for one. When i try to remove the Customer Exit it is working for her too. Below is the error i am getting.
    system error in program SAPLLRK0 and form RSRDR; CHECK_NAV_INIT_BACK
    Thanks,
    Kris.

    Hello Kris,
    Are you working with multiprovider? Please check if OSS notes 813454,840080 or 578948 are applicable in your case.
    Regards,
    Praveen

  • Problem with customer exit variable in BeX Query

    Hi All,
    We have created a customer exit variable in a query and populated with few patterns in customer exit.
    My query has to bring all the records where the address line is containg the patterns passed through customer exit. Here the query is not working as expected.
    It is bringing the values where the address line is exactly same as the pattern and not bringing the records where the pattern is part of the address line.
    For example: Pattern passed in customer exit = 'HOSPITAL'
    The record where address line = 'HOSPITAL' is shown in the rpeort, where the record with address line = 'HOSPITAL ROAD' is not shown in the report.
    I would appreciate your help on this.
    Regards,
    Rakesh

    Hi Diogo,
    Below is the code I am using in the customer exit.
    SELECT * FROM zae_tt_pbuild INTO TABLE gt_pbuild.
          IF sy-subrc = 0.
            LOOP AT gt_pbuild INTO gs_pbuild.
              CONCATENATE '*' gs_pbuild-pbuild '*' into lv_pattern.
              ls_range-low = lv_pattern.
              ls_range-sign = lc_sign_i.
              ls_range-opt = 'CP'.
              APPEND ls_range TO e_t_range.
              CLEAR: ls_range,
                     lv_pattern.
            ENDLOOP.
          ENDIF.
         ENDIF.
    I have tried using '%' instead of '*' aswell but the result is same.
    Thanks,
    Rakesh

  • Using LOV with bind var as custom attribute?

    I have an Portal LOV which uses a bind variable.
    Can I use this LOV as a custom attribute? If so, how do I specific the bind variable value?
    In the display option of the attribute I tried LOV_NAME(LOV_Bind => 'value'), but the LOV is not applied.

    It's been quite a while, but I think I remember trying this and not being able to achieve it. You can use a LOV with a bind variable in a report or in a form, or similar, but there is no way in an item to from specify where to get the bind variable. My suggestion if this is a requirement would be to use a portal form which submits to a stored procedure or pl/sql generated form to gather the attributes and then programmatically create the item using the APIs. Takes a bit of work, but gets you exactly what you described above.
    Rgds/Mark M.

  • LIST MANAGER - Replace popup lov - with stationary scrollable box

    Sorry... I thought this was Oracle 10g XE form...could you direct me to right form.
    LIST MANAGER - Replace popup lov - with stationary scrollable box...
    The end result would be: 2 scrollable list boxes separated by the word ADD / REMOVE. One to select from and the other box to act as collection box
    The popup LOV is quick and fast ..but is a little time consuming
    Oracle 10g XE
    Message was edited by:
    user518110

    Hi user518110,
    1) please update your forum handler to a more friendlier name.
    2) I think your are looking for the Shuttle component in Oracle APEX, like on the following page http://apex.oracle.com/pls/otn/f?p=2672:2
    If you are using Oracle XE you are probably using Oracle APEX 2.1, you have to upgrade this version to Oracle APEX 3.0 which contains this new control. See http://www.oracle.com/technology/products/database/application_express/html/3.0.1_and_xe.html for details.
    Patrick
    My APEX Blog: http://www.inside-oracle-apex.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://apexplugin.sourceforge.net/ New!

  • Custom Popup - Passing values back to Textarea with HTML Editor

    I have created a Custom Popup which is to populate a "Textarea with HTML Editor".
    I have found that the Custom Popup works fine if the target item is defined as a "Textarea", or "Textarea (auto-height)", or "Textarea w/Character Counter" (although the counter is not automatically updated), or "Textarea w/Character Counter & Spellcheck", or "Textarea with Spell Checker".
    However, if the target item is defined as "Textarea with HTML Editor" the Custom Popup does not populate the target item. No error message is produced. If the target item already had data, the data is unchanged.
    Is this a known bug?

    "Textarea with HTML Editor" is actually two objects on the screen with javascript keeping the data in the two objects in sync as you type in the editor.
    You have to populate both objects as you try to syncronize the data from your popup.
    I built a screen using dHTML that switches between the HTML Editor and the Text with Spell check and use Javascript to keep the two (actually three objects in sync)
    My button that switches from one view to the other uses the following syntax:
    javascript:setEqual('P9904_HTML_MESSAGE','P9904_MESSAGE','P9904_MESSAGEDiv');
    'P9904_HTML_MESSAGE' is the HTML view of the data with spell check
    'P9904_MESSAGE' is the html editor view of the data
    'P9904_MESSAGEDiv' is the extra object that Oracle uses for the editor
    This is the fuction that keeps the data in sync:
    function setEqual(fromObjectID,toObjectID,htmlObjectID)
    document.getElementById(toObjectID).value = document.getElementById(fromObjectID).value;
    document.getElementById(htmlObjectID).innerHTML=document.getElementById(fromObjectID).value;
    I hope this helps.
    Michael Snyder

  • Modify with custom query in contracts to do list workbench channel is not working

    Hi Experts,
    We have a requirement to change the standard query with custom query under 'Contract To Do List' workbench channel. This requirement is for 'Master Agreements'  and Master Agreements Requiring Attention entries in the channel. I have replaced the standard query with my custom query in Setup --> Query groups select the query group To-Do List Queries (FCI-ToDoListBuyReport) and replace the To-Do Master Agreements query definition with my custom query. Same thing I did for second query also.
    But it is not reflecting in Contract To Do List work bench channel. Please see below screen shot.
    However if I revert to standard query 'Master Agreements'  link is displaying.
    Did any one had this kind of requirement and how did you achieve this if you share some thoughts on this it will really appreciated.
    Regards,
    Lava.

    Hi All,
    Issue resolved.
    Raised OSS for this and SAP suggested that include 'ToDo-CON' word in custom query internal name.
    Regards,
    Lava

Maybe you are looking for