Bugreport: ViewLink-Wizard modifies Query without asking!

Hi
I think I've found a bug in JDeveloper 9.0.5.2:
Please assume the following situation:
Devices              - an Entity (Master)
Components           - another Entity (Detail), one of the Attributes is "isActual"
CompDevFkAssoc       - an Association between them
DevicesView          - Master View
ComponentsView       - Details View
DevicesVL_actualOnly - a ViewLink based on "CompDevFkAssoc"Now perform the following steps:
- open "DevicesVL_actualOnly" in the ViewLink wizard
- select "View Link SQL"
- modify the Query to look like this: ":1 = Components.DEV_ID AND Components.IS_ACTUAL = '1'"
- close Wizard by pressing "OK"
- open "DevicesVL_actualOnly" in the ViewLink wizard again
- select "View Link SQL"
=> you see the modified query
- select "View Objects"
- select "View Link SQL"
=> the Query has been changed, the custom modification has been removed!
This is a very dangerous bug, since the Query has been modified without any warning! This bug does not appear if you do not use association based ViewLinks. But note, that many-to-many ViewLinks cannot be generated without associations, so you cannot workaround this bug for many-to-many ViewsLinks!
Can anyone from oracle have a look at this?
Thanks
Frank Brandstetter

is this a known bug?

