How to get the busines role
Hi ,
how to hide the tool bar buttons based on the business role.
Thanks,
venkat
Hi,
to get the role you can use CL_CRM_UI_ROLES=>GET_ROLE_ATTRIB. The toolbar buttons themselves are typically prepared in the DO_PREPARE_OUTPUT method of the view controller. Nevertheless you will need to check in the code of the relevant view.
Best Regards,
Michael
Similar Messages
-
How to get the security-roles ?
Hi,
How can I get the security-roles defined in my web.xml ?
I have looked for a method in the request, and in the context, but I can't find something that would return a String[] with the roles available in the web-app.
Any ideas ?
H.Just a stab in the dark, but what about getInitParameterNames() ?
It returns an Enumeration of String.
Although, I did not check to see if it returns the <security-roles>
Short of that, I would think you could use SAX, or something like it, to parse web.xml.
Just a thought, feel free to correct me.
S. -
How to get the type of user role in ISF?
We have functionality to hide all the buttons on Monitor task, which was successfully achieved by javascript. But we need to enable these buttons for only Site Administrators, so that they only can do necessary modifications upon request from end users. Can someone point me to correct direction how to get the user role when a user is not a Site Administrator. Thanks in advance.
What about having your custom ISF onload script first run a db query (on older version called a rcFetch) which would evaluate if the person loading form is a member of the site admin ou.
Here's a rough example:
ISF_onLoad()
rcFetch('Q1','Q1PL=' + UserID);
This will then run a query to validate if the person is a member of the admin ou.
SELECT * FROM DirOrganizationUnitPeople WHERE PersonID = #P1# AND OrganizationalUnitID = 1 (this should be the id of the site admin ou or the ou which you are referring to as an admin)
then have a call back to determine if any records where return, which indicate the person is a member of the site admin ou.
function Q81_DataCallback(retArray, queryList)
if (retArray['Q8500._COUNT_'] == 1)
{ *Show the fields* }
Hope this helps. -
How to get the role name in which query is published ?
Hi Experts,
Is there any table where i can get the name of the role in which a particular query is published. I know that if i have a role , i can check in pfcg giving that role name and in menu tab i can see all the queries published under that role. But if i know query but not role how to get the role name . Is there any table or functon modules or programs to get the information.
Thanks & Regards
Vamsi KiranCheck this table
AGR_HIER -
How to get the list of roles assigned to a user in all the child systems
how to get the list of roles assigned to a user in all the child systems from CUA SYSTEM
Try transaction SUIM in your CUA system. Go to user, cross-system information, users by roles. If you run it wide open, you'll get all users and all roles assigned for all systems managed in your CUA.
Krysta -
How to get the obiee dashboard secuirity in adf to assign the roles in adf for users
how to get the obiee dashboard secuirity in adf to assign the roles in adf for users
thanks Benjamin...
my present requirement is pull Role to Dashboard mapping from OBIEE Catalog
in my project we are going to restrict the users and assigning the roles from adf.
Pls Help me.. -
How to get the approver from a wf notification in case there are multiple approvers ?
I created an ad hoc role to store mutliple approvers for a wf notification.
My question is how to get the user_name of the first responder so I can stamp the record I need to update with it.
I''m assuming it would be using wf_notifications.GetAttrText but I don't know what that attribute name would be.
Please help.Hello,
I think you can try with script to capture the duplicate booking on presave action. Just try to give a shot to this solution:
http://aleemsheikh.wordpress.com/2011/08/08/warn-users-of-double-booking-in-sharepoint-calendar-in-real-time/
http://social.msdn.microsoft.com/Forums/en-US/9a10a110-a18b-4b5b-a15f-b563322ca0a6/how-to-prevent-duplicate-calendar-list-items-sharepoint-2010
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help -
Dear Expert,
I have one requirement like to read the selected workset name in portal by the current user.I have read two documents regarding how to retrieve the PCD contents (iViews, Pages, Worksets and Roles) and its properties like Created by, Changed by, Last changed by and others using PCD API.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6112ecb7-0a01-0010-ef90-941c70c9e401?overridelayout=true
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/508baf88-9335-2d10-efa6-c6ad61e5fc4b?quicklink=index&overridelayout=true
But I am not able to understand how to get the specific name of the workset which is currently selected by the user.Can you please help me.
I am using portal 7.0.
Thanks & Regards,
PatralekhaHi Expert,
I found that we can use Interface INavigationHelperService to read Portal Role selected by user at runtime from http://scn.sap.com/thread/52194
But this class is available in SAP NetWeaver 7.30 Enterprise Portal .
But in SAP NetWeaver 7.0 Enterprise Portal that interface is not available.
INavigationService is available there.
But didn't get any proper discussion on this interface for the same requirement.
Can you please help me.
Thanks & Regards,
Patralekha -
Getting the active role of an user in a trigger
Hello forum!!
I've been searching to find out if and how I can get the active role of an user when programming a trigger.
Unfortunately I did not succeed in finding some information about this. Is it possible? If yes, how?
Thanks for any hint regarding this topic.
SebastianThanks for the answers. This helped a lot but it does not seem to work within my triggers.
CREATE OR REPLACE TRIGGER InscriptionsInsert BEFORE INSERT OR UPDATE ON Inscriptions
FOR EACH ROW
DECLARE
active_role VARCHAR2(11);
BEGIN
SELECT role INTO active_role FROM session_roles WHERE role != 'CONNECT';
IF :new.ni < 1000 AND active_role = 'ind_service' THEN
RAISE(ABORT, 'le service individuelle ne peut pas faire les inscriptions pour des sportifs');
END IF;
IF :new.i >= 1000 AND active_role = 'eq_service' THEN
RAISE(ABORT, 'le service equipe ne peut pas faire les inscriptions pour des equipes');
END IF;
END;
CREATE OR REPLACE TRIGGER ResultatsInsert BEFORE INSERT OR UPDATE ON Resultats
FOR EACH ROW
DECLARE
forme VARCHAR2(12);
active_role VARCHAR2(11);
BEGIN
SELECT forme INTO forme FROM Epreuves WHERE nEpreuve = :new.nEpreuve;
SELECT role INTO active_role FROM session_roles WHERE role != 'CONNECT';
IF forme = 'individuelle' AND active_role = 'eq_service'
RAISE(ABORT, 'le service equipe ne peut pas enregistre des resultats pour des sportifs');
END IF;
IF forme = 'equipe' AND active_role = 'ind_service'
RAISE(ABORT, 'le service individuelle ne peut pas enregistre des resultats pour des equipes');
END IF;
END; -
Hi,
Can anyone say how to get the user view of a user logged in through admin interface.
I have tried to get the roles of logged in user as below:
<ref>waveset.roles</ref>
it did not work..
Please suggestwho said you cant create view for logged in user, try the following machi
<Action id='0' name='User View' application='com.waveset.session.WorkflowServices'>
<Argument name='op' value='getView'/>
<Argument name='authorized' value='true'/>
<Argument name='type' value='User'/>
<Argument name='id' value='$(WF_CASE_OWNER)'/>
<Return from='view' to='userview/>
</Action>
Rgds,
Purush -
How to get the "Key" for Dimension in SSAS.
Hi
How to get the "Key" for Dimension in SSAS.
(Below value is the PPSParameters table XML column value in PPSDatabase in SharePoint.
Below three key values are belongs to "Dimension". I have tried to find the key but I could net get it.)
<NewDataSet>
<UserValues><Key>16A201A9E75128559F947D58E6D187A9</Key></UserValues>
<UserValues><Key>7FBEA449A6ED5606973306445839619E</Key></UserValues>
<UserValues><Key>A8F75F9720817BCD2E1DFC1C1CF1E678</Key></UserValues>
</NewDataSet>
Thanks & Regards
Poomani SankaranTo Be Honest there is not one straight Cmdlet that atleast I have come across
The best way would if you have Lync monitoring server
Using the Lync Server 2013 Monitoring Server
If you have the Monitoring Server role configured in your environment, and for Lync Server 2013 everyone should!, you can use information contained in the LcsCDR database to pull back the last time a user signed in. You can run the following query* to
pull back the user's SIP URI and their last login time:
USE LcsCDR
SELECT dbo.Users.UserUri, dbo.UserStatistics.LastLogInTime
FROM dbo.UserStatistics
JOIN dbo.Users ON dbo.Users.UserId = dbo.UserStatistics.UserId
ORDER BY UserUri
Which produces the following output:
The advantage to using the Monitoring Server to obtain this data is that unlike the information contained in the rtcdyn database, the information from the LcsCDR data will persist even when the user isn't signed into Lync.
To get approx count of users enable for Lync Server in your organisation
Get-CsUser -Filter {Enabled -eq $true} | MeasurE
Please not the above command let will give you an approx number not exact
From the Monitoring report yet the SIP account that signed in and then from count find out how many user havent signed in this is manual task
Hope this is helpful
Please remember, if you see a post that helped you please click ;Vote As Helpful" and if it answered your question please click "Mark As Answer" Regards Edwin Anthony Joseph -
How to copy the responsible roles when copying tasks/phases ?
Hello,
Currently when you copy a phase and paste it, it copies all the sub tasks, but doesnt copy the responsible role and responsible resource. I need to enhance the coding so that the responsible roles and resources of phases as well as the sub tasks are copied to the new phase/task. I could retrieve the refernce to the phase /task and get the responsible role, but could not add them to the new task.
Can anyone suggest me how to add responsible roles/resources to a task (coding wise)?
Thanks,
EzhilTable DPR_BUPA_LINK stores link between role and BP. You can get data from this table
Anuradha -
How to get the activity instance id and process id
Dear All,
For my case, my boss require the workflow program processor can be runtime assigned . After research, I found the coding example like below:
// dynamically assign a user to a role
rtm.addRuntimeDefinedUserToRole(
// process instance
prInstance,
// role name
"Processor",
// user that is assigned (IUser)
user,
// user context (IGPUserContext)
userContext);
// dynamically change the user assigned to a role for a particular task
String prInstanceID = prInstance.getID();
rtm.changeTaskProcessor(
// process instance ID
prInstanceID,
// activity instance ID
activityInstanceID,
// current user (IGPUserContext)
currentProcessorContext,
// new user (IGPUserContext)
newProcessorContext);
But I don't know how to get the process instance ID and activity instance ID before I can apply this api in my webdynpro application.
Any gentllement can give me an idea.
Thank you.
Regards
Ericprocess = GPProcessFactory.getDesigntimeManager().getActiveTemplate(
// by specifying its ID "CCD2C3F1BED111DD9DFA005056A9416C",/
/* and the user accessing it */ userContext);
// retrieve the Runtime Manager
IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
// create an empty role assignment list
IGPProcessRoleInstanceList roles = rtm.createProcessRoleInstanceList();
//Initialising the input params
IGPStructure params =GPStructureFactory.getStructure(process.getInputParameters());
params.setAttributeValue("Name",value);
//Starting the process
IGPProcessInstance prInstance = rtm.startProcess(process,"Process Name","Process name",user,roles,params,user); -
How to get the values from popup window to mainwindow
HI all,
I want to get the details from popup window.
i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
now i am able to display popup window with values.How to get the values from popup window now.
I can anybody explain me clearly.
Thanks&Regards
kranthiHi Kranthi,
Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
Regards,
Uday -
How to get the table of value field? and can we expand the technical limits
Dear
I have created value field in COPA with KEA6. And now, I need the table which the value fields are saved. Yet, I have tried a lot to find it and get failure? Can any guy help me? Please tell me how to get the table of a value field.
And another question is that, can we extend the technical limits for the number of value field for ECC6.0?
We have a note for R.4.x Please see below:
OSS note 160892
You can display the length of a data record using Transaction KEA0 ('Maintain Operating Concern'). After you have navigated to the 'Characteristics Screen' or to the 'Value field Screen' choose menu path 'Extras -> Technical Limits'.
The maximum displayed here under 'Length in bytes on the DB' is the maximum length permitted by the Dictionary. The reserve required for the release upgrade must be subtracted from this value.
To increase the allowed number of the value fields, increase the value that is assigned to field ikcge-bas_max_cnt (FORM init_ikcge_ke USING fm_subrc, approx. line 165) in Include FKCGNF20. It specifies the number of the possible value fields. The corresponding part of the source code is attached to the note as a correction.
David Sun
Regards!how to extend the limit of value numbers? please see the original question.
Maybe you are looking for
-
My macbookpro is not opening pdf sites from safari or firefox, it goes to the address but just gives me a black screen. I can however open a pdf file that I have saved on my HD, it opens on preview. any thoughts? osx 10.6.8
-
Organizer keeps will not open?
I have had PSE for 6 months and used it lots but a few weeks ago the organizer just stopped opening, i have to go in to Edit to open organizer and my photo thumbnails are not shown, just timmers, i have changed the name of the online services file i
-
How does Airplay transfer audio file format to an Airport Express?
Hi, everyone How does Airplay transfer audio file format to an Airport Express? Many from the Internet claim that iTunes encodes an AIFF file format into an Apple Lossless Audio Codec (ALAC) file format before sending signal to an Airport Express. Is
-
IBooks -- sync current read location between two devices??
I have a book installed on both my iPhone and iPad. I might be reading on one or the other depending on circumstances. Is there any way sync where I am in the book between these devices? For example I might be reading from the iPad on the plane but w
-
I am facing the difficulty for "enum" was using as an identifier.
Hi i am facing a difficulty for Axis dev team are using "enum" as an identifier.Actually "enum" as reserved key word.But axis dev team are using this as a identifier for packages. ie.. org.apache.axis.enum.Style.RPC ---- here i am getting a compilati