How to Disable Detail VO Row Edit button in the HGRID

Hi,
I have a HGRID with recursion and basing on some criteria i have to disable the Edit button of the master and detail rows.Last row which dont have recursion but that level itself satisifies some criteria and button should be disabled.As there is no level under that the code in rowimpl for VLAccessor is not looping through.
Can any one tell me please .. how to do this.?
Thanks
Soujanya

This is the code in Roimpl of master VO
protected Object getAttributeInternal(int index)
boolean isVLAccessor = (index == getAttributeIndexOf("XVO"));
OADBTransactionImpl txImpl = (OADBTransactionImpl)getApplicationModule().getTransaction();
String parentID = (String)txImpl.getTransientValue("ParentID");
try{
if (isVLAccessor)
RowSet rset = (RowSet)super.getAttributeInternal(index);
Row updateRow=rset.first();
if(updateRow != null){
do
String mode =(String)updateRow.getAttribute(6);
Number unitId=(Number)updateRow.getAttribute(0);
int parentMode=getParentUnitMode(unitId.intValue(),parentID);
if(mode != null && mode.equals("OTHER_UNIT"))
updateRow.setAttribute(13,"E2");
}else
if(parentMod)
updateRow.setAttribute(13,"E2");
else
updateRow.setAttribute(13,"E");
}while((updateRow = (Row)rset.next())!= null);
if(rset != null)
rset.reset();
return rset;
}catch(Exception e)
throw OAException.wrapperException(e);
return super.getAttributeInternal(index);
}

