Read only view object replaces all of my attributes transitional when I change it

We have a read only view object that is a large query that calls a stored procedure.   If I change the query and simply add a space character and save it, all the attributes change to be transitional and it completely breaks the view object.   The query uses an alias for each of the selected values, and I was able to replicate this with the simple query stand alone below.

SELECT "Value1" as requestId,

'value2' as accountId,

"value3" as "Mr_Barcode1."

"value4" as "dr_date."

"Value5" as "dr_user_first_name".

Of the DOUBLE

Create a read-only display object and paste the query above in the sql pane and keep.   It creates correctly calculated for the 5 columns returned attributes.    Then enter and modify the query and change anything (add a space) and save.   The last 3 attributes get changed to transients and the expression gets deleted in each attribute

It's about Jdeveloper 11.1.1.4.   I thought I would post here first of all before you try open a bug with Oracle.

I discovered that the problem is related to what the quotes around the alias.  The person who created this originally borrowed display object from another application and the alias sql was points/periods in the names and the only way that works if you put quotes around it as below.   That works well in SQL Developer, but I get the obvious mentioned the problem when using this query in jdeveloper.   If I remove the points and the quotes in the alias I don't encounter this problem.

SELECT "Value1" as request_Id,

'value2' as argument account_Id,

"value3" as "d.barcode_Id."

"value4" as "d.date1."

"Value5" as "d.first_Name".

Of the DOUBLE

Gets the XML in view objects defined like this (apostrophes around the double quotes).  It works the first time you save but when you edit the expression is removed, it gets changed to a transitional.

AliasName = ' "dr_date."

Expression = ""dr_date"

I still think it's a bug, but now I can work around it.

Tags: Java

