Creating dynamic  list of values

HI,
While I am trying to create dynamic list of values over a table(table1) having the columns h_id ,head_foot and header.I gave the query for creating the dynamic list of values as
select header d, header r
from g.fw_header_footer
order by 1
where d is the display value and r is return value am getting the error
"1 error has occurred
LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query."
Can any one please suggest me where am going wrong.
Thanks in advance

911338 wrote:
HI,
While I am trying to create dynamic list of values over a table(table1) having the columns h_id ,head_foot and header.I gave the query for creating the dynamic list of values as
select header d, header r
from g.fw_header_footer
order by 1
where d is the display value and r is return value am getting the error
"1 error has occurred
LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query."
Can any one please suggest me where am going wrong.What data type is column <tt>header</tt>?

Similar Messages

  • Can I create  a multi-selection list using a dynamic list of values?

    I'm reading section 19.7.3 from the dev guide - it explains how to create a selectOneListbox using a dynamic list of values. Is it possible to create a multi-select listbox from a dynamic list of values?
    What I would like to do - I have a read-only view object with a hard-coded query - I would like to display the results of the query in a dropdown list box, or dropdown list box with boolean checkboxes, to allow the user to select multiple items from the list. How can I accomplish this?
    thanks

    Hi JavaX,
    I don't know of any JSF components (at least not any ADF Faces components) that lets you do multiple selection in a drop-down. There is an af:selectManyListbox, but it does not render as a drop-down.
    John

  • Dynamic list of values in CR 2008 - request of login to database

    I am using CR2008 with VB2005. I created simple application which generate report on different SQL Server 2005 databases.
    Report uses OLE.DB connection to SQL Server, I pass logon information in VB using "SA" username and password. The same simple report works great on different databases with one exception: if parameter (dynamic list of values) is used in report it runs correctly only on database it was created (connection to this database is saved in report and can be seen in Database->Set Datasource Location). Changing connection to other databases in VB during runtime causes CR to ask for username and password (in standard parameter window). It looks, like Crystal have one connection for report and the other for dynamic list of values parameter. I pass connection information to report using ConnectionInfo(). I loop through alll tables in report and apply connection:            
    For Each crTable In crTables
                    crTableLogOnInfo = crTable.LogOnInfo
                    crTableLogOnInfo.ConnectionInfo = crConnectionInfo
                    crTable.ApplyLogOnInfo(crTableLogOnInfo)
    Next
    I tried to pass connection information also to parameter but I couldn't find such possibility.

    This is a known issue (Tracking number is ADAPT01333806.) and a note has been written,  unfortunately it is not yet published. Below is the note content, including a work-around / resolution. You may also want to try FP 2.3, see that helps. (I'll break this post into two as I'll loose the formatting if I don't.
    Reproducing the Issue
    Use Crystal Reports 2008 SP2 to create a report with dynamic parameter(s)
    Use the following code from the Crystal Reports SDK for VS .NET
    Dim crDatabase As Database
    Dim crTables As TablesDim crTable As Table
    Dim crTableLogOnInfo As TableLogOnInfo
    Dim crConnectionInfo As ConnectionInfo 
    crReportDocument.Load("<path>")
    crReportDocument.Refresh()
    crConnectionInfo = New ConnectionInfo()
    With crConnectionInfo   
         .ServerName = "<New Server Name>"   
          .Password = "<password>"
    End With
    crDatabase = crReportDocument,Database
    crTables = crDatabase.Tables
    For Each crTable In crTables     
         crTableLogOnInfo = crTable.LogOnInfo     
         crTableLogOnInfo.ConnectionInfo = crConnectionInfo     
         crTable.ApplyLogOnInfo(crTableLogOnInfo)
    Next
    CrystalReportViewer1.ReportSource = crReportDocument
    The above code works with Crystal Reports 2008 SP 1

  • Dynamic List of Values does not appear

    Hi All,
       I am re-creating this post as I have not received an answer on it.
    Hi All,
    I created report (using Crystal Reports 2008) in which one of my parameters displays a dynamic LOV from a field. When I run the report in Crystal, I get to select which values I want for record selection in my report.
    However, when I save this report and run it on the Crystal Server (2008) using infoview, I do not get the dynamic LOV. Rather, I have to manually type a value that I want to select.
    Why does the LOV's not work when I run it through Crystal Server? Another thing, when I access it from Crystal Server through Crystal Reports, I still lose the dynamic LOV option.
    How do I use parameters so that I can select from a dynamic list a values? It behaves normally in Crystal Reports 2008 but loses it's functionality on the Server.
    Thank you in advance.

    This just started happening to me as well, the reports I created (using standalone crystal reports 2008) contain dynamic parameters and suddenly they stopped working as intended in some reports.
    I noticed that when the datasource is a single table or a single view the cascading (nested) dynamic parameters and dropdowns are working fine, but when the datasource is two or more linked tables, the parameters prompt shows two empty text boxes instead of two dropdowns. I tried refreshing and verifying the database but nothing works. So until we find a real solution, we're basing all our reports on single views.
    This remains a serious problem because in some cases we don't have write access to the database to create views, and basically we're recreating all the reports that now suffer from this problem.
    Edited by: Talal Nehme on Jan 7, 2009 7:29 PM

  • Create dynamic list Wizard

    Hello,
    Been using the tool kit for a while perfectly, but just started getting this error from the 'Create dynamic list Wizard'
    Internal Error. Table Order:
    You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order) +1 AS kt_tor_max FROM section_cms' at line 1
    Basically as soon as you at sort list by order it throws up this error when you hit save, any ideas?

    Hi Alastair,
    "order" is one of MySQL´s so-called "reserved words" which you can´t use for table and column names -- please rename it to e.g. "order_ord" or whatever and try again.
    For further reference on what words are reserved in this context, please read this list:
    http://www.htmlite.com/mysql002a.php
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Join query in a dynamic list of values query

    I have a join query in a dynamic list of values query. The value does not return a text value, but rather the id value.
    Is it possible to use a join query in a dynamic list of values query?
    For example...in the below query, I expect to see ename in the drop down list, but I see class_emp_id.
    select b.ename d, a.class_emp_id r
    from class_emp a, emp b
    where a.class_cat_id = :CURR_CLASS_CAT_ID
    and a.emp_id = b.emp_id
    order by 1
    Thanks,
    Reid

    :CURR_CLASS_CAT_ID is a number datatype.
    I think the problem is with the ARF. Whenever I change the dynamic LOV query to exclude the :CURR_CLASS_CAT_ID (a passed in session variable), the drop down shows all the text names I am looking for; albeit, too many since I am excluding the :CURR_CLASS_CAT_ID.
    The page I am having the problem with is a popup that is called from a report link on another page. When I show the session variables on the popup page, it shows values for only 1 of the 3 session variables I am passing to this page.
    I am using the javascript:popUp2 syntax when I call the popup page from the report link.
    As I said previously, I am passing 3 parms and only the 1st parm is getting a value. Yes, there are values for all three parms in the record of the report.
    Is there a limit to the number of variables (itemNames) that can be passed to the popup using this method?

  • POPup LOV Dynamic List of values

    Hi All,
    I need to change the list of values of a popup Lov in my application depending on a checkbox.
    Like:
    If I the checkbox is checked by the user the list will come from Table A and if the checkbox is unchecked the the list needs to come from Table B.
    I need to bind this to the checkbox click event. But I don't know which option should I use to create this Dynamic action.
    Please help me out as Its urgent..... I got the deadline today..... :(
    Thanks in advance.....

    Solved with cascading feature.. Thanks All.

  • How to create a list of value using date?

    We need to create a list on a report. The list consists of date. I have tried several times, but no luck.

    Hi Charles,
    I guess you have a user-parameter in your report and you need to define the LoV for the user parameter, so that the user can select from the LoV. In such a case you get REP-0782 if the datatype of column does not match the LoV of the parameter. Eg, if you have a query like
    select * from employees where hire_date < :p_hire_date
    And you want to build an LoV for hire_date, do the following:
    1. Go to your user parameter > Property Inspector > Datatype > select "Date". If you select Character or Number, you will get REP-0782.
    2. Now double click List of Values, choose "Select Statement" and type something like
    select distinct hire_date from employees order by hire_date asc
    If you don't want to use a Select Statement to build the LoV, you can write a static list of values, and even in this case Step 2 above should avoid the error REP-0782.
    Navneet.

  • How to create dropwdown list box values and checkbox in screen painter.

    Hi Experts,
    I need to know the creation of dropdown list box values and the checkbox to use in screen painter.
    I have 3 values to insert as:-
    INR,USD,EUR
    if user selects INR/USD/EUR, then it will store into the table field.
    And also want to know the checkbox functioning in screen painter, i.e. what should we write in PBO/PAI.
    I have found some sites to get knowledge, but didnot found anything that relates to my questions.
    So please help me!
    Thanks,
    Deepanshu

    Hi,
    For dropdown list box in Screen create a input field and choose Drop down by index.
    To populate the values write the logic in PBO as follows
    TYPE-POOLS : VRM
    DATA : field_id TYPE VRM_ID ,
                values  TYPE VRM_VALUES,
                 value   LIKE LINE OF values.
    PROCESS BEFORE OUTPUT
    MODULE list_fill_100
    MODULE list_fill_100 OUTPUT
    SELECT f1 f2 f3  FROM tab WHERE condition.
    value-KEY = f1.
    value-TEXT = f2
    APPEND value TO VALUES
    CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                id     = 'i/o screen field'
                values = values.
    ENDMODULE.

  • Create Custom List Of Values in Universe

    Hi
    For those BW variables which appear as prompts in Webi reports, displays the List of values with both the Key and Text.
    But if we try to include a dimension object or a detail object in filter panel of a webi report, the list of values shows only either the key or text but not both.
    Some end users remember by key and some remember by text. In case there is a confusion in texts they cannot select by key nor vice versa.
    Also, just for getting the combination list of values in BO, an end user can't add a variable in SAP BW each time and refresh the universe to get the list of values.
    Is there a way or work around to meet such common customer requirement.
    Regards.
    Naresh

    Hi,
    right now you can not build list of values with 2 columns unless you create the variable in the BW query and then build the universe.
    Ingo

  • How to create dynamic list element in Site Studio designer?

    Hi all,
    I have installed the Site Studio Designer(10gR4).The dynamic list element that i have added in the contributor region executes a query to search and display all the files in a particular folder.In the contributor mode when i try to add/edit the dynamic list element it gives an error saying :
    Unable to perform the action due to the following reasons:
    [+] Unable to retrieve search results. Unable to retrieve search results. Unable to create result set for query 'SELECT IdcColl2.dID, dDocName, dDocTitle, dDocType, dRevisionID, dSecurityGroup, dDocAuthor, dDocAccount, dRevLabel, dFormat, dOriginalName, dExtension, dWebExtension, dInDate, dOutDate, dCreateDate, dPublishType, dRendition1, dRendition2, VaultFileSize, WebFileSize, URL, dFullTextFormat, dFullTextCharset, DocMeta.* FROM IdcColl2, DocMeta WHERE IdcColl2.dID=DocMeta.dID AND (((((( xCollectionID >= 14 AND xCollectionID <= 14 ) AND NOT ( (CONTAINS(xDontShowInListsForWebsites, '{DIPP_Sample}') > 0) )))))) ORDER BY dDocTitle desc'. ORA-20000: Oracle Text error: DRG-10599: column is not indexed
    I have enabled the full-text search on the content server and also included xWebsites and xWebsiteObjectType columns to be full indexed in the Zone Fields Configuration.Is there any other setting to be done?Please help.
    Thanks,
    nithya

    Hi
    Include the xDontShowInListsForWebsites also from the zone filed and then update it.Then test it out.
    Hope it helps
    Srinath

  • Dynamic List of Values in HTML Portlet

    I need to create a dynamic lov that selects the emp name and id from the emp table. This needs to be placed in a HTML portlet. I tried creating a LOV from the applications in portal but I think it needs to be tied to a form/report. I tried creating manually (code below) but it doesn't seem to grab the info from the cursor.
    Any ideas on how to do this or what is wrong with the code?
    <table width="145" border="0" cellspacing="0" cellpadding="4">
    <tr><td><b><FONT class="PortletText1"> View Child Information:</font></b>
    <table width="135" border="0" cellspacing="0" cellpadding="1">
    <form method="post" action="../utilities/switchschools.asp?ci=yy" name="childInfo">
    <tr>
    <td align="left" valign="bottom"><!-- Width set for sake of nav bar. -->
    <select name="student" style="width:137px" onChange="SubmitChildList()">
    <ORACLE>
    declare
    CURSOR get_emp IS
    select A.ename empname, A.empno id
    from emp
    order by 1;
    begin
    FOR emp_loop in get_emp LOOP
    htp.p('<option value= ' || emp_loop.id || '>';
    htp.p(emp_loop.empname || '</option>';
    END LOOP;
    end;
    </ORACLE>
    </select>
    </td>
    <td align="right" valign="bottom">
    <input type="image" title="Go" name="go" id="go" src="/images/go.gif" width="22" height="16" border="0" alt="Go" onclick="return childCheck();">
    </td>
    </tr>
    </form>
    </table>
    </td></tr>
    </table>

    Hi,
    You could make use of the application build tools avail .You could create a LOV based on the query and then use if while creating a form.You also create dynamic lovs within oracle form.
    or you could create a dynamic page with the lov and write a javascript function which on change of the lov would be redirected to some page.
    Thanks,
    Anu

  • Create dynamic list (DHTML list) with parent child

    Hi,
    I am new to APEX.
    I have manually created DHTML list using lists in APEX. I want to create it dynamically using tables.
    I tried but not worked for me.
    i choose DHTML list because i want it in (+) sign when click on it all sub list entries should be displayed
    and also wanted to create something like when user click on one particular sub entry it should be saved in database
    with other fields of table.
    Was just wondering if any one came across this sort of query or design.
    Thanks in Advance
    Regards,
    Digisha

    >>
    plz help me to make this page work with ajax
    >>
    the form page you mean, right ? well, even if I could provide
    a solution
    (ajax respectively the CS3 spry stuff is rather new to me right
    now), this wouldn´t make sense to the form page anyway,
    because, after performing an insert/update/delete transaction, ADDT
    will always redirect to another page
    (your list probably) you specified when setting up the form.
    ADDT lists and forms are by default separated, and there is
    no mechanism provided to have both functionalities available on the
    same page -- it´s that what you meant ?

  • Creating Dynamic Lists

    Hello All,
    Does anybody know of a script that will allow me to add new Textfield instances that are populated with Data from another Textfield that can also be removed?  I've been racking by brains trying to figure out how to do this but whatever instance I create that contains data in it is automatically overwritten with any new instances with data that I create.
    Thanks for any help!

    Your assumption might not be coreect.
    You can add an instance and still display value in the newly added field at the same time.
    For example
         If you have a subform "Subform1" and inside the subform you have "TextField1". You want to populate the value of the TextField1 from TextField2.
         For Subform1, you set the "Repeat Subform for Each Data Item".
         Now you are adding new instance of Subform1 and want to display TextField1 with TextField2 data.
         The below code you can place in the click event of button while adding the new Instance.
         Subform1.instanceManager.addInstance(1);
         var intIndex = Subform1.instanceManager.count-1;
         //Resolve the Subform1 to the recently added instance and display the value.
         xfa.resolveNode("Subform1[" + intIndex + "]").TextField1.rawValue = TextField2.rawValue;
         The key here is to resolve the node to the recently added instance.
    Hope this gives an idea.
    Thanks
    Srini
    Note: TextField1 and TextField2 both are set to Normal/ None binding in the above example.

  • Creating dynamic lists from db resultset

    Hello, Not sure if this is the right forum but I am hoping someone can point me in the right direction.
    I have tried to set up a popup menu with JRadioButtonMenuItem (s) or a JTable from the resultset and then select from the list as input to the next db query (OracleSE db).
    What I cannot do is retrieve the value.
    With "JRadio" I cannot use 'this' on the button in the listener.
    With JTable I cannot extend the object.
    If there are examples then I would be grateful for leads, none of what I have seen goes this deep.
    Thanks,
    Ralph.
    Edited by: user548412 on Feb 21, 2012 6:05 PM

    It would be helpful if you posted your code inside the tags so it became readable. Please do that next time.
    And also: what's your question about that code? I don't see any JDBC code in there; did you have a JDBC question of some kind? If so, what is it?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • After install update 10.7.4 my macbook pro doesn't boot

    I have late 2011 13"Macbook Pro with Mac OS X Lion 10.7.2 After i update it to 10.7.4 it restarted and shutdown , i open it again only apple logo appeared for 1 min then it shutdown . I need help to solve this problem.

  • Trouble with iMac G5 screen resolution

    My wife has an iMac G5, running Snow Leopard; ATI Radeon HD 4670 video. She was downloading pictures from her Nikon D60 and looked at one of the pictures, when suddenly the screen resolution changed. I restored the default .icc profile from Time Mach

  • PO mass maintenance: additional table/fields for EKET

    Dear Friends, I am finding a way to help my users with mass po maintenance. They would like to use t-code: memasspo to change the delivery dates in multiple POs. But I found this t-code only support two tables: massekko and massekpo and Function modu

  • Nokia 6300 Battery Discharges too early very fast

    I have bought a Nokia 6300 from Karachi Pakistan. The battery discharges very faster than the normal battery discharge time under normal temperature n conditions. Need solutions as soon as possbile. EDIT: removed personal informationMessage Edited by

  • OCA dump

    HI, Anyone having OCA 1Z0-051 dump? please share it.