Adding LOV on fly

I'm trying to create new ViewObject with LOV on fly.
This is my code:
/*creating Entity for new View*/
EntityDefImpl newEntity = new EntityDefImpl("DYNAMIC_EO");
newEntity.setSource("MODUL");
AttributeDefImpl newAttrDef1 =
newEntity.addAttribute("Id", "ID", Integer.class,
true, false, true);
newAttrDef1.setUpdateableFlag(AttributeDef.UPDATEABLE);
newAttrDef1 =newEntity.addAttribute("Name", "NAME", String.class,false, false, true);
newAttrDef1.setUpdateableFlag(AttributeDef.UPDATEABLE);
newEntity.resolveDefObject();
newEntity.registerDefObject();
/*creating new View*/
ViewDefImpl newView = new ViewDefImpl("TestView");
newView.addEntityUsage("e", "DYNAMIC_EO", false, false);
newView.addAllEntityAttributes("e");
newView.setFetchSize((short)30);
newView.setSelectClauseFlags(ViewDefImpl.CLAUSE_GENERATE_RT);
newView.setWhereClauseFlags(ViewDefImpl.CLAUSE_GENERATE_RT);
newView.setFromClauseFlags(ViewDefImpl.CLAUSE_GENERATE_RT);
/*creating Entity for LOV*/
EntityDefImpl newEntityLov = new EntityDefImpl("LOV_EO");
newEntityLov.setSource("LOV_TEXT");
newAttrDef1 =
newEntityLov.addAttribute("Id", "ID", Integer.class,
true, false, true);
newAttrDef1.setUpdateableFlag(AttributeDef.UPDATEABLE);
newAttrDef1 =newEntityLov.addAttribute("Text", "TEXT", String.class,false, false, true);
newAttrDef1.setUpdateableFlag(AttributeDef.UPDATEABLE);
newEntityLov.resolveDefObject();
newEntityLov.registerDefObject();
/*creating LOV view*/
ViewDefImpl lov = new ViewDefImpl("model.lov.TestLOV");
lov.addEntityUsage("e", "LOV_EO", false, false);
lov.addAllEntityAttributes("e");
lov.setFetchSize((short)30);
lov.setSelectClauseFlags(ViewDefImpl.CLAUSE_GENERATE_RT);
lov.setWhereClauseFlags(ViewDefImpl.CLAUSE_GENERATE_RT);
lov.setFromClauseFlags(ViewDefImpl.CLAUSE_GENERATE_RT);
lov.resolveDefObject();
lov.registerDefObject();
createViewObjectForDef("TestLOV", lov);
String viewAccessorName = "TextLOV";
String lovName = "LOV_Id";
String listDataSourceViewDefName = "model.lov.TestLOV";
/*adding LOV to view*/
ViewAccessorDef vdef = new ViewAccessorDef();
vdef.setName(viewAccessorName);
vdef.setViewDefFullName(listDataSourceViewDefName);
vdef.setRowLevelBinds(true);
newEmpViewDef.addViewAccessorDef(vdef);
newEmpViewDef.resolveDefObject();
newEmpViewDef.registerDefObject();
ListBindingDef listBindingDef =
buildListBindingDef(newEmpViewDef.getDefManager(),
viewAccessorName, lovName,
new String[] { "Id" },
new String[] { "Id" },
new String[] { "Text" });
newEmpViewDef.addListBindingDef(listBindingDef);
newEmpViewDef.resolveDefObject();
newEmpViewDef.registerDefObject();
int clmnIndex = newEmpViewDef.getAttributeIndexOf("Id");
AttributeDefImpl _voAttrDef =
(AttributeDefImpl)newEmpViewDef.getAttributeDef(clmnIndex);
_voAttrDef.setLOVName(lovName);
voAttrDef.setProperty(AttributeHints.ATTRIBUTECTL_TYPE,
AttributeHints.CTLTYPE_COMBO);
newView.resolveDefObject();
newView.registerDefObject();
createViewObject("TestView", "TestView");
public ListBindingDef buildListBindingDef(DefinitionManager defMgr,
String listVOName,
String listBindingName,
String[] attribNames,
String[] listAttribNames,
String[] listDisplayAttribNames) {
ListBindingDef lstbindingDef =
new ListBindingDef(defMgr, DefinitionObject.DEF_SCOPE_PERS);
lstbindingDef.setListVOName(listVOName);
lstbindingDef.setName(listBindingName);
lstbindingDef.setListRangeSize(-1);
lstbindingDef.setNullValueFlag(AbstractListBinding.LIST_ADD_NULL_NOWHERE);
lstbindingDef.setNullValueId("");
lstbindingDef.setAttrNames(attribNames);
lstbindingDef.setListDisplayAttrNames(listDisplayAttribNames);
lstbindingDef.setListAttrNames(listAttribNames);
return lstbindingDef;
but running the page (method is executed before navigating to the page with dynamic component) I get JBO-25002: Definition model.lov.TestLOV of type View Definition is not found
as if the view object I've made on fly doesn't exist.....any ideas?

Hi Timo,
I was experimenting with the same until I found this forum post.
Our requirement asks for a search query where the searchable attributes are dynamically added View Object attributes (list of attributes is based on some other user configuration). Each attribute have associated list of values, thus I need to create a VO, ListBindingDefs, ViewAccessorDefs during runtime.
I am able to do the above, to the point where I see the dynamically added attribute in the query panel, and in the form of a choicelist, with proper list values obtained from my programmatically created VO accessor. However, when I select a value and click on Search, I do see the same issue where FacesCtrlListBinding.setInputValue>...>JUCtrlListBinding.setAttributeFromValueList throws an exception (see below).
But because this is in a query panel, I do not have control over the individual search attributes.. Do you have any suggestion on how to go around this issue?
Thanks,
Yimin
<buildFacesMessage> ADF: Adding the following JSF error message: <html>An application error occurred. See the incident log for more information.<br><br>An application error has occurred. Your help desk can use the following information to obtain a more detailed description of this incident: 153, Server Domain: DefaultDomain, Server Instance: DefaultServer, Application Name: HcmTime.</html>
oracle.jbo.JboException: <html>An application error occurred. See the incident log for more information.<br><br>An application error has occurred. Your help desk can use the following information to obtain a more detailed description of this incident: 153, Server Domain: DefaultDomain, Server Instance: DefaultServer, Application Name: HcmTime.</html>
at oracle.apps.fnd.applcore.messages.MessageFormatHandler.reportException(MessageFormatHandler.java:216)
at oracle.adf.model.binding.DCDataControl.reportException(DCDataControl.java:410)
at oracle.adf.model.binding.DCDataControl.reportException(DCDataControl.java:391)
at oracle.adf.model.binding.DCBindingContainer.reportException(DCBindingContainer.java:418)
at oracle.adf.model.binding.DCBindingContainer.reportException(DCBindingContainer.java:473)
at oracle.adf.model.binding.DCControlBinding.reportException(DCControlBinding.java:201)
at oracle.jbo.uicli.binding.JUCtrlListBinding.setAttributeFromValueList(JUCtrlListBinding.java:2880)
at oracle.jbo.uicli.binding.JUCtrlListBinding.setSelectedIndex(JUCtrlListBinding.java:1746)
at oracle.jbo.uicli.binding.JUCtrlListBinding.setInputValueInRow(JUCtrlListBinding.java:3530)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.setInputValue(JUCtrlValueBinding.java:2813)
at oracle.jbo.uicli.binding.JUCtrlValueBinding.setInputValue(JUCtrlValueBinding.java:2776)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlListBinding.setInputValue(FacesCtrlListBinding.java:226)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$AdfCriterionValues.set(FacesCtrlSearchBinding.java:3500)
at javax.el.ListELResolver.setValue(ListELResolver.java:240)
at oracle.adfinternal.view.faces.model.AdfELResolver.setValue(AdfELResolver.java:132)
at javax.el.CompositeELResolver.setValue(CompositeELResolver.java:283)
at com.sun.faces.el.DemuxCompositeELResolver._setValue(DemuxCompositeELResolver.java:252)
at com.sun.faces.el.DemuxCompositeELResolver.setValue(DemuxCompositeELResolver.java:278)
at com.sun.el.parser.AstValue.setValue(Unknown Source)
at com.sun.el.ValueExpressionImpl.setValue(Unknown Source)
at org.apache.myfaces.trinidad.component.UIXEditableValue.updateModel(UIXEditableValue.java:289)
at org.apache.myfaces.trinidad.component.UIXEditableValue.processUpdates(UIXEditableValue.java:252)

Similar Messages

  • Java.lang.NullPointerException when added LOV to column

    Hi,
    I am getting java.lang.NullPointerException error when opening web adi spreadsheet (before it is even formatted) since I added LOV to one of the columns. I did following update:
    UPDATE bne_interface_cols_b
    SET val_id_col = 'LOOKUP_CODE',
    val_mean_col = 'MEANING',
    val_desc_col = 'DESCRIPTION',
    val_type = 'TABLE',
    lov_type = 'POPLIST',
    val_obj_name = 'FND_LOOKUPS',
    val_addl_w_c = 'LOOKUP_TYPE = ''SOURCE'''
    WHERE interface_col_name = 'X_RELEASE_LOOKUP_CODE'
    AND application_id = 200
    AND interface_code = 'GENERAL_101_INTF';
    BNE log is showing following:
    CRITICAL ERROR BneAbstractXMLServlet.doRequest(), fatal exception: java.lang.NullPointerException
    CRITICAL ERROR java.lang.NullPointerException
         at oracle.apps.bne.repository.BneInterfaceCol.buildTableValidationQuery(BneInterfaceCol.java:684)
         at oracle.apps.bne.repository.BneInterfaceCol.getTableLovQuery(BneInterfaceCol.java:582)
         at oracle.apps.bne.repository.BneInterface.getTableLovQuery(BneInterface.java:771)
         at oracle.apps.bne.repository.BneIntegrator.getTableLovQuery(BneIntegrator.java:927)
         at oracle.apps.bne.repository.BneRenderableLayout.loadPopListData(BneRenderableLayout.java:1509)
         at oracle.apps.bne.repository.BneRenderableLayout.loadLayoutColumnData(BneRenderableLayout.java:665)
         at oracle.apps.bne.repository.BneRenderableLayout.loadLayoutHierarchyData(BneRenderableLayout.java:480)
         at oracle.apps.bne.repository.BneRenderableLayout.<init>(BneRenderableLayout.java:116)
         at oracle.apps.bne.repository.BneLayout.getRenderableLayout(BneLayout.java:2047)
         at oracle.apps.bne.integrator.document.BneOAExcelViewer.validateParameters(BneOAExcelViewer.java:593)
         at oracle.apps.bne.integrator.document.BneOAExcelViewer.getViewerBean(BneOAExcelViewer.java:234)
         at oracle.apps.bne.integrator.document.BneAbstractViewer.toXML(BneAbstractViewer.java:468)
         at oracle.apps.bne.integrator.document.BneViewerXMLService.handleRequest(BneViewerXMLService.java:177)
         at oracle.apps.bne.framework.BneAbstractXMLServlet.doRequest(BneAbstractXMLServlet.java:613)
         at oracle.apps.bne.framework.BneAbstractXMLServlet.doPost(BneAbstractXMLServlet.java:172)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:521)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:637)
    Anybody knows what the problem is? Is there any other table that has to be updated? I am on 11.5.10.
    Regards
    Piotr

    Why dont you try doing this from application.
    Enable the integrator 'Web ADI - Interface Columns Integrator' using below query :
    UPDATE bne.bne_integrators_b
    set enabled_flag = 'Y'
    where integrator_code = 'INTERFACE_COLS';
    commit;Next create a WEB ADI Form Function and do form function association. Then attach this form function to WEB ADI Menu and this integrator will be visible.
    Then call your custom integrator paiing application_id, interface_code and then populate the values/properties of individual column

  • Adding LOV to a field in Oracle Forms

    Hello,
    I have a requirement, where in I want to add an LOV to one of the field in the standard form.
    Pls. let me know what is the best way/process to do this?
    Thanks in Advance.
    Raj

    https://wiki.sdn.sap.com/wiki/display/ABAP/AdobeFormsfrom+Scratch

  • Adding LOV in Title field of Qualification Form in Other button of People

    Hoe to add LOV in Tiltle field of Qualification form.
    Navigation
    US HRMS Manager-Enter and maintain-others-qualification
    Regards
    Niraj

    Hi
    is the navigation of Qualification form in Oracle application form (HRMS Module) No it is not this is Oracle Developer ( Forms Module)
    i think u need this link:
    OA Framework
    Regards,
    Abdetu...

  • Adding LOV image to date items

    In 9.02 I have a portal form with date items. I would like to have a LOV image next to the date items that will display a lov (calendar pick list) when clicked. Is it possible to do this?

    If you're just concerned with displaying the image &ndash; i.e. it doesn't have to be clickable or anything &ndash; you can do this using a CSS background image on a suitable element, depending on your theme/template.
    Put something like this in the HTML Header of the Login page:
    <style type="text/css">
    table.t14Login table.formlayout {
      padding-left: 64px;
      background: url(#WORKSPACE_IMAGES#apex30charts_64.png) top left no-repeat;
    </style>Set the padding wide enough for your image plus any desired whitespace, and you might need to specify a height and/or min-height depending on the size of the image.

  • UI for LOV

    Now that I understand that I need to control the settings for a Field Item from within the ITEM options..... I have working drop down select lists.
    But now I'd like to go to the next level.
    For a form entry, I'm not a fan of drop-downs or popups, since they require me to change from keyboard to mouse.
    I prefer to type in the field, and have entry autofilled as I type - (and have the entry be validated).
    1. Do I set that from:
    a. the field definition in the SQL workshop for the table? as a constraint?
    b. the item condition? as a type: Exists (SQL query returns at least one row)
    c. elsewhere
    2. Further, I would like to know how to do it in 2 flavors:
    a. restrict entry so that it MUST be one of the specified items (ie, static); and if entry is not one of the specified items, then a pop-up window can give me the permitted list to choose from
    b. autofill based on list, but permit new items to be added on the fly
    Thank you -
    Marion (eagerly awaiting the 2 apex books I ordered on Saturday)

    Marion
    There are a number of ways the can be achieved.
    The default select list will recognise the first letter typed and jump to that in most browser's. For full lovely autofill - you should visit Denes Kubicek's demo application. I believe he has demonstrated this will full instruction.
    Oh, and happy reading!
    Cheers
    Ben

  • ADF LOV and Cascading LOV in JDeveloper 11.1.1.5.0 Issue

    Hi,
    I have created business component ExpenseHdrView and added LOV and Cascaded LOV. If I run the application module I could see the LOV is working. It is displaying list of values and Return value(id value is not dispalyed as expected). But when I include the view in an ADF form then LOV is working but in the form when I select any value it is displaying the corresponding ID value. This is not in sync with business component.
    I am new to this ADF world. Am I doing anything wrong or missing something?
    Please help.
    Thanks,
    Mehabub

    Hi Kalpesh,
    I just tried, and didn't get that error - there must be something specific to your scenario. Have you tried the obvious solutions (reinstall)
    John

  • Dependent LOV not Working

    Hi ,
    iam creating a page where there is a dependent LOV's
    DJLov,SEQLov are the Lovinput items
    Djid is common field between the 2 Lov queries ,WipEntityid is formValue
    when i click on second lov iam getting error as "You must enter a value for WipEntityId as criteria for LOV."
    LOV1:
    LovregionItem:Djnumber
    Return Item:DJLov
    Criteria Item:DJLov
    LovregionItem:Djid
    Return Item:WipEntityid
    LOV2:
    LovregionItem:OperSeqnum
    Return Item:SEQLov
    Criteria Item:SEQLov
    LovregionItem:Djid_SeQ
    Criteria Item:WipEntityid
    Required: True
    can anybody help me regarding this.
    if the above data is not suffcient to understand the issue please ask me i will provide some more.
    one more thing i want to mention is:
    i took an advanced table ,then created columns and added LOv items to the columns. i got the error
    "You must enter a value for WipEntityId as criteria for LOV."
    but i created another page with tablelayout-->rowlayout-->cellformat-->lov input items
    the same Lov mappings were done ,the page got saved without any issue.
    can anybody figure out the what is the issue.
    Thanks in Advance

    Hi guys,
    this issue is fixed.i created formvalues under advancedtable region and it worked.
    dont keep formvalues to Pagelayout RN.
    hopes this info will help OAF starters like me. :)

  • Has the ability to add markers to a clip during capture been added to Premiere CS6?*

    I do live captures for video assist with PP5.5 and asked for the ability for markers to be added on the fly while capturing a while back. Just wondering if this has been added to PP6 or not. Use it all the time with Avid MC, and find it difficult to use PP without it in my work. If not can you make subclips on the fly as you can in MC yet?

    > Why is Adobe so resistant to this?
    It's not that we're resistant to one thing or another. Rather, we have finite time and other resources for developing and testing features for each release, and we need to prioritize based on several factors---including how many customers are requesting a specific change.
    So, if you want to cast your vote, please do so:
    http://www.adobe.com/go/wish

  • How to avoid duplicates in LOV

    Hi, i'm using search query component (11g) and for the search fields i'm adding LOV. In the UI , i can see the LOV with values from the table. But i need to avoid the duplicates in this . Looked at the docs and demo and i couldn't figure out anything. Could some one point me a resource. Thanks.

    How do you create the LOV then?
    To make a view object with a lov you need two viewObjects - let us say viewObject and viewObjectLOV.
    viewObject is updatalbe, viewObjectLOV is not.
    Your problem is that viewObjectLOV returns duplicate values.
    1. find where is the viewObjectLOV, you can reach it via viewObject's accessor
    2. make sure it has a primary key.
    3. modify viewObjectLOV's query so it does not return duplicate values, for example using distinct keyword.
    0. If you did not understand what I tried to explain, maybe you should read some more documentation first :)

  • How to pass the values dynamically in record group?

    oracle forms 6i
    Hi to all,
    i am developed a master detail form.in the master level one column is EMP_GRADE.these values like(A1,B1,C1,D1).
    In the detail form one more column is DETAIL.in this DETAIL coloumn i am adding LOV.In the LOV my query Like this
    SELECT DESCRIPTION FROM FND_LOOKUP_VALUES WHERE LOOKUP_TYPE=EMP_GRADE.
    Here IF emp_grade =A1 then LOV shows 10 values
    next IF emp_grade =B1 then LOV shows 10 values,but MY requirmrnt is IF EMP_GRADE is B1 then LOV show the B1 values and A1 Values.total 20 values.
    it is possible or not?
    any one help me..please.
    Reagrds,
    Stevie.
    Edited by: 994418 on 30 May, 2013 4:34 AM

    In 10G and above you could use the CASE-statement.
    In Forms 6i you could use a UNION ALL, maybe like this.
    SELECT DESCRIPTION FROM FND_LOKUP WHERE LOOKUP_TYPE='A1' and :EMPGRADE='A1'
    UNION ALL
    SELECT DESCRIPTION FROM FND_LOKUP WHERE LOOKUP_TYPE IN ('A1' , 'B1') AND :EMPGRADE='B1'

  • Using mouseClicked with JTextArea

    Hi,
    I have a JTextArea, that has different entries, added on-the-fly, which dictate the appearance of a JPanel. To detect the user's selection I have added a mouseListener to the JTextArea, and in the body of the mouseClicked method have used the getPoint() method to access the position of the click. However, I was wondering if it is possible to convert this point to a more useful and readily understandable value - e.g. the line number of the JTextArea.
    Any help will be gratefully received,
    Yours truly,
    Master sifo-Dyas

    int position = textArea.viewToModel( point );
    Element root = textArea.getDocument().getDefaultRootElement();
    int currentLine = root.getElementIndex( position ) + 1;
    int currentColumn = position - root.getElement( currentLine ).getStartOffset() + 1;

  • Images in applet components

    I'm developing an applet that contains a Swing GUI. The applet has a DesktopPane which contains several internal frames. These internal frames are meant to be instantiated and added on the fly depeding on user input, so all of thier setup code is contained in thier specific classes, which extend from JInternalFrame.
    The Problem is that in the frames I want to use labels and buttons with icons. I am unable to load the images into the frames. I can open an image in the applet class using the getCodeBase method to get to the file name, but I know of no way to get the code base from within the components added to the applet.
    Is there any way to load an image from a child componenet, or a way to get the codebase of the parent applet?

    That did work very wel, but now I'm left with a new problem. The class getrus the URL for the code base, and it looks the same as the original from the applet. However, when I go to create an ImageIcon using this URL, and add it to a component I get no display. No error occurs, and the applet runs fine but the image doesn't display.

  • Hide poplist element depending on another form column

    Hello everyone,
    In a nutshell: I’d like to know how to hide (or show) elements in a poplist, depending on the value of another column on the FORM.
    I have a FORM where I have the following columns:
    1)     ISNONSYN…can have values ‘Y’ or ‘N’
    2)     ISIDSERTAIN…has a poplist (set of static values) with values ‘Y’, ‘N’, or ‘-‘
    3)     5 other columns
    What I need to is as follows:
    If ISNONSYN = ‘Y’ then
         * The poplist for ISIDCERTAIN must only show ‘Y’ and ‘N’ in the dropdown. Do not show the ‘-‘
         * The 5 columns should be fully updateable
    ELSE if ISNONSYN = ‘N’ then
         * Default ISIDCERTAIN to the value ‘-‘
         * Make ISIDCERTIN and the 5 columns non enterable and non navigable
    END IF
    So that’s it….
    If I come into the form with ISIDCERTAIN having ‘Y’, ‘N’ and ‘-‘ in it’s dropdown…how do I HIDE the ‘-‘ when I scroll to a row where ISNONSYN = ‘Y’? In this situation, the value of ‘-‘ must not be seen in the drop down.
    I created a pre-form trigger where I did a
    DELETE_LIST_ELEMENT(‘ISIDCERTAIN’,3); to remove the ‘-‘ from the poplist.
    It all worked fine with rows having ISNONSYN = ‘Y’, but whenever I scrolled to a row with ISNONSYN = ‘N’, a WHEN-LIST-CHANGED trigger on ISNONSYN will check the value of ISNONSYN. If it = ‘N’ then it will do 2 things to ISIDCERTAIN (as well as making the other 5 columns unenabled):
         1) :<blockname>.isidcertain:= '-';
         2) set_item_property('<blockname>.ISIDCERTAIN',ENABLED,PROPERTY_FALSE);
    BUT... when I try to commit, it says that the value’-‘ is not a valid value for ISIDCERTAIN!
    So, I need some way to DELETE_LIST_ELEMENT or ADD_LIST_ELEMENT on the fly for each row – depending on the value of ISNONSYN…unless there is a way to leave ISIDCERTAIN with the 3 values of ‘Y’,’N’ and ‘-‘; but somehow just HIDE the ‘-‘ when ISNONSYN = ‘Y’. Can I modify the WHERE clause somehow?
    Any assistance that anyone can give me would be greatfully appreciated...
    We’re using FORMS 6. We actually do 100% generation here (must be 1 of the last sites in the world!). We make all our changes in DESIGNER and generate the form from there. But if someone can tell me how to do what I need to do, in FORMS; I should be able to work out how to get it into DESIGNER for generation.
    Thankyou…Tony Calabrese, Adelaide, South Australia

    Mark, thanks again for persisting.
    I think we're very, very close...but just not quite there.
    In your 2rd sentence, you state:
    "Question: At this point, which element does ISIDCERTAIN show as selected?
    Answer: I think it is (or might be) '-' "
    This is not correct. At no point do I select the '-' from the poplist. It is the 'Y' that is on the form when the 'NNN deleting now' message comes up
    Nonetheless, I included the statement as you suggested.
    I included the :
    :flsp7.isidcertain := null;
    at the place in the code where you suggest.
    The result was still a:
    FRM-41331 Could not delete element from ISIDCERTAIN
    Mark, I found this on metalink...could this have something to do with it? I am INSERTING a new row when I choose the poplist values:
    Subject:      FRM-41337 When Populating List with Record Group
         Doc ID:      Note:2075384.6     Type:      PROBLEM
         Last Revision Date:      20-OCT-2005     Status:      PUBLISHED
    Problem:
    FRM-41337 WHEN POPULATING LIST WITH RECORD GROUP DURING RUNTIME
    The code compiles fine. Getting the error intermittently.
    Solution:
    Trying to change a poplist's values based on a record group while the block status is set to
    CHANGED or QUERY. This can be only when the status is NEW. If forms is in QUERY
    OR CHANGED mode it needs to display some info. Changing the list elements could cause
    problems with displaying the info that is already there. So, it cannot be done.
    To get around this problem, ensure that block status is NEW mode when updating the List.
    This prevents on the fly updates. Alternately use LOV for fly updates.
    And Mark....as well as raising this issue here on OTN, I also raised it in METALINK. Someone over there has suggested a different approach - using RECORD GROUPS :
    https://metalink.oracle.com/metalink/plsql/f?p=200:27:5275918850865978815::::p27_id,p27_show_header,p27_show_help:702091.994,1,1
    I think we were getting pretty close there too...but alas...
    Thankyou again,
    Tony Calabrese

  • PLSQL-generated SQL report with variable number of columns

    I created an app to track college football bowl picks:
    http://apex.oracle.com/pls/otn/f?p=21723
    The main report region includes columns for the various games as well as a column for each participant. In order not to hard code the number of participants, I used PLSQL to generate the SQL so that new columns could be added on the fly.
    However, whenever I add a new user I get this result -
    report error:
    ORA-01403: no data found
    If I copy and paste the PLSQL into a new report region and then delete the old one, however, all is well.
    Is there something I can do to overcome this?
    Thanks.
    Bill

    Roberto
    <br><br>
    Here are the tables:
    <br><br>
    BOWL_GAMES<br>
    ID     NUMBER<br>
    NAME     VARCHAR2(30)<br>
    FAV     VARCHAR2(20)<br>
    DOG     VARCHAR2(20)<br>
    BDATE     DATE<br>
    LINE     NUMBER(3,1)<br>
    FAV_SCORE     NUMBER(4,0)<br>
    DOG_SCORE     NUMBER(4,0)<br>
    <br>
    BOWL_USERS<br>
    ID     NUMBER<br>
    USERNAME     VARCHAR2(20)<br>
    PW     VARCHAR2(20)<br>
    NAME     VARCHAR2(20)<br>
    EMAIL     VARCHAR2(50)<br>
    <br>
    BOWL_PICKS<br>
    ID     NUMBER(5,0)<br>
    USERID     NUMBER(10,0)<br>
    GAMEID     NUMBER(10,0)<br>
    PICK     NUMBER(1,0)<br>
    <br>
    <br>
    Below is my PLSQL. Feel free to try out the app. Thanks.
    <br><br>
    Bill<br><br>
    declare<br>
    p_sql varchar2(32767);<br>
    cursor c1 is select * from bowl_users order by id;<br>
    begin<br>
    p_sql := q'! select to_char(b.bdate, 'Mon FMdd') "Date", b.name, '< a href="javascript$pickEm(''' || b.fav || ''')">' || b.fav || '</ a> -' || b.line || ' < a href="javascript$pickEm(''' || b.dog || ''')">' || b.dog || '</ a>' "Line" !';<br>
    for a1 in c1 loop<br>
    p_sql := p_sql || q'! , bowl_strike(b.id, !' || a1.id || q'! , 0) || (select decode(p.pick, 0, substr(b.dog,1,4), 1, substr(b.fav,1,4), 'No pick') from bowl_picks p where p.userid = !' || a1.id || q'! and p.gameid = b.id) || bowl_strike(b.id, !' || a1.id || q'! , 1) "!' || upper(a1.name) || q'!" !';<br>
    end loop;<br>
    p_sql := p_sql || q'! , bowl_score(b.id) "SCORE" from bowl_games b order by b.bdate !';<br>
    return replace(p_sql,'$',':');<br>
    end;
    <br><br>
    Message was edited by:
    [email protected]

Maybe you are looking for

  • LR 2.0 Synchronization hangs

    Is anybody else seeing this, hopefully with a solution or workaround? When I try to synchronize some folders with more than around 120 files, LR shows the progress up to 25% or so in its titlebar, and then - nothing. The percent complete vanishes fro

  • TS1702 I bought the megallan road gps I can't use it in the car on the road why what do I need to do

    I bought the Magellan road gps can't use while in the car what do I need to do while in car traveling

  • Cannot connect to Database after install Developer Suite

    Help.. I installed Oracle Database and everything seems work properly. I can connect to the database. (system/oracle@orcl) well, but after I install the developer suite, I can't connect to the database anymore. I did check the services and both Oracl

  • Roles in XI

    Hi  I have SAP_ALL and SAP_NEW profile in XI . Do i really need the  some roles to work in IR and ID Regards Vijay

  • SAP material master upload , but table by table

    Dear All, we have a case in which we want to create a new client and move all the settings and master data from our current client to the new one (we dont want to move the transactional data). our basis consultant has moved the settings and customiza