Validating Date fields in Self Registration page in OIM 11g
Hi
I have 2 custom date fields(Start Date, End Date) in Self Registration page in OIM 11g.
I need to do validation on these fields, like difference between start date and end date should not be more than 3 months.
I should show a popup message to user whenever start date and end date is more than 3 months.
How to achieve this?
Thanks in Advance
Hello!
Sorry bring up this topic again, but I have faced a "curious" situation. My validator code is:
public void validate(RequestData reqData) throws InvalidRequestDataException {
List<RequestEntity> requestEntities = reqData.getTargetEntities();
if (requestEntities != null && !requestEntities.isEmpty()) {
for (RequestEntity requestEntity : requestEntities) {
List<RequestEntityAttribute> attributes = requestEntity.getEntityData();
for (RequestEntityAttribute attribute : attributes) {
if (attribute.getName().equals("CPF")) {
if (attribute.getValue().equals("12345678900")) {
throw new InvalidRequestDataException("Invalid CPF");
(new oracle.iam.requestactions.plugins.datavalidator.CreateUserDataValidator()).validate(reqData);
}This is still in testing, but have you guys noticed the last line?
It works nicely, is it normal? If it is, is there any reason for my exception just been raised when I submit the request? (for example, if the user provides a duplicated e-mail it rises before mine.
Similar Messages
-
Multiple self-registration pages in OIM 11gR2 PS1
Hi All
I have a requirement to implement multiple self-registration pages in OIM 11gR2 PS1. Has anybody faced such requirement before.
Any pointers will be highly appreciated.
ThanksHi,
Basically i need some more information about your use case.
Can you please elaborate the use case. What actually you want to do by having multiple self-registration pages -
Auto approval for self registration request in OIM 11G R2
Hi all,
We have a requirement where we want end users to be able to self-register without needing any sort of approval. We are using OIM 11G R2 with the latest patchset.
The way to do it in 11G R1 is explained in the following document:
[http://docs.oracle.com/cd/E21764_01/doc.1111/e14316/unauth_selfservice.htm#BABFEIBF]
But now that R2 does not have any request templates, we are not sure how to do this. Any help will be greatly appreciated. Thanks for your time.
-sandeepcrefer this.
Configuring Auto-Approval for Self-Registration - Fails due to Organisation -
Customize Self Service Page in OIM 11g
Hi All,
How can i add some functionality of Profile tab in to another custom tab like(i have to add resource tab(Self Service Page-->My Profile-->Resource) in to a custom tab) because i have to hide Profile tab and add Proxy and Resource tab of Profile tab in to another custom tab so that user can see only these two tab instead of whole profile tab .
please give me any idea how to do it.
thanks
Edited by: 902535 on Apr 10, 2013 10:53 PMDuplicate Post:
Adding Custom Tab in OIM 11g Self Service Page -
How to add more fields to the self registration page?
Hello,
I am running on OIM 11.1.2.1.0.
How can I add the Organization field to the self registration page? Could you point me to a doc if it exists.
Thanks
KhanhHello,
I successfully added the organization field to the self registration form following the instructions in this doc: http://docs.oracle.com/cd/E37115_01/admin.1112/e27149/customattr.htm#BABGDEIC
I used Data Component – User Registration, then UserVO1. There were 2 fields: Organization and Organization Name. I added both to the form. Then I tried to submit a self registration request. When I logged in as xelsysadm to check out the request, the Organization field on the request is not populated.
I know that under OIM 11gr2, the reviewer must provide the organization. I am wondering if this has something to do with the value of the organization not being carried over to the request level approval.
Could someone please help?
Thanks
Khanh -
Able to use % to query data in Some self service pages but in some pages we
Able to use % to query data in Some self service pages but in some pages we get error " Search string cannot start with % "
Able to use % to query data in Some self service pages but in some pages we get error " Search string cannot start with % "This is an intended functionality in 11i/R12 (for performance).
"Please fill in selective criteria in at least one of the following fields for performance reasons" in View Requests Form After ATG RUP7 [ID 1095125.1]
Re: When clicked Specific Requests
Re: query mode 11i
Blind Search
https://forums.oracle.com/forums/search.jspa?threadID=&q=Blind+AND+Search&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
Blind Query
https://forums.oracle.com/forums/search.jspa?threadID=&q=Blind+AND+Query&objID=c3&dateRange=thisyear&userID=&numResults=15&rankBy=10001
Thanks,
Hussein -
How to Customize Self Registration Page in OAM
HI ALL,
I need to customize Self registration page in OAM
In tht page i need to change the Save button to New User
and i need to have only the Username, Password, Mobile no. as their fields
Can u plz tel in which file we need to make the changes
thanks,
Edited by: user10648177 on Dec 2, 2008 9:05 PM
Edited by: user10648177 on Dec 2, 2008 10:17 PM
Edited by: user10648177 on Dec 3, 2008 1:32 AMHi,
You need to configure an appropriate self-registration workflow. Seeing that you are asking how to change the behaviour, you probably already have such a workflow and need to modify it in case you want the change to be applicable to all users wanting to register themselves. As for changing the Save button to New user, you'll need to customize the appropriate stylesheet. Details for this should be in the customization guide.
-Vinod -
How do I populate my date fields placed on Master Page for multiple pages?
I have a dynamic form with flowing fields. I inserted date fields using the Master Pages tab within Adobe LiveCycle Designer ES2, Windows 7 OS. I have only 1 Master Page. Everything on the form is working properly, except when I have multiple pages, the date fields are blank on all but the first page. One of the date fields has javascript in the exit event to calculate the second date field. I can manually edit the subsequent page(s) date fields, but I don't want the end user to have to do that. I want the date fields on the new pages to equal the date fields on the first pages. Below is my output with notes to provide a visualization of what I'm looking for.
Many thanks in advance for anyone who can help me with this issue!
CarolineHey Mandy,
Yes, both date fields are on the Master Page. The first one is set to "User entered - Required" and the second to "Calculated - User Can Override"
And that's right, I used your script to calculate the second date field. The only thing I changed was the field name, and used 6 days instead since I wanted the calendar days to only run a full week, like start on a Monday and end on Sunday.
Thx,
C -
Lookup field in self registration form
I have added a user defined lookup field using Design View.
I added the following attribute to FormMetaData.xml:
<Attribute name="USR_UDF_LOCATION" label="global.udf.USR_UDF_LOCATION" displayComponentType="LookupField" map="USR_UDF_LOCATION" >
<ValidValues lookupCode="Lookup.Custom.Users.Location"/>
</Attribute>
The new lookup field is showing in 'Create User' and User modification forms but does not show in the Self registration form.
I added the following to FormMetaData.xml under the SelfRegistrationUserForm section:
<AttributeReference optional="false">USR_UDF_LOCATION</AttributeReference>
But, the Fiield is getting displayed as a text field and not a lookup field.
II read that Lookup/ Combo box field cannot be added in a self registration form. Is it true?
(Source:
Link: Adding combobox in self registration from
Link: OIM: problem with combobox in self registration form -
Creating/Pushing Users in OIM through customized self registration page
Hello there,
I was envisioning to push users into OIM (create users in oim database) by means of self made registration pages (JSP). I know that the user profiles are created in UPA_USR table in OIM db. Can we directly create users in the same from different source other than standard OIM self registration page?
I tried to do it by pushing the users in a different db table and then reconciling the user profiles from it. That worked!
Does anybody have any clues about the former issue?
Thanks in advance.Have you looked through the APIs?
I have never seen anything that would let you do this but on the other hand I have never looked for it.
You always have the option to push things straight into the back end tables but it is often hard to ensure that you didn't miss something and you don't have any guarantee that future upgrades or patches won't break things.
Best regards
/Martin -
Creating self registration request using OIM API
Hi guys,
When we try to create a self regisrtation request using OIM API , we ge the following exception:
We get this error when we set the following in Design console.
Does user have to provide challenge information during registration = FALSE
and passed an blank object in place of challenge question parameter in createSelfRegistrationRequest method in tcUtilityBaseClass.
19:22:17,218 ERROR [REQUESTS] Error: Failed to save REQ_CONSOLIDATED_DATA_VALUE
data for Create Entity.
java.lang.NullPointerException
at org.apache.xml.serializer.TreeWalker.dispatachChars(TreeWalker.java:2
44)
at org.apache.xml.serializer.TreeWalker.startNode(TreeWalker.java:414)
at org.apache.xml.serializer.TreeWalker.traverse(TreeWalker.java:143)
at org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf
ormerIdentityImpl.java:389)
at com.thortech.xl.dataobj.util.RequestDataConsolidator.convertNodeToXML
(Unknown Source)
at com.thortech.xl.dataobj.util.RequestDataConsolidator.addUser(Unknown
Source)
at com.thortech.xl.dataobj.tcDataBase.createRequestForCreateEntity(Unkno
wn Source)
at com.thortech.xl.dataobj.tcDataBase.createRegistrationRequest(Unknown
Source)
at com.thortech.xl.dataobj.tcDataBase.createRegistrationRequest(Unknown
Source)
at com.thortech.xl.ejb.beansimpl.tcUnauthenticatedOperationsBean.createR
egistrationRequest(Unknown Source)
at com.thortech.xl.ejb.beans.tcUnauthenticatedOperationsSession.createRe
gistrationRequest(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(S
tatelessSessionContainer.java:237)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invo
ke(CachedConnectionInterceptor.java:158)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Stat
elessSessionInstanceInterceptor.java:169)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidation
Interceptor.java:63)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
rceptor.java:121)
How do we create a self registration request , using OIM API , with and without challenge questions?Well try this piece of code. This might be similar to yours but it worked perfectly for me. For you the error might be the attribute names which you are passing, it should be the one dfined in the FormMetaData xml as below.
import Thor.API.tcUtilityFactory;
// define you class below
ConfigurationClient.ComplexSetting config = ConfigurationClient.getComplexSettingByPath("Discovery.CoreServer");
final Hashtable env = config.getAllSettings();
Hashtable quesAns = new Hashtable();
HashMap user = new HashMap();
user.put("Users.User ID", "SelfTesting");
user.put("Users.First Name", "SelfTesting");
user.put("Users.Last Name", "SelfTesting");
user.put("Users.Email", "[email protected]");
user.put("Users.Password", "SelfTesting");
user.put("ConfirmPassword", "SelfTesting");
tcUtilityFactory.createRegistrationRequest(env, user, quesAns);
And for the query of challenge QnA, these are the following combinations possible:
1) Property Does user have to provide challenge information during registration set to TRUE
- During self-registration from web console, it will show you Challenge Questions section on the right. If you do not select any questions, it will thow you an error there itself.
- Doing it from API will create no difference(even if you pass a blank HashTable). The request will be created successfully and on completion when the user tries to login, it will ask for Security QnA.
2) Property Does user have to provide challenge information during registration set to FALSE
- During self-registration from web console, it doesn't show you Challenge Questions section on the right. The request will be created successfully and on completion when the user tries to login, it will ask for Security QnA.
- Doing it from API, you will have to pass a blank HashTable as in above code. The request will be created successfully and on completion when the user tries to login, it will ask for Security QnA.
Hope it works.
Thanks
Sunny -
Pre-populate Organization to the self registration request in OIM 11gR2 PS1
Hi All
I want to know if there is a way to pre-populate Organization to the self registration request in OIM 11gR2 PS1.
I am trying to configure auto approval and for that I need to add org to the request.
ThanksHi,
you can look into the following post : https://forums.oracle.com/message/10830661
Thanks -
How to show a date field in OIM self-registration page
Hello gurus,
I want to add a date field in the self-reg page. I added lines in FormMetaData.xml and tjspSelfRegistrationTiles.jsp. The user creation page (delegated administration) shows the right date field, but the self-reg page is not working. I am using uix.tld dateField tag and don't know what attributes to pass to this. Is this the right tag or there is some other one in the tld, and what attributes should I pass?
Could someone tell me how to do this?
Thanks
SKIt should be much simpler than what you are doing.
You should be able to create a User Defined Field for the value. Then update the FormMetaData.xml file. Create an entry in the section for user information that creates the attribute value. Just copy one of the existing and give it a new unique number identifier. Also change the field it references to be your user defined field. Then update the Self Registration section to include the new attribute. If you want to update what the approver sees, then also update the section for the approver.
-Kevin -
Adf validation date field timestamp
while doing some validation of comparing date fields with timestamp fields i am finding inconsistent behavior in jdev 11 1 1 5. is this known issue. what is best way to do EO level declarative Compare Greater Than / Less Than validations on fields which are of type date and timestamp ?
First of all, "ADF" on the view side (which is where UIX is) has undergone some dramatic changes.
10.1.2 and before: you had UIX
10.1.3.x: ADF Faces 10g
11.x: ADF Faces 11g (which, although is JSF like ADF Faces 10g, the component set is so different as to be almost a "new thing")
So, when you're asking about the view technologies, 10.1.2, 10.1.3, and 11.x are dramatically different. ADF Business Components, even though they have gone through changes, are "the same enough" across the versions as to be understandably similar, but not the view technologies.
John -
Changes to Rebate Agreement Validity Date Field
Hi,
We are trying to prevent people from changing the "Validity To" date field (KONA-DATBI) on Rebate Agreement masters (VBO3). They are back dating the field which is causing probelms for running billings.
Is they any way this can be done via a validation on that field or a message that pops up when the field is changed to something earlier than current date?
ThanksHi,
This fields is opened for a good reason, sometimes the end-date of an agreement should be reduced when you want to split a period and therefore create a new agreement for the remaining period.
In my opinion this is a procedure problem, your users must know what they do.
If someone still keeps on introducing incorrect data in the system, this person should receive additional training and / or be warned.
To answer your specific question:
There is no user-exit for the rebate agreement master data. Quite a shame.
Best Regards,
Franck
Maybe you are looking for
-
What are the pros and cons of storing heavely used CFCs in the application scope?
I've been storing all the required CFCs for a site in the application scope. During onApplicationStart I do something like this application.objSomeCfc =CreateObject('component', 'com.someCfc').init(). Here is my reasoning. Get the CFCs initialized on
-
How can i minimize the export frame
I am trying to export my file and unfortunately I can't go down where it says "export" because it's not letting me. I have a Window PC and whenever I open panels, the framers are all the time big and I try to scroll down to press any button but it ke
-
Permissions required to create a pluggable database
Hi using 12.1.0.1.5 on oracle linux 6.3 I am trying to setup a new user with permissions to create pluggable databases within my CDB, i have created the user with the following create user c##admin identified by oracle12c container=all; grant connect
-
Getting error on UCM SUB every minute And the thread count on the tomcat service is over 2000 The IPMA service is running, I've restarted the tomcat and IPMA service but still seeing error This is only happening on 1 of the SUB in cluster, the PUB an
-
Where can I download xcode for snow leopard?
Where can I download xcode for snow leopard?