Create ViewLink / Remove ViewLink  dinamically

Problems consistently come up in JDeveloper when:
In our Application Module Implementation we dinamically create a ViewLink (using createViewLink) between to existing ViewObjects and using a defined ViewLink. This works OK.
After using the views we do a findViewLink and then call a it's remove method to delete the VL between the two VOs.
We now set a ViewLink between one of the original VOs and some other VO which also exists.
Error: executeQuery throws an null pointer exception when executed over the detail VO.
Has someone been able to create and delete ViewLinks dinamically? Using which methods? any suggestions appreciated.
Thanks
Gonzalo

Here is the exception:
java.lang.NullPointerException
oracle.jbo.server.ViewRowSetIteratorImpl oracle.jbo.server.ViewRowSetImpl.findMasterViewRowSetIteratorImpl(int, oracle.jbo.server.ViewDefImpl)
ViewRowSetImpl.java:920
com.sun.java.util.collections.ArrayList oracle.jbo.server.ViewRowSetImpl.getMasterKeyValues(boolean)
ViewRowSetImpl.java:2950
java.lang.Object[] oracle.jbo.server.ViewRowSetImpl.getParameters(boolean)
ViewRowSetImpl.java:2899
oracle.jbo.server.RowFilter oracle.jbo.server.ViewRowSetImpl.getRowFilter()
ViewRowSetImpl.java:314
void oracle.jbo.server.ViewRowSetImpl.execute(boolean, boolean)
ViewRowSetImpl.java:515
void oracle.jbo.server.ViewRowSetImpl.executeQuery()
ViewRowSetImpl.java:564
void oracle.jbo.server.ViewObjectImpl.executeQuery()
ViewObjectImpl.java:2616
boolean sam.model.services.searching.RevisionSearcherImpl.selectBySerial(java.lang.String)
RevisionSearcherImpl.java:102 <this is our App. Module>