Similar Messages

  • How to disable a Entire row in a Matrix in Find Mode (User Form)

    Hi,
    How to disable a Entire row in a Matrix in Find Mode (User Form)
    Regards
    Jambu

    Hi,
       Iam using Bubble event = false in click event but the matrix row
    is allow to edit but we cant save the document in Find Mode That is fine.
    What is my actual requirement is In find mode matrix Row not allow to enter the data .
    For examble In ADD mode i enter the data in Three rows (Item Section - Matrix) and
    save the document. Whwn i open the document in find mode the three row is not allow
    to editable like the same functionality of PO, sales Order, etc ..
    Regards
    Jambu

  • Anyone know how to fix a stuck sleep/wake button on the IPOD Touch?

    Anyone know how to fix a stuck sleep/wake button on the IPOD Touch?

    If the songs are still on your ipod, make sure autosync is disabled in iTunes on your computer, connect and right click on it in the device list, then choose "transfer purchases" to copy all bought media and apps from your ipod to your computer.
    If the songs are not on your computer and got deleted from your ipod as well, you can't get them back, unless you have a backup of your iTunes library as part of your computer backup.

  • There is no edit button at the bottom of my notification center in Yosemite.  I'm using a macbook pro.  Any ideas?

    I'm trying to customize my notification center, but there is no edit button at the bottom where there is supposed to be one.  How do I fix this?

    You can try trashing the preference file. Then kill the NotificationCenter.app.
    The preference file is stored inside your Library folder. This is the complete path+preference file's name
    ~/Library/Preferences/com.apple.notificationcenterui.plist
    To kill the NotificationCenter.app, open Activity Monitor. Using the search box, type noti. You'll see the Notification center listed below. Select the line and click on the kill button
    Force Quit, when asked. Notification Center reopens automatically.
    Check.

  • How do I remove an extra editable region in the head of a specific page?

    I have a single-template website.  My template has the standard two editable regions in the head ("title" and "head").  Somehow, one of my pages ended up with three editable regions in the head - two named "head" as well as title.  My template won't update this page because the editable regions don't match.  How do I remove this extra editable region from the head of the page?  I can't modify it on the page itself, of course, and I can't remove it by modifying the template because it's not part of the template.
    Thanks in advance!

    Your child page would not contain any editable regions if it wasn't attached to a Template.  Perhaps you nested templates which is the wrong thing to do.
    Go to Modify > Templates > Detach from Template.
    Nancy O.

  • I have copied over my music file to a new computer and the music shows on itunes but wont play. When I track where the song is located it is reading the wrong information. How do I change this as Edit Preferences has the right location

    I have copied over my music files to a new computer and the music shows on itunes but wont play. When I track where the song is located it is reading the wrong information. How do I change this as Edit>Preferences has the right location?

    Select one of the tracks with a broken link, press ctrl-i to Get Info. Say No when iTunes asks if you would like to locate the track, then look at the Summary tab for the location expects to find the file in.
    Now try to locate the file in question. The two locations should give a clue as to what to do next.
    Here is an example with a file I've deliberately moved from the new layout to the old pre-iTunes 9 layout.
    This means iTunes is expecting to find the file at:
    D:\iTunes\iTunes Media\Music\a-ha\Take On Me\01 Take On Me.mp3
    but it isn't there because I've moved it to:
    D:\iTunes\iTunes Media\a-ha\Take On Me\01 Take On Me.mp3
    which is where it would have lived back in iTunes 8 (though the media folder would have been called iTunes Music back then as well).
    If you can provide the expected and actual locations of a broken track I should be able to suggest the easiest way to resolve things.
    tt2

  • I want to delete a bookmark but there is no edit button at the bottom of the listing all I have is a plus sign

    I would like to delete bookmarks and I reviewed the answers already in the forum.  I do not have an edit button at the bottom of my bookmarks.  All I have is a + sign. 

    Bookmarks>Show Bookmarks, then highlight the bookmark you want to delete (click on it), then hit the delete key.

  • HT5848 There is no "edit button to the left of My Stations" in iTunes

    the instructions/support for iTunes Radio say there should be an "edit button to the left of My Stations" in iTunes, however this does not exist.
    i am on a late 2014 MacBook Pro running OS X 10.10.2 and iTunes 12.1.0.50 (latest versions).

    You can try trashing the preference file. Then kill the NotificationCenter.app.
    The preference file is stored inside your Library folder. This is the complete path+preference file's name
    ~/Library/Preferences/com.apple.notificationcenterui.plist
    To kill the NotificationCenter.app, open Activity Monitor. Using the search box, type noti. You'll see the Notification center listed below. Select the line and click on the kill button
    Force Quit, when asked. Notification Center reopens automatically.
    Check.

  • How to disable MOH for "on Hold" button.

    CUCM 6.1
    When on a conference call if a user presses "on Hold" button, music is played for all participants and nobody can hear anything. How can I disable music on hold for all users?
    Please note, I could disable MOH for conferencing. But this is different issue. This is e.g. when everyone is in a conference (no matter what conference system, it could be ready talk, meeting place,...)and a participant receives another call and wants to answer the other call, in this situation I don't want any MOH played for other participants.
    Thanks,
    rdianat

    I first tried "suppress MOH for conference" by service--> service parameters -->select server --> select callmanager --> go to "clusterwide parameters(Feature-General) --> change the "Suppress MOH to conference Bridge" to true"
    This did not work. The reason is that these users are accessing an internet coferencing system like "ready talk" and not a cisco conferencing system, so for Cisco this does not appear to be a conference but it is like a regular call.
    I only have two callmanagers which also serve as MOH servers.
    Media Resources-->Music On-Hold Server -->Set Run Flag to "NO"
    This is explained in "MOH FAQ" from cisco.
    http://www.cisco.com/en/US/products/sw/voicesw/ps556/products_qanda_item09186a0080094766.shtml#q21
    The other way of doing this is not to assign any MOH server to the MRG or create a device pool without any MOH. (Media Resource Group set to NONE)
    Although the above disabled the MOH, still the TOH "Tone on Hold" which is beep-beeps played every 10 seconds was annoying. So I increased the interval to 20 seconds by the same instructions in "MOH FAQ" how to disable / change TOH. Go to same page explained above but to "clusterwide Parameters(Device-General) and change "Tone on Hold Timer" Value to 20.
    rdianat

  • How to disable or lock network config button on mozilla firefox 7 ?

    hii... i want to know how to disable network config button or disable/lock advanced button on option mozilla firefox..
    thank you
    regards..

    See http://kb.mozillazine.org/Locking_preferences

  • How to disable Details option for a Document in KM?

    Hi,
       I had created a Folder by enabling Versioning and Lifetime ,under public documents and i had uploaded a word file under that folder.I had given read permissions to the other user .He is able to open the document with read permission and is able to see the version of the document.Now for the user whom i have given read rights should be able to acess only current version document and he should not be able to see the previous versions(Details->Settings->Versions).
         I want to disable the "Details" option for a document for the user to whom i had given read Rights.if possible i want to deavtivate the "Down Arrow" mark which guides the user to see the options like (Details,feedback,rating,send to,create link etc)
        Please guide me in this issue.
    With regards
    Praveen

    Hi,
    Let's first create our custom layoutset:
    We will duplicate the ConsumerExplorer layoutset.
    goto System Administration -> System Configuration -> Knowledge Management -> Content Management.
    Select User Interface -> Settings -> Layout Set.
    Find ConsumerExplorer, check it and click Advanced Copy.
    Uncheck Collection Renderer Settings and Resource Renderer Settings leaving only UI Command Groups checked.
    select Group Levels to Copy: All, Add "my_" As Prefix and execute.
    You have created a new layout set called my_ConsumerExplorer.
    Now we need to copy the versions command.
    Navigate back to User Interface -> Commands -> UI Commands. find the command versions. Check it and click Duplicate. give it the name my_versions, leave the rest as is and add to the Roles with Visibility the roles you want to be able to see this command. for example: "pcd:portal_content/administrator/super_admin/super_admin_role" for super admin role. Save the new command.
    Now navigate to UI Command Groups, find my_DetailsSettingsSecondGroup and click edit. in the Command List find versions and change it to my_vesions and save.
    Now all you have left is to change the layoutset of the iView.
    goto Content Administration -> Portal Content. Navigate to your iView, open it, find the property Layout Set and change its value to my_ConsumerExplorer. Save.
    Now test it to see if it works.
    Best regards,
    Avishai Zamir

  • How to disable a single row of a multi-line text item

    I am trying to disable a date and a price on each row where the date is current or in the past (on theory the user can't update reference data that is in effect or past, only data which is not yet in use). It appears that forms 6i will make this an all-or-nothing matter, all rows (for a given text item) are enabled or all rows are disabled - no mixing! I am hoping forms is smarter than that, can someone give me knowledge? note: this is not a problem of enabling or disabling at runtime, I have that figured out, only row-specific application of the concept. here is my code:
    for c1rec in get_fees loop
    :cfee_def_dtl.service_fee := c1rec.service_fee;
    :cfee_def_dtl.eff_date := c1rec.eff_date;
    go_item('cfee_def_dtl.holdx'); -- inncouous field, not visible to user, but navigable
    IF trunc(c1rec.eff_date) <= trunc(sysdate) THEN
    set_item_property('cfee_def_dtl.eff_date',ENABLED,PROPERTY_FALSE);
    set_item_property('cfee_def_dtl.service_fee',ENABLED,PROPERTY_FALSE);
    END IF;
    next_record;
    end loop;

    Hi,
    move the logic in New-Item-Instance trigger and based on your condition
    SET_ITEM_INSTANCE_PROPERTY update_allowed as property_false/true.
    Monica

  • How in the hell do you remove the edit button from the bookmarks and netlet channels?

    I have removed the check box for the edit functionality of both these
    channels and restarted the portal server. Yet, the edit button is still
    there on both channels and it allows the user to edit (duh) the targets
    of the netlet and bookmarks.
    WHAT ELSE AM I SUPPOSED TO DO TO GET RID OF THIS BUTTON??????
    Kent

    Kent Perrier wrote:
    I have removed the check box for the edit functionality of both these
    channels and restarted the portal server. Yet, the edit button is still
    there on both channels and it allows the user to edit (duh) the targets
    of the netlet and bookmarks.
    WHAT ELSE AM I SUPPOSED TO DO TO GET RID OF THIS BUTTON??????Now that I have gotten that off my chest, I have figured it out :)
    I had to edit the polivy for the role to remove these. Go figure. I
    thought by editing this for the domain and then checking the check box
    for "Apply changes to all sub roles (overwrite customized attributes if
    necessary)" would do it.
    Kent

  • As of this week im unable to delete multiple emails. Last week i was able to hit the edit button select the emails and hit trash. As of this week they keep unchecking themselves are others having this issue and how do i fix it? Im using iso 7.0.4

    Please help

    Have you tried restarting or resetting your iPad?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after It shuts down, press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds).
    No data will be lost.

  • I no longer am able to edit an event in ical on the iphone. When I click on the event I can read it but there is not edit button on the screen?

    I am not able to edit an event on Ical on my Iphone 4. I can view the event but there is no edit button available on the screen.

    Hi ,
    According to your description, my understanding is that you could not edit documents with Office client application in SharePoint 2010.
    Let’s do a troubleshooting about this issue:
    1. Make sure that you have installed Office application on your machine.
    2. Which explorer did you use for your SharePoint. Please test it with IE 10 32-bit, compare the result.
    3. Please try to reset IE, compare the result.
    4. Add your SharePoint site into Trusted site on your IE options.
    5. Make sure all add-ons related to SharePoint are enable, special for SharePoint OpenDocument Class and SharePointOpenXMLDocuments.
    6. Since you used OWA for your SharePoint site, please try to disable OWA, then open documents with client application, compare the result.
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

Maybe you are looking for