Include Emp ID as default field like created by
Hello All,
I have a requirement where it states me to include emp id as default field like we have the created by field. The created by field only gives me some fields. However i want to include emp id also. Please guide me on the same.
CreatedBy field stores
SPFieldUserValue object from which the underlying
SPUser object can be accessed. SPUser is a sealed class i.e. cannot be inherited by other classes, and this will give you only Id,Name and Email.
As Mike and Romeo have outlined, you will have to create a custom property in user profile store and configure Profile sync to update it from Active Directory or an external system leveraging BCS. Then call the user profile service to
get the value of this property.
This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.
Similar Messages
-
Is there is any way to create a validator to compare two fields (like a pa
Hi,
Is there is any way to create a validator to compare two fields (like a password and a retype password ) ?
please give me any suggestion or any example related this problem!!
thanks,
Praveen SoniUgh, do you have taken over the LimitValidator and the JSF example (including the f:validateDoubleRange which is unnecessary in this case) literally without actually reading/interpreting/understanding it? No, then it is indeed not going to work. Basically you just need to define a validator in the one password field and pass the client ID of the another field as attribute along the one password field. In the validator you can retrieve the value of the another field by its client ID and finally just invoke String#equals() on the values of the both fields.
-
Default value in LOV field in Create and Update page in OAF
Hi All,
I am unable to default LOV field in Create and Update page in OAF.
I tried in below way :
OAMessageLovInputBean lovBean1 = (OAMessageLovInputBean)webBean.findChildRecursive("AAA");
But I am getting developer mode exception, so please guide me how i can set the default value for create and update page instead of using code in process request method in controller.
ThanksHi,
1) In case of create, you can default the value either in EOImpl or in AM while initializing the row:
//in EOImpl
public void create(AttributeList attributeList)
super.create(attributeList);
setXXAttribute(<value>);
//in AM, VO new row initialization :-
VOImpl VO = getVO1();
VO.setMaxFetchSize(0);
VORowImpl row = (VORowImpl)VO.createRow();
row.setXXAttribute(<value>);
VO.insertRow(row);
row.setNewRowState(Row.STATUS_INITIALIZED);
2) In case of update, execute the VO (also set the where clause if required) in PR method of update page.
--Sushant -
How to delete predefined fields like Provisioning Date in users- create
Hi,
Is there a provision to delete predefined fields like Provisioning Date in users->create form in admin console.
If so, please tell me all the files i need to change.
Thanks in advanceHi,
You need to comment on following sections in FormMetaData.xml.
<!-- User Provisioning Date -->
<!--
<AttributeReference editable="true" optional="true">-23</AttributeReference>
-->
<!-- User Provisioned Date -->
<!--
<AttributeReference editable="false" optional="true">-25</AttributeReference>
-->
<!-- User Deprovisioning Date -->
<!--
<AttributeReference editable="true" optional="true">-24</AttributeReference>
-->
<!-- User Deprovisioned Date -->
<!--
<AttributeReference editable="false" optional="true">-26</AttributeReference>
-->
Please let me know if you have any questions.
Regards
Nitesh -
Default value in field when creating a new vendor (Transaction: XK01)
Hi, everybody!
Is it possible to set a default value to a field when creating a new vendor (transaction: XK01)?
We need the field "Payment terms" in "Payment transactions accounting" tab and field "Terms of payment" in "Purchasing data" tab to be filled with a default value when creating a new vendor.
Thanks in advance
Best regards,
J MadariagaYou can try creating a transaction varient fron SHD0 for this which will default the requiredd values .
-Hari. -
Including "job title" as one of the default fields for iOS 8 Contacts
For the "Contacts" on my MacBook Pro, I am able to set things up so that, when I add a new entry, "Job Title" appears among the default fields, sparing me from having to go down to "add a field" in order to enter the "jon Title" for that particular entry.
I have not found a may to do such customization on my iPhone 5 with iOS 8.1.1 Can you tell me how to do this? I have looked at Settings for "Mail, Contacts, and Calendars", and under "Contacts" there is no place allowing specification of default contact fields..When you add a new contact in Contacts scroll down to bottom and select Add Field. Job Title is near the bottom.
-
I need a field like "System.RelatedLinkCount" but where the count is linked items with a field in a certain state.
e.g. I've got a WI with a field on it that tells me how many active bugs are linked to it. (I'm not actually counting active bugs, but hopefully you get the idea).
The only way I can think to do this is with a TFS plugin and catching the workitemchanged event. I'd prefer to do this entirely in the WI if possible? is there a way to do this? ThanksHi TimB33,
Thanks for your post.
As far as I know there’s no default WI rule support to get the specific WIT linked count, I think you need to create your custom work item control to achieve that if you want this field.
For this scenario, please submit it to User Voice site at: http://visualstudio.uservoice.com/forums/121579-visual-studio. Microsoft engineers will evaluate them
seriously.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Hi,
I would like to change the names of default project level fields of Ms Project Server such as Start Date, Project notes etc. However, i couldn't find any option in MS Project Server 2010 to change the default field names. Any help in this regard will be
appreciated.Hi,
It depends on what you want to achieve with the fields renaming!? One option you have is to change the label for the fields displayed through Project Center/Project views!
The you will need some JavaScript etc. to change the labels on the PDP and rename the columns in MS Project as needed
I would personally try to avoid re-labelling the fields as it will create confusion if you miss to update some views/reports etc.
Hope this helps
Paul -
How can we assign system fields like sy-datum, sy-uzeit to the ztable field
hi experts,
i have created one ztable inthis one it has some fields like date changed , time changed... in this table when the user enters the data it automatically updates time and date... for this where i have to assign those fields and code pls....Hi Gopal,
Make use of the events in Table maintenance generator,
Generate a Table maintenance genrator and in TMG make use of the events
Link to create the events
http://www.goodpeople.co.in/jobseeker/JobDetailPage.aspx?postjobid=43001
select the table maintenance event maintenance dialog as 05
in the event between form and endform write the following code
field1 = sy-uname.
field2 = sy-uzeit
field3 = sy-datum.
regards
prasanth -
If I want to order by dateAdded to I have to include it in the select statement like
If I do this:
<cfquery name="chart" datasource="#datasource#">
select behaviourID,score, dateAdded2 = convert(varchar,
dateAdded , 101)
from staff_charts_data
where userID =
<cfqueryparam value="#arguments.userID#"
cfsqltype="cf_sql_integer"> AND
NOT score = 5
</cfquery>
If I want to order by dateAdded to I have to include it in
the select statement like so:
<cfquery name="chart" datasource="#datasource#">
select behaviourID,score, dateAdded2 = convert(varchar,
dateAdded , 101),dateAdded
from staff_charts_data
where userID =
<cfqueryparam value="#arguments.userID#"
cfsqltype="cf_sql_integer"> AND
NOT score = 5
</cfquery>you should be able to order by dateAdded without it being in
the select clause. The only time the order by field has to be in
the select clause is when your query has an aggregate and group by
clause, like this:
select field1, field2, max(field3) as youralias
from sometables
where whatever
group by field1, field2
order by ???
You can only order field1, field2, max(field3) or youralias.
You can't order by field4. -
Check for mandatory fields while creating EP users using code .. :|
Hello All,
I have a code using which I can create user accounts/EP users on Portal, am working on EP6 SP9 & SP12.
<u>My query</u>:
1. <i>From Portal's perspective</i> -> While creating EP users, there are few mandatory fields like user-id, FirstName, LastName, Email-id and Password. If any of the above fields is null/empty, Portal would give us an error message.
2. <i>From coding perspective</i> -> Here, only the user-id is required. Even if I do not enter/fill any of the above mentioned mandatory fields (except user-id), user account is created.
In case wherein FirstName/LastName is not mentioned, Portal shows the userid in the Welcome Frame, i.e. Welcome <user-id>. Tried this by commenting the statements contains the methods related to setting/accepting FirstNme and LastName of user.
<b>I want to know if this is all rite?
If no, then please guide me as to how can I set mandatory fields in my code.</b>
Awaiting Reply.
Thanks and Warm Regards,
Ritu R HunjanHi Ritu,
>>please guide me as to how can I set mandatory fields in my code??
In ur jsp file or in the controls code add the following attribute
<hbj:label id="userIdLabel"
text="User ID"
labelFor="userIdInput"
design="HEADER3"
required="true"/>
and to check the mandatory entry for that field do this in the submit button
<hbj:button id="insert"
text="Submit"
design="emphasized"
onClick="save"
onClientClick="if(!isMandatory()) htmlbevent.cancelSubmit=true;;"/>
and in the javascript write the client validation code.
Hope this helps.
Regards,
Joshua Kiran -
My problem is pretty much this, if I can explain it well enough: when I click on certain text fields, like to input the answer to a captcha, for instance, I constantly get pop-up ads and Firefox will switch to the pop-up, leaving the entire page that I was on before blank as if I opened a new tab.
This started a while ago and I'd been trying to just deal with it, but it's really starting to drive me up the wall. Is there a fix to this? I'm sure it happened when I went to about:config to try and fix something about text auto-filling. I can't say whether I did that right or wrong, considering my text doesn't autofill anymore, but now I have this annoying problem.
Help?!Do a malware check with some malware scanning programs on the Windows computer.<br />
Please scan with all programs because each program detects different malware.
Make sure that you update each program to get the latest version of their databases before doing a scan.
*Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
*SuperAntispyware:<br>http://www.superantispyware.com/
*Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
*Windows Defender: Home Page:<br>http://www.microsoft.com/windows/products/winfamily/defender/default.mspx
*Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
*Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
You can also do a check for a rootkit infection with TDSSKiller.
*http://support.kaspersky.com/viruses/solutions?qid=208280684
See also:
*"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked -
To Include Standard Text in TEXT Field of SMARTFORM
Hi,
I have a requirement to include a Standard text inside a TEXT field. The name of standard text is ZSD_CMR_&VSTEL&_STATISTICAL where for VSTEL we should put the respective work area field like ZSD_CMR_&W_LIKP-VSTEL&_STATISTICAL .
But while executing the Form its giving Error that STD text does not exist.
The Requirment is like - shipping point (LIKP_VSTEL) of the delivery to identify the standard text. So, if a doucument for a delivery for shipping point 3114 is printed, it should come with the contents of ZSD_CMR_3114 STATISTICAL In case the shipping point is 3112 it shoukd be ZSDCMR_3112 _STATISTICAL.
Can you please let me know how to include Std Text inside the TEXT, I mean SYNTAX .
Regards
AviHi Avi,
Lets take the example the standard text <b>'ZSD_CMR_3114 _STATISTICAL'</b> then with this standard text get the TDOBJECT,TDNAME,TDID and TDPRAS from <b>STXH</b> table.
In the Smartform, goto <b>TEXT->General Attributes Tab</b>.
Select <b>Type</b> to be I<b>nclude Text</b> from the drop down list.
Then give the Text Name, Text Object, Text ID and Language.
Your Standard Text whcih you maintain in S010 will be displayed in the smartform window.
Regards,
Tushar
Message was edited by:
Tushar Marshall Dass -
Set the default field value to transaction code field, when calling from WD
Hi all,
Can we pass the value in a input field of a standard transaction calling from WD application. Suppose we are calling a transaction VA03 in an external window, then how will be pass the value in the VBAK_VBELN screen field.
Is there any way to pass the value to this transaction field. I have also tried out to set the parameter ID 'AUN' for VA03 transaction VBELN field. But it did not work for me.
Is there any way to set the default field value to transaction code field, when calling from WD?
Please suggest, if anyone have any idea.
Thanks
SanketHi,
I am using the below code to open a standard transaction. It will help you to explain my point more easily.
DATA: url TYPE string,
host TYPE string,
port TYPE string.
*Call below method to get host and port
cl_http_server=>if_http_server~get_location(
IMPORTING host = host
port = port ).
*create URL
CONCATENATE 'http'
'://' host ':' port
'/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction=' 'VA03'
INTO url.
*get the window manager as we are opening t code in external window.
DATA lo_window_manager TYPE REF TO if_wd_window_manager.
DATA lo_api_component TYPE REF TO if_wd_component.
DATA lo_window TYPE REF TO if_wd_window.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
call the url which we created above
lo_window_manager->create_external_window(
EXPORTING
url = url
RECEIVING
window = lo_window ).
lo_window->open( ).
Note*
One more query I want to add to this thread, that is there any possibility to call a custom transaction as well? -
In list view: Why don't searches include results from the Collections field? Why won't the Collections column sort properly?
I create a new index on column2, (INDEX_N3)
and change SQL to
select 1 from table T1 where
T1.COLUMN_002 = '848K 36892'
This time INDEX_N3 will be used.
but change SQL to
select 1 from table T1 where
T1.COLUMN_002 = '848K 36892'
and T1.COLUMN_004 = '1000'
The explain plan will show full scan.
Why?
Thanks.
Maybe you are looking for
-
Exactly how it sounds, my mother in law is having troubles with her iPhone. When she types anything into the "To:" box, this photo, previously in her photo library, pops up.
-
JSObject programming was not working when compiled in JSDK1.4.2_06
JSObject programming was not working when compiled in JSDK1.4.2_06. But problem solved when i compiled with JSDK1.3.1_15 and tested with JVM 1.3.1_15. Still I could not run the class file generated in JSDK1.3.1_15 in JVM 1.4.2_06. What do you think h
-
Hello Coders I have question regarding to Jlist. To capturing event i use this code : class roomListener implements ListSelectionListener{ public void valueChanged(ListSelectionEvent e) { int x=0; System.out.prinln("the roomListener invok
-
hey .. i install the ios 6 and it's stuck in the recovery mode ? what should i do ...?
-
SQL> select name from v$datafile; NAME E:\ORACLE\PRODUCT\10.2.0\ORADATA\AGILE2\SYSTEM01.DBF E:\ORACLE\PRODUCT\10.2.0\ORADATA\AGILE2\UNDOTBS01.DBF E:\ORACLE\PRODUCT\10.2.0\ORADATA\AGILE2\SYSAUX01.DBF E:\ORACLE\PRODUCT\10.2.0\ORADATA\AGILE2\USERS01.DBF