Similar Messages

  • Dynamically create and remove TEXT items in forms

    Hi Guys,
    Is there a way to dynamically create and remove TEXT items in form. For example I have the EMP and DEPT table and when
    I select the EMP table name from the LOV, rows of the EMP table with column name and data should get displayed on the screen and likewise a similar action for DEPT table and
    so on. I have about 90 tables from where data could be required to view and edit. They all have varying number of columns.
    Any suggestions ?
    Thanks
    KMD
    null

    Use OLE concept of developer and map Excel as an object
    Nadeem
    null

  • Unable to create or remove VLAN

    I'm unable to create or remove any VLAN on my cisco switch...
    C2950 Software (C2950-I6K2L2Q4-M), Version 12.1(22)EA6
    Error:
    APP-SW-LAN-CISCO-#5(config)#no vlan 10
    Error on initialize VLAN database 1: VTP feature not yet initialized
    when i give "show run".... im receiving below error...
    LAN-CISCO-#5#sh run
    Building configuration...
    Error on initialize VLAN database 1: VTP feature not yet initialized
    Wat is the cause.... any suggestion...

    If you don't use VTP features try to add these command:
    vtp domain CISCO
    vtp mode transparent
    Now you should be able to add and remove vlan.
    Regards.

  • I when try to remove windows 7 from Macbookpro 13, I dont see any option such as Create or remove a windows partition on bootcamp assistant.

    My Mac Book Pro 13 inch late 2010. I tried to remove windows7 partition by using boot camp assistant. But I couldn't see any options for create or revome when I opened the bootcamp.  So finally i deleted by using disk utility function.
    This time I don't know how to make repartition.

    should perhaps have waited? yes.
    So now you can't or find out why and are left with repair the drive in Disk Utility from OS X DVD, or even restore (and wipe drive) if you cannot stretch and expand the HFS back to full drive.
    Clone the Mac partition - Disk Utility - Restore tab both was with erase
    Target <=> Destination
    You should of course have a backup even if TimeMachine, but something you can restore the system... because things do happen.

  • How to Create and Remove CMP Entity with Toplink in same transaction??

    Hi, i have a problem to create and delete cmp intances with toplink.
    I create a entity bean and remove the same entity bean in the same transaction.
    ie. my method have this code:
    bean a = homeBean.create(pk);
    a.remove();
    bean a = homeBean.create(pk);
    this code throws a javax.ejb.DuplicateKeyException
    Toplink not remove CMP, execute the two calls of create first.
    What configure toplink to support this case ??
    Is this possible ??
    I Can't controling the transaction manualy i'm using CMP entity beans with CMT.
    tanks.
    Message was edited by:
    Carlos Lacerda

    BM,
    If you want to import the utils package into your code, then the location of the utils package has to be in your CLASSPATH. JDeveloper uses libraries to define a project's CLASSPATH.
    I'm not sure exactly what's going on here, but you might want to read the information about packages and class libraries in the online documentation. It's under:
    User Guides
    -> Working with JDeveloper
    -> Packages and Class Libraries
    Blaise

  • How to create and remove package in Jdev project

    hi,
    I created a package for all my utils, then I import that package into my project, manually by inserting import myutils.*, somehow the other package can see it,
    then I tried importing this same package by the wizard tool, I have a conflict message that duplicate code, of course this is true since both of them works, then I want to remove one of the packe from my ptroject, but I cannot remove either package from my project. Please tell me how
    Thanks
    BM

    BM,
    If you want to import the utils package into your code, then the location of the utils package has to be in your CLASSPATH. JDeveloper uses libraries to define a project's CLASSPATH.
    I'm not sure exactly what's going on here, but you might want to read the information about packages and class libraries in the online documentation. It's under:
    User Guides
    -> Working with JDeveloper
    -> Packages and Class Libraries
    Blaise

  • Create and Remove Enhancement Implementation in WD ABAP!!!

    Hi Experts,
    I have Created an Enhancement implementation in a standard Web Dynpro ABAP component and added a new view in the component. Now I need to remove this enhancement implementation. Can anybody please suggest how to do it. In normal ABAP code we have an option to undo enhancement when we right click on the code. But here I have created a view so I can't find from where to remove this enhancement. Please help.
    Regards,
    Vaibhav Tiwari.

    in SE80 transaction, when you display any standard WD component, you can have option to create view or view as enhancement. this option will be shown when you right click on "Views" node under your WD component.
    what all changes you can do in standard view => add context node/attributes, new methods, add new ui elems, add pre/post exit in existing methods.
    and I have tried all these option available to enhance any standard WD Component.
    Everything has been deleted when i've deleted the Enhancemnt Implementation.
    I don't know what will be the effect after applying any enhancement pack.
    -Haresh

  • Create variable in program dinamically

    Hi Gurus,
    I know it is possible create internal tables and structures like this internal table..  but...
    Is it possible create a variable dinamically in ABAP program???
    Thanks in advance.

    Yes.
    DATA lp_data TYPE REF TO DATA.
    FIELD-SYMBOLS: <FS>.
    CONSTANTS c_type TYPE c LENGTH 1 VALUE 'F'.
    CREATE DATA lp_data TYPE (c_type).
    ASSIGN lp_data->* TO <FS>.
    The field symbol is now a floating point variable.  You can have any type, and also construct your own types dynamically, using the RTTS (search for info).
    You can also create internal tables dynamically by building on these techniques.

  • Creating symbol removes some layers

    I am having some layers (without content) removed that have sublayers with content collected into them when creating symbols from a set of layers. Why does this occur and what is the exact expected behavior?
    I am presuming layers without content on them directly are stripped? Has this been changed in CS6?

    What Monika means is that you cannot have a layer without content if that layer has sublayers. Show a screen capture of the Layers panel with all the layers open of the original and what happens after you make the symbol.

  • Mediasource creates un-removable folders in Wind

    Hello all! Im new here but I've had my player (Zen Touch 20GB) for about 9 months now and I have to say that I'm happy with it.
    You know how when you copy music from Zen Touch to your computer, MediaSource creates a folder named after the album of the song you are copying and copies the files there.
    I uses WindowsXP SP2. I was copying music from my Zen Touch using MediaSource one day. The album name was "What doesn't kill you...". The MediaSource showed an error in copying the files.
    When I checked the target directory there is a folder named "What Doesn't Kill You.." that I CAN'T access and I CAN'T remove.
    This also happened for the following albums:
    "And The Worm Jumped Over The Moon.."
    "Eventuality..."
    It seems that the trailing periods in the album name is causing the error when a folder is created with that name.
    I haven't searched for methods of removing these unwanted folders, when I do I'll post it here.
    Has anyone else encountered this? Any help is appreciated.
    Peace.

    I've had a couple of pieces of Zen related software do this.
    The solution I found was to use command prompt to rename the folder or file with an 8.3 character filename, then I could delete it.

  • Procedure for creating and removing directories

    Hi,
    following is my problem :
    I need to create a new directory when a user wants to upload/download image(s) and then
    remove this directory when the user logs out. The new directory should have have a name like Steve_images ie. every user wishing to download/upload images should do that using a
    separate directory.
    I'm need to write a procedure to login as system or sysdba to do the above. Can anybody
    suggest how can I write this procedure. Username should be easy (get it from dual).
    Thanks,
    Steve

    Hi Steve,
    never face that error myself so I did a little research. No much info on ORA errors:
    $ oerr ora 29549
    29549, 00000, "class %s.%s has changed, Java session state cleared"
    // *Cause: A class in use by the current session was redefined or dropped,
    // invalidating the current Java session state and requiring that
    // it be cleared.
    // *Action: No action required.
    But on the net:
    It seems that the second time you call the object it runs ok. Take a look here: http://www.devshed.com/c/a/Oracle/Extending-PLSQL-with-Java-Libraries-concluded/
    On the third page it talks about your error.
    I cannot personally recomend that site since its the first time I see it but they seem to have a sample chapter from one of Oracle's most well known publishers.
    Additionally, you can try to find your answer here, posting your problem:
    Java in the Oracle Database
    Good luck

  • Create and remove on read-only beans

    while playing around with read-only beans i found that calling create()
    ond read-only homes and remove on read only entities does work, which
    was new to me. 'work' just means changing the database ;)
    ist there any danger in using this (maybe just an internal feature which
    does not work in 7.0, ...) ?
    axel.

    You should definitely check out 7.0 and its support for optimistic caching. It
    does what you want.
    -- Rob
    Axel Großmann wrote:
    thanks for the quick response.
    Rob Woollen wrote:
    ist there any danger in using this (maybe just an internal feature which
    does not work in 7.0, ...) ?
    No, it'll work fine. Until 7.0, read-only beans always ran in an
    unspecified transaction. In 7.0, this has been relaxed to allow you to use
    all the tx attributes with read-only beans.sounds great; seems that we should give 7.0 beta a try.
    what comes to my mind is: if read-only beans would also write changes to
    their CMP fields to the database (and send invalidation message) we
    would have some kind of write-through-caching bean, wouldnt we ?
    this is actually what I'm searching for, since we have to port an
    application to weblogic with was designed using one bean per business
    object - mapping this to the two-bean read-mostly pattern without
    changing the present logic seems impossible without many changes and
    loosing the ability to run on other application servers too.
    so why not a 'read-mostly-bean' instead of manually implementing it ?
    axel.--
    AVAILABLE NOW!: Building J2EE Applications & BEA WebLogic Server
    by Michael Girdley, Rob Woollen, and Sandra Emerson
    http://learnWebLogic.com
    [att1.html]

  • Create or remove link between a webi doc and a category with SDK

    Hi,
    I'd like to use SDK to assign a category to a webi document, or to "uncategorized" document (remove the link between the document and a Corporate Category).
    I first tried to select the document in the infostore (via infoobjects, "select * from CI_INFOOBJECTS where SI_ID = xxx") and use the "delete" option on the "SI_CORPORATE_CATEGORIES", but obviously, this is not the right method.
    If someone has a little idea of how I can manage this link between a webi doc and a corp. category, I would be very grateful.
    Thanks !
    David

    Hi,
    This is much easier than it looks like, although it's not intuitive.
    For example, when some webi is in a category, categories where the webi is linked are underlined in blue:
    If you click in those blue marked categories and click Accept, you're unlinking the webi/report/dashboard from that category:
    -->
    Hope it helps
    Alberto

  • Single "child" ViewObject with multiple ViewLink "parents"

    Hello,
    The subject says it all. Is it possible to create View Objects and View Links appropriately such that
    ChildVO = View Object child
    ParentVO1 = View Object parent of ChildVO
    ParentVO2 = View Object parent of ChildVO
    both ParentVO1 and ParentVO2 can drive the specific rows detailed in ChildVO?
    This occurs when we have a ChildVO used to navigate/browse search results and are providing different search mechanisms via ParentVO1 and ParentVO2 to limits ChildVO's rows.
    Any suggestions? Apologies if this is a trivial/oft-posted question,
    Joe

    We have a similar scenario here - if I understand you correctly.
    We have a worklist controlling an elaborated ViewLink cascade during normal operation.
    The user can also switch to a demo mode where a different VO takes control over the whole detail shebang.
    We do this by removing/creating the ViewLinks at runtime. We have designed the ViewLinks, so that their xml files are created, but we instantiate only one of them in the AM.
    In the AM impl when switching to demo mode we do:
    ViewLinkImpl link = getWorklistViewLink1(  );
    if( link != null ) {
      link.remove(  );
    ViewLink newLink = createViewLink( "demoViewLink",
                                             "demopackage.PacsDemoLink",
                                             demoMaster, proxy );
    proxy.executeQuery(  );Switching back:
    ViewLinkImpl link = (ViewLinkImpl)findViewLink( "demoViewLink" );
    if( link != null ) {
      link.remove(  );
    ViewLink newLink = createViewLink( "WorklistViewLink1",
                                             "demopackage.WorklistViewLink",
                                             reportMaster, proxy );
    proxy.executeQuery(  );In order to make this as easy as possible, we introduced a proxy VO that has no real functionality but that ensures that only one ViewLink has to be "switched".
    worklist ---- proxy ----- detail1 ---
                       |-------- detail2 ---
                       --------- detail3 ---In demo mode:
    demoMaster -- proxy ----- detail1 ---
                            |-------- detail2 ---
                            --------- detail3 ---Works for us like a charm. Don't know if there is a more elegant solution.

  • Create dinamic HorizontalGutter

    Hello I'm creating the following HorizontalGutter dinamicly and I have
    the exception: ( java.lang.ClassCastException )
              IWDHorizontalGutter gut =
                   (IWDHorizontalGutter) view.createElement(
                        IWDHorizontalGutter.class,
                        "Gutter1" + index);
    Does anybody know what is left?
    Thanks in advance!

    //@@begin javadoc:createUIeleOrg()
         /** Declared method. */
      //@@end
      public void createUIeleOrg( int index, com.sap.tc.webdynpro.progmodel.api.IWDView view, comp.diageo.sims.wdp.IPrivateSearchPage.IOrganisationElement ele )
        //@@begin createUIeleOrg()
              IWDTransparentContainer org =
                   (IWDTransparentContainer) view.createElement(
                        IWDTransparentContainer.class,
                        SimsConstants.c_torg + index);
              org.createLayout(IWDGridLayout.class);
              IWDLinkToAction lto =
                   (IWDLinkToAction) view.createElement(
                        IWDLinkToAction.class,
                        SimsConstants.c_lto + index);
              IWDAction linkAction =
                   wdThis.wdCreateAction(
                        IPrivateSearchPage.WDActionEventHandler.TO_ORG_DETAILS,
                        c_blank);
              lto.setOnAction(linkAction);
              lto.mappingOfOnAction().addParameter(
                   SimsConstants.c_orgid,
                   ele.getOrgID());
              IWDCaption lab =
                   (IWDCaption) view.createElement(
                        IWDLabel.class,
                        SimsConstants.c_lb1 + index);
              IWDCaption lab2 =
                   (IWDCaption) view.createElement(
                        IWDCaption.class,
                        SimsConstants.c_lb2 + index);
              IWDCaption lab3 =
                   (IWDCaption) view.createElement(
                        IWDCaption.class,
                        SimsConstants.c_lb3 + index);
              IWDHorizontalGutter gut =
                   (IWDHorizontalGutter) view.createElement(
                        IWDHorizontalGutter.class,
                        SimsConstants.c_gut + index);
              lto.setText(SimsConstants.c_title + ele.getOrgName());
              lab.setText(SimsConstants.c_address + ele.getOrgAddress());
              lab2.setText(SimsConstants.c_showner + ele.getOrgOwner());
              lab3.setText(SimsConstants.c_comment + ele.getOrgNotes());
              org.addChild(lto);
              org.addChild(lab);
              org.addChild(lab2);
              org.addChild(lab3);
              org.addChild(gut);
              IWDTransparentContainer tc =
                   (IWDTransparentContainer) view.getElement(SimsConstants.c_transorg);
              tc.addChild(org, index);
        //@@end
    The code before insert the Gutter part was working, only after insert the part corresponding to the gutter, an exception is raised.

Maybe you are looking for

  • Document/literal web service

    Currently I deployed an rpc/encoded ejb web service. The ejb handles the request and response using Java methods. I can change this web service to document/literal by changing the style=document in Servicegen. Does this mean that I have to handle the

  • What is the maximum distance between a time capsule and an airport express?

    What is the maximum distance between a time capsule and an airport express?

  • Crystal reports 2008 Fix Pack 2.4 Release Notes

    It seems to be impossible to find any release notes for any of the fix packs. Can anyone point me to them? Also if it's anyone from SAP reading this why are release notes not distributed in the downloads section or a link to them. It's a ridiculous s

  • Problems deleting current row

    Hello, I have got the following problem. I have got a table with data from my database. And a dataprovider to fetch the data from my rowset. I have got a button in each row of this table where i can get details or delete the corresponding row. But wh

  • My phone icon disappeared - how do I restore it?

    I accidentally deleted the phone icon from the iphone 5 home page.  How do I get it back again?