LOV problems

Hello all. JDev 11.1.1.2.0 ADFBC
I use input text with LOV based on viewcriteria.
1st : How to change colums size in result table in LOV dialog?
2d: When i use sorting in the reslut table scrolldown with the mouse while dont work correctly.
Edited by: Victor_V_S on 20.01.2010 9:00

Hi Victor,
About the 1st issue, It is not possible to define the columns size on the LOVs popup. Also, it is not possible to define the stretching of the table columns.
We have created a workaround for the column size issue, it is a little bit tricky and difficult to explain, these are the basic steps:
1 - Create a Wrapper for the ListOfValuesModel
2 - Create a Wrapper for the TableModel
3 - Create a Wrapper for the ColumnDescriptor
4 - In the model property of af:inputListOfValues provide your wrapper
These elements are used by the LOV component to render the LOV's popup.
The ColumnDescriptor contains a "width" property that is allways set to 0. In the wrapper we set this propery and the LOV's table in the popup is resizing the column width cosidering this value.
I can not help you about the 2nd issue.
Regards,
Juanjo

Similar Messages

  • Jdev11g/adf/LOV problem

    Hi Frank and all,
    A LOV problem is here,
    i ve attached scrren shots and some code at following link,
    http://sites.google.com/site/mucuslu/index/adflovproblem-1
    thanks.
    Mucahid

    Anybody know why I get sometime this exception?
    Thanks

  • LOV problem : here is my code

    Hello all,
    I've been trawling through the forums trying to find a solution to this problem but with no success.
    I am trying to create an LOV for my application, the Activity_Plan_ObjectView1_Update page accesses the LOV (via LocationLOV.uix) which is meant to then update this page.
    Here is my code, the first page has the BC4J tag which opens the LocationLOV.uix page, I think the problem lies with how I'm trying to pass the parameter back to the Activity_Plan_ObjectView1_Update page :
    Activity_Plan_ObjectView1_Update :
    <?xml version="1.0" encoding="windows-1252" ?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:bc4j="http://xmlns.oracle.com/uix/bc4j" >
    <bc4j:registryDef>
    <bc4j:rootAppModuleDef name="Activity_Plan_ObjectView1AppModule"
    definition="uiXML.BC4J_PackageModule"
    releaseMode="stateful" >
    <bc4j:viewObjectDef name="Activity_Plan_ObjectView1" >
    <bc4j:rowDef name="UpdateActivity_Plan_ObjectView1" autoCreate="false" >
    <bc4j:propertyKey name="key" />
    </bc4j:rowDef>
    </bc4j:viewObjectDef>
    </bc4j:rootAppModuleDef>
    </bc4j:registryDef>
    <content>
    <try xmlns="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui" >
    <catch>
    <displayException />
    </catch>
    <contents>
    <switcher childName="default">
    <boundAttribute name="childName">
    <if>
    <comparison type="equals">
    <dataObject select="key" source="ctrl:page"/>
    <dataObject source="ui:null"/>
    </comparison>
    <fixed text="error"/>
    </if>
    </boundAttribute>
    <case name="error">
    <header text="Required page property 'key' missing. Cannot display page."/>
    </case>
    <case name="default">
    <pageLayout title="Activity Plan - Update" >
    <!-- Start of common pageLayout section. If you plan to expand this
    example application, consider using a UIT template to specify the common
    portions of your pageLayout -->
    <productBranding>
    <image source="tools_collage.gif" shortDesc="JDeveloper Product Logo"/>
    </productBranding>
    <corporateBranding>
    <image source="oraclelogo.gif" shortDesc="Oracle Logo"/>
    </corporateBranding>
    <globalButtons>
    <globalButtonBar>
    <contents>
    <globalButton source="www_home.gif"
    text="Home"
    destination="Main.uix" />
    <globalButton source="www_contact.gif"
    text="Contact Us"
    destination="http://www.oracle.com" />
    <globalButton source="www_help.gif"
    text="Help"
    destination="http://otn.oracle.com/products/jdev/content.html" />
    </contents>
    </globalButtonBar>
    </globalButtons>
    <copyright>Copyright 2002 Oracle Corporation. All Rights Reserved.</copyright>
    <privacy>
    <link text="Privacy Statement" destination="http://www.oracle.com"/>
    </privacy>
    <!-- End of common pageLayout section -->
    <contents>
    <!-- this will contain any validation errors after form
    submission -->
    <messageBox automatic="true" />
    <form name="updateForm" method="POST" >
    <contents>
    <!-- we cannot implicitly determine that events
    will be triggered because submit buttons are
    outside the form scope, so add the placeholder
    explicitly -->
    <formParameter name="event" />
    <!-- layout the fields in two columns -->
    <tableLayout>
    <contents>
    <bc4j:rootAppModuleScope name="Activity_Plan_ObjectView1AppModule" >
    <contents>
    <bc4j:viewObjectScope name="Activity_Plan_ObjectView1" >
    <contents>
    <bc4j:rowScope name="UpdateActivity_Plan_ObjectView1" >
    <contents>
    <bc4j:messageInput attrName="PlanId" prompt="Plan ID" />
    <bc4j:messageInput attrName="PlanType" prompt="Plan Type"/>
    <bc4j:messageInput attrName="PlanTypeCode" />
    <bc4j:messageInput attrName="PlanDesc" />
    <bc4j:messageInput attrName="PlanStart" />
    <bc4j:messageInput attrName="PlanFinish" />
    <bc4j:messageInput attrName="ActivityApproved" />
    <bc4j:messageInput attrName="CreatedBy" />
    <bc4j:messageLovField attrName="DeployToLocation"
    onClick="openWindow(top,
    'LocationLOV.uix',
    'lovWindow',
    {width:400, height:450},
    true,
    'dialog')" />
    </contents>
    </bc4j:rowScope>
    </contents>
    </bc4j:viewObjectScope>
    </contents>
    </bc4j:rootAppModuleScope>
    </contents>
    </tableLayout>
    </contents>
    </form>
    </contents>
    <contentFooter>
    <!-- place a row of buttons below the content -->
    <pageButtonBar>
    <contents>
    <!-- the cancel button performs a transaction rollback -->
    <button text="Cancel" ctrl:event="cancel" />
    <!-- the update button submits the user-entered
    form data -->
    <submitButton text="Update" formName="updateForm"
    ctrl:event="apply" />
    </contents>
    </pageButtonBar>
    </contentFooter>
    </pageLayout>
    </case>
    </switcher>
    </contents>
    </try>
    </content>
    <handlers>
    <event name="cancel" >
    <!-- using the ApplicationModule causes it to be checked out from the
    ApplicationPool. It is released using stateful mode. -->
    <bc4j:findRootAppModule name="Activity_Plan_ObjectView1AppModule" >
    <!-- rollback the current transaction -->
    <bc4j:rollback/>
    <!-- forward to the summary page -->
    <ctrl:go name="Activity_Plan_ObjectView1_View" redirect="true" />
    </bc4j:findRootAppModule>
    </event>
    <event name="apply" >
    <!-- using the ApplicationModule causes it to be checked out from the
    ApplicationPool. It is released using stateful mode. -->
    <bc4j:findRootAppModule name="Activity_Plan_ObjectView1AppModule" >
    <!-- establish the ViewObject scope -->
    <bc4j:findViewObject name="Activity_Plan_ObjectView1" >
    <!-- find the row by key, falling back on a new default
    row if the key is not found -->
    <bc4j:findRow name="UpdateActivity_Plan_ObjectView1" >
    <!-- set each attribute explicitly -->
    <bc4j:setAttribute name="PlanId" />
    <bc4j:setAttribute name="PlanType" />
    <bc4j:setAttribute name="PlanTypeCode" />
    <bc4j:setAttribute name="PlanDesc" />
    <bc4j:setAttribute name="PlanStart" />
    <bc4j:setAttribute name="PlanFinish" />
    <bc4j:setAttribute name="ActivityApproved" />
    <bc4j:setAttribute name="CreatedBy" />
    <bc4j:setAttribute name="DeployToLocation" />
    <!-- commit the transaction -->
    <bc4j:commit/>
    <bc4j:executeQuery/>
    <!-- forward to the summary page -->
    <ctrl:go name="Activity_Plan_ObjectView1_View" redirect="true" />
    </bc4j:findRow>
    </bc4j:findViewObject>
    </bc4j:findRootAppModule>
    </event>
    </handlers>
    </page>
    LocationLOV.uix :
    <?xml version="1.0" encoding="windows-1252" ?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:ui="http://xmlns.oracle.com/uix/ui"
    xmlns:bc4j="http://xmlns.oracle.com/uix/bc4j" >
    <bc4j:registryDef>
    <bc4j:rootAppModuleDef name="LocationView1AppModule"
    definition="uiXML.BC4J_PackageModule"
    releaseMode="stateful" >
    <bc4j:viewObjectDef name="LocationView1"
    rangeSize="5" />
    </bc4j:rootAppModuleDef>
    </bc4j:registryDef>
    <content>
    <try xmlns="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui" >
    <catch>
    <displayException />
    </catch>
    <contents>
    <pageLayout xmlns="http://xmlns.oracle.com/uix/ui"
    xmlns:data="http://xmlns.oracle.com/uix/ui"
    title="Location LOV" >
    <!-- Start of common pageLayout section. If you plan to expand this
    example application, consider using a UIT template to specify the common
    portions of your pageLayout -->
    <!-- End of common pageLayout section -->
    <contents>
    <!-- this will contain any validation errors after form
    submission -->
    <messageBox automatic="true" />
    <bc4j:rootAppModuleScope name="LocationView1AppModule" >
    <contents>
    <header text="Search" >
    <contents>
    <form name="search" method="POST" >
    <contents>
    <inlineMessage prompt="Search" vAlign="middle" >
    <contents>
    <flowLayout>
    <contents>
    <choice name="attrName"
    data:selectedValue="attrName@ctrl:page"
    shortDesc="Search Column">
    <contents>
    <option text="LoCode" value="LoCode" />
    </contents>
    </choice>
    <textInput name="attrValue" columns="20"
    data:text="attrValue@ctrl:page"
    shortDesc="Search"/>
    </contents>
    </flowLayout>
    </contents>
    <end>
    <submitButton text="Go" ctrl:event="search" />
    </end>
    </inlineMessage>
    </contents>
    </form>
    </contents>
    </header>
    <header text="Results" >
    <contents>
    <form name="viewForm" method="POST" >
    <contents>
    <tableLayout>
    <contents>
    <bc4j:viewObjectScope name="LocationView1" >
    <contents>
    <bc4j:table name="viewTable" width="20%"
    alternateText="No rows found">
    <tableSelection>
    <!-- single selection for each row in the table -->
    <singleSelection selectedIndex="0" shortDesc="Select Row">
    <contents>
    <!-- the update button causes the currently selected
    row to be sent to the update page -->
    <!-- the delete button causes the currently selected
    row to be removed -->
    </contents>
    </singleSelection>
    </tableSelection>
    <!-- the key identifying the current row in the table -->
    <bc4j:keyStamp>
    <bc4j:rowKey name="key" />
    </bc4j:keyStamp>
    <contents>
    <!-- A bc4j:column element is added for each attribute
    in the ViewObject. -->
    <bc4j:column attrName="LoCode">
    <columnHeader>
    <bc4j:sortableHeader sortable="no" text="Location Code" />
    </columnHeader>
    <contents>
    <bc4j:input readOnly="true"/>
    </contents>
    </bc4j:column>
    </contents>
    </bc4j:table>
    </contents>
    </bc4j:viewObjectScope>
    </contents>
    </tableLayout>
    </contents>
    </form>
    </contents>
    </header>
    </contents>
    </bc4j:rootAppModuleScope>
    </contents>
    <contentFooter>
    <!-- the create button redirects to the create page -->
    <button text="Select" ctrl:event="select" />
    </contentFooter>
    </pageLayout>
    </contents>
    </try>
    </content>
    <handlers>
    <event name="search" >
    <!-- using the ApplicationModule causes it to be checked out from the
    ApplicationPool. It is released using stateful mode. -->
    <bc4j:findRootAppModule name="LocationView1AppModule" >
    <!-- establish the ViewObject scope -->
    <bc4j:findViewObject name="LocationView1" >
    <!-- search for the view criteria -->
    <bc4j:findByExample>
    <bc4j:exampleRow ignoreCase="true" >
    <bc4j:exampleAttribute>
    <bc4j:nameBinding><bc4j:parameter name="attrName" /></bc4j:nameBinding>
    <bc4j:valueBinding><bc4j:parameter name="attrValue" /></bc4j:valueBinding>
    </bc4j:exampleAttribute>
    </bc4j:exampleRow>
    </bc4j:findByExample>
    <bc4j:executeQuery/>
    <!-- store the current search criteria as page properties -->
    <bc4j:setPageProperty name="attrName" >
    <bc4j:parameter name="attrName" />
    </bc4j:setPageProperty>
    <bc4j:setPageProperty name="attrValue" >
    <bc4j:parameter name="attrValue" />
    </bc4j:setPageProperty>
    </bc4j:findViewObject>
    </bc4j:findRootAppModule>
    </event>
    <event name="sort" source="viewTable" >
    <!-- using the ApplicationModule causes it to be checked out from the
    ApplicationPool. It is released using stateful mode. -->
    <bc4j:findRootAppModule name="LocationView1AppModule" >
    <!-- establish the ViewObject scope -->
    <bc4j:findViewObject name="LocationView1" >
    <!-- sort by the submitted attribute name -->
    <bc4j:sort/>
    </bc4j:findViewObject>
    </bc4j:findRootAppModule>
    </event>
    <event name="goto" source="viewTable" >
    <!-- using the ApplicationModule causes it to be checked out from the
    ApplicationPool. It is released using stateful mode. -->
    <bc4j:findRootAppModule name="LocationView1AppModule" >
    <!-- establish the ViewObject scope -->
    <bc4j:findViewObject name="LocationView1" >
    <!-- navigate to the submitted range -->
    <bc4j:goto/>
    </bc4j:findViewObject>
    </bc4j:findRootAppModule>
    </event>
    <event name="select" >
    <ctrl:go name="Activity_Plan_ObjectView1_Update" redirect="false" >
    <ctrl:property name="key">
    <ctrl:selection name="viewTable" key="key" />
    </ctrl:property>
    </ctrl:go>
    </event>
    </handlers>
    </page>
    My apologies for such a huge post, hopefully any solutions will serve as some sort of tutorial for others stuck with this problem.
    I thank the kind souls in advance for any solutions they offer.
    Greg

    That's a bit too much code to look into, I'm afraid.
    Perhaps you could enable UIX debug mode (see the UIX
    Configuration chapter) and see the servlet log to
    find out what parameters are being sent back to
    the server.

  • LOV problem after deployment

    Hi,
    I have a weird problem. I just deployed my project and all went fine. However, when testing it, one ( and only one ) panel had its LOV buttons not working.
    When selecting one of those LOV buttons, the following error appears:
    "JBO-26080: Error while selecting entity for CtCatalogItem"
    The error seems to be with the business component table, (not the panel itself) as when I deleted the business component and recreated it, it worked fine.
    When trying to redeploy it,however, the error occured again.( It must be modifying or deleting a file/business component...)
    (I tried deleting the class files and rebuilding the project...)
    Thanks in advance for any help
    Aymeric
    null

    problem solved ! copied the cabo and webapp file in the \j2ee\home\default-web-app
    OC4J directory on the AIX. do not know if this is the finest solution, but ..anyway it works now
    Markus

  • Dynamic LOV problem in Master Detail form in 3.0

    I am using Master detail layout for my app, In detail there is a LOV depending on the value of one of the items in master.
    LOV statement is like this
    select col1 a,col1 2
    from test_tab
    where col2 = :P2_VAL ;
    Note: :P2_VAL is the value of the one of the master table column value
    This code is working fine in version 2.1 .
    After I Upgraded to 3.0 , it is not working .
    If I put the hardcoded value like col2 = 'TEST' , it works for those values. Any suggestions for this problem is greatly appreciated.

    I solved it by commenting the Go_Item(startitm); line in the clear_all_records program unit which is generated by oracle forms.
    as shown below.
    IF :System.Cursor_Item <> startitm THEN
    --Go_Item(startitm);
    Check_Package_Failure;
    END IF;

  • Chart based on Select list with submit Lov problem

    Hi,
    I have one page with interactive report showing username with links, date and
    database actions.
    Another page contains one region having flash chart based on select list with submit Lov.
    The lov is created by dynamic query.
    Every time when i click the 1st page report link, the 2nd page lov is populating the value automatically. But the problem is chart displays NO DATA FOUND message though the LOV has many values.
    I don't want to display any null values so set to NO for LOV
    I tried to write Before header computation (PL/SQL Function Body) to set the lov value, but the query is displayed as such.
    I don't want to assign any static default value also as the values are dynamic for every link.
    The following is my Before header computation of Select list with submit (Item name is p11_schema). (PLSQL Function Body)
    begin
    if :p11_schema is null then
    return 'select distinct owner schema1, owner schema2 from auditing
    where access_date=' || :p11_access_date
    || ' and username=' || :p11_username
    || ' order by owner';
    end if;
    end;
    This is my chart query.
    select null link, obj_name label, sum(sel_count) "Select", sum(ins_count) "Insert", sum(upd_count) "Update", sum(del_count) "Delete" from auditing
    where username=:p11_username
    and access_date=:p11_access_date
    and owner=NVL(:p11_schema, OWNER)
    group by owner, obj_name
    Example: If there more than one records in the lov, the graph should display the 1st record. When i select another record, the chart accordingly display the selected values. But inially it should not display "NO DATA FOUND" message.
    I tried using all the combinations of computation type for the lov, SQL query ( I could not use if conditon then), PLSQL expression, PLSQL function body. But it does not work out.
    Can anyone please help me out.
    Thanks.

    Hi Scott,
    Thanks for your reply.
    I found out the solution for this problem as below.
    But i did it in different way to tackle the dynamic query wich returns more than one record using rownum always the 1st record when it is empty instead of assigning constant (static) value like '1'. And i am returning LOV itself for both null or not null condition as below.
    Declare
    q varchar2(4000);
    begin
    if :p11_schema is null then
    q:='select distinct owner schema from auditing';
    q:=q || ' where username=:p11_username ';
    q:=q || ' and access_date=:p11_access_date ';
    q:=q || ' and rownum<2 order by owner';
    Execute immediate q into :p11_schema USING :p11_username, :p11_access_date;
    end if;
    return :P11_SCHEMA;
    end;
    Thanks.

  • LOV Problem - Top Urgent !!!!!

    A table contains of 4 composite primary fields, one of the
    primary field is a date field.
    A record group created at design time with the help of above
    table. This record group is used for LOV, hence in record group
    query, the select statement has all the four fields. The date
    field is converted to CHAR as to display as DD/MM/YYYY,
    otherwise it will display as DD-MON-YY.
    A LOV is created based on the above record group. In column
    mapping , the return item of the date field is date type whereas
    in column names the date field is CHAR ( as per record group).
    This gives a problem, as return item cannot accept a character
    value when its own type is Date.
    I have also tried to use to_date(to_char
    (field_name,FDD/MM/YYYYF),FDD/MM/YYYYF) in my record group query
    but it displays the date as DD-MON-YY.
    My problem is that I have to display the date field in LOV List
    as DD/MM/YYYY and accept it as date field because return type is
    date type field.
    null

    Hello Shamsad,
    Pls. try this. I think it will help you.
    1. Open registry editor ( Run regedit)
    2. Go to the following folder in registry
    /HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE
    3. Add a new string NLS_DATE_FORMAT and assign value
    'DD-MON-RRRR'
    4. close the registry editor
    5. And Now try your LOV.
    Pls. don't change DATE field to CHAR in record group now it will
    display as DD-MON-YYYY.
    For any clearification write to me.
    Thanks
    Pradeep
    Shamsad Khan (guest) wrote:
    : A table contains of 4 composite primary fields, one of the
    : primary field is a date field.
    : A record group created at design time with the help of above
    : table. This record group is used for LOV, hence in record group
    : query, the select statement has all the four fields. The date
    : field is converted to CHAR as to display as DD/MM/YYYY,
    : otherwise it will display as DD-MON-YY.
    : A LOV is created based on the above record group. In column
    : mapping , the return item of the date field is date type
    whereas
    : in column names the date field is CHAR ( as per record group).
    : This gives a problem, as return item cannot accept a character
    : value when its own type is Date.
    : I have also tried to use to_date(to_char
    : (field_name,FDD/MM/YYYYF),FDD/MM/YYYYF) in my record group
    query
    : but it displays the date as DD-MON-YY.
    : My problem is that I have to display the date field in LOV List
    : as DD/MM/YYYY and accept it as date field because return type
    is
    : date type field.
    null

  • Report region columns constrained to 4000 chars?   Hitting LOV problems.

    Hi all,
    I've hit a problem that I'm hoping will have a simple answer.
    Quick overview of issue:
    APEX 3.01 application running against a 10gR2 DB.
    We have an LOV defined that works just fine on various forms but in report regions where the LOV is available via a drop down column value in the report region HTML table we are hitting the error:
    report error:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Some judicious debugging reveals that this seems to be because we are trying to load in more than 4000 characters into the LOV drop down in the report regions HTML table column (it's a moderately large LOV)..
    This suggests that the default column type in a report region HTML table is VARCHAR2 and thus that there is a default 4000 character limit on any such column values, would that be a fair assumption? I know that the actual report row size always used to be limited to a total of 32k but this limit is a new one to me.
    If there is such a limit, does anyone have any suggestions on how to work-around it i.e. is it possible to redefine report region column values to be other datatypes/dimensions or should we be looking at using an alternative such as a pop-up instead?
    Many thanks.

    Hi Scott,
    Okay, what we have is a fairly simple Dynamic Page with two report regions (both standard type of 'SQL Query'). The second report region is the one causing us the headache. The column headings are set to 'Custom' but apart from that everything seems as it should be.
    The following query populates an HTML table being generated in the second report region (problem line in bold):
    SELECT apex_item.hidden(7,task_id)||
    apex_item.select_list_from_lov(1, estimate_type, 'TASKSMK', NULL, 'YES', 0,'** Select Task **',NULL, NULL) as "Task Type",
    '<img src="/i/themes/aqa/required.gif" alt="Required Field" tabindex="999" />'||apex_item.text(2, description,30,4000,'required="true"') as "Work Item(s)",
    dbms_lob.substr(apex_item.select_list_from_lov_xl(3, username, 'PEOPLE', NULL, 'YES', 0, '** Select Resource **', NULL, NULL),4000) as "Resource",
    apex_item.text(4, days,5,5) as "Days",
    apex_item.text(5, start_date,11,11) as "target Start (dd-mon-yyyy)",
    apex_item.text(6, NVL(end_date,ADD_MONTHS(start_date,1)),11,11) as "Target End (DD-MON-YYYY)",
    rownum link
    FROM
    (SELECT t.task_id,
    e.estimate_type,
    t.description,
    t.username ,
    t.days,
    t.start_date,
    t.end_date
    FROM estimate e, task t
    WHERE e.project_project_id = TO_NUMBER(:F172_PROJECT_ID)
    AND e.active_yn = 'Y'
    -- and t.days > 0
    AND t.ese_id = e.id
    --AND e.creation_date = (SELECT MAX(ei.creation_date) FROM estimate ei WHERE ei.project_project_id = e.project_project_id AND ei.active_yn = 'N')
    UNION ALL
    SELECT 0 task_id,
    0 estimate_type,
    NULL description,
    '0' username,
    NULL days,
    sysdate start_date,
    ADD_MONTHS(sysdate,1) end_date
    FROM dual
    CONNECT BY LEVEL < = TO_NUMBER(:P19_ROWS_CNT))
    All appears well until the number of values being returned in the second LOV (retrieved by the apex_item.select_list_from_lov_xl) exceeds 4000 characters and then we get the error first detailed. The substr around the function isn't usually present, it was added during the debugging, if I allow one more character than the 4000 or remove the substr completely then I get the error again. If the same function is used to retrieve the LOV on a normal Dynamic Form field then all is well, it only seems to have a problem when present in the HTML table being generated.
    Are we doing something silly here?
    Thanks.
    Message was edited by:
    jac

  • Dynamic LOV problem

    I have an application where a person gets an ID code and then fills out many questionnaires, which I'm building using Portal forms. I have a table that tracks what questionnaire has been filled out by filling in a field of the data the questionnaire was completed, e.g.:
    ID Q1Date Q2Date Q3Date Q4Date.......Q99Date
    I'd like to use a dynamic LOV for the ID field, so that instead of typing in the ID, the person can just pick their ID from a list. I could build LOVs based on a select statement like this:
    select id from idtable
    where Q1Date is null;
    But that's a lot of LOVs because I have 99 questionnaires (or it just seems like it). I tried getting around this by putting in a field on the questionnaire table that
    contains the name of the association field from idtable; so that Questionnaire1 has a field "form" that contains the value 'Q1Date'. Then I built an LOV called LOV_ID based on this select statement:
    select id from idtable
    where :l_form is null;
    Then, in the form wizard, for the ID field, I selected Combobox for the ID field, picked LOV_ID for the LOV, and picked the field "form" in the "pick the bindings for the bind variable" area.
    The problem is that the LOV doesn't refresh when a questionnaire is entered; if you enter one for ID1, for example, the LOV still shows ID1.
    Is what I want to do even possible? If so, what am I missing in building this LOV?
    Thanks much for any help, even telling me "give it up", helen

    Hi Helen,
    I understood that you have two LOVs, based on SQL queries of two tables.
    One of them depends on the other, which means that it contains a bind variable, which in the form is bound to the value of the other one.
    Using this construct, the portal forms editor automatically sets up the event handler 'onChange' of the 'Master' LOV to refresh the page when a specific value is selected. You can see this in the editor in the last section of the form field's property page.
    During the refresh, the value of the 'Master' LOV is passed to the bind variable of the 'Detail' LOV, so that in your case I think it then displays a subset of result data enclosed by the WHERE condition.
    Did I get this right so far? Is your problem that the 'Detail' field doesn't refresh on Change of the 'Master'? In that case I would quickly try to build the form again, because that should definitely work.
    I have used this mechanism shortly in an application i built, and it worked perfectly for me.
    For the use of JavaScript (or more precisely Microsoft JScript) i can recommend using Microsoft's Library at http://www.msdn.com . The 'Web Development' part contains a complete and detailed reference on all HTML elements and their properties, plus the Internet Explorer's JavaScript DOM.
    Hope to read from you soon,
    Felix

  • Love problem solution baba+91-9982822666

    No.1vashikaran specialist +91-9982822666
    so gauranteed love relationship solution, 
    how to get my love back by vashikaran, 
    GURU ji solve all problem only on 2 hoursdone of marriage or breaking of any marriage, 
    Children&, Dispute with lover, Cheating in love, 
    foreign tour, Movie... More › or Modelling career, 
    Manglik problem, Kalsarp problem, caught sight (Nazar Lagna) etc... 
    Problems are like as followa:- 
    1. Like jadu-tona. 
    2. Business related problems. 
    3. Husband and wife relationship. 
    4. Be free from enemy / 2nd wife 
    5. Settle in foreign. 
    6. Desired love. 
    7. Disputes between husband / wife. 
    8. Problems in study. 
    9. Childless Women. 
    10. Intoxication. 
    11. Physical problems. 
    12. Domestic controversy. 
    13. Problems in family relations. 
    14. Promotions or willful marriage. 
    15. Lottary & lucky nomber 
    16 To Get your love back 
    17.vashikaran mantra for husband 
    To create a good impression on others and create love and affection in their hearts and minds Dispute with Husband or Wife, 
    indian astrology, real black magic spells and tips to bring lost love, cure black magic. 
    Contact: 
    mob. no. +91-9982822666
    mob. no. +91-9982822666
    email:- [email protected]

    I ran across this thing the other day. http://greatscottgadgets.com/throwingstar/
    $15 for the kit $40 for assembled. I made the same thing for like $.05. Took some cat5E cable, one had a broken end so I cut that off and it become the monitor lead.
    I set it up with a desktop, router, laptop. Ran ping -T to router and captured it all on the laptop.
    Connect 2 systems to the blue cable, the monitor system connects to the gray cable.

  • Static record group and lov problem

    hi all,
    1)I created a form module
    2)created a basic datablock based on empno and ename from emp table.
    3) created a static record group ,where i specified the column name as col1,provided the values as 1 ,2,3,4,5 etc
    4) created an LOV and assigned the above record group to the LOV
    5) then assigned the lov to the emp.empno item in the datablock emp....
    when i run the form .....i get the list of values message on the console (bottom end of the window) ....
    but I am not able to see the LOV when i press the cntrl L or see it from the edit menu command ?
    what must be the problem ?
    ta
    s

    Dear,
    May be you don't set LOV's "Column Mapping Properties". After setting the properties correctly you will be able to display LOV.
    Thanks.

  • LOV problem ... returning display-value and not key-value

    Hi. Sorry for my broken English.
    I have a problem with pop-up dynamic LOV.
    I have a simple form called Form A containing item_code and item_name. Users can create, update and delete new item by using this form.
    Another form called Form B has a field called item_code, and the item_code field is a dynamic pop-up LOV field and a query for this LOV is like this;
    select item_name d, item_code r from item_master order by item_code;
    When i create the new record in Form B and use LOV to find and get the item code, LOV works fine
    and it returns key-value to the item_code field.
    But when i try to update the record (I have a link from report page to Form B), value of the item_code field is not the key-value from LOV, but is a
    display-value from LOV.
    Any ideas?
    Thank you.

    Well, from what you have described, this is working exactly as it should. Form B's LOV is intended to retrun the key value but should show the dispaly value. When you go from the report to the form, the key value is being passed (or should be depending on your code) and Form B ought to show the display value.
    So, in short, I would say that Apex is doing what it should. Unless I misunderstand something.
    Bruce

  • JDeveloper 3.1 LOV problem

    Hi,
    I am currently trying to use LOVs and having some problems. When running it, I get a LOV where I can select a value and return it, but the top textfield of the LOV window is always empty ( it should contain the last selected value!).
    Also, when I use the "find" button , I obtain the following message:
    JBO-27122: SQL error during statement preparation. Statement: SELECT UR_COMPANY.COMPANY_ID, UR_COMPANY.DESCRIPTION FROM UR_COMPANY WHERE (( = myquery ))
    ( where "myquery" is the value I entered in the textfield ).
    Thanks in advance for any help
    Aymeric

    Dear Mr. Steve
    I Open this Link :
    http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html#80
    and did not find Example 79 and 80 (are missing) Please update this Link .
    thanks

  • External LOV Problem

    Dear Users,
    I have defined an external lov and attached this lov to a field on the page.
    While creating the external lov I 've tested the query on the database and it was returning rows. I tested the query in JDev as well while creating the external lov and it passed the test.
    When I have run the page and when I am trying to select the value from the LOV it is returning zero rows. Message is no rows to display.
    But when I am executing the query in back end is returning rows.
    How to debug this problem.
    Kindly please help me to resolve the above issue.
    Many thanks in advance.
    Best Regards,
    Arun Reddy D.

    Hello Anand,
    Thanks again for your reply.
    What is the change you have done ?
    Previously my query was extracting assets from Book A1. I just changed the value to Book B1.
    Make sure attribute mappings are correct of the LOV VO.
    I cross checked the attribute mappings again and all are correct.
    Make sure that there are no bind variables in the LOV VO. Otherwise you need to execute the VO programatically.
    There are no bind variables in the query. It is a simple SQL Query
    Query is as follows:
    select a.ASSET_ID,
    a.ASSET_NUMBER,
    a.DESCRIPTION,
    b.cost,
    l.location_id,
    l.segment1,
    l.segment2,
    l.segment3,
    l.segment4
    from fa_additions_v          a,
    fa_books                b,
    fa_asset_keywords       k,
    fa_distribution_history d,
    fa_locations            l
    where b.asset_id = a.ASSET_ID
    and b.date_ineffective is null
    and b.book_type_code = 'B1'
    and k.code_combination_id = a.ASSET_KEY_CCID
    and d.asset_id = a.ASSET_ID
    and d.date_ineffective is null
    and l.location_id = d.location_id
    When you open the LOV window and search for some data, are you not getting any data ?
    Yes you are right. When I am searching the LOV there is no data.
    Create a LOV CO and in the processFormRequest of this CO, get the query using vo.getQuery() and check.
    I did this and it returned the same query which I have given above. when I am executing this query in back end it is giving data.
    Kindly please help me in resolving this issue.
    Many thanks in advance.
    Best Regards,
    Arun Reddy D.

  • Post query and lov problem

    I wonder if anyone can help me with this problem. I have a non database text item which holds a school name dependent on the school id. I have a post-query trigger to populate the school_name field so that the school_name is shown immediately. I also have a LOV on this field in case the school has to be updated.
    The problem I have is that when I query the data block the list of values pops up automatically and won't let me out of the screen until I have selected a school. I only want this LOV to appear when the user requests it.
    Can anyone advise me on how to get around this problem, maybe I'm using the wrong type of trigger?
    thanks,
    Ian

    In the LOV properties, set Automatic Display to false

  • Love-problem-solution-b aba-ji +91-9915467377

    1. Advice for HEALTH PROBLEMS.
    2 Advice for LOVE LIFE.
    3. Consultation for CHILD.
    4. Advice for FAMILY PROBLEMS.
    5 Advice for .PROMOTION IN JOB.
    6 Advice for.DOMESTIC CONTROVERSY.
    7 Advice for.LOVE.
    8.Advice for love Marriage.
    9.DREAM PROBLEMS.
    10. Advice for BUSINESS LOSSES.
    11. Advice on Disturbed love life.
    12.Advice for childless couple

    I ran across this thing the other day. http://greatscottgadgets.com/throwingstar/
    $15 for the kit $40 for assembled. I made the same thing for like $.05. Took some cat5E cable, one had a broken end so I cut that off and it become the monitor lead.
    I set it up with a desktop, router, laptop. Ran ping -T to router and captured it all on the laptop.
    Connect 2 systems to the blue cable, the monitor system connects to the gray cable.