Similar Messages

  • How do I use bin variable in package without asking a user?

    hi,
    I would like to write an SQL but I want to use bind variable in package as a static without asking user? Like below?
    I would like to ask you, below there is a emp_id variable? Is this BIND variable?
    DECLARE
    bonus NUMBER(8,2);
    emp_id NUMBER(6) := 100;
    BEGIN
    SELECT salary * 0.10 INTO bonus FROM employees
    WHERE employee_id = emp_id;
    END;
    If not, like this SQL how can define a BIND variable as static inside a code? not asking a user?
    db version. 9.2.0.8
    regards and thanks

    OracleADay wrote:
    I would like to ask you, below there is a emp_id variable? Is this BIND variable?
    DECLARE
    bonus NUMBER(8,2);
    emp_id NUMBER(6) := 100;
    BEGIN
    SELECT salary * 0.10 INTO bonus FROM employees
    WHERE employee_id = emp_id;
    END;
    /In the query "SELECT salary * 0.10 INTO bonus FROM employees WHERE employee_id = emp_id" emp_id is turned into a bind variable because
    if you are coding static SQL in PL/SQL then PL/SQL wil automatically use bind variables: please read http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14261/overview.htm#sthref145.
    This can also be proved with SQL trace. The following code:
    alter session set sql_trace=true;
    declare
    v number;
    c number;
    begin
    select count(*) into c
    from t
    where x=v;
    end;
    show errors
    alter session set sql_trace=false;generates following raw trace file section with 10G XE:
    =====================
    PARSING IN CURSOR #2 len=79 dep=0 uid=69 oct=47 lid=69 tim=33338762257 hv=2860574766 ad='3c10120c'
    declare
    v number;
    c number;
    begin
    select count(*) into c
    from t
    where x=v;
    end;
    END OF STMT
    PARSE #2:c=46800,e=329811,p=0,cr=9,cu=0,mis=1,r=0,dep=0,og=1,tim=33338762253
    =====================
    PARSING IN CURSOR #1 len=35 dep=1 uid=69 oct=3 lid=69 tim=33338788761 hv=3539261652 ad='3c10053c'
    SELECT COUNT(*) FROM T WHERE X=:B1
    END OF STMT
    PARSE #1:c=0,e=216,p=0,cr=0,cu=0,mis=1,r=0,dep=1,og=1,tim=33338788755
    =====================Edited by: P. Forstmann on 17 mai 2011 17:47
    Edited by: P. Forstmann on 17 mai 2011 17:55

  • Query /report asking for input ? in Apex

    Hello all, my name is John and I am asking for help with the following,
    I am new to Oracle, Apex and SQL, PL/SQL (as you can tell from my query below.)
    I have the very basics of Apex (in that of making reports,forms etc).
    I created this query on a view in SQL Developer where it is asking for start and end dates to filter the report. , which is what I want it to do and returns the results I want.
    Now I would like to create a report in Apex where it asks for the between dates as it does in the posted query, When that is done I want to pass it to the bipublisher report for pdf printing.
    I am running this query as a totals report already (without the line with WHERE clause query asking of course.) in an apex application, crude as it may be.
    I have it running as a Interactive reports and can filter the dates that way of couse but I want to learn to create the user input type query/report in Apex.
    I have been reading that I would need to use a "pl/sql anonymous block with a "declare' and a page process?. (gettting confused in the "declare" variables and the execute sections)
    I have looked at numerous samples and still do not quite getting the blocks down.
    If you could point me in the right direction of where to go or better yet if someome could show me coding on how to get this to work in apex report/query (s)?
    Slow learn I guess
    I am using APEX 3.1.2 on 11g database.
    Thanks in advance for help on this.
    ++++++++++++++++++++++++++++++++++++
    ----query for truck totals from view-----------
    ,select
    trucktotals.truck_number as "Truck Number",
    trucktotals. truck_type as "Truck Type",
    sum (trucktotals.end_miles-trucktotals.begin_miles) as "Total Miles",
    sum (trucktotals.reg_hours+trucktotals.ot_hours) as "Total Hours",
    sum (trucktotals.total_net_tons) as "Total Tons",
    avg (trucktotals.equip_rent) as "EQR P_HR"from "trucktotals"
    <strong>where trucktotals.wage_date between to_date(:Start_date) and to_date(:end_date)</strong>
    group by trucktotals.truck_number, trucktotals.truck_type
    order by trucktotals.Truck_Number----end query for truck totals from view------------------+++++++++++++++++++++++++++++++++++++
    Edited by: [email protected] on Oct 31, 2008 12:49 PM
    Edited by: [email protected] on Oct 31, 2008 12:53 PM
    Edited by: [email protected] on Oct 31, 2008 12:54 PM

    Hi Martin,
    Thank you for the information, it is a real help to me and gives me more insight toward my learning .
    It took me little while , the condition had to be modified a little bit
    (had to put parentheses around the :PXXX_START_DATE .... END_DATE, and remove the period to get it to work).
    where (:PXXX_START_DATE) is not null and (:PXXX_END_DATE) is not null
    It does work to the sense it shows the start and end date fields and the button and the report results below that, and you can enter the dates and the results change.
    Looking at my question, I should have been a little more clear in the fact I want query to ask for the dates first in a pop up type window, when you press the "Show Report" button,
    and then branches off to show the report. That is the reason I think, I referred to a block or procedure to acomplish this?
    Thanks and still learning
    John

  • Looping a query without cursor

    Hi everybody
    i want to know that is there is any way by which we can loop through Resultset of a query without using cursor for loop in plsql
    vipul

    No. Reason:
    Any SQL statement in PL/SQL is a cursor. Any rows "obtained" from a cursor, is fetched via a read-cursor-loop mechanism.
    This can be an explicit cursor, where you open the cursor and manually code the loop with the FETCH statement.
    It can be an implicit cursor, where you simply code something like [SELECT col INTO var FROM table] - in which case PL/SQL still creates a cursor and still uses a cursor fetch to read the result of that cursor.
    PL/SQL is no different than Java or Delphi or C in this aspect. It takes a SQL statement and deliver that to the SQL Engine. The SQL Engine deals with SQL statements as cursors. It returns a cursor handle to the caller. The caller then has to fetch the rows from the cursor.
    What makes PL/SQL different is that the PL/SQL language and compiler integrates so tightly with SQL, that you can mix two different programming languages in the same source code. Unlike Java, Delpi and C, you can code native SQL inside your PL/SQL code. The PL/SQL compiler is clever enough to know what it can execute, and which source lines are SQL that need to be "wrapped and delivered" to the SQL Engine.
    Question though - why do you ask for another method? What do you view as a problem with using a cursor loop to fetch rows?

  • Query without using connect by

    Hi Guys,
    I need to rewrite the following query without a connect by command. Is there a way to do this?
    [code]
    SELECT DISTINCT *
      FROM serial_structure_table str,
           serial_catalog_table   psc,
           serial_table           sop,
           life_serials_table     lls,
           part_table             mp,
           serial_parts_table     vs,
           events_table           pe,
           task_table             lmt
    WHERE str.part_no       = psc.part_no
    AND   str.serial_no     = psc.serial_no
    AND   str.part_no       = sop.part_no(+)
    AND   str.serial_no     = sop.serial_no(+)
    AND   str.part_no       = lls.part_no(+)
    AND   str.serial_no     = lls.serial_no(+)
    AND   str.part_no       = vs.part_no
    AND   str.serial_no     = vs.serial_no
    AND   mp.maint_prog     = vs.maint_prog_id(+)
    AND   mp.maint_prog     = vs.maint_prog_rev(+)
    AND   mp.part_no        = vs.part_no(+)
    AND   mp.maint_group    = vs.maint_group(+)
    AND   str.part_no       = pe.part_no(+)
    AND   str.serial_no     = pe.serial_no(+)
    AND   str.serial_no     = lmt.serial_no(+)
    AND   str.part_no       = lmt.part_no(+)
    AND   mp.maint_code     = lmt.maint_code
    AND   str.parent_seq_no IS NOT NULL
    AND   str.seq_no IN (SELECT seq_no FROM serial_table
                          START WITH seq_no = (SELECT vss.seq_no
                                               FROM serial_structure_table vss, vehicle_serial_table vehicle
                                               WHERE vss.part_no      = vehicle.part_no
                                               AND vss.serial_no      = vehicle.serial_no
                                               AND vehicle.vehicle_id = '120')
                          CONNECT BY PRIOR seq_no = parent_seq_no)
    [/code]
    Many Thanks,
    Napster

    Hi Frank,
    This query which fetches a data set to a report... So when executing this query in the report I will need to have a sql expression something like below...
    select *
    from MY_VIEW
    where vehicle.vehicle_id = '&Vehicle_Id'
    When the above is run user will be asked to insert a vehicle id and that will be the user input for my sql statement... (I inserted the value 120 here just for the testing purpose). In here I will need to create a view (something like MY_VIEW which consist of the entire sql expression) as long sql expressions are not supported in our tool. So I have to compile a view with the results set without the connect by clause...
    Just let me know if it is still not clear..
    Thanks
    Napster

  • Can't login to wireless network. Deleted network but still time-out trying to login without asking for new password

    Well I am downgrading (if you can call it that). Leopard and Snow leopard are just superior OS's for power users. All the fancy stuff put in Lion actually slowed it down considerably among all the other bugs..... but anyway
    I changed my network password today. My mbp on lion cannot access the network. I deleted the saved names in network preferences, I rebooted my modem an router, even cleared the DNS cache in Terminal. It still tries to connect to the network and times out... without asking me for the new WEP password I have put on the network.
    My other laptop on snow leapord does what it is supposed to. Deleted the network name in network preferences, clicked on network name to get online, and then it requested the password name. Why doesn't Lion do this??
    Like I said before I did all the above. I don't know what else to do. I also manually deleted the keychain passwords. Still no luck. I guess I have to rename my network lol.

    Access the router's admin area and put in a new password.

  • How to write a SQL Query without using group by clause

    Hi,
    Can anyone help me to find out if there is a approach to build a SQL Query without using group by clause.
    Please site an example if is it so,
    Regards

    I hope this example could illuminate danepc on is problem.
    CREATE or replace TYPE MY_ARRAY AS TABLE OF INTEGER
    CREATE OR REPLACE FUNCTION GET_ARR return my_array
    as
         arr my_array;
    begin
         arr := my_array();
         for i in 1..10 loop
              arr.extend;
              arr(i) := i mod 7;
         end loop;
         return arr;
    end;
    select column_value
    from table(get_arr)
    order by column_value;
    select column_value,count(*) occurences
    from table(get_arr)
    group by column_value
    order by column_value;And the output should be something like this:
    SQL> CREATE or replace TYPE MY_ARRAY AS TABLE OF INTEGER
      2  /
    Tipo creato.
    SQL>
    SQL> CREATE OR REPLACE FUNCTION GET_ARR return my_array
      2  as
      3   arr my_array;
      4  begin
      5   arr := my_array();
      6   for i in 1..10 loop
      7    arr.extend;
      8    arr(i) := i mod 7;
      9   end loop;
    10   return arr;
    11  end;
    12  /
    Funzione creata.
    SQL>
    SQL>
    SQL> select column_value
      2  from table(get_arr)
      3  order by column_value;
    COLUMN_VALUE
               0
               1
               1
               2
               2
               3
               3
               4
               5
               6
    Selezionate 10 righe.
    SQL>
    SQL> select column_value,count(*) occurences
      2  from table(get_arr)
      3  group by column_value
      4  order by column_value;
    COLUMN_VALUE OCCURENCES
               0          1
               1          2
               2          2
               3          2
               4          1
               5          1
               6          1
    Selezionate 7 righe.
    SQL> Bye Alessandro

  • How do I stop Firefox from choosing a format for my downloads without asking me how I want to open it?

    When I try downloading word documents, Firefox automatically opens them without asking me how I want to format them. So far, all I get is strings of numbers. I believe i pressed ' always download similar files this way' at one point but I want to change it and can't find how.

    I looked at the Applications tab, it was set to always ask, but it's not asking, It just keeps automatically downloading, even if i set it to use a different program.

  • How do I revert back to previous (before 11) itunes. Someone nicked my Album Cover flow, without asking

    how do I revert back to previous (before 11) itunes.
    Someone nicked my Album Cover flow, without asking. I have snow leopard. I was happy. Just before Christmas as if I havent got enough to do Thank You. I've given Apple loads of money this year--presents and all, the least they could do is tell me, they're going to take stuff off of My computer that I enjoy,/ find very useful/ and worked hard to update all my album covers and have a gallery of my own artwork for my mixes--it was beautiful. When I went to add some more, the facility had been taken away from me. Was so dissapointed. They send me emails all the time to buy the latest must have products. I even did a questionair to help them. They really care for their customers--right. So why couldnt they warn me about this update, its only polite.
    If I bought a warm coat some years ago, then the manufatures came round without my knowledge and cut off the left arm, and later told me, their reserch says that people dont use the left arm so much so they have to get rid of it. 1. I think that would be illegal. 2. its impolite not to ask if they could do it. 3. why not give me an options to keep it, seeing as i bought it. 4. its ludicrous.
    I trusted Apple-but then -they took my YouTube off my ipad. I cant update to newer software as I will lose some expensive programms (Im not made of money). I also have 2 oldish defunct but fully working laser printers (if they were compatible with new software).
    Im not a techky-I just use the stuff, I do art and music and Cover Flow was equipement I used.
    I want to get rid of itunes 11, anyhelp out there

    click the blue download button...
    http://support.apple.com/kb/DL1576

  • Apple set my iCloud storage at $40 without asking or telling me. They won't let me contact them to fix that unless I pay for support. Nor will they let me downgrade. How do I talk to Apple?

    Apple set my iCloud storage at $40 without asking or telling me. They won't let me contact them to fix that unless I pay for support. Nor will they let me downgrade. How do I talk to Apple?

    Have you actually been charged? Did you convert from MobileMe?  If so, you'll be automatically put on that plan, but revert to the free one when your current one expires.

  • Needs  help to retrive the last row in a  select query without using rownum

    Hi ,
    i need to retrive the last row from the select sub query without using rownum.
    is there any other way to retrive the last row other than the below query.
    is that the ROWNUM=1 will always retrive the 1 row of the select query ?
    select from*
    *(select ename from employee where dept_id=5 order by desc) where rownum=1;*
    Please advise.
    thanks for your help advance,
    regards,
    Senthur

    957595 wrote:
    Actually my problem is ithat while selecting the parents hiearchy of the child data using
    CONNECT BY PRIOIR query
    I need the immediate parent of my child data.
    For example my connect BY query returns
    AAA --- ROOT
    BBB --PARENT -2
    CCC --PARENT-1
    DDD IS my input child to the connect by query
    Immediate parent of my child data "DDD" ---> CCC(parent -1)
    i want the data "CCC" from the select query,for that i am taking the last row of the query with rownum.
    I got to hear that using ROWNUM to retrive the data will leads to some problem.It is a like a magic number.I am not sure what the problem will be.
    So confusing with using this rownum in my query.
    Please advice!!!It's not quite clear what you're wanting, but perhaps this may help?
    you can select the PRIOR values to get the parent details if you want...
    SQL> ed
    Wrote file afiedt.buf
      1  select empno, lpad(' ',(level-1)*2,' ')||ename as ename, prior empno as mgr
      2  from emp
      3  connect by mgr = prior empno
      4* start with mgr is null
    SQL> /
         EMPNO ENAME                                 MGR
          7839 KING
          7566   JONES                              7839
          7788     SCOTT                            7566
          7876       ADAMS                          7788
          7902     FORD                             7566
          7369       SMITH                          7902
          7698   BLAKE                              7839
          7499     ALLEN                            7698
          7521     WARD                             7698
          7654     MARTIN                           7698
          7844     TURNER                           7698
          7900     JAMES                            7698
          7782   CLARK                              7839
          7934     MILLER                           7782
    14 rows selected.(ok, not the best of examples as the mgr is already known for a row, but it demonstrates you can select prior data)

  • Why does FireFox change layout/settings during upgrades without asking ?

    Just upgraded to Firefox 18 (windows 7 desktop). Why does Firefox change layouts/settings without asking the user if he wants it or not???
    I am getting sick of those changes. I want to have at the google main page the options (as before) to search in all languages, or pages from a certain language or pages in a certain language (of course depening of the google address; f.i. at google.de for german languages, google.fr for french languages etc).
    In the latest Firefox 17 it was working as I wanted and described before: when I visited www.google.de/firefox of www.google.fr/firefox. Now those 3 options (under the search bar) are gone and I do not want to operate by clicking on the advanced search button. Those things should be visible under the search bar again.
    Also my STARTPAGE was GONE/DELETED after the update !!! Grrrrr.... Updating is OK but mozilla should not change user configured items !!!!!!!
    The above described problem has nothing to do with the google website.

    By the way, do Firefox and IE use the same proxy settings? You can view Firefox's here:
    orange Firefox button (or Tools menu) > Options > Advanced > "Network" mini-tab > "Settings" button
    The default is "Use system proxy settings".

  • Itunes deleting apps without request and without asking confirmation

    as soon I install itunes, I have a huge slow down of all XP. Installation takes a long time, it freezes XP very often. Once it s installed, it takes a long time to start (often more than 1 minute), often freezes XP. quicktime steals the default access for mp4 files, each time I try to use explorer on a folder with MP4 files, xp freezes for minutes, it never shows previews, takes a long time to start when it effectivly starts, reads a lot less than open readers like vlc or mpc. when I try to set another reader as default reader for MP4, quicktime keeps the hand on it, cannot get rid of freezes withoout deleting quicktime, witch make itunes unavailable
    LAST BONUS: after having reinstalled itunes to sync my contacts, it tried to sync the apps without beung asked (maybe because i dowloaded 2 apps on my computer) and STARTED TO DELETE ALL OTHER APPS WITHOUT ASKING CONFIRMATION DELETTING ALL MY DATAS
    TOO MUCH FOR ME
    BYE ITUNES

    No, they actually thought that people would use autosync and have one master library. They didn't think that people had 3 or 4 computers that they would spread their music/videos over. Why not combine all your files on one computer?
    As far as music/videos from your Aunt's computer, those aren't yours and the other reason for Apple doing what you want is they don't want people stealing music. Please don't steal music.
    One more thing, on your master computer that the iPod is linked to, set it to manually manage your music and you can use it between different computers. You will have to eject it manually every time you are through syncing/charging and want to remove it.

  • Upload file without asking user for the file

    Hi,
    I need to upload a file to server, but from my code, not using the file upload from page.
    I have created a xml file and I need to upload to server when user open a web browser (without asking user to select a file).
    How do I proceed??, or what kind of libraries do I must use?
    thanks

    davisote wrote:
    Hi,
    thanks for answer.
    Let me try to explain again (I think its very simple).Simple, yes. But not very thorough.
    I have developed a web application using JSF.So all the code is running on the server, right? There are no Applets, Applications or WebStart applications involved. Right?
    My application has a splash screen where I show data. I have developed a bean to connect to my database (sql server), extract this data and create an xml (using DOM) file like:
    <news>
    <simplenews id="1"> Value </simplenews>
    </news>And that bean runs ... where? Server again?
    (important step) Once I have created the xml file in my bean I want to upload to the server to a place like /WEB-INF/news.
    If the code is running on the server, then "uploading" is the wrong term, as there's nowhere to upload to, since you're already on the server.
    This may sound like nit-picking, but you're sending us on a wrong trail with this phrase.
    Once the file is on the server with another bean I read the xml fileWhy don't you simply store it in the application scope and let everyone access it from there? It doesn't sound as if the XML is huge.
    As you can see I haven't a web page where to show an upload file componetYou also don't want to "upload" anything from the client, from the sound of it.
    You simply want to transfer data between to server-side components, if I understood you correctly.

  • Play an audio file in JSP or Servlet without asking to save

    Hi,
    I struck with one problem since so many days. My problem is, i am having stream content for ringtones to play in database. In servlet, i am setting the content type to *"audio/x-wav"* and writitng the response to the output stream by retrieving the streaming content from the database.
    The problem is, with Internet Explorer it's a working beauty that it was playing in Windows Media Player without asking for saving. But, the problem is with Mozilla browser which was showing the save as dialog box which i couldn't do.
    Is there any solution that i can play so that audio will be played without opening any player by default provided in the system or can i create a plugin for player in the server so that the player in the server will be opened and played without the need to search for players available in the system.
    Please provide me the solution.

    You need to embed an audio player in your JSP. You can use the HTML <object> tag for this.

