Making a row read-only in a Rowset

Hi OTN
I am trying to make a row ReadOnly in a Rowset Through the following peoplecode put in the Component PostBuild
Component Rowset &LV1_RS;
&LV1_RS= GetLevel0()(1).GetRowset(Scroll.AB_REC);
For &I = ActiveRowCount(Record.AB_REC) To 1 Step - 1
If &LV1_RS(&I).AB_REC.EMPLID.Value = "9876543" Then
&LV1_RS(&I).Enabled = False;
End-If;
End-For;
But this doesnt work..since here for the row the Property "Enabled" is not present like how "Visible" is present.
Can you help.
Niranjan

Hi,
As you said there is no property of the class Row to make a row display only.
What you can try is making all fields on the row displayonly.
Component Rowset &LV1_RS;
&LV1_RS= GetLevel0()(1).GetRowset(Scroll.AB_REC);
For &I = 1 to &LV1_RS.ActiveRowCount()
   If &LV1_RS(&I).AB_REC.EMPLID.Value = "9876543" Then
      &row =  &LV1_RS(&I);
         For &j = 1 to &row.RecordCount
            &REC = &row .GetRecord(&j);
               for &k = 1 to &REC.FieldCount
                  &REC.GetField(&k).DisplayOnly = True;
                  &REC.GetField(&k).Enabled = False;
               end-for;
         End-For;
   End-If;
End-For;

