Change the view link from Readonly to updateable.

Hi Experts,
Currently i have 2 view objects and with one view link (1 to 1 mapping). When i try the following code i am getting the exception
Integer departId= Integer.parseInt(id);
Key key = new Key(new Object[]{departId});
Row[] rows = departmentVO.findByKey(key, 1);
if(rows != null && rows.length == 1) {
employeeRow.setDepartmentVO(rows[0]);
oracle.jbo.ReadOnlyAttrException: JBO-27008: Attribute DepartmentVO in view object EmployeeVO1 cannot be set.
It seems the link is readonly. I have gone through the ViewLink xml file and found all the _updateable are true.  Am i missing anything?
Please advice me.
-t

user,
@ what time it error raise up.? give me some more. details.
for eg:
if u had a updatable view.
in that view . a had id attribute under updatable section.
there are options. never always, while new.
if you check. never optios.
if u are update something means. the error come up likes this.
i hop u undertusd.

Similar Messages

  • How do I change the email link from Windows Live to Gmail?

    I want to send a web page link by email. The email link on my awesome bar is for Windows Live. I want to use my regular email which is gmail. How do I do it?

    It worked great except on my screen I found what I needed under the "gear" button instead of the menu button.
    Thanks alot!

  • How to outer join within a view link from (VO-VL-VO)

    I've got a table that stores the values of pre-defined attributes.
    I'd like to create an advancedTable region that shows all of the attributes with or without values, in my view object i have....
    select attribute, value
    from attributes, values
    where attributes.attribute_id = values.attribute_id (+)
    This is working, but a have another view object that is the master and this is the details.
    How can I do an outer join on the view link from master to detail? A simple (+) in the where condition does not do the trick.
    If I try anything fancy within the view link, I get a JBO-27122.
    Thank you,
    Jerry.

    Understand the concept of VL. Vl is nothing but a link between two VOs, with one VO row column serve as binding column for another VO.If u understand this u go to VL wizard and make VL declaratively. If not, refer to dev guide to know about VL.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Change base view state from a custom component

    I'm pretty new to flex and I'm having a small issue in change the view state from a component.
    My Application have 2 custom components called userlogin and main menu. In the main application page I have userlogin component in one state and the main menu component in another. I'm trying to change the state if the login in successful from user login to main menu. I have the following function written inside the login component.
    private function IsUserLoggedIn(evt:ResultEvent):void
                    if (evt.result.islogin.toString() == "true")
                        currentState = "MainMenu";
                    else
                        Alert.show("Login failed, please try again.", "Login Failed");
    This code worked when I had all the controls in the main page. But then I created components and included them in to components and now when the login is success, its giving the following error.
    ArgumentError: Undefined state 'MainMenu'.
        at mx.core::UIComponent/getState()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UI Component.as:9908]
        at mx.core::UIComponent/findCommonBaseState()[E:\dev\4.0.0\frameworks\projects\framework\src \mx\core\UIComponent.as:9928]
        at mx.core::UIComponent/commitCurrentState()[E:\dev\4.0.0\frameworks\projects\framework\src\ mx\core\UIComponent.as:9750]
        at mx.core::UIComponent/setCurrentState()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\ core\UIComponent.as:9701]
        at mx.core::UIComponent/set currentState()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:6087 ]
        at components::UserLoginForm/__btnSubmit_click()[C:\Projects\WarrantyAutomation\src\componen ts\UserLoginForm.mxml:60]
    I'm sure this has something to do with accessing the states from a custom component, but I do not know how to change the state to the main menu. Please help me with this. Any help is greatly appriciated.

    Hi dasun1981,
    private function IsUserLoggedIn(evt:ResultEvent):void
                    if (evt.result.islogin.toString() == "true")
                        currentState = "MainMenu";
                    else
                        Alert.show("Login failed, please try again.", "Login Failed");
    If I am right the above function is in your userlogin component and the two components "userlogincomponent" and "maincomponent" are in main application file and the states were also defined in main application file.
    But in the function above the currentState refers to the state of the userlogin component and not the main application ...but the states are defined in main application file...that's the reason why the exception was thrown...
    Instead you replace the line in the above function with the below line:
    Application.application.currentState = "MainMenu";
    Please mark it as answer if it helped you.
    Thanks,
    Bhasker Chari

  • How to get the view link definition from the view link accessor

    Hi,
    I am using Jdev 10.1.3 and ADF BC. I am trying to do deep copy in a master/details view, after the new child record is created, I want to update the foreign key attribute. I know I can get the list of attribute definitions from the row in the view object, which include the view link accessors, I am wondering if I can get the view link definition from the view link accessors, so that I can get the source and destination attribute names.
    Thanks!

    Hi,
    you should get this through
    ViewObject vo = this.findViewObject("LocationsView1");
    int indx = vo.getAttributeIndexOf("DepartmentsView");
    ViewAttributeDefImpl vAttrDefImpl = (ViewAttributeDefImpl) vo.getAttributeDef(indx);
    ViewLinkDefImpl vdefImpl = (ViewLinkDefImpl) vAttrDefImpl.findViewLinkDefImpl();
    Note that this code starts from the ApplicationModuleImpl class, which is why I used this.findViewObject().
    Frank

  • I use to be able to rotate my iPhone and change the view of an image, Web page, email, and so on, from portrait to landscape, but after update, I cannot. I can only view in portrait mode. Anybody know what's up with that?

    I use to be able to rotate my iPhone and change the view of an image, Web page, email, and so on, from portrait to landscape, but after update, I cannot. I can only view in portrait mode. Anybody know what’s up with that?

    You need to do the basic troubleshooting steps described in the User Guide, Appendix B.
    Restart phone
    Reset phone
    Restore in iTunes using a backup
    Restore in iTunes as new, without using a backup
    If restoring as new doesn't help, there is a hardware failure in the phone that needs evaluation by Apple.

  • My phone no longer changes the view/picture/map when i go from vertical to the horizontal position is this some thing to do with the accelerometer

    my phone no longer changes the view/picture/map when i go from vertical to the horizontal position is this some thing to do with the accelerometer

    No, that would probably be the orientation lock. Check up by the battery icon and see if you have an icon with a small lock and a circular arrow. Either way, go to the Control Center, swiping up from the bottom of the screen. Look at the top row of icons and the orientation lock is the last one on the right. White is on, black is off. Just turn it off and you should be alright. Understand there are some apps that do not change into the landscape mode from portrait.

  • I can't change the view from player view to grid view in youtube

    i have a problem with youtube, i can't change the view from player view to grid view on channels that i visit, and that just happen with firefox, it dosent happen with explorer, so what can i do please?
    == This happened ==
    Not sure how often

    it didn't unfortunately, and i think that the problem in the JavaScript , Because when I click on the grid view icon i see on the bottom of the page "JavaScript" see the image:

  • Can I change the view of videos from thumbnails to details or something other than thumbnails?

    I loaded a couple of tv series and movies into my ipad air 2 and when I click on the videos app they all appear as thumbnails. I was wondering if someone could help me change the view to maybe details or something other than thumbnails just so I can view what tv series I have. I couldn't find any option any where on the screen or in settings on changing the view. Please help

    Ok nevermind I managed to sort it out.. had to change the type of video and sort the shows with their seasons. pretty long process.

  • How can I change the view from 2 Pages to one page?

    I accidentally hit something and now my document is displaying 2 pages. This is distracting and I want to go back to seeing one page at a time.

    Change the view down the bottom left corner of the window where it shows the percentage.
    Peter

  • How to change the view of the basic search portlet

    Hi,
    I want to change the view of the basic search portlet. To be more precise, I just want a text box and a Go button in it. Cananybody advise on how to do this?
    Regards,
    Priya

    Indeed the 'Basic Search Box' item is what you want to use. You can choose what label you want or an icon if desired.
    As mentioned in a previous reply, you need to edit the properties of the Page Group where you want to add the item and add the 'Basic Search box' to the list of available items that a user can add to the page group.
    Navigator -> Properties (for the desired page group) -> Configure Tab -> Edit link in the 'Content Type and Classification' section -> Item Types section add the 'Basic Search Box'.
    Now in a page in that page group, add an item, and from the list of 'Built-In Navigation Item Types' you will see the 'Basic Search Box'.

  • Views for list web parts. Is there a way to allow users to change the view for a list web part without being redirected?

    Hi,
    I added a list view web part into a SharePoint 2013 page and it  is working as expected, except for one thing.
    I have enabled the option for the user to change the view for the web part. However when the user changes it, the user is redirected away from the page containing the web part, to the URL of the list itself.
    Is there a way to circumvent this issue so when the user selects a different view it updates the listing in the web part itself, rather than the user being redirected?
    Thanks in advance for the help.
    Regards,
    P.

    Hi,
    Please understand that one page can only display one view. You could find it out by observing the Address in browser when switching among different views for a list.
    If you would like to change the view of a list web part, you could go to web part propertites > Select view and configure it.
    In addition, here is a thread with similar requirement that might help:
    http://social.technet.microsoft.com/Forums/en-US/18dba190-5ee2-4b50-b005-1360d862f4ba/how-can-end-user-change-the-view-in-a-list-view-web-part?forum=sharepointgeneralprevious
    Regards,
    Rebecca Tu
    TechNet Community Support

  • When I open ical, the calendar looks like an old desk pad vs what is in the manual.  How do I change the view (not month, day, week), but the background presentation?

    When I open ical, the calendar looks like an old desk pad vs what is shown in the manual or on-line tutorials.  How do I change the view (i.e. background) not the month/day/week view but the background template?  The default in the manual is good.  Software is current - Lion. 

    Kelly,
    Try: MacNix: Change Mac OS X 10.7 Lion iCal and Address Book Skins from Leather to Aluminum.

  • The Help Link from the Application Pages Does not Work for Peoplesoft Campus Solutions 9.0

    Hi everyone.
    I have a problem, I have been trying to set up the Help Link from the Application Pages for Peoplesoft Campus Solutions 9.0 according to the instructions given in the Document: http://docs.oracle.com/cd/E17566_01/epm91pbr0/eng/psbooks/EnablingtheHelpLinkfromApplicationPages.pdf ,  (referenced in the Doc ID 1289101.1, E-PB: How to Set Up the Context Sensitive Help with Hosted PeopleBooks using Universal Linking).
    I follow the instructions of that document carefully:
    I go to: PeopleTools -> Web Profile -> Web Profile Configuration
        2. Then I choose the Web Profile: "Development".
        3. Then Change the value for the Help URL field by entering the following URL format: http://www.oracle.com/pls/topic/lookup?id=%CONTEXT_ID%&ctx=hrcs90r5 , the ctx parameter selected is the one that correspond to  the Campus Solutions (hrcs90r5) according to the Product Line Code Table (ULinkID) especified in the mentioned document.
        4. Stop the Web Domain and Clear cache.
        5. Start the Web Domain again.
    After setting up the Web Profile Configuration I test the help links, thas is why I click in the Help link in any Peoplesoft CS 9.0 Application Page (modify a person), but the next error message appears: "We're sorry, the topic you requested was not found.".
    I tried many combinations with the ctx parameters URL but it does not work yet. 
    I did the same test, but this time using the Help URL field with a HRMS ctx parameter by entering the following URL format: http://www.oracle.com/pls/topic/lookup?id=%CONTEXT_ID%&ctx=hcm92pbr5 , and It works fine !!!
    According to the previous test you realize that It works with HRMS ctx parameter but not with Campus Solutions 9.0 ctx parameter,  Does anybody know what else can I do ? Am I doing anything wrong or missing? or maybe the Oracle's ctx parameter for Campus Solutions URL It is broken simply.
    Thanks for you help and feedback.

    2799444 - The page you are testing with appears to be a Workforce Administration page. Is that correct?
    The CS PeopleBooks would only work for CS pages, e.g.: try navigating to Main Menu > Campus Community > Personal Information > Add/Update a Person
    Also, you can use multiple ctx parameters:
    E.g.: http://www.oracle.com/pls/topic/lookup?id=%CONTEXT_ID%&ctx=hrcs90r5&ctx=hcm92pbr5&ctx=pt852pbh2
    This way the help would work for the HR related pages like Workforce Administration, Campus Solutions pages like Campus Community and also PeopleTools pages like Web Profile Configuration. Hope this clarifies your question. Thanks!

  • I can't change the view/order of music on my iPhone in iTunes.

    So, my iPhone is plugged into my MacBook Pro. iTunes is open, the iPhone is in my left column. I select the "Music" sub-cat under my iPhone, which shows me the songs on my iPhone. I cannot change the view or order in which the songs are listed. So I can't sort by name, or artist or album. It appears to be locked on genre, and only the standard list view is available.
    I've restarted the phone. I've changed all sorts of setting in iTunes preferences. I am able to add songs, but I can only delete if I go into the "manually added songs" list.
    I think this was an issue before I upgraded to Lion. Any ideas?

    To Reset your Photo Stream, follow these instructions:
    From a computer browser, go to icloud.com and sign in.
    Click on your name on the iCloud home page (this is the page that shows all the app icons). If you do not see your name, click the cloud icon in the top left of the page.
    Click Advanced.
    Here you will see the Reset Photo Stream button. Clicking this button will remove all your Photo Stream photos from iCloud. Once removed, they cannot be recovered, but you can re-upload any photos you'd like to restore to your Photo Stream from a Mac or PC.
    After resetting your Photo Stream, you can also remove any photos that have been downloaded to your device or computers. To do this, follow the directions below:
    On your iOS device, you can remove photos from the Photo Stream view by turning off Photo Stream and then optionally turning it back on. You can do this at Settings > iCloud > Photo Stream.If you added any Photo Stream photos to other albums or the Camera Roll on your iOS device, you can locate and delete these photos manually, if desired.

Maybe you are looking for