Maybe you are looking for

  • Added WRT54GL to Roadrunner, no internet, I've tried everything!

    I installed my Linksys wireless router to my Roadrunner connection so I can get all of my 3 computers online. I can hook one computer directly to the modem and of course it can get online, but I get nothing with the router added into the mix. I've se

  • LT12 TO confirmation error for multiple line items

    Hi Experts, We recently upgraded to ECC 6 DIMP EP6. We are not able to confirm TO with multiple line items. It is failing with an error message VL 198 that 0 quantity of material is available. We are able to confirm TO line items one by one. This TO

  • Calculating a record length of a table

    Hi All, In SAP 4.6C Oracle 9g I need to find a record length of a table.For that I am using : Table name is ABC. Tablespace in KBytes of ABC    X Total no records in ABC  Y Single record length in Kbytes (Z) =  Tablespace (X) / Total no of records(Y)

  • Ke5z with amount in group currency

    Dear all, i need to have the amount in group currency in transaction KE5Z or another similar report. Some of you can help me? thanks for help, regards, Elena

  • Downloading Adobe Acrobat 8 Professional from Adobe site

    I just had my computer wiped at Staples and I forgot that my disc drive doesn't work! Now I need to reload my Acrobat and I don't know what to do!? Can I download Adobe Acrobat 8 Professional from the Adobe site using the serial number on my box? Tha