Method "LOCK" is unknown or PROTECTED or PRIVATE for Value Node

Hi Experts,
Please help me to resolve this issue.
I am unable to lock the entity for Value Node and I doing this because I want to edit my custom view of the assignment Block.
Actually, I have created a custom view for custom BOL in BP_HEAD Component, Later I have added this view to the AccountDetailsViewSet of the BP_HEAD and Now I have added the Edit Button to my custom View in DO_PREPARE_OUTPUT Method of the view controller.
And now when I about to write the code it says there is no lock method available for Value Node and also I am unable to edit the view
Syntax Error: Method "LOCK" is unknown or PROTECTED or PRIVATE.
DATA: lr_entity     TYPE REF TO CL_BSP_WD_VALUE_NODE.
      lr_entity ?= me->typed_context->Root->collection_wrapper->get_current( ).
      IF lr_entity->lock( ) EQ abap_true.  " I am receiving syntax error here.
        me->view_group_context->set_view_editable( me ).
      ENDIF.
Thanks,
Bujji

Hi Bujji
It is not possible to use lock on value node entity. If you want to set your view to editable, you can use the logic as seen in the method 'ASSIGN_EDITMODE_2_VIEWS' of the account view set impl class in standard.
Hope this helps.
Regards,
Nisha

Similar Messages

  • [svn:fx-3.x] 7499: Addendum to fix for BLZ-233 - adjust visibility of new internal heartbeat util methods to protected from private .

    Revision: 7499
    Author:   [email protected]
    Date:     2009-06-02 16:10:08 -0700 (Tue, 02 Jun 2009)
    Log Message:
    Addendum to fix for BLZ-233 - adjust visibility of new internal heartbeat util methods to protected from private.
    QA: No
    Doc: No
    Checkintests Pass: Yes
    Ticket Links:
        http://bugs.adobe.com/jira/browse/BLZ-233
    Modified Paths:
        flex/sdk/branches/3.x/frameworks/projects/rpc/src/mx/messaging/ChannelSet.as

    inspired2apathy wrote:
    ... The goal is a ScrollPane that automatically wraps the text inside it. I've just about got it, but I have one thing that's not working. If I just put the JTextArea{s} in as the Editor, then you lose the any text that doesn't fit inside whatever the initial size was. Instead, I put the JTextAreas inside a JScrollPane which works fine, except that I still have to determine the size of the JScrollPane in advance. I would like to make each Editor/JScrollPane start out with just a single line of text and expand until it reaches a certain small number of lines.
    ... What am I missing?THE BASICS. See if this isn't what you are trying to do.
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTextArea;
    public class Test
      public static void main(String[] args) {
        JTextArea ta = new JTextArea();
        ta.setLineWrap(true);
        ta.setWrapStyleWord(true);
        JScrollPane sp = new JScrollPane(ta);
        JFrame f = new JFrame();
        f.getContentPane().add(sp, "Center");
        f.setBounds(0, 0, 400, 300);
        f.setDefaultCloseOperation(f.EXIT_ON_CLOSE);
        f.setVisible(true); 
    }OP, your code was too long and complicated for me to compile and run. However, aren't you forgetting the two simple methods <tt>JTextArea.setLineWrap()</tt> and <tt>JTextArea.setWrapStyleWord()</tt>? Furthermore, I absolutely see no need for you to extend SWING components for demonstration this simple -- that is, if I understand your problem correctly.

  • There is a program unfortunately just called "Cookie" (so I can't be successful doing a search here) that is supposed to help protect our private information that resides on our computers.  Has anyone used this and is it worth buying?

    Unfortunately this discussion forum has changed and become confusing indeed.  It wanted me to put my entire question in a Subject box which wasn't labeled as such, and I find this strange.  Especially since now it tells me to repeat my question in this box, so here goes.
    Has anyone here used a program called 'Cookie' that is supposed to protect our private information from sites which could retrieve it when we surf the Net.  If so, do you consider the program worth buying?

    If you are referring to Cookie from SweetP Productions, I have tried it and not found it to work reliably, so I cannot recommend it. I've had the best results with the same company's free Safari Cookies, though it's not perfect (none of the cookie managers are, unfortunately):
    http://www.macupdate.com/app/mac/31018/safari-cookies
    Regards.

  • Multiple static synchronized methods locking the same object ?

    If I have multiple static synchronized methods in a class will all the methods lock on the same (Class) object ? I guess the answer to this would be yes. In that case is it possible achieve synchronization without an object ie code level synchronization ? If yes, how ?

    If I have multiple static synchronized methods in a
    class will all the methods lock on the same (Class)
    object ? I guess the answer to this would be yes. In
    that case is it possible achieve synchronization
    without an object ie code level synchronization ? If
    yes, how ?There is nothing special about static synchronized methods vs. any other synchronization. It's just shorthand for syncing on the Class object for that class. The effects of synchronization are identical no matter what you sync on.
    There's no way to achieve synchronization without an object. Synchronizing always obtains an object's lock. In the case of static synced methods, the object whose lock we obtain is the Class object for that class. As far as syncing goes, it's just another object.
    There is no such thing as "code level synchronization" vs. any other kind. All syncing occurs in your Java code over blocks of code. For synced methods, those blocks are the entire respective method bodies.
    Having said all that, I have no idea what you're really after or what you're trying to achieve.

  • When i connect my iphone to the pc it automatically opens the gallery as a usb even if phone is locked.how can i protect this?

    when i connect my iphone to the pc it automatically opens the gallery as a usb even if phone is locked.how can i protect this?
    i want my phone to be protected so that not anyone can simply fix my phone to a pc and see the gallery. thank you

    You can not prevent it using any setting on the phone, just as you can not do so with any digital camera.

  • Protected vs Private in Bean

    I am using a bean and when I use declare a variable as private such as:
    private m_firstName = "";
    public String getFirstName() {
    return m_firstName;
    I have this in my JSP
    value="<%= customer.getFirstName() %>"
    I get a NullPointerException.
    But if I only change the bean to:
    protected m_firstName = "";
    I have my JSP page fine. The underlying HTML codes says:
    value=""
    So, I wonder why using protected and private matters?
    THanks,
    Martin

    I have tested your code,but no problem.
    List below is my write code:
    ////test01.java
    public class test01
         private String lsh= "a";
         public String getLsh()
              return lsh;
    ////test01.jsp
    <jsp:useBean id="test01" scope="page" class="test01" />
    <%=test01.getLsh()%>
    And the response is "a",not null.It's OK.

  • I need to keep certain emails private for only my viewing (kids). I have a folder called Private. Can I require a pw to open it?

    Certain emails are for my eyes only. I put them in a local folder called "private." How can I prevent other users from opening that folder either accidentally or on purpose.

    I think a much better approach would be to password protect your User account in the Operating System, and set up another account or accounts for the children. You limit their rights to stop them installing ad-hoc and wrecking the computer. You set up a screensaver with password to lock your account when not at the computer.
    This add-on: https://nic-nac-project.org/~kaosmos/profilepassword-en.html lets you password protect your Thunderbird profile, though it is a weak form of protection. OK for very young children, but older kids will likely see it as a challenge to hack it.
    See these:
    http://kb.mozillazine.org/Protecting_the_contents_of_the_profile_-_mail
    And note "Note: You can password protect the contents of the message pane by setting mail.password_protect_local_cache to true using the configuration editor in conjunction with setting a master password in Thunderbird." listed under "medium methods".
    …but I'm not sure how you'd lock the pane once you'd unlocked it. You'd probably have to close Thunderbird, so it challenges the user when next run.
    As mentioned in the article and the webpage for the add-on, none of these measures guard against your email being stored in plain text and thus visible to anyone browsing the file system. Therefore your best option is to use User Accounts, with logins and passwords, and control access to your own data that way. A user would need admin ("root") privileges to access your data, or be sufficiently knowledgeable to be able to boot with a linux CD or similar.
    Storing your email data on a USB stick that you can take away with you.
    All of the above require some diligence and vigilance on your part, as you must remeber to lock or close Thunderbird, or logout, or remove the USB device before you leave the computer. A password-protected screen saver and separate User Accounts in the OS provide the closest to an automated protection system.

  • Is there a virus protection software available for the ipad 2?

    IS there any form of virus protection softward available for the ipad 2? Have seen AVG etc for ipad 2 talked about.

    It's not strictly correct to say there are no viruses or to be more accurate 'malware' for i-devices as there are
    There isn't. Provide links/proof if there are.
    If you really are an admin for McAfee then you should know what a virus is, and that there are none for iOS. If there were a virus for iOS it would be all over the news. It is also true to say there is no malware for stock iOS devices. If you've jailbroken your device, then maybe so, but you've purposefully put yourself at risk.
    hence the last 2 iOS updates which were patching various vulnerabilities.
    Yes, just like any OS, there have been vulnerabilities that, potentially, could be used for malware purposes, but iOS has been available for over 4 years and still not one virus or malware breakout. If you knew anything about the way iOS works, and how apps get approved, installed and run, you would know why a virus is virtually impossible, and even a trojan is very unlikely.
    Apple has a policy of never discussing security issues as they like to pretend that their products are totally immune, but they aren't.
    Like lots of companies, Apple don't discuss security vulnerabilities BEFORE they are fixed, because that would be irresponsible and make it easier for hackers to exploit. Apple have never pretended their products are totally immune. Use your brain, if Apple thought their products were immune, why would they release regular security updates?
    Companies like McAfee make money out of spreading FUD and making people believe they have to fork out lots of money for so-called "protection" that in most cases they don't need and doesn't work for unknown issues anyway. And now they're trying to prey on uninformed Windows users, who after years of being subjected to the real threat of viruses and malware now think they need the same for iOS devices.

  • I am locked out of my phone. Asking for a google user name and password?  I don't know what it is!

    I am locked out of my phone. Asking for a google user name and password?  I don't know what it is!

    http://techobar.blogspot.com/2012/11/unlocking-lock-pattern-after-too-many.html
    Or this site.
    http://about-google-android.blogspot.com/2013/04/how-to-unlock-android-phone-when-forgot.html

  • I am part of a family sharing setup.  Can I have my own payment method so the organizer does not get charged for my purchases?

    I am part of a family sharing setup.  Can I have my own payment method so the organizer does not get charged for my purchases?  If so, how do I set this up?

    Yes.  Just redeem gift cards so that your own account always has a sufficient credit balance.  Here is how it works:
    Family purchases and payments
    After you set up your family, any time a family member initiates a new purchase it will be billed directly to your account unless that family member has gift or store credit. First, their store credit will be used to pay the partial or total bill. The remainder will bill to the family organizer's card.

  • Would love Steve Jobs to contact me for in setting screen tinting orange for seizures as OK WE HAVE DONE IT AN ORANGE PROTECTIVE SCREEN OVERLAY FOR IPOD AND IPAD STOPPING JOHN'S photosensitivity SEIZURES AND STOPPING EYE PROBLEMS WITH USAGE

    OK WE HAVE DONE IT AN ORANGE PROTECTIVE SCREEN OVERLAY FOR IPOD AND IPAD STOPPING JOHN'S SEIZURES AND STOPPING EYE PROBLEMS WITH USAGE ABLE TO CUT ANY SIZE FOR PHONES EG
    Contact me Steve the idea is great and the pictures are reveal a better depth perception of colour call me a Mum that created a diffence for her son and kept him communicating on his ipod and his ipad proffessors were amazed at childrens hospital and would love to show you my ideas in making it built in to your ipod and ipads or any computer for that matter everyone i show is blown away not only that but a wider customer level will be reached from a Mum that made a difference for her son that was unable to communicate and then had seizures so developed my own cover that allows him to chat all day without having any eye problems.
    So we now sell the covers on ebay to help others access technology that they need in order to survive and live happily as without his ipod or ipad and him telling us what was wrong he would of died he had respritory lung disease photosensitive epilepsy a metabolic condition that could of killed him anytime from stroke or seizure battled with using all types of technology but now is a dream come true.
    Would love for this to be enabled in the setup of all computers alike to protect eyes and allow more users to speak and communicate a big thankyou to the creators and designers fabulous but please can you call me as this could make you even better i mean will and also give me more time.
    From one praying God fearing Mum
    Nadine
    Call me i do have better pics they were too big to upload orange covering on right hand side

    Going through the feedback and support pages will be a waste of your time. Apple won't respond to feedback, and support can't do anything regarding product suggestions, particularly not from a company with an existing product they wish to sell. The only attention you might get from Apple would be possible interest in selling your product through the Apple Stores, and I don't know how Apple chooses the third-party products they sell. All I could suggest would be writing to Apple's corporate headquarters:
    Apple
    1 Infinite Loop
    Cupertino, CA 95014
    with perhaps "Attention: Retail Sales Division" and telling them about your product and your interest in it being sold through the Apple Stores.
    Regards.

  • Unknown indexes in ABAP dictionary for a BW SAP_BW 350 ?????????

    Hi all,
    can anyone help me with the procedure to handle unknown indexes in ABAP dictionary for a BW SAP_BW 350 Production system?
    The list of some of the indexes are as follows :
    /BI0/E0CCA_C11~P
    /BI0/E0FIGL_C01~P
    /BI0/E0OPA_C11~P
    /BI0/E0PS_C04~P
    /BIC/EIEFERC~P
    Thanks a lot in advance ....
    Madhavi Rane

    You should be able to delete and recreate indexes from the infocube performance tab, RSRV or DB02.   The bigger question is why these e fact table indexes are not being handled properly.  I would try searching OSS Notes to see if yo ufind one relevant for your DB;
    This older Notes provides some good background
    Note 594287 - DB6: Corrections to the primary index of fact tables

  • HT201263 my ipad 2 3G crashed while playing an HD movie on iOS 7.1, then it enter into rcovery mode, i tried itunes restore and it fails showing unknown error (27), i retried for about 100 times with no benefit.... any ideas or help please

    my ipad 2 3G crashed while playing an HD movie on iOS 7.1, then it enter into recovery mode, i tried itunes restore and it fails showing unknown error (27), i retried for about 100 times with no benefit.... any ideas or help please???

    By the way, i am using Windows 7 x64 and updated itunes

  • Unable to update, when executed table gets lock and Execution does not stop even for an hour.

    Following is my Query, which unables to update. When Executed, table gets lock and Execution does not stop even for an hour.
    update Employees 
          set Status = 'Close'
          where statusid IN (select statusid 
                                             from MyView 
                                              where DownloadedDate ='2014-07-27 00:00:00.000'
    here Employee contains 3,00,000 of records and Subquery return 1,50,000 Empid 
    i tried in various ways but not able to solve, statusid  column have no index on,  i tried using cursor but it does not work.
    plz let me know how to solve this Issue, Its very Important to get solve as all my further work depends on Updation
    , THANKS IN ADVANCE.

    See also your other thread with the same question:
    http://social.msdn.microsoft.com/Forums/en-US/80243625-fc3b-4ee1-bce1-4adcdbc16c14/unable-to-update-when-executed-table-gets-lock-execution-does-not-stop-execution-even-for-an-hour?forum=sqlserversamples
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Unknown error please see log for details...

    Hi,
    I have been having major issues with not being able to
    connect or administer a site, so I deleted the site from the server
    and uploaded a fresh version as the error suggested the files where
    corrupt?
    Now I get the error "Unknown error please see log for
    details" the log is as follows;
    Date: 12/22/2006
    LocalTime: 12:36
    Host: ftp.caitlin-labradoodles.co.uk
    Port:
    LoginID: caitlinlauk
    Path: /
    Passive Enabled: false
    ProxyHost: NoneContribute Alternate Rename: no
    Contribute Optimized: yes
    ======================== Test Results
    ==========================
    NOTE: For more information on FTP server compatibility
    issues, please see
    http://www.macromedia.com/support/contribute/ts/documents/ftp_info.htm
    Login: SUCCESS!
    Changing Directory To: / SUCCESS!
    Directory Listing Test: SUCCESS!
    Make Directory Test: SUCCESS!
    Change Directory Test: SUCCESS!
    Upload a File Test: REMOTE_IO_ERROR - Error reading or
    writing remote resource.
    ----------------------- FTP log from the last operation
    > CWD /mm_diagnose_9qw83
    < 250 Directory successfully changed.
    > PORT 192,168,165,54,207,26
    < 200 PORT command successful. Consider using PASV.
    > TYPE I
    < 200 Switching to Binary mode.
    > STOR upload_test1_reg_.htm
    < 425 Failed to establish connection.
    Cleaning Test Directory: Contribute could not create
    "mm_diagnose" because it already exists. Please remove this folder.
    ----------------------- FTP log from the last operation
    > CWD /
    < 250 Directory successfully changed.
    > RMD mm_diagnose_9qw83
    < 550 Remove directory operation failed.
    > CWD /mm_diagnose_9qw83
    < 250 Directory successfully changed.
    > PORT 192,168,165,54,207,27
    < 200 PORT command successful. Consider using PASV.
    > TYPE A
    < 200 Switching to ASCII mode.
    > LIST
    < 150 Here comes the directory listing.
    < -rw-r--r-- 1 6518 99 0 Dec 22 12:34
    upload_test1_reg_.htm
    < 226 Directory send OK.
    Any suggestions would be great at this stage as Im scratching
    my head with confusion and my customer is getting very irate as she
    can not do anything.

    Hi,
    Can you please verify whether user has
    read/write/delete/append/create directory rights as an FTP user for
    the FTP home directory. If not give the same and try creating the
    connection.
    Please let me knwo if it helps.
    Regards,
    Manoj

Maybe you are looking for