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

Similar Messages

  • 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

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

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

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

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

  • Oracle tag in HTML Portlet

    I am trying to create a dynamic List of Values (using a Cursor) that is used in a HTML portlet. It does not seem to work. Is this possible within the ORACLE tags?
    <select name="student" style="width:137px" onChange="SubmitChildList()">
    <ORACLE>
    declare
    CURSOR get_students IS
    select A.first_name || ' ' || A.middle_name || ' ' || A.last_name stu_name, A.student_id id
    from sbase
    order by 1;
    begin
    FOR stu_loop in get_students LOOP
    htp.p('<OPTION>' || stu_loop.id);
    END LOOP;
    end;
    </ORACLE>
                                  </select>
                                  </td>

    I had the form tag already (didn't include in the questions). It doesn't seem to execute the cursor and populate the emps in the list box.
    Here is the complete HTML portlet.
              <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>

  • How to use List of values with bind variables on item?

    Hi
    I made a dynamic list of values with a bind variable as a provider. I tried to run the list, and it worked fine - i filled inn the bind variable when asked for, and i got a list of values to choose from.
    I would very much like to use this list of values as an attribute on a custom made item. My wish is that when creating the item you someplace write the bind variable, and the list will then turn up as wanted. (I could f.ex add the variable as an attribute on the page type)
    I tried to create a custom attribute and assign the list of values to it. It created an error when I then tried to add the attribute to the item.
    Does anyone have any idea on how to solve this?
    Any help appreciated!
    Maja R. Anjer

    Hi
    i am getting error as
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT meaning, lookup_code,lookup_type
    FROM fnd_lookup_values
    WHERE view_application_id = 200) QRSLT WHERE (lookup_type=:1 AND ( UPPER(MEANING) like :2 AND (MEANING like :3 OR MEANING like :4 OR MEANING like :5 OR MEANING like :6)))
    Thanks
    Mateti

  • Dynamic List of Checkboxes and their Default Values

    Hello,
    I have spent more than five hours feebly attempting to figure out how to make a dynamic list of checkboxes (using an LOV) adhere to the values in the database which those checkboxes represent. The LOV itself works; I can get a nice list of checkboxes with the appropriate names, but I can't get HTML DB to check the boxes that have a value of 'Y' in the database. The code for my LOV follows:
    SELECT mesg_name n, mesg_id r
    FROM notifications
    WHERE mesg_id = (SELECT mesg_id
                      FROM subscriptions
                      WHERE upper(network_id) = upper(:APP_USER))Since this is a dynamic list of checkboxes, I obviously cannot use the "Label" property to set the labels of each checkbox. That is what n is in the query above. r is the unique ID of the message (a varchar2) that I will need to pass back to the program after the page is submitted by the user for processing. I cannot take up the value field of the checkbox with a "Y" or something as equally vague. The ID of the subscription that the user is subscribing to or unsubscribing to must be passed back to the program so the appropriate modifications to the database table can be made.
    I would most appreciate it if anyone could lend assistance.
    Thank you,
    Marc Weil

    Marc,
    I think I see what you're trying to do. You'll have to separate process that renders the LOV as a series of check boxes from the process that sets the checked values for each user.
    Before the LOV is rendered on a page, make sure you set the session state value of the LOV item to a colon separated set of IDs based on your query:
    SELECT mesg_id
    FROM subscriptions
    WHERE upper(network_id) = upper(:APP_USER)
    If you have trouble, let me know, I'll try to come up with an example.
    Sergio

  • Dynamic Actions & Cascading List of Values (Exception thrown and not caught

    I am having a really strange issue within my Apex 4.0 environment where I am trying to build dynamic actions and cascading list of values.
    I am trying to develop new functionality in an existing application, (original application developed using HTMLdb 1.6 and gradually updated to Apex 4.0.1), to add a dynamic action that sets a value of another field, using SQL. The dynamic action is failing with 'Exception thrown and not caught - jquery-1.4.2.min.js Line: 28 Char: 162'. However, when I create a new application within the same workspace and develop the same functionality is works without a problem.
    I have ensured the templates for each page/region are an exact copy of each other.
    <b>When I run the application in Firebug I get the following information:</b>
    Date     Fri, 31 Dec 2010 14:20:03 GMT
    Server     Oracle-Application-Server-11g
    X-DB-Content-length     87
    Set-Cookie     HTMLDB_IDLE_SESSION=31-DEC-2010 23:20:03;path=/
    Content-Length     87
    Keep-Alive     timeout=5, max=99
    Connection     Keep-Alive
    Content-Type     text/html; charset=UTF-8
    Content-Language     en
    <b>For the application that is working I get slightly different response headers.</b>
    Date     Fri, 31 Dec 2010 14:20:37 GMT
    Server     Oracle-Application-Server-11g
    Cache-Control     no-cache
    Pragma     no-cache
    X-DB-Content-length     14
    Content-Length     14
    Keep-Alive     timeout=5, max=94
    Connection     Keep-Alive
    Content-Type     application/json
    Content-Language     en
    <b>Notice the Content-Type for the version that doesn't work is using "text/html", while the working version uses "application/json"
    Firebug also provides the following error:</b>
    uncaught exception: Invalid JSON: Content-type: application/json Cache-Control: no-cache Pragma: no-cache {"value":"1"}
    <b>Does anyone have any idea what is going on??
    Thanks.
    Jon</b>

    Patrick,
    Thanks my session verify function was causing the problem and I have removed it temporarily from my authentication scheme.
    I am using the "check_timeout" function that was developed a number of years ago as part of a "How To" section in the old HTMLdb days. I knew there was an issue with this routine as the newer versions of the browsers handle cookies differently and I was going to redevelop it at some point. Do you know which part of the function causes the issue?
    Many Thanks,
    Jon
    FUNCTION check_timeout
    RETURN BOOLEAN
    AS
    l_session_expire VARCHAR2(256) := NULL;
    l_cookie_exists BOOLEAN := TRUE;
    BEGIN
    IF htmldb_custom_auth.get_user IS NULL THEN
    RETURN TRUE;
    END IF;
    BEGIN
    l_session_expire := owa_cookie.get('HTMLDB_IDLE_SESSION').vals(1);
    EXCEPTION WHEN NO_DATA_FOUND THEN
    l_cookie_exists := FALSE; -- no cookie set, assume first page visit after login
    END;
    IF l_cookie_exists
    AND TO_DATE(l_session_expire,'DD-MON-YYYY HH24:MI:SS') < SYSDATE
    THEN
    wwv_flow.g_unrecoverable_error := TRUE;
    owa_util.redirect_url('f?p='||'500:101'); -- Note hard-coded login application and page ID 500:101
    RETURN FALSE;
    ELSIF NOT g_cookie_already_sent THEN
    owa_util.mime_header('text/html', FALSE);
    owa_cookie.send ( NAME => 'HTMLDB_IDLE_SESSION',
    VALUE => TO_CHAR(SYSDATE+(c_max_idle_minutes/1440),'DD-MON-YYYY HH24:MI:SS'),
    expires => NULL,
    path => '/',
    domain => NULL );
    owa_util.http_header_close;
    g_cookie_already_sent := TRUE;
    END IF;
    RETURN TRUE;
    END check_timeout;

  • How to get the list of values for a dynamic parameter using Web Services SDK?

    <p>I am struggling to get the list of values for a dynamic parameter of a report.</p><p>I am using Java Web Services SDK ... I tried to use PromptInfo.getLOV().getValues() method but it does not work.</p><p>First of all ... is this possible (to get the list of values for a dynamic param) using Web Services?</p><p>Second of all, if this is possible, how should I do it ... it seems it works fine when running the report from CMC. It asks for DB logon info and after that it provides a list of values.</p><p>Thx </p>

    <p>Your assumption is correct. We are trying to get the LOVs from the Crystal Report. I was not aware that this is not supported by Web Services SDK.</p><p>We used Web Services SDK to integrated the Crystal Reports in our web application. We implemented some basic actions for reports: schedule, view instances, run ad-hoc reports.</p><p>We encountered this problem when trying to run/schedule reports with dynamic parameters (a list of values from DB). We were unable to get the LOVs.</p><p>Please let me know if you can think of an alternative to look at.</p><p>Thanks a lot,</p><p>Catalin </p>

  • How can we use C# to read dynamic parameter's value list from .rpt?

    I'm using Cystal Report 2008. We know starting from CR XI we can create dynamic parameters, the list of items of this kind of parameter are fetching from database. So in general the SQLs to get the list of values for dynamic parameters are stored in the .rpt.
    In Crystal Report Designer, if I preview a report with dynamic parameters, it will first query the database and then show the input dialog with list of values from database for user to choose. My question is can we implement the same thing by our C# code? I'm planning to use C# code to read this dynamic parameter's value list from .rpt and render them on the web page. Then pass back the user selected values to the .rpt to run the report after user make the choice. I didn't find any APIs can do this. Is it possible?
    Thanks in advance!!

    Hi,
    Can you explain a bit in detail, I have similar scenario. I am using the following code but not getting the Column name for dynamic parameter list.
    foreach (ParameterFieldDefinition prm
                              in reportDocument.DataDefinition.ParameterFields)
                    try
                        string vParameterFieldName;                   
                        *vParameterFieldName = prm.ParameterFieldName.ToString();*
    Shakeel

  • What is the maximum number of records in a dynamic parameter list of values?

    In Crystal Reports Developer, I am attempting to add a dynamic parameter from a view.  The view has 6773 total records.  The field used for the parameter has 1819 distinct values, none of which are null.
    I have the parameter set to allow multiple values, and I have added
    field is equal to parameter
    in the select expert.
    However, when I refresh the report and tell it to prompt for new parameters, the list of values does not contain all the values, so about half of the records are dropped.
    Is there a way I can guarantee that all 1819 (or an unlimited number) records show up in the List of Values?

    This has been answered. Search forums for the results

  • How to set dynamic parameter in list of values in parameter property

    Hi,
    I am using cr4e-all-in-one-win_2.0.1version.I have created .rpt file in that how to set dynamic parameters(from database) in list of values parameter property
    Regards,
    amol

    Hi,
    I am using cr4e-all-in-one-win_2.0.1version.I have created .rpt file in that how to set dynamic parameters(from database) in list of values parameter property
    Regards,
    amol

Maybe you are looking for

  • Problem getting results with no unique key in a joined query

    I created a descriptor to do a joined query, which generated a query in log as: Select t0.empID,t1.empID, t1.phone from Emp t0, Phone t1 where t0.empId=t1.empId and t0.empId=1001 When I run it, I got the result as: 1001,1001,9999999 1001,1001,9999999

  • Acrobat Reader 9.1 ActiveX control problems

    We have an application written in VB.NET 2005 which displays a PDF file using embedded ActiveX control from Acrobat Reader (using AcroPDF.dll). The code to open the file is very simple: Me.AxAcroPDF1.LoadFile(_path) The application was compiled on th

  • Why is the Photoshop font size extremely small for their navigation menus and tools?

    Why is the font size for the Photoshop Cloud navigation menus and tools displaying extremely small on my laptop? I can barely see them. The other Adobe Cloud applications don't display small.

  • QuickTime errors

    I received a reply regarding a question on an error I received while trying to download the new 7.1 Quicktime installer. The reply was helpful but I got another snag in trying to download. I saved the 7.1 to my computer and ran it from there and turn

  • How to publish only select pages of a website

    I have built multiple websites using iWeb, which I publish through MobileMe. Is there a way to publish the files from one of iWeb websites (or one page from one website for that matter) without iWeb and MobileMe publishing every updated file in iWeb?