Setting Hidden property for a Resource Object

Hi,
I am trying to set the hidden property for a folder by this code.
// ICollection coll defined
IPropertyName propName = new PropertyName("http://sapportals.com/xmlns/cm", "hidden");
IProperty prop = coll.getProperty(propName);
IMutableProperty mutProp = prop.getMutable();
mutProp.setBooleanValue(true);
coll.setProperty(prop);
This is not working, any idea what would have gone wrong ?
Thanks,
Sam

Hi,
I am not getting any excpetion...
i have log messages before setting the propert and after setting the property...
so if i am trying to set from false to true......it is not getting set to true but remaining as false....
i am trying this with /documents repository.
Can any body give some sample snippet for setting the hidden property / is there anything else i need to do to complete the setting.
Regards,
Satish

Similar Messages

  • How to set property for KM Resource in webdynpro Java

    Hi all
    i am trying to set the property for KM resource in webdynpro for java.
    can anybody send sample code, then it will be great help to us?
    Regards
    Sunil

    Hi Sunil,
    check in sdn with thread name as
    "Reading property from a resource via api, tricky one"
    Koti Reddy

  • How can I get the value of a custom property from a resource object?

    I am trying to get the value(s) of a custom property, called "status" within a method. The method has an object of type IResource available to it.
    I have tried the following:
    PropertyName propName = new PropertyName("","status");
    value = res.getProperty(propName).toString();
    However, I am getting a NullPointerException when I try to create the PropertyName instance.
    Is there a better way to get the value of a specific property from a resource object?
    Thanks,
      Tom

    Thanks Praveen.
    I was missing the default namespace of "http://sapportals.com/xmlns/cm" - I thought I could just pass an empty string for the namespace, but it looks like I must always specifiy, even if it is default.
    Tom

  • Issue in Adding Custom Status Defnition for a resource object

    Hi,
    We have installed OIM and patch it to 9.102. We have created one custom resource object (flat file connector) for reconciliation. As part of requirement we need to define three status for this resource object - Enabled, Suspended and Disabled. As Enabled and Disabled status are available OOTB, i have added 'Suspended' status under the Status Definition in resource object. Now the issue is that if we are passing reconcile user status to either Enabled or Disabled, the status is changing fine on Linked user resource object. But if the status passed as 'Suspended' the resource account status of linked user (OIM) is not changed.
    We have mapped the resource side Status attribute to OIM_OBJECT_STATUS under process definition. I also made the entry 'Suspended' in 'Lookup.Object Object Status' lookup to see if any help, but no luck.
    The 'Suspended' status is successfully added in OST table against the object key and on manually updating the status key against the resource object it is reflecting 'Suspended' status through admin console. User-->Resource Profile
    Does anyone have any clue if the requirement is correct (adding a custom object status) and so, where i am going wrong. Thanks in advance.

    A quick doubt..If i have written down a process task and calling this on completion of 'Reconciliation Update Received' and in this process task , a adapter is attached which is updating the resource account status (ost_status) on the basis of some custom attributes. This task is working fine and updating the status. But the issue is that once this task is complete, the mapping in Process definition (loginDisabled <MetaDirectory> --> OIM_OBJECT_STATUS) overrides the status.
    Per my understanding the flow is going like this-->
    1. Reconciliation run
    2. Event Linked
    3. Reconciliation Update Received
    4. Call The custom Task --> Update the OST Status
    5. Update the OST Status per the mapping OIM_OBJECT_STATUS.
    Is there any way we can implement that the status update in (5) occurs before (4) so that my custom task status can override the (5) as per my business requirement.

  • XMP property for a page object not predefined and no extension schema...

    In attempting to make PDF/A-1b files, I get the Preflight error "XMP property for a page object not predefined and no extension schema present."
    Every page reports the same Trigger values:
    => Property exists in predefined schema (XMP 2004): is not true
    => Extension schema is present in XMP: is not true
    By following the suggestions in the Acrobat 9 Help page "Edit document metadata" I can save existing metadata to an external .xmp file, but I cannot change the XMP metadata to solve the Preflight error.
    I would be grateful for suggestions re how to solve the Preflight error.
    Thanks,
    Raphael

    There is still that same problem.
    Pictures what needed to converted tot PDF/A
    My situation is large JPEG's.
    My workaround to print it out with adobe pdf printer with the options
    1) papiersource on base of pageformat PDF
    2) If needed use adjusted paperformat

  • Is there any way to set a property for all existing Form Fields of a particular type (Che

    In versions of Acrobat prior to version 9, selecting a particular form tool (Textbox, Checkbox), etc. would only display Fields of that particular type in the Acrobat Designer (not LiveCycle).
    If one wanted to change a particular property of all check boxes for example, one would select the Checkbox Tool, Click Edit>Select All>Right Click one of the Checkboxes and Set the Property for all of the Form's Checkboxes.
    Selecting a particular form tool in the Acrobat (not Lifecycle) Designer in version 9 appears to no longer filter the display to that particular form field type. Is there any way to display only 1 particular form field type in or set a particular property for all existing Form Fields of a particular type (Check Box, Text Box, etc.) in Acrobat 9?

    Thanks for the tip..Am aware of this option and have used JavaScript to batch change properties in the past...
    Am looking for a way to replicate the interactive procedure available in previous versions.  Also, want a way to only display certain Form Field types (use this when analyzing forms which I didn't create).

  • Set layout property for dynamic group element

    hi ,
         I am creating group ui element dynamically . can any one plz tell me how to set layout property for group as gridlayout DYNAMICALY??
    Kavita

    Hi,
    Following is the skeleton of the code you need.
    IWDTransparentContainer container = view.getElement("<Your container>");
           IWDGridLayout gridLayout = container.createLayout(IWDGridLayout.class);
           gridLayout.setCellPadding(cellPadding);
           gridLayout.setCellSpacing(cellSpacing);
           IWDTransparentContainer container = null;
           IWDGridData grid = container.createLayoutData(IWDGridData.class);
           grid.setHAlign(hAlign);
           grid.setVAlign(vAlign);
           grid.setPaddingRight(paddingRight)
           grid.setPaddingRight(paddingRight)
           grid.setWidth(width)
    Regards
    Ayyapparaj

  • Setting bind variable for a view object from the Managed Bean

    Hi,
    i am using JDeveloper 11g, i have to create LOV in the JSF. To show the LOV, it has to populate data using View object and its query parameter need to be sent from the Managed Bean.
    For the View object i want to set the bind variable parameter from the managed bean value. bename is stored in a managed bean (session scope)
    #{beantest.bename}
    But it gives the following exception.
    JBO-29000: Unexpected exception caught:
    org.codehaus.groovy.control.MultipleCompilationErrorsException,msg=startup failed, Script1.groovy: 1: expecting '!',found '{'@ line1, column 2.
    I have followed the link http://kr.forums.oracle.com/forums/thread.jspa?threadID=615474 like Frank wrote on 8.2.2008:
    But steps are not clear.
    How to input the VO bind parameter with Managed bean variable?
    Any Help
    Regards
    Raj
    Edited by: user9928180 on Dec 17, 2008 9:51 AM

    Hi,
    a bind variable in a VO needs to be exposed as an executeWithParams operation in the pageDef file. Just add a new action binding to the pageDef file (context menu) and select the executeWithParams operation on teh VO. Then in the argument field, reference the managed bean property for the value
    Frank

  • How to use BAPI_OBJCL* to set classification data for Techn. Objects - PM ?

    Good afternoon !
            I´m working in a project to integrate some legacy system with the ECC 6.0, and I need to do some activities like, create functional locations and equipments in SAP PM, I have done this creating Z RFC modules that call bapis like BAPI_FUNCLOC_CREATE and BAPI_EQUI_CREATE, but these BAPIs doesn´t fill classification data, so, in a first moment, I solved this using BDC, but I would like to solve these needs using standard BAPIs if possible.
            To solve the classification, I tried to do it using the BAPI_OBJCL* BAPIs(BAPI_OBJCL_GET_KEY_OF_OBJECT, BAPI_OBJCL_CREATE_KEY), but I didn´t find any example of using these bapis with technical objects, so I tried to test the BAPI_OBJCL_GET_KEY_OF_OBJECT in a first moment and, when I call it passing '003' as classtype(003 is the classtype for the functional locations), this bapi returns me "Class type 003 requires additional objects"(the same occurs if I try it with 002, for equipment). What means this message ? Need I to do some customization in img/spro, or cannot these bapis be used with PM technical objects ?
            Thank you for your attention,
            Wilson

    Hi all !
            I have found the solution for this problem, I found that I was trying to use the wrong functions for my case, so, to solve my needs here, I will use BAPI_OBJCL_CREATE to set the classification data for Functional Locations and Equipments, and I can use BAPI_OBJCL_GETCLASSES to list all classes assigned for a Technical Object, and BAPI_OBJCL_GETDETAIL to get all characteristics assigned to a Technical Object for a specific class.
            Thank you all for your attention !
            Wilson

  • OIM - How To not show the "Disable" option for a Resource object to a group

    Hello there,
    Is there anyway we can remove or don't show the option to "Disable" a already provisioned resource object ?
    I have a requirement over here wherein there is no reason available to show the "disable" option out of the 3 available - "enable", "disable" and "revoke" for an already provisioned RO.
    How can we remove it ? We don't want users belonging to a specific group see that option, at all.
    Is there any menu item associated with it ? or is there any other way we can configure it ?
    Please advise to the earliest.
    Thanks !!
    P.S.: this is OIM 9102 running on solaris.
    Edited by: 786001 on Oct 13, 2010 7:22 PM

    Modify JSP:
    And to do this just for a particular group, put your java code in JSP itself. This is the easiest approach.
    Otherwise you can modify the action class to return two action forwards and then use two different JSP's.
    Thanks
    Sunny

  • Creating a work flow when a user is requesting for a resourc object

    hi all
    I h've a few resource objects.
    I need to put an approval process when a usr requests for a particular resource object.
    pls provide me with the high level steps that i have to perform inodrder to achieve this.
    thank u
    sas

    Hi,
    You need to do following steps.
    1.Create a resource object.Select "Self Request Allowed" option.
    2.Attach Object form if any in the Table Name field.
    3.Go to process definition and create a process of type approval.Select your object name.
    4.Create a task and assigned it to the approver from assignment tab.
    You are done.Let me know if you need anything else.
    Regards
    Nitesh

  • Set visibility property for items depending on other items

    Hello,
    I want to set the visibility setting for an item that I have, the steps should be as the following,
    for example
    if I have an item that asked,
    do you have children ?
    if the answer is Yes,
    the next item should be visible which let's say, number of  them
    if no,
    the next item should be not visible
    I tried to set a trigger for the item I am controlling its visibility which is
    pre-text-item and wrote
    if 'CHEQUE_TABLE.CHEQUE_RECIEVED'='yes'
      then
      set_item_property(:SYSTEM.CURRENT_ITEM,visible,property_true) ;
    else
      set_item_property(:SYSTEM.CURRENT_ITEM,visible,property_false) ;
      end if;
    but it doesn't seem to be right, ,,,
    thank you

    I can see two potential problems.  The first:
    if 'CHEQUE_TABLE.CHEQUE_RECIEVED'='yes'
    Does CHEQUE_TABLE.CHEQUE_RECEIVED refer to a Data Block and Item?  If yes, then you are trying to tell Forms to look at the value of the string 'CHEQUE_TABLE.CHEQUE_RECEIVED' when you should be refering to the value of the Block.Item through direct reference, eg:
    IF :CHEQUE_TABLE.CHEQUE_RECEIVED = 'yes'
    How is the value of CHEQUE_RECIEVED set?  Does the user select the YES value from a List of Value (LOV) or from a Poplist or do they enter the value by typing it in?  If your code is looking at the string 'yes' and comparing it to the value of the Block Item which is in upper or mixed case, then 'yes' = 'Yes' or 'yes' = 'YES' will evaluate to FALSE instead of TRUE.
    It is always a good idea to use a Poplist or a List of Values when you are expecting specific values to be entered by the user; this enables you to force the value to be entered the same by everyone.  If the user CAN type the value in, then at least set the Case Restriction property to UPPER or LOWER so regardless of how the user enteres the value, it will be stored in the corrected case.
    Craig...

  • OIM11g Code for getting resource object name

    Hi Experts,
    I want to fetch all the resource objects names assigned to a particular user. I am using following 10g code:
    tcUserOperationsIntf moUserUtility1 = (tcUserOperationsIntf) getUtility("Thor.API.Operations.tcUserOperationsIntf");
    Hashtable mhSearchCriteria = new Hashtable();
    mhSearchCriteria.put("Users.User ID", "*");
    mhSearchCriteria.put("Users.Status", "Active"); // Searching for all
    tcResultSet moResultSet = moUserUtility1.findUsers(mhSearchCriteria);
    Long usr_key = moResultSet.getLongValue("Users.Key");
    tcResultSet rs = moUserUtility1.getObjects(usr_key);
    String objName= rs.getStringValue("Objects.Name")Could you please help me getting the OIM11g API's and code for the above 10 code?? Any ref will be helpful..
    thanks.

    Check this link
    OIM 11g - retrieving all the provisioned accounts of an user

  • Set a description for a File object

    Hello, I have to do a File saving task. I have a directory when I place my files. When i press "Save", a dialog appears and a table lists all my files from that directory. Each file must have a description. My question is how to set a description for a file, and also, how to get back that description. 10ks

    public class ExtractionSetFile extends File {
         private String description;
         public ExtractionSetFile( String pathname ) {
              super( pathname );
         public void setDescpription( String descpription ) {
              this.description = descpription;
         public String getDescription() {
              return description;
    }

  • Help me !!!!!! set Arguments property for block based on store procedures

    hi
    i build a block based on storeprocedures ,if i set the
    Query Data Source Arguments property in design time with a value
    my form will work,
    but i need to set this property programetically and in runtime,
    if there is any built_in or other ways ,please help me.
    thanks in advance.
    shoja.

    Sorry, but there is no way to do this.
    If you need to switch the table you're selecting from, you have to do this
    inside your stored procedure.

Maybe you are looking for

  • How to Transfer AR AP Data to Profit Center Accounting

    Hi, Can anyone explain me the process of transferring the AR - AP data load into Profit center accounting. As of now we dont have  PCA inthe existing SAP system. Now implemented PCA and wanted to bring old AR AP data... Please give me the process for

  • PC Card for MacBook

    Hi, i have a PC Card (wireless 3G CDMA) I use with my laptop PC and I would like to use it in with a MacBook that lacks the PC Card slot. Is this possible via an USB adapter or so? Thanks.... /Mans

  • External Drives Running Hot

    I have a new Mac Pro - 2 2.8GHz, 2gb ram, 500gb internal drive. I have two external drives that I use, a 250gb Lacie firewire, and a 500bg Lacie USB2. I have noticed after a couple of hours, the hard drives are extremely hot to the touch. I have read

  • Vi will not open, instead Labview opens a search window for the vi

    I have a vi in 7.1 that, while running, locked the PC.  After rebooting, Labview could no longer open the code.  Instead it acts as if searching for a sub-vi it cannot find.....itself.   I've seen similar questions posted from years ago with the rare

  • Spam rule for long word in subject line..

    My apologies, but my last question on this topic is archived (that seems quick).. but Surely there must be a way to create a spam rule that checks for words in the subject line that are, say more than X characters long. The new spam that is driving m