Adding parametric value to role programmatically

I would like to add a large number of parametric values to a parametric role and I have tried the following code to do so:
String sql = "Select distinct majorcode from GS_Contacts";
Fuego.Lib.Role rl = Role.find(name:"GS_Department");
if(rl != null){
          foreach(row in DynamicSQL.executeQuery(sql, externalResource))
               String param = row[1]+"";
               logMessage(param);
               rl.addParameter(param);
}In studio I get an error: Role 'GS_Department' could not be updated to this server. Reason: 'Invalid process definition. Trying to add a role (organization:GSE, commonName:GS_Department:180001GC) and the field Identification Number cannot be null.
And in Weblogic, I get no error, but the values are not added.
I need to do a one-time load of 260 values, and then make the editable later (adding and deleting from this initial list).
Thanks in advance.

Hi Shannon,
The Fuego.Fdi.DirOrganizationalRole has an array parametricValues that you have to manipulate in order to add or remove parameters to that role, after manipulating it call the methos update().
The Fuego.Fdi.DirHumanParticipant has an array rolesAssignment of type Fuego.Fdi.RoleAssignment that you have to manipulate to add or remove role assignments to a participant, the after call update() for the DirHumanParticipant.
HTH

Similar Messages

  • Urgent -- Adding Roles Programmatically

    How to add/edit roles programmatically in weblogic? I tried to use RoleEditorMBean,
    RoleMapperMBean and RoleRederMBean just like the PasswordEditorMBean example given
    by bea. But I find that neither the embedded ldap providers nor the open ldap
    providers are implementing these MBeans as the authorizers I am getting from the
    realm are not instances of these MBeans.

    Hi Nitin
    Thanks for your reply...
    I just went to that program & activated the program...After I have to activate my object...is it what u want me to do??
    ok anyway...I have 0mat_plant which is already created...with all attributes..Now I want to add a Navigational attri...
    when I add & activate the 0mat_plant..I am getting the above error as I stated in my first message.
    I need one more clarification...could you pls let me know..when you create an infoobject, under the GENERAL TAB, u have a option for ONLY ATTRIBUTE...What is the use of it?
    ANy other ideas for my issue...????

  • When Tcode and Object added to the particular role

    Dear Gurus,
    My question is that, how we can able to know that who (user ID) / when this tcode or object (with particular activities) has added to this particular roles/profiles.
    Regards,
    Sanjay

    Hi Sanjay,
    Goto SUIM->Change Documents->For Profile and select the profile of the role for which you would like to see the changes.
    After running the report, you will see the Objects added/removed. Click on each Object & it will show all the details, as in: who did, at what date, time, values entries etc
    Similarly, you can see the same for Roles also, if you want to see for Transaction codes

  • How to create visitor roles programmatically

    Could you please help me how to create visitor roles programmatically using weblogic portal.
    Thanks in advance

    Hi,
    Point this method to the selectItems under selectonechoice.
            if (yourList == null) {
                (yourList = new ArrayList();
                DCBindingContainer bindings = ADFUtil.getDCBindingContainer();
                DCIteratorBinding iteratorbinding =
                    bindings.findIteratorBinding("yourVO1Iterator");
                if (iteratorbinding != null) {
                    Row[] rows = iteratorbinding.getAllRowsInRange();
                    String value = null;
                    Long key = 0L;
                    for (Row row : rows) {
                        value = (String)row.getAttribute("Attrib0");
                        key = (Long)row.getAttribute("Attrib1");
                        yourList .add(new SelectItem(key.toString(), value));
            return yourList;
    Thanks
    Nitish

  • Delete parametric values

    Hi,
    is there a way to delete a parametric value of a role in Enterprise, which is used by a project? I tried, but it's saying that I can not do that because the role is in use. But isn't there a way to just delete one value?
    Regards
    Matthias

    Hi,
    When you are saying Does it work for you even if the role is used at the moment by a deployed project.
    Is it the parametric role been assigned to some participant ?
    If this is so then yes I have one parametric role and that is being given to some participant. When I deleted the parameter the parametic role given to the participant has automatically deleted.
    May be for 10gR3 first delete the reference one (parametric role asssigned to the participant) then delete the parametric role. Try your luck :)
    Bibhu

  • No data found due to cost element adding leading values in report

    Hi Experts,
    I have an issue where when the run the analyser with some values in variable screen it is displaying the output correctly in analyser tool. I am filtering the cost element with a single value for ex 4545000 and I have kept that in rows . Still the report is working fine.  But then when I go back to variable screen and change the input for ex instead of period 3 if I change it to 4 , output is null since the cost element is adding leading values to the existing value in the filter and displaying no result.  for ex 4545000 is getting added with controlling area 0050 and its searching for 00500004545000 and since this is not the cost element value its not displaying output..
    Any ideas how to rectify this or is it a analyser tool issue..
    Thanks in advance
    Kishore

    Hi,
    In my system it looks like this:
    Note that superior infoobject to 0costcenter is 0co_area
    Hope this helps,
    Leszek

  • Maintaining operating concern after adding new value field

    Hello,
    I added a new value field to our live operating concern,maintained the data structure throguh KEA0(Maintain operating concern).The changes are transported from Development to Quality,Changes were reflected in Q system.After testing in Q system transports were pushed to production system.The new value field is added to the operating concern. When i check the log for KEA0 in production system it displayed one message like:
    Field VV088 was added to the reference structure
    Message no. KE782.You probably either  changed the operating concern or SAP-EIS aspect, and added the field VV099 to the definition.
    The added a CO-PA value field:
    In this case, the field is added to the definition or the summarization levels. This invalidates all existing levels. Consequently, you need to activate them again and fill them with data.
    In production system maintaining operating concenr or KEAO is only in display mode.Is it needed to regenerate the operating concern once again in production, how to do it. Is the message talking about the KEDV summarization levels.?
    thanks
    rahul

    Hi,
    No no ....KEDV is nothing to do here....that is creation of summarization in CO-PA.
    Since you added new value field you necessarily have to Regenerate the operating concern...
    Use Tcode KEA0...go to Environment tab...there the status of Cross client part  and client specific part both will be in RED....now just click on the Cross client (candle button)...now the system would regenerate the operating concern...once it is over do the same for the client specific...
    Beware when you do regenerate the operating concern no body can enter any transaction in that server since it is cross client table ...hence better do it after business hours.
    Hope this helps!
    Running KEDU with rebuild is relevant only when you already have created summarization and called up the same in the CO-PA report "options" tab. If you did not created the summarization you are nothing to do with KEDU.
    Next: The new value field has to be transported to PRD and hence even in PRD we have to do the regeneration manually.
    Regards,
    Velumani
    Message was edited by: Velumani Arunachalam
    Message was edited by: Velumani Arunachalam

  • Impact of adding new value fields in ongoing operating concern.

    Hi All,
    Want to know the steps of adding new value fields in the existing operating concern in COPA?
    What is the overall impact of addition of New Value fields in the running Operating Concern?
    How do we test the addition of new value fields?
    Is the addition of New Value fields to the running Operating Concern advisable?
    Your support and advice is highly anticipated and appreciated.
    Thanks & Regards
    9819528669

    HI,
    please search in SCN forum before you post:
    Re: Adding a ValueField to an existing Operating Concern?
    Best regards, Christian

  • Changing Time Zone (stsadm tzmove) = Error: Adding a value to a 'datetime' column caused an overflow

    After updating timezone.xml и RGNLSTNG.xml files for my SharePoint 2010 (SP2 - 14.0.7015.1000)
    I have to run this command to Update time zone on calendar events:
    stsadm -o tzmove -name "russ2014" -update all
    But this cause an error: Adding a value to a 'datetime' column caused an overflow
    ULS log event: System.Data.SqlClient.SqlException: Adding a value to a 'datetime' column caused an overflow.  The statement has been terminated.
    How to fix this?

    Hi,
    Whether you added new time zone definition to your timezone.xml 
    and  RGNLSTNG.xml files.  if not, please provide the details about what content you updated in timezone.xml and RGNLSTNG.xml files.
    The stsadm.exe –o tzmove command does not work for new time zone definition changes. 
    This command is designed for making changes in the existing time zone, 
    not for creating a new time zone definition.
    After you modify the Timezone.xml and Regnlstng.xml files to include the new time zone definition, you must restart Internet Information Services (IIS).
     To do this, click Start, click Run, type
    iisreset in the Open box, and then click
    OK.
    Try to do IIS restart, compare the results.
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact 
    [email protected]

  • Changing LDAP roles programmatically

    Does anyone know if it´s possible to change a LDAP user role programmatically? I´ve searched for hours, but I didn´t find any information about it. I Only found classes on weblogic api to change user attributes.
    Is there any api on weblogic to do that? Or any documentation that talks about it?
    Thanks in advance.
    Hevert Brito
    Edited by: user12966611 on 09/04/2010 15:16
    Edited by: user12966611 on 09/04/2010 15:16
    Edited by: user12966611 on 09/04/2010 15:17

    Faisal,
    I´m trying to use the method createRole the same way you´re doing in you example but i´m getting this error:
    Caused by: java.lang.NoSuchMethodException: createRole(java.lang.String,java.lan
    g.String,java.lang.String,) for Security:Name=myrealmDefaultAuthenticator
    ... 117 more
    When I use the method createUser as you did in your example it works perfectly.
    Do you have any idea why is that happening?
    This is my code:
    try{
         System.out.println("Creating role : testrole");
         wls.invoke(roleEditor,"createRole",new Object[] {null,"testrole",null},new String[] {"java.lang.String", "java.lang.String","java.lang.String"});
         System.out.println("Created role : testrole");          
    catch(Exception e){
         e.printStackTrace();
    }

  • Adding DVM values at run time

    Hi,
    I am trying to adding domain values to DVM at run time,
    it is getting added to DVM at that movement ,bt
    when i redeploy the service I am not able to see the changes.
    so help required regarding this

    Hello
    That is the solution to his problem, by the sounds of it when he redploys his code he gets the old values (the one in his code) if he migrates it to the MDS when he redeploys it won't change. This will seperate his deployment from run time configuration values which is a good idea.
    Best Regards Tristan

  • Regarding adding Rows to a Jtable programmatically

    I tried adding rows to a Jtable programmatically.
    My Jtable has the Table Model as a class that has been extended from DefaultTAbleModel.
    I tried inserting rows using addRow, and setRowCount and set RowNum methods but nothing worked..
    and I get the OutOfMemory xecption alawys and my applet hangs...

    What's in your addRow method? Are you firing the
    inserted event with fireRowsInserted?
    My snippet assumes you're storing table data in a
    vector of vectors and only want to add the row to the
    bottom of the table.
    public void addRow(Vector vector)
    data.add(vector);
    fireTableRowsInserted(data.size(),
    size(), data.size());
    addRow is a method of the DefaultTableModel class..and so I am not over riding it...
    i just use it as defaulttablemodel-object.addRow(Object[] obj);

  • Assign actions to roles programmatically

    Hello guys,
    Is possible to assign actions to roles programmatically using java? How can I do that?
    I did a search on the UME Interfaces but i didn't find anything.
    Regards
    Joao

    It was not difficult
    IRole role = UMFactory.getRoleFactory().getMutableRole(uniqueid);
    role.addAttributeValue("com.sap.security.core.role","actions", <STRANGE ID OF ACTION?> );
    role.commit();
    The <STRANGE ID OF ACTION?> field was found assigning the Action to the Role manually in the Identity Management and watching the IRole object on Debug.

  • Restricting an administrator to only adding or removing Business Roles

    Hi:
    Is there an out of the box rule or form in IDM that can restrict an administrator to only adding or removing business roles from accounts?
    Thanks.

    Hi Dwayne,
    This BU ruling is somewhat of a newer function with OIA. For mass alteration, the old-school way would be to execute a SQL script directly towards the DB.
    Simply change the last line on what correlation you wish (in this situation, it's looking at the BU Name and the GU office name)
    delete from BU_GLOBALUSERS where businessunitkey > 0;
    insert into BU_GLOBALUSERS(BusinessUnitKey,GlobalUserKey)
    select BU.BusinessUnitKey, GU.GlobalUserKey from BUSINESSUNITS BU, GLOBALUSERS GU
    where BU.BusinessUnitName = GU.officename;
    Regards,
    Daniel Redfern
    Technicalconfessions.com

  • Adding key values continuously

    Hi,
    I want to add some key-values in a hashtable continuously i.e for example
    Hashtable cv = new Hashtable();
    cv.put(key1,value1); //added key-value
    The next time I execute the above code, the previous value will not be there, but only the current value. I want both the previous value and next value.
    i.e. cv should contain [key1=value1, key2=value2]
    How to achieve this?
    Please help me in this regard.
    Thanks in Advance....

    Hi,
    What happens here is
    class Dymmy {
    private Hashtable cv = new Hashtable();
    public void addValue(Object key, Object value) {
    List values = (List)cv.get(key);
    if (values == null) {
    values = new LinkedList();
    values.add(value);
    cv.put.(key, values);
    When I invoke the class first time cv contains [key1=value1]
    When I invoke the class second time cv again contains [key1=value1] instead it should contain [key1=value1,key2=value2]
    If I invoke it third time cv should contain [key1=value1,key2=value2,key3,value3] ...

Maybe you are looking for

  • Error during transfer to demand management in tcode MC88

    Hi Expert, I am getting an error 'No data maintained for material F1475078 plant 2000 in transfer period' during processing transfer to demand management in tcode MC88. Anybody know what is the root caused behind? I try to search in internet and no s

  • Element 9 stops working

    Hi everyone!  I just bought a brand new sony vaio computer yesterday.  I just installed premier elements 9 and also downloaded the latest version of quicktime. Everytime I start editing a project I'll make a few edits and then I get a message saying

  • Missing objects from the report editor...

    When some users try to create webi reports, they select their objects for the result and conditions, then they click Edit Reports under the Data tab, Documents - sometimes the objects don't show up?   Is that a problem on the Client side or Server si

  • Large circle beside mail folder

    I suddenly cannot access some of my sent messages and sitting beside a sent sub-folder there is a large solid gray circle. It will not let me do anything and as you can see the triangle beside it is open. This mailbox will also not let me rebuild it

  • Damaged Mailbox

    Tried searching for this and sorry if it is elsewhere. Every since installing the latest security update, mail keeps crashing on me. It actually is crashing my whole system. I tried running Norton antivirus (none found) and repairing preferences. No