Similar Messages

  • How to make rows read only conditionally

    Hi All,
    I have a query region and when i select it shows the data in a table region, now based on a particular column i want to set the entire row read only.
    Please let me know if it is possible.
    Thanks
    Tom.

    Hi All,
    I have finally figured out a way, i have created a SPEL attribute and set it to the read only property to all of the view attributes, and as soon as the query is executed i am filtering the rows based on my column criteria and set the value of the SPEL attribute to true.
    Thanks again.
    Tom.

  • Making configuration screen read only

    I'm very new to LabView so please forgive me if the question seems rather stupid. We all have to start somewhere I guess.
    I've been tasked with looking at an application written in Labview 6.
    Currntly there is a screen in the application that allows configarable parameteres to be changed by the users. The modification requires that some users are only allowed a read only view of this screen.
    While I'm not looking for an all out answer I'd really appreciate some pointers in the right direction as to the ways I may be able to implement this.
    Thanks
    Monk

    "Monk" <[email protected]> wrote in message news:[email protected]..
    I'm very new to&nbsp;LabView so please forgive me if the question seems rather stupid. We all have to start somewhere I guess.
    &nbsp;
    I've been tasked with looking at an application written in Labview 6.
    &nbsp;
    Currntly there is a screen in the application that allows configarable parameteres to be changed by the users. The modification requires that some users are only allowed a read only view of this screen.
    &nbsp;
    While I'm not looking for an all out answer I'd really appreciate some pointers in the&nbsp;right direction as to the ways I may be able to implement this.
    &nbsp;
    Thanks
    &nbsp;
    Monk
    &nbsp;
    &nbsp;
    Hi,
    The easiest (but not necessarily the nicest) way it to put a big transparent button above it. Hide the button if the login is ok, show it (nothing is actually shown, it is transparent) if not. Use the property node "Visible" to show/hide the button.
    You'll also need to disable tabbing (right click each control, and select Advanced>Key navigation>Disable this control when tabbing).
    A better way is to put all controls in a cluster (this can be a disaster if you have a lot of them, wired and all). Then you can simply disable/enable the cluster with a property node "Disable".
    You can also create "Disable" property nodes for each and every control and enable/disable all of them. In LV7> you can put this code in a subvi making it a lot cleaner.
    Hope it helps,
    Wiebe.

  • Is there any performance value to making a tablespace READ ONLY?

    In 9i, if I were to set a tablespace which only contains data to be reported over - is there any value in making it READ ONLY other than "safety" of the data? I am particularly interested to know if it can increase performance.
    Thanks

    When you say safety, you are partly correct, because data cannot be deleted, but it can be dropped, check the below SQL statements.
    With regard to performance, yes you will gain some. For better performance while accessing data in a read-only tablespace, you can issue a query that accesses all of the blocks of the tables in the tablespace just before making it read-only. A simple query, such as SELECT COUNT (*), executed against each table ensures that the data blocks in the tablespace can be subsequently accessed most efficiently. This eliminates the need for Oracle to check the status of the transactions that most recently modified the blocks.
    http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96521/tspaces.htm#922
    SYS@BABU> create tablespace test_ts datafile 'D:\ORACLE\ORADATA\TEST_TS1.DAT' SIZE 15M
      2  EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M;
    Tablespace created.
    SYS@BABU> CREATE TABLE TAB1 (A NUMBER) tablespace test_ts ;
    Table created.
    SYS@BABU> BEGIN
      2  FOR A IN 1..10 LOOP
      3  INSERT INTO TAB1 VALUES (A);
      4  END LOOP;
      5  COMMIT;
      6  END;
      7  /
    PL/SQL procedure successfully completed.
    SYS@BABU> ALTER TABLESPACE test_ts READ ONLY;
    Tablespace altered.
    SYS@BABU> DELETE FROM TAB1;
    DELETE FROM TAB1
    ERROR at line 1:
    ORA-00372: file 6 cannot be modified at this time
    ORA-01110: data file 6: 'D:\ORACLE\ORADATA\TEST_TS1.DAT'
    SYS@BABU> truncate table TAB1;
    truncate table TAB1
    ERROR at line 1:
    ORA-00372: file 6 cannot be modified at this time
    ORA-01110: data file 6: 'D:\ORACLE\ORADATA\TEST_TS1.DAT'
    SYS@BABU> DROP TABLE TAB1 ;
    Table dropped.

  • How to make an list row Read only

    Hi All,
        Can anyone please tel me how to make the List row (list item) read only where the status column value is Submit.(i.e the whole row has to be made as readonly, am using event handler to try this out)
    Thanks in advance 

    Hi,
    According to your description, my understanding is that you want to set the list item read only based on the status column.
    If you want to do it using Event Receiver, you need to check the status column value using Server Object Model, then break role  Inheritance and rest role assignments to set the item read only.
    Here are some detailed code demo for your reference:
    Change SharePoint list item permissions to Read only programmatically
    How to: Create an Event Receiver
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Making a pdf "read only"

    Hello
    I created a document (459 pages !!! ) in Microsoft Word and then converted it to Adobe Acrobat Professional.  It is stored on a drive which is shared by a "bunch" of users.  This was not a problem, before, because none of the folks who utilized the document had anything except ADOBE Reader.   Now, because of new functions they have to perform, more and more of the staff are getting Professional.
    All of that said, I need to secure the document so that it is a "read only" document for everyone except me, whether it is opened in Reader or Pro.
    I have tried using the help functions but I'm just not getting it     and need a little hand holding.
    Can someone please walk me thru the steps of what I need to do.  ( Pretend I'm a total computer moron ) 
    Thank you.

    You can configure the document's Security Settings to make the PDF read only.
    1. Click Document > Security > Show Security Settings for this Document.
    2.  Select Security Method as Password Security.
    3. At the Password Security Settings dialog, check the Permissions box and assign a Permissions password known only to you (users can open the document without knowing this password)
         a. Define a setting for printing of the document as needed
         b. Define the setting for changing the document (None=read only; other restrictions are possible—experiment!)
         c. Enable copying of the document if needed
    4. Click OK to save these settings.
    5. Retype the Permissions password in Step 3.
    6. You must save the document to preserve these settings.
    HTH

  • Making Detail Items Read Only

    I used the following to make detail items read only. The problem is one of the fields is a date with date picker. I cannot enter the date but if I use the date picker it allows the field to be updated.
    <script>
    if($v("P20_STATUS")=="SIGNED")
         arr = document.forms[0].f04;
         arr1 = document.forms[0].f05;
         arr2 = document.forms[0].f06;
         arr3 = document.forms[0].f07;
         for (i=0;i<arr.length;i++)
              arr.readOnly=true;
              arr1[i].readOnly=true;
              arr2[i].readOnly=true;
              arr3[i].readOnly=true;
    </script>

    I don't see a field named _IMG on my detail block. Here are the date fields for both records. I am trying to set the datepicker popup to read only but do not see how to do that.
    <td headers="WORK_DATE" class="t13data">
    <fieldset class="datepicker" id="f05_0000_fieldset">
    <table summary="" border="0" cellspacing="0" cellpadding="0" class="datepicker" id="f05_0000_holder">
    <tr>
    <td class="datepicker"><input type="text" name="f05" size="10" maxlength="2000" value="" id="f05_0000" /></td>
    <td><a href="javascript:void($p_DatePicker('f05_0000','0','MM/DD/YYYY','#666666','','','','','2011','en-us','Y','30034','7259688222750517497','01','210'));">
    <img src="/i/asfdcldr.gif" alt="Calendar" align="absmiddle" /></a>
    </td></tr></table>
    </fieldset>
    </td>
    <td headers="WORK_DATE" class="t13data">
    <fieldset class="datepicker" id="f05_0001_fieldset">
    <table summary="" border="0" cellspacing="0" cellpadding="0" class="datepicker" id="f05_0001_holder">
    <tr>
    <td class="datepicker"><input type="text" name="f05" size="10" maxlength="2000" value="12/30/2010" id="f05_0001" /></td>
    <td><a href="javascript:void($p_DatePicker('f05_0001','0','MM/DD/YYYY','#666666','','','','','2010','en-us','Y','30034','7259688222750517497','12','210'));">
    <img src="/i/asfdcldr.gif" alt="Calendar" align="absmiddle" /></a>
    </td></tr></table>
    </fieldset>
    </td>
    I don't see how to do this from the link you gave me.
    form1.IMAGENAME.style.display="none";

  • Acrobat 8--Making a pdf Read-Only

    My little pamphlet included with acrobat says I can make a pdf read-only. It never says another word about that. I tried security with passwords. What I got was some a document that wanted me to enter the password(s) each time I tried to access it. That's not what I wanted. There are hundreds of pdfs floating around on the web who seem to be read-only. I want to allow people to save, print and view it, but not modify it. How does one do that?

    OK, I finally figured out how to remove password/permission (change), and then get just a change permissions password. I'm using the pop-up menu Documents Properties dialog to do this. When I look at the summary, it shows Changing the doc allowed, Commenting allowed, ..., Content copy allowed. However, when I go to Change Settings (via button), the story is different. The Changes Allowed pulldown selection shows None. If I pull it down, I see no way to make individual choices shown on the summary. Ah, got it. Good enough. Thanks.

  • Making Marketing Calendar Read only for Trade Promotion

    Hi,
    We are trying to use Marketing Calendar in CRM 7.0 to view the trade promotions.  But the client wants the Marketting Calendar to be read only view.  The end users should not be able to drag the TPs to extend the date. Also they should not be able to create, copy or delete the TPs.  These end users will be able to create TPs when going through the TP link. 
    Please advise how can I achieve this.
    Regards
    Kavitha

    Hi Kavitha,
    This feature in introduced in the new Integrated Marketing Calendar. See if you can use it.
    http://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/704e0c72-a7ed-2d10-c2bb-d4162cf5cbca
    Best Regards,
    Roshan

  • Making a field read only (and bound) or editable depending on some criteria

    Hi,
    I am using Netweaver 2004s SP15 and Adobe Lifecycle Designer 7.1 with Web Dynpro for Java.
    I am generating a PDF that contains a number of fields that are bound context values attribues.
    Now I know according to certain criteria if any given field will have a value....
    Now if such a given field has a value then it must populate the Adobe form and make that field read-only - so it can not be changed.
    However, if that field has no value.. instead I need to make it editable.
    I am re-implementing the application this will be used within; and the previous version had 8 different interactive forms to cater for the 8 different possible combinations of fields that would not have values.
    I would really really prefer to have one interactive form to maintain with logic in it that determines dynamically if a field should be read-only or editable. (For example I could have a boolean context node that could be used)
    Am I doomed to have to create 8 different forms? Or is there a way of doing this smarter?
    Thanks to anyone who can point me to the light,
    Ilan

    hmmm....
    I did a search through the forum using the phrase "javascript" and it turned out a lot posts that indicate that this should indeed be possible.
    I am boggled, the original application was developed by an Indian outsourcing company that is well respected. The developer who took over maintenance of it told me that it was impossible to change the read only nature of the fields once set at design-time.
    My search through the forum has turned up much to indicate that this design was idiotic and the "facts" I was given completely wrong.
    grrrrrrrrrrrrrrrrr... I am marking this as answered now. I will have to learn some javascript.
    Are there any caveats for using it within WDJ?
    I am assuming I can do something simple in pseudo-code.. (I will need to work out the Javascript version).
    if (hasOption1) {
      field.readonly = true;
      field.style = sunken;
    else if (hasOption2) {
    else if (hasOption3) {
    etc
    (There are only actually 3 options that can change.. but that results in 8 different possible forms)

  • Making Examine utilty read only

    We are managing 11.5.10.2 (RUP 3) instance. As per our Auditing requirements we have to disable Examine Utility (By setting the profile option Utilities:Diagnostics to No) but our support team members wanted to have this feature as it is required for their regular support. But using this features, the support team members gets the ability to change the data using Examine feature (in HELP menu) which is a security breach. So we need to find a solution so that support team members can not update the data but only use this feature to view. Please let us know how we can address this problem.

    user597944,
    I think you are talking about Forms PUI. Better put your issue on http://forums.oracle.com/forums/forum.jspa?forumID=40
    As far as I know, this utility asks for a password. Why don't you make sure that your support team has only read only access password.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Making existing text read-only

    Hi
       I need to make existing long text read-only in transaction MSC2N. But user should be able to enter new text. I didn’t find any user exits when the user goes to text editor in this transaction. I found a badi but it doest seem to work. Could you plz guide me with this
    Thanks

    Hi, I have the same situation.
    When the user go to text editor, set mode as read only.
    I not found user exits when the editor is called.
    The transcation call the standard program SAPLSTXX (Sapscript Editor), using form create_editor
    Thanks

  • Making Text ID read only-Urgent

    Hi Experts,
    I have created a new text id at item level. This text id will be filled in sales order and copied in all subsequent documents. Now I want this text id to be filled only through some Z developments but should be available in the order documents in read only mode.
    In the customizing, is it possible to mention that a text id should be read only.
    I can achieve through coding but then I need to change many programs. Please advise.
    Regards
    Satish

    Hi,
    In VOTXN try to achive this with help of routine.
    Or if you can find out any authorization object which will not users to change the text then it is great Ask your basis and ABAP guy wheather you can achive this by creating a Z authorization object.
    COz in standard settings you can not acive this requirement.
    I have never done this..but just thoughts
    Reward points if useful
    Regards,
    Amrish Purohit

  • Making OAF page read-only

    Hello,
    In forms to make a form read-only we set the parameter QUERY_ONLY=Yes
    like that for OAF page do we have any option to make the entire page query only. can OAF personalization be used for this?
    Thanks.

    There is no such functionality... in OA Framework, by which u can turn all the fields on a page to read only by some page layout region property. You would have to set the read only property to true for each bean in the page.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Making a transaction read-only for a particular user status

    Hello,
            I have a requirement wherein I need to make an opportunity read-only if it is saved with the user status set to 'Lost'. I tried setting the 'Forbidden' flag for 'Change Document' for this status but the problem is that the transaction gets locked even before saving it.
    I have a 'Reason' field where I have dropdown values for the 'Lost' status. But when I try to select a reason, error message appears as: 'no changes possible in document'.
    Is it possible via configuration to have the transaction locked only after it is saved with user status 'Lost' and not immediately on setting the status?
    Regards,
    Aditya Mishra

    2 ways to achieve it...
    1. the document editing can be controlled based on its status i.e. standard auth objects exist to control so that user is not able to make changes with this status.
    2. implement BADI CRM_ORDER_AUTH_CHECK
        put your logic to check the document status and accordingly reutrn FALSE if you do not want user to open it in edit mode.
    hope this helps.
    rgds

Maybe you are looking for

  • Insert date and time

    This is a simple question but one that has been bugging me in a small way. If on a spreadsheet I press 'insert date and time' all I get is that day and date for example saturday 10th July 2010 and no time. Anyone offer an explanation for this? Thanks

  • OC4J - Starting container in debug mode

    When the container is started in debug mode, start-up messages are referring to XAtransactions. This is causing a bit of confusion as we?re not using distributedtransactions. Is this an internal message ? The message is: Null: Connection XAXA Orion P

  • How to use Xerces to validate an XML file against a DTD

    Hi, can anybody tell me how to use Xerces to validate an XML file against a DTD. its urgent. post some sample code. it would be helpful for my project. isupposed to use SAX parser(Xerces) Thanx in advance

  • Portege R930 - BSOD when connecting high resolution monitor to HDMI port

    Hello. I have the Portege R930 (pt331a-01w001) running window 7. Everything on the laptop works as expected, however when I plug the laptop into a high resolution monitor (2560x1440) via the HDMI port I get blue screen of death. I can use the HDMI po

  • FinalCut Pro Movie Import?

    Is it possible to use FinalCut Pro movies in iWeb?