Maybe you are looking for

  • Form fields with multi line not printing

    HI All, I created a form on Acrobat 9 pro, some of the fields in this form have the Multiline and Scrolling text option, now when the user fills the form and the text goes on multiple lines when it needs to print the text it doesn't print everything

  • Casting problems getting a home I/F of an EJB in another app when debuging a servlet

    (Jdeveloper version = 9.0.2.798, OC4J Application Server version = Oracle9iAS (9.0.2.0.0)) I am trying to debug a multi-tier application using the embedded application server. Servlets and EJBs within that application need to call EJBs contained with

  • FM to read proxy xml data

    Hi All, Is there any FM or class-method to read XML proxy message for a given message id? Scenario: An inbound interface coming from XI to ECC system using ABAP proxy method.While processing this inbound proxy it will trigger create another response

  • Z10 BBM copying messages

    Hi there, So I'm getting a tad frustrated with this BBM copying issue. As I select the text, choose copy as its the only option, it then reads message copied...my where to?? where is it copied to?? I seem to have no clipboard so where can I find it?

  • Printer Installer software closes immediately at "Applying updates"

    I have a Photosmart 2575, running Windows 7 X64 and the printer Installer software closes immediately at "Applying updates" right after clicking OK to accept EULA. I have had problems with driver removal and installation every time I've had to do thi