Similar Questions

  • Read-only data objects

    What is the best way to ensure that the data in the cache is not changed once it is placed in the cache? Is there a way to specify that objects are 'read only '?

    My cache clients must have the ability to read and write to and from the cache, but should not be able to change (or replace) the existing entries. They should just be able to read existing entries or add new unique entries.

    Thank you!

    Hello

    You should be able to extend WrapperNamedCacheto get the desired behavior.

    A close example of what you want to do is ReadonlyNamedCache

    Thank you
    -Dave

    Edited by: dcarrano on December 1st, 2009 16:05

  • disarm read only of invalid property - all mean read only files

    Windows Vista Home premium, I reorganized some folders between 2 users (mother and daughter) and now all files and folders appear to be read-only and I can save is no longer with applications Ms. Also when I right click to change permissions... it seems to apply to all files and folders, but after has been taken, no effect.

    just to add effect... my virus Trojan virus program does find and puts the files in quarantine a few per day I delete... I think it's just part of the environment...
    Thank you

    The reading box only file says that for an indefinite period. It's a tri-state checkbox. Read has no effect on the behavior of a file that records cannot be read-only. The box does not read only bit on a file.

  • Not set to read only on the files so that they can be shared and changed on a network.

    I've seen any other questions on this subject, but they do not solve my problem.  I had to reset my network because I have a new router.  Now I can open the files on my main computer from another computer, but they always opened read-only.  I tried to set sharing and security to allow the share on the network and allow network users to change files.  But I can not turn off the box next to 'read only' in the general tab.  I also tried to start XP in safe mode and take possession of the file (article 308421), but this does not work either.

    I also tried in vain to change the attributes of command line to remove the read-only attribute and to set the system attribute, use the following command:

    attrib - r + s drive:------------

    After trying a few other corrections, I finally did a system restore before the installation of the network.  Then, I used the Network Wizard to reconfigure the network. I changed the name of the computer, so I knew what was the new connection.  Then I copied the wizard network on a USB key and reconfigured the second computer.  Now everything works fine (I can open, edit and save files between computers) even if the readonly attribute is always highlighted on the record.

  • Make editable in read-only views?

    Hello!

    Is it possible to make a view editable readonly? I need for a month of closing. If a closed month data are displayed the notice should be readonly.

    Thanks and greetings
    Kai

    You can make each editable attribute, or if the display is based on EO, then you can do the EO Update

  • Why the focus is on data read only Alta UI app samples / videos but not on data entry / change app / video samples?

    Mr President.

    When I go on YouTube or Alta models of sample I only found applications out there or videos but very little on how to enter data or change data or video applications.

    I want to build beautiful form of data entry, but I found very little advice and examples.

    Me not very imaginative, so I need some samples to build this seizure data forms or data entry tables.

    All samples build in the shoes of Alta UI please.

    Concerning

    Alta UI has nothing to do with the CRUD.

    As a simple goolge Let me google that you will give you plenty of samples.

    Timo

  • ADF BC to SQL Server connection with variable set to View object

    Hello world

    I develop a BPM Application using Oracle BPM 11.1.1.5.0 and JDeveloper 11.1.1.5.0

    Following the thread of the link below, since it is a new topic, I decided to open a new thread.

    Re: ADF method call to extract data from DB before loading the page from the initiator

    what I try to do is to get a record from a database and show to the user on the initiator of the UI using ADF BC and not the database adapter.
    I have worked with ADF BC and display objects to get all the lines and show them to the user in a table.

    However, when I try to run the same query in the parameterized shape just return a single line, I hit a wall.
    In short, my problem is like this:

    I have an Application Module which has an entity object and a display object.
    My database is SQL Server 2008.
    When I try to create a new read only view object to return a single line I face the problem.
    The query that I have in the section my display object query is like this:
    select *
    from dbo.Employee
    where EmployeeCode= 99
    which works very well.
    However when I set a variable input_code, linking for example and change the query as follows it won't validate.
    select *
    from dbo.Employee
    where EmployeeCode= :input_code
    He just telling me
    >
    incorrect syntax near ': '.
    >
    I don't know if this has to do with my Oracle DB is not or I'm doing something wrong.
    Can someone help me with this you problem?

    Thanks in advance

    The problem is that you are using 'Oracle named' style for the binding of parameter in the SQL statement. However, this style of binding is specific Oracle. You must use "Positional JDBC" style of binding with MS SQL Server:

    select *
    from dbo.Employee
    where EmployeeCode= ?
    

    (The style of binding is specified in the query to the dialog box Definition VO Editor pane).

    If you specify the positional style of binding "JDBC", another field called 'Linking the Positions' will appear in the definitions pane variables bind VO. You will be able to specify it is the position of the particular parameter in the binding variable VO query bound to. (the position of the bond index is 0-based).

    Dimitar

  • How to create LOV not based on an attribute of the View object?

    Hello

    I have created a form of research made hands, and I want to create an af:inputListOfValues.

    I have:
    -a read-only-view-object to get the values of BD LOV.
    -tag af:inputListOfValues (droped component Palette).

    How can I create the listOfValuesModel in the layer of links? (the inputListOfValues is not based on an attribute of the View object).

    Possible solutions.

    1. Add a dummy VO in the layer of model with a single attribute. Create LOV to the attribute and use this attribute in your view.
    2. OR visit http://andrejusb.blogspot.in/2008/02/list-of-values-component-in-search-and.html

  • Display object attribute transitional (calculate amount) using groovy problem

    Hello

    I have a read-only view object named 'ConnectionVVO '. And there the database field name ' points of "(type is number)."»
    Now, I need to take the sum of the points.

    For this, I did the following.

    View free object added to the same view as a view accessor named 'ConnectionVVO1 '.
    Created a transitional attribute named "TotalPoints".
    Added after groovy as an expression of the value of the transient above attribute.
    adf.object.ConnectionVVO1.getRowSet().sum("points")
    After that, when I run the module the application and run the view object that is extremely slow. In fact nothing had appeared. After I changed the sql statement and added a clouse where clause to select a few lines.
    Then he was appeared without delay.

    The table has about 11 million documents.

    Could you please provide a tip or any other way to do this (get the sum of the points).

    Help, please.

    Published by: benoit on March 9, 2011 14:56

    The problem is that you browse through all the data to summarize all the point values. Do this to 11 million lines takes time (lots of db back and forth). This is the reason why you must use a new VO with a query like

    select sum(points) from yourtable
    

    When you run this VO the sum is constructed in the comic book, using caches generate with one trip to the db and the DB. This should give you much better performance.

    The solution you found in the blog is only good for small data sets.

    Timo

  • Cannot modify read only options for all my files

    Original title: properties of the file.

    All of my files have become "read only".  Even if I'm an admin I can't change that.  If I open the properties and uncheck the read-only box, it emerges, I click on apply and OK, but the file remains read-only.

    Hi David,

    Thanks for posting your query in Microsoft Community.

    From your description, it seems that you can not change the only option of reading to all your files in the computer.

    I'll be happy to help you. This problem can be caused if the files are corrupt and comes into conflict with other programs.

    I would be grateful if you could answer the following questions:

    1 have you ever done any recent hardware or software on your computer changes?

    2. have you created the file read-only?

    I suggest to follow the steps below and we update on the State of the question.

    To view or to remove the read-only or the attributes of system files in Windows Vista

    a. click Start, click run, type cmd, and press enter.

    b. to display the syntax for the Attrib command, type attrib /? at the command prompt.

    To remove the read-only attribute and to set the system attribute, use the following command:

    attrib - r + s drive:------------

    For example, to remove the read-only attribute and set the attribute to system for the C:\Test folder, use the following command:

    attrib - r + s c:\test

    Be aware that some programs may not operate correctly with folders for which the read-only attribute and the system attribute are granted. Therefore, use the following command to remove these attributes:

    attrib - r s by car:------------

    For example, to remove both the read-only and the attributes to system for the C:\Test folder, use the following command:

    attrib - r-s c:\test

    If the run command is not listed in the Start menu, follow these steps:

    Click Start, click principally made programs, Accessories, and then click run.

    For reference:

    You cannot view or change the read-only or the attributes of system files in Windows Server 2003, Windows XP, Windows Vista or Windows 7:

    http://support.Microsoft.com/kb/326549

    For all windows questions do not hesitate to contact us and we will be happy to help you.

  • How to execute the query of a View object in the doDML() method?

    Dear all
    I'm new with ADF.
    I have a READ ONLY display object called CurrencyRatevo.
    Select f_get_rate(:p_cur_id) From Dual
    This VO calculates the rate of change.
    And I have a "ExpenseTransaction" entity object for expenditure operations. This EO contains an attribute called "CurrRate" for the exchange rate.
    This attribute must be filled automatically before saving it.

    I like to write code in the method doDml() to populate the attribute 'CurrRate' of the result of the 'CurrencyRatevo '.
        protected void doDML(int operation, TransactionEvent e) {
            super.doDML(operation, e);
    // after insert operation
    // I want to get the result of the "CurrencyRatevo". and populate the attribute" CurrencyRatevo"
        }
    }
    Can someone help me to cela, or has another solution?
    Thank you

    @santosh
    David wrote: well Yes... you can not access the vo eo...

    That is not exactly true.

    @ta *.
    >
    I like to write code in the method doDml() to populate the attribute 'CurrRate' of the result of the 'CurrencyRatevo '.
    >
    You can do by following these steps:
    1 - go to the entity of ExpenseTransaction and accessors in view an accessor to add to CurrencyRatevo.
    2 - override doDML () method, something like this code

        @Override
        protected void doDML(int i, TransactionEvent transactionEvent) {
            if(i==EntityImpl.DML_INSERT)
            {
                RowSet departmentsView1 = this.getDepartmentsView1(); //replace this with your ViewAccessorName
                departmentsView1.setNamedWhereClauseParam("p_cur_id", 10);
                departmentsView1.executeQuery();
                DepartmentsViewRowImpl first = (DepartmentsViewRowImpl)departmentsView1.first();
                this.setCurrencyRatevo(first.getDepartmentName());
            }
            super.doDML(i, transactionEvent);
        }
    

    Published by: Mohammad Jabr on April 26, 2012 11:18

  • After XP to upgrade file Windows 7 stuck in read-only State.

    Upgraded from XP Home to Win 7 Home Premium. Number of records is stuck in read-only State. I tried what is obvious: clic click on folder, uncheck the read-only and apply to all folders/subfolders. Also, went to security and gave to all users and groups full control to the folder and all its subfolders. But still the read-only State. Only one user has been setup on the computer, and the user has full administrative privileges.

    Same problem for me, I have tried everything suggested above, except that the suggestion of WilliamJE and was still stuck. (I don't really understand the suggestion of WilliamJE.)

    I think I've solved the problem for me but by following these steps:

    -Open 'properties' on the higher level folder to edit attributes

    -Click on "security" tab.

    -Click on "advanced".

    -Click on "change permissions".

    -Click on 'Add '.

    Enter "Everyone" in the dialog box "enter the object name to select.

    -Click on "check names".

    -Click OK

    -Click on "full control" under the "allow" column

    -Click OK

    -Click on the box (turn on) 'replace all permissions of child object with permissions inheritable of this object.

    -Click OK

    -confirm the type "are you sure" messages that appear along the way

    and you should be set! Phew!

  • AF:table does not display the records to make the updating of the view object iter

    Hi Experts,

    I use JDeveloper 11.1.1.4 and I have a page that shows a view object records one particular reading as an af:table. When I run the page to everything first he shows all the data at all. But there are 2 folders when I run the query that only read the view object. In my page there is a link called "Refresh" which calls the operation "Execute" in the view of my view object iterator. When I click on this link the table shows two records. Why the table shows no files once when the page is rendered?

    Please help me.

    Hi user,

    Yes use component query to display criteria. Please let me know if something specific I need to check when I use the query component. If you have already faced this problem please help me to solve it.

    you are looking to do this,
    http://www.4shared.com/photo/B36OTSl9/check.html

    Published by: Les on November 22, 2011 12:26 AM

  • Implement conditional read-only column in the set of two Tables

    Hello

    I would like to implement a mechanism of "read-only conditional" on a column in a table with two tables in total to be involved in this situation.

    I have a demo/proof of concept of the present and things work as expected in the tests I've done; However, I would like any input as to if there is a better way, etc.

    This is a far-fetched but demo that illustrates the main ingredients however. Oracle 10.2.0.4 version 64 bit on Windows Server 2008 Release 2 64-bit.

    -Table DDL and small sample data
    create table band(
      band_id   number primary key,
      band_name varchar2(20),
      status    varchar2(20)
    );
    
    create table band_member(
      band_id references band,
      member_name varchar2(20)
    );
    
    insert into band values(3, 'The Rutles', 'prefab4');
    insert into band values(4, 'The Beatles', 'established');
    commit;
    
    insert into band_member values(3, 'Ron Nasty');
    insert into band_member values(3, 'Dirk McQuickly');
    insert into band_member values(3, 'Stig O''Hara');
    insert into band_member values(3, 'Barrington Womble');
    commit;
    
    insert into band_member values(4, 'John Lennon');
    insert into band_member values(4, 'Paul McCartney');
    insert into band_member values(4, 'George Harrison');
    insert into band_member values(4, 'Ringo Starr');
    commit;
    -The rules relating to the conditional objective of read-only

    1 is not allowed to update band.band_name when band.status = 'prefab4'
    2 is not allowed to insert/update / deletion of lines of band_member when the parent a band.status row = 'prefab4'

    -The triggers used to implement the goal (current solution)
    create or replace trigger t1
    before update of band_name on band
    for each row
    when (old.status = 'prefab4' or new.status = 'prefab4')
    begin
      raise_application_error(-20010,
        'can not update band_name when status=''prefab4''');
    end;
    /
    
    create or replace trigger t2
    before insert or update or delete on band_member
    for each row
    declare
      l_status band.status%type;
      l_band_id band_member.band_id%type;
      cursor l_cursor (p_band_id number) is
      select status from band
      where band_id = p_band_id
      for update;
    begin
      if updating or inserting then
        l_band_id := :new.band_id;
      else
        l_band_id := :old.band_id;
      end if;
      open l_cursor(l_band_id);
      fetch l_cursor into l_status;
      close l_cursor;
      if l_status = 'prefab4' then
        raise_application_error(-20011,
          'can not update child when parent status=''prefab4''');
      end if;
    end;
    /
    -Quick example of test for each condition
    update band
    set    band_name = 'THE RUTLES'
    where  band_id = 3;
    
    update band
           *
    ERROR at line 1:
    ORA-20010: can not update band_name when status='prefab4'
    ORA-06512: at "DEMO.T1", line 2
    ORA-04088: error during execution of trigger 'DEMO.T1'
    
    
    update band_member
    set    member_name = 'RON NASTY'
    where  member_name = 'Ron Nasty';
    
    update band_member
           *
    ERROR at line 1:
    ORA-20011: can not update child when parent status='prefab4'
    ORA-06512: at "DEMO.T2", line 18
    ORA-04088: error during execution of trigger 'DEMO.T2'
    As I said, while my simple tests seem to show the correct results, there I was wondering if there could be a better way to implement such functionality.

    I tried to provide the information needed, but if I managed to omit something, please let me know.

    See you soon,.

    Chalfont

    Hi, Chalfont,

    user13146957 wrote:
    ...
    I'm went to the road to slider to add the clause "for update" to force the serialization on the line - i.e. the idea was to avoid the case where another session might want to update the State a moment after my extraction but before the rest of the finished code. Who is?

    No, not really. The trigger on tape prevents anyone else from ever change their status from 'prefab4' to something else (or vice versa).
    Even apart from this, you put some efforts to prevent something which will be allowed a fraction of a second later (or maybe the other way around). What is significant in that split second?

    I didn't think about other ideas rather than the approach of the trigger, but came up empty, somehow, to this day. I am open to resort to others and make some schema changes is not off the table either.

    FGA (Fine grain access), or his brothers and sisters more older VPD (virtual private database) can also do what you want, but instead of trigger an error, they ignore the illegal action. This can be an advantage or a disadvantage, depending on your needs.

    Another approach is for the owner of the table, not to grant INSERT, UPDATE or DELETE privileges to anyone: all DML must be made via a procedure (or procedures) belonging to the owner of the table, which grants EXECUTE privileges instead of other privileges.

  • How to make Toshiba USB 250 GB HARD drive read-only?

    Hello

    I just plug a Toshiba USB 250g external hard drive to replace all the sticks of memory, I've been using.

    I'll use this external hard drive to copy files to other computers and I would like to know how to make the drive read-only.

    Moreover, all the other tips to protect the disc would be extremely welcome.

    I use a Dell with Windows 7 laptop.

    Thank you very much

    Dougal

    I don't know what HARD drive you have exactly, but I know that Toshiba offers a software protection with external hard drives.
    Did you check manuals? Is something like that provided with your HARD drive?

    Maybe you need to use some third party software part for the protection of files on the HARD drive. Google all over the place.

Maybe you are looking for