Sharing a view in read only mode

Hi,
I am new in this domain. I have made an application in which I made two local development projects. Through that I am using views of one into another with the help of "Used WebDynpro Components" concept. After deploying, I have got these two views.
But the problem is that I want that view in read only mode which I have taken from other local development project and this view was not in read only mode in its local development projects.
Please provide me the solution in detail so that I can understand easily.

Hi Manish,
               Say View1 is the view in main Component,View2 is the view in used Component.  Exactly follow these steps.
Create a context attribute <b>enable </b>of type String in used Component's controller,used Component's Interface controller, View1 and View2.
Using context mapping map these attributes  View2 ->  used Component's controller->  used Component's Interface controller -> View1 ( if you don't know how to map double click the  the Main component: Data navigation modeler is opened; In  the diagram, right side select small arrow  first select  View1 drag to used Component's Interface controller,in the wizard select right hand side <b>enable </b>attribute drag to left side)
you can map similarly View2 ->  used Component's controller->  used Component's Interface controller.
In View2 create another variable <b>edit </b>of boolean type.
Open Layout tab of View2, bind this attribute to enable property of all the UI elements which you want to disable.
In  implementation tab of View1 in method wdDoInit() write this code
wdContext.currentContextElement.setEnable("display");
In  implementation tab of View2 in method wdDoInit() write this code
if(wdContext.currentContextElement.getEnable().equalIgnoreCase("display"))
wdContext.currentContextElement.setEdit(false);
else
wdContext.currentContextElement.setEdit(true);
Hope this helps for you.
Best regards,
Siva
Message was edited by:
        Armin Reichert

Similar Messages

  • View sharing in read only mode

    Hi,
    I have made an application in which I made two local development projects. Through that I am using views of one into another with the help of "Used WebDynpro Components" concept. After deploying, I have got these two views.
    But the problem is that I want that view in read only mode which I have taken from other local development project.
    Please provide me the code for the same.

    Hi,
    Create a context attribute of type boolean in your used component
    bind this to the controls
    set this attribute to true by default
    expose this context attribute through interface controller and set the value to false
    from used component.
    Regards
    Ayyapparaj

  • Font style in read-only mode

    Hello VC-Experts
    we are using a form view in read-only mode. The problem is that the text in the fields are grey. That is not very readable for the end users.
    Is there a change to change the text-style in fields to "BOLD" or change the text color to black? 
    I was trying it with an expression box, but the font color is still grey just a little bit darker.
    Thank you very much in advance.
    Kind regards
    Axel

    Hi Basheer,
    set the field to disabled , causes a grey text and and a grey background and is not changable in style tab of expression box.
    But I found an other solution for the problem:
    - Setting the form view to editable
    - Creating a Plain Text field
    - Set Data-Field in Control Properties->Display->Appearance->Label->Formula
    - Set "Text style" to bold in the same tab.
    Thanks, rewarding points
    Regards
    Axel

  • How to open a view to a Item in "read only" mode directly from SAP Logon.

    Hello Gurus;
    We need to display a given portfolio item to the user in display (read only) mode.
    We have managed to open a view to the portfolio item using function INM_UI_NAV_GET_OIF_URL to obtain its URL and FM CALL_BROWSER to open it. The problem is that the item is opened in edit mode.
    Is there any way to open this item in read only mode (and disable the 'Edit' button as well)?
    Thanks in advance.
    Regards.

    Please, anybody can solve this?
    Regards.

  • Files are in READ ONLY mode

    I have a file server 2003 with shared folders. I have " FULL CONTROL" on all the folders. However, when someone else saves a document in one of the folders, it opens in READ ONLY mode on my Windows 7 machine, Office 2013. When I log into the server
    itself, I can make any changes to the file. Not from my windows 7. 
    any ideas?
    thanks

    Hi,
    This issue may occur if the following conditions is true:
    The network folder is open in Microsoft Windows Explorer and you are using Details view to display additional details (such as the author or title) for files in the folder. Windows Explorer reads the contents of the files in the folder to obtain the additional
    details. If a program tries to open a file exclusively and Windows Explorer has the network file open to extract this additional file information, a sharing violation occurs.
    You could turn off the details pane in Windows 7 to resolve the issue. Details Pane can be turned off on the open folder with the Organize dropdown:  Organize->Layout->Details Pane.
    For more detailed information, please refer to the thread below:
    Office document always opens in read-only when opening from a network folder (Windows 7 + Office 2010 with Swedish language pack)
    http://social.technet.microsoft.com/Forums/office/en-US/2800f53b-67a3-48a1-864a-8e61b1537dfb/office-document-always-opens-in-readonly-when-opening-from-a-network-folder-windows-7-office?forum=officeitproprevious
    Best Regards,
    Mandy 
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Querying up AR Customer OA page in read-only mode for a Single Customer

    We are building a Custom Form in which associated Customer <defined in AR> would be queried up.
    Now we want to give an option to the User to view the complete details of the Customer. We would be giving a menu option in Tools 'View Customer' thru which he would see the Full Customer Details. <AR Customer OA page>
    We have two requirements
    1> The Full Customer Details should show up in Standard OA Customer Page the moment page comes up. The user should not be required to query the details.
    2> It should be read-only and user should not be able to update any field.
    How can we achieve this requirement? I did some RnD but did not see any place in EBS where we display the Customer Page in read-only mode and that too quried up for one particular customer.
    Thanks
    Arun

    Hi Arun,
    Please let me know if find any solution for this. We have a similar scenario in which we need to call the customer Page with all the inforamtion populated, related to one customer.
    Thanks in advance,
    Mannuru

  • Read-only mode. Object is currently locked by user: J2EE_ADMIN. hw 2 unlock

    Hi friends,
    <b>i am not able to edit my object in EP</b> , it says
    Read-only mode. Object is currently locked by user: J2EE_ADMIN.
    how do i unlock it ?
    i am on 04s SP9

    Hi Rohit,
       Navigate to
    system_admin -> Monitoring->
    Portal->object_locking->
    There you can view your locked pcd object.Just check it and Unlock.
    That should solve your problem.
    Hope this helps
    Regards
    Vineeth

  • Opening the file in read only mode

    hi all,
    i am using
    i want to open any type of files in read only mode using host command.so first i am setting the attribute to read only and then opening the file. But still the opened file is editable. i have written like below
    Host( 'cmd /c  attrib +r "\test_folder\testing\PURCHASE_ORDER\'||:PO_FILE_NAME||'"',NO_SCREEN);
    Host( 'cmd /c "\test_folder\testing\PURCHASE_ORDER\'||:PO_FILE_NAME||'"',NO_SCREEN);is this is the way to open the file in readonly mode?
    Along with the above the files which i opened with the help of above said code those files i am not able to delete also.(i have to delete the selected file)
    i thing when i am setting the attribute something is going for a mess!
    Please help.
    Thanks..
    Edited by: GD on Jun 23, 2011 2:25 AM

    hi,
    Read only means you cannot mofiy the file. This also includes that you cannot delete a readonly-file yes,
    what i am doing is i have three button in my layout 'save','view' and 'delete'.
    1.so when user press 'save' button after selecting the file then the file gets saved into the specified.
    2. when user press 'view' button the file has to open in read only mode.
    for this i have written above mentioned code(but still i am able to edit the file)
    3.when user press 'delete' button the file has to be deleted from the specified location.
    so my problem is after setting file to read only mode, i am able to edit but i am not able to delete it.
    What i am using to set the file to read only mode is right?
    Please help.
    Thanks..

  • Opening a container in read-only mode (DB_RDONLY, setReadOnly())

    I have one process access a container in normal mode and another accessing it in read-only mode (XmlManager::openContainer with DB_RDONLY or XmlContainerConfig. setReadOnly(true) ), both with transactions. Is this:
    (1) wrong (potentially dangerous);
    (2) pointless (no benefits for the read-only process);
    (3) reasonable (potential benefits for the read-only process)?
    Whatever the answer, why is it so?
    Michael Ludwig

    hi,
    Read only means you cannot mofiy the file. This also includes that you cannot delete a readonly-file yes,
    what i am doing is i have three button in my layout 'save','view' and 'delete'.
    1.so when user press 'save' button after selecting the file then the file gets saved into the specified.
    2. when user press 'view' button the file has to open in read only mode.
    for this i have written above mentioned code(but still i am able to edit the file)
    3.when user press 'delete' button the file has to be deleted from the specified location.
    so my problem is after setting file to read only mode, i am able to edit but i am not able to delete it.
    What i am using to set the file to read only mode is right?
    Please help.
    Thanks..

  • Essbase in read-only mode

    Gurus,
    I have three essbase databases in my environment, and I am planning to run a command to sync the three dataases.
    During the sync process, I do not want the users to log in to any of the databases, meaning I dont want users to have access to any of them or change any data in the databases.
    Is there a way where I can put the databases in 'read-only' mode so that I can run the command.
    Or is there any other script or any process I can use so that users wont have access until I complete the sync process.
    Any suggestion is appreciateD
    Thanks

    Maxl would probably be your best bet since you are likely using it with the data migrations.
    alter application "appName" disable connects; /* nobody lower than applciation manager can connect */
    This has a number of options
    - disable updates
    - disable commands (Prevent all requests to databases in the application, including non-data-specific requests, such as viewing database information or changing database settings. All users are affected, including other administrators. Administrators are affected by this setting as a safety mechanism to prevent accidental updates to databases during maintenance operations.)
    More detailed info is at http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/maxl_altapp.html.
    Kyle Goodfriend
    https://www.in2hyperion.com
    EDITED
    If this is a planning application, you will also want to deal with those connecting to Essbase through Planning. This is handled through the Application Mode (see http://in2hyperion.com/post/2012/09/26/Change-Application-Maintenance-Mode-via-Command-Line.aspx on automating). Keep in mind, any connection from Planning to Essbase uses an admin ID, not the user ID.
    Edited by: Kyle Goodfriend on Oct 4, 2012 12:02 PM

  • "Device Manager is running in read-only mode because you are running it on a remote computer" when local

    Hello - since configuring a Windows Web Server 2008 R2 x64 to be hardened for an internet-facing deployment I receive this:
    "Device Manager is running in read-only mode because you are running it on a remote computer."
    when entering Device Manager.
    I have tried reversing the changes I have made, such as:
    - Re-adding Client for Microsoft Networks
    - Re-enabling NetBIOS over TCP-IP
    - Re-adding File and Printer Sharing
    - Disabling the Windows Firewall in all profiles (public, domain, private)
    I get no joy. It looks like a Microsoft ballsup. I'll try and use Process Monitor to have a look. Google returns only 1 page for this error.
    Luke

    Got it.
    After my changes to DHCP and static IPs the machine picked up the IP address of another server on my little home LAN. The hostname in IPCONFIG was different to the actual server computer name and so this led Device Manager to think the connection and the
    local machine were different.
    What an odd and infuriating problem. My thoughts on this are that Microsoft should be more verbose with error messages and their causes. For example, displaying the values of the assertion would help diagnose a problem; "The host-name www02.farm.brand.com
    that you are connecting from does not match the local host-name rest01.dev.farm.brand.com. Connections from remote computers can only use Device Manager in read-only mode; some options will be disabled."
    When troubleshooting, the main thing on an engineer's mind is "what has led Windows to its [unexpected] conclusion?"
    Luke

  • TG4MSQL ora-28500 error on RECOVER login in READ-ONLY mode

    We're connecting from a 10.2 dbase to SqlServer2000 via TG4MSQL. No upfront problem connecting but the Oracle .trc file shows below error:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message: [Transparent gateway for MSSQL][Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'RECOVER'. (SQL State: 00000; SQL Code: 18456)
    Below is the content of .ora file:
    HS_FDS_CONNECT_INFO=INETSQL3.ComPro
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_TRANSACTION_MODEL=READ_ONLY
    We are using READ-ONLY mode so the RECOVER login was not defined on SqlServer.
    Anyone know why TG4MSQL is trying to open a connection as RECOVER? And is there a way to stop it?

    Pending transactions turned out to be the culprit. Below is info from our TAR that
    provides some detail on what RECOVER is doing.
    Oracle handles all transactions as if they were distributed transactions. He takes a very conservative approach on the assumption that you may want to update
    or insert later. This has been like this since Oracle version 6 and will never
    change. Hence all transactions get handled as a distributed transactions even though there are no simultaneous updates. A common remote transaction would involve reading from SQL Server and then taking that data an inserting into an Oracle database. In the event a transaction gets aborted for some reason RECO must rollback the transaction. SQL Server requires a valid username/password and hence uses the recovery username/password specified in the gateway init file. The default parameters for both are RECOVER , if they are omitted in the init.ora file for the gateway. Obviously these do not exist on SQL Server. Note that this recovery process is detected and processed by the Oracle kernel. READONLY mode only prevents inserts, updates or deletes to be issued to SQL Server and nothing else. The gateway has nothing to do with handling and monitoring transactions to SQLServer. In all likelyhood you have several in doubt transactions in the dba_2pc_pending view. As long as those entries remain RECO will continue to try and rollback these in doubt transactions and fail each time due to an invalid username/password. This will go on until you either manually remove them or give RECO a valid SQL Server username/password to use.
    OPTION 1
    ==========
    Code the follwing in your gateway init.ora file
    HS_FDS_RECOVERY_ACCOUNT=use the username specified in your db_link
    HS_FDS_RECOVERY_PWD=use the password specified in your db_link
    OPTION 2
    ==========
    Define a username with password RECOVER on the SQL Server database you are connecting to
    OPTION 3 (Manually removing in doubt transactions)
    ================
    Use dbms_transaction.purge_lost_db_entry(local_tran_id)
    STATUS should be in collecting
    Please see Metalink
    Note.126069.1 Ext/Pub Manually Resolving In-Doubt Transactions Different Scenarios
    for detailed information

  • Query faild against database that is opened in read only mode

    ORA-16000: database open for read-only access
    Hi ,
    I am quering against a database that been opened in read only mode (10g version)
    SQL> select controlfile_type,open_mode,database_role from v$database;
    CONTROLFILE_TYPE OPEN_MODE DATABASE_ROLE
    STANDBY READ ONLY PHYSICAL STANDBY
    Currently when selecting against this database
    i am getting the following error:
    SELECT PS_RF_PROVGRP_VW.SETID, PS_RF_PROVGRP_VW.PROVIDER_GRP_ID, PS_RF_PROVGRP_VW.NAME1,
    PS_RF_PROVGRP_VW.STATUS, PS_RF_PROVGRP_VW.SYNCID, PS_RF_PROVGRP_VW.SYNCDTTM
    FROM PS_RF_PROVGRP_VW
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-16000: database open for read-only access
    The owner of the object is PSSYS and i am running the queries as user INFORMIX.
    select owner,object_name,object_type from dba_objects where object_name ='PS_RF_PROVGRP_VW';
    OWNER OBJECT_NAME OBJECT_TYPE
    INFORMIX PS_RF_PROVGRP_VW SYNONYM
    PSSYS PS_RF_PROVGRP_VW VIEW
    User informix have "SELECT ANY TABLE" privilage
    In the source database (e.g: not the cloning one) the queries results are returning susseccfully ,
    and only in the clonning the database the problem exists.
    Does someone have an idea what the problem could be ?
    Thanks.

    Hi
    Object can become invalid, if the underlying objects are dropped/invalidated.
    So even if you create or validate the underlying objects these objects by themself do not become valid. You have to either make them valid or you should use it atleast one time as select/desc or any other query so that Oracle implicitly make it valid.
    Your source datatabase has valid synonym because after dropping/creating you must have selected that synonym atleast one, but this selection procedure would be after you copied your data to the target database.
    Regards

  • Office 2013 opens file in read only mode

    I have a client on Windows 8.1 Pro using Office 2013. When he access an office file from a network drive it opens in read only. When he saves the file to his desktop using save as it lets him open the file again in compatibility mode but he is unable to
    then overwrite the file on the network folder. It keeps giving him a permission error. I have deleted his profile, changed settings in office trust center settings and checked folder permisisons. I am out of ideas. Can anyone help me out here.
    Thanks

    Hi,
    Thanks for the reply.
    From the user, "Every file that I open, opens in read-only mode.  It appears that the security is set correctly and I have not changed anything, but, it does not allow it.  I have tried rebooting - not solved.  I tried disconnecting the shared drive and reconnecting - not solved.  However, when I do disconnect the mapped drive, I get a warning saying I have files open.  The problem occurs whether I access the files from the mapped drive or directly by drilling down through the folder structure." 
    When I try to move files over to the drive it says I do not have required permissions to overwrite or move a file. On a different computer he has full access but not on this one. Also the settings in trust center settings for file blocking and trusted locations
    also privacy.

  • The project cannot be checked out because the server is in read-only mode.

    Receiving the message "The project cannot be checked out because the server is in read-only mode." when a project manager is trying to access a project. He is a backup PM, and I'm wondering if that's why he is getting the message (since he is
    not the Owner or Status Manager of the project he is trying to access). We are using SharePoint permissions in Project Server 2013.

    Hi,
    I have a solution that might work for you, please follow steps below:
    1) Go to your project schedule, make a small modification to any task on schedule and 'Publish' the project.
    2) While your project is being published and saved, open another window 
    Server Settings -> Manage Queue Jobs
    3) Here you can view the progress of your current Project Publishing update, check if all goes smooth and your project is published successfully without indicating any errors :
     ( to view any error look at the last column of
    table on Manage Queue Job page)
    4) Also in your Project window see if the project is published and not saved as Draft.
    Basically this will give you a fair idea of your project being published or not.
    Regards

Maybe you are looking for

  • Automatic Creation of PO by workflow once PR is released.

    Hi All, Can anybody explain the details steps for creation of workflow template if PR is released then automatic creation of PO needs to be created with reference to PR.? Thanks, Ravi

  • Prompt never appears in a 2602i access point

    Hello: Today I converted an AIR-CAP2602I-A-K9 access point to autonomous using the mode button/tftp method, but no matter what IOS I install (I tried 2 different IOS and also tried entering to Rommon - I am able to change IOS because the procedure I

  • Session variable causing ADODB.Field error '800a0bcd'

    i have a page that before the session variable was added, would display the text i required if the recordset was empty. Now i have a session variable on the same page and if the recordset is empty, instead of showing the text i need displayed, i get

  • Subject Profile Items are not showing in CRMD_Order

    Hi We are in process of Service Desk config. We have copied the standard Subject Profile from SLFN001 to ZLFN001 and copied Code Group I1 to Z1 , Copied Codes MLDDGM1 to ZLDDGM1 and added our own subjects as per the requirement. When we create the ti

  • IMac Drive Failure.  Restore Data?

    I have a mid-2007 iMac that has the latesst version of Mountain Lion installed on it. The computer was locking up often when waking, and lately Mail's data was getting currupted ... prompting me to have to rebuild the index.  This happened twice. So,