LookUp Query in OIM

Hi All
I have to use the lookup query property for a lookup field type in my form.
this is my query
select lkv_decoded from lkv where lkv.lku_key=(select lku.lku_key from lku where lku_type_string_key='LookUp.Users.Brand') and lkv_encoded='ab'
i have to display vale of lkv_encoded in my field.
for that i have put values of 'lookup column name' and 'column names' properties in the property dialog box as lkv_encoded.
now although it is returning proper value in preview form.
but when i try to do this through console it is showing me "Contact System Administrator" error.
please guide me regarding this.
Thanks.

Hi,
I have already used lkv_decoded it was a typo mistake in previous post.
I even tried using it as "select lkv_decoded as usr_login from lkv where lkv.lku_key=(select lku.lku_key from lku where lku_type_string_key='LookUp.Users.Brand') and lkv_encoded='ab' " and for values of 'lookup column name' and 'column names' properties in the property dialog box as usr_login.
Is there any document regarding this that I can refer.
It is still not working for me.
Thanks in Advance.

Similar Messages

  • Lookup query in OIM 11g R2

    Hi,
    I am written a lookup query in  child form to filter the lookup in designconsole . but the lookup query is not getting executed, The old lookup name is shown when i am opeing the form in web ui (systemadmin) formdesigner.
    Any suggestion why the lookup query is not working?

    From the installation media, copy and extract contents of the bundle/ActiveDirectory.Connector-1.1.0.6380.zip file to the CONNECTOR_SERVER_HOME directory
    Refer http://docs.oracle.com/cd/E22999_01/doc.111/e20347/deploy.htm#CHDDJGIG

  • Problem in creating a Lookup query in OIM.

    i have written LookupQuery.
    My query is :select lkv_encoded,lkv_decoded from lkv lkv,lku lku where lkv.lku_key=lku.lku_key and lku_type_string_key='Lookup.BB.InstitutionRoles' and lkv_encoded not in '$Form data.UD_BLKBRD_PORTALROLE$'
    i am getting the values getting the values according to query.
    but the problem is i am not getting the Radio Buttons in Lookup.
    for this do i need to add any entries in xlWebAdmin.properties file?
    can anybody help me.
    Edited by: Hanuman Thota on Jan 6, 2012 9:55 AM
    Edited by: Hanuman Thota on Jan 6, 2012 9:57 AM
    Edited by: Hanuman Thota on Jan 6, 2012 10:22 AM

    Hi Dharmi
    Here is a quote of Dafna's post in [another thread in this forum|Re: Copy VC controls]
    CE7.1.1 will be released at September 2008 for ramp-up customers.
    There are many improvements and new capabilities in the new release of Visual Composer for CE7.1.1. Among the new features you can find:
    The missing features from Visual Composer 7.0 (Html view, portal Eventing support (EPCM), JDBC, Undo/Redo, and more..)
    Many layout & modeling improvements
    Additional ALV table functionality - export to Excel, switch to chart, configure ALV behavior at design time
    Integration of Visual Composer in Eclipse - additional entry point to the Visual Composer models from the NWDS. This integration provides the option to add a WD component (in case of missing functionality in Visual Composer), as a black box component to the Visual Composer model. Right-clicking the component will open the Web Dynpro perspective for creating/modifying the component.
    Regards,
       Shai

  • Lookup Field with a Lookup Query on Process Form in OIM 11gR2

    Does anyone know how to render a field on a process form so that when modifying the field for the resource a "Search and Select" window appears and allows the user to search for the value based on the lookup query defined for the field in Design Console? The lookup field has been defined as a lookup query through Design Console and tested by previewing the form in DC. When creating the Form through OIM System Administration the field is created as a Text Field, not a Lookup. Creating a new Field through OIM System Administration only allows you to create the field using a lookup code not using a lookup query. I've tried to remove / add the field in the UI (create sandbox, customize, etc.) and add it back as a Input LOV but it doesn't get added and the error in the logs say java.lang.RuntimeException: Input LOV is not supported for this attribute, please make this attribute searchable in order to drop this as an input LOV. The field is defined as searchable in the Form Designer in OIM System Administration. In fact I can't even add it back as an ADF Input Text Field w/ Label, I suspect I'll have to "Regenerate" the form to even get it back on the form. Any help is appreciated. Next step is to try to export the sandbox, massage and import.
    Thanks,
    Ryan

    Finally got an answer out of Oracle after trying to figure this out as well. Apparently Lookup Queries are not supported at all by the R2 Web UI. They indicate that according to product management this will not be fixed.

  • OIM Lookup query question

    Hi All,
    do you think is possible to define a lookup query to display the DECODE value and store the CODE vale in the DB(the same behaviour having Lookup code)?. I tried several configurations but no way, seems that OIM show and store the value present in the "Lookup Column Name" attribute.
    Thanks you in advance

    Hellooowww:
    Did you resolved the issue:
    "do you think is possible to define a lookup query to display the DECODE value and store the CODE vale in the DB(the same behaviour having Lookup code)?. I tried several configurations but no way, seems that OIM show and store the value present in the "Lookup Column Name" attribute."
    I will wait for your answer!!.... TNKS!!

  • Error in using Lookup Query - OIM 11g

    Hi Guys,
    I am trying to use following lookup query:
    select usr_key, usr_login from USR where usr_status = 'Active' and have following mapping defined in the process form:
    Column Width = 200
    Lookup Column Name = usr_login
    Column Names = usr_key, usr_login
    Column Captions = USER_KEY, USER_LOGIN
    The values are getting populated properly while searching for the lookup. But when I click on 'SELECT' button. It throws error. saying 'A system error occurred'
    I see following error in the log:
    <Jul 4, 2011 7:19:07 PM IST> <Error> <XELLERATE.WEBAPP> <BEA-000000> <Class/Method: tcLookupFieldAction/selectedValue encounter some problems: {1}
    Thor.API.Exceptions.tcColumnNotFoundException
    at Thor.API.tcMetaDataSet.getStringValue(tcMetaDataSet.java:368)
    at com.thortech.xl.webclient.actions.tcLookupFieldAction.selectedValue(tcLookupFieldAction.java:1723)
    ### Steps to Reproduce Problem ###
    1. Create a new process form
    2. For one of the column, assign following properties:
    Lookup Query = select usr_key, usr_login from USR where usr_status = 'Active'
    Column Width = 200
    Lookup Column Name = usr_login
    Column Names = usr_key, usr_login
    Column Captions = USER_KEY, USER_LOGIN
    3. Activate the form
    4. Open the resource in Web Console
    5. Search for that lookup.
    6. Select any of the value
    7. Press 'Select' button. Error is thrown.
    Could somebody please help me out with this issue?
    Thanks,

    Got the solution:
    tcColumnNotFoundException with Lookup Query

  • OIM 9.1.0.1 Lookup -  Lookup Query

    Hi all
    We have already develop connector. But still have some questions...
    Parent process form with two lookup fields where second lookup values depends of the first lookup selected value.
    We have created second lookup like 'Lookup Query', yes we see right CODE, DECODE with relation of first lookup, and when pick value, only one value (DECODE or CODE) can be passed, not like simple Lookup ( when pick row ( DECODE and CODE ) saved to DB, and next review of the form field show DECODE value (but in mind) it is CODE) :)
    i want 'Lookup Query' with behavior of simple Lookup.
    any suggestions, it is possible?

    I'm positive there's a great way to do it with SQL, but you'll need to look at 4 tables:
    1) OBJ (Objects) - Here you are looking in OBJ_NAME for 'OID User', once found get the OBJ_KEY value for the row.
    2) OST (Object Status) - In this table, you can find all the statuses for the OID User resource based on the OBJ_KEY value. Look for the applicable ones and get the OST_KEY value for each row.
    3) OIU (Object Instance for Users) - Now you can query this table for all results where OST_KEY equals the desired values as found in step 2.
    4) USR (Users) - Here you can get the User ID's (usr_login), User Key (usr_key) or any other value for users to help with the query.

  • [OIM] - Form Complex Lookup Query on child form

    Hi all expert
    I have two form, which is parent-child relationship.
    I need to form a lookup query on child form's lookupfield to let user select the value but lookup query depens on the parent form on what user selecting..
    Example as:
    Parent form - Country Code - 100
    Child Form - Department Code - Lookup query will be = Select DepartmentCode From DeparmentLookup where country ="100"
    The "100" value depends on what user choice on CountryCode fro mparent form.
    Can i do something like this ?
    Thank in advanced
    John

    This happen for a property setting in the relation. try this..
    Select all your relation in the form under Relation nodes (data block >> relation)
    go to property or press F4 and set the following property to YES
    Prevent Masterless Operations = Yescompile and check..
    Hope this will works.. ;)
    Hamid
    Mark correct/helpful to help others to get right answer(s).*

  • Can we make the Lookup Query more dynamic?

    Hello OIM gurus,
    I have a lookup field in my process form and I am entering the properties of this field with the design client, such as Column Names, Captions, widths, Lookup Query etc. I would like to make the Lookup query a little more flexible in that it can take in different lookup codes based on some criteria. To be specific, I would like the lookup query specific to each resource.
    A sample of my query is: 'select v.lkv_encoded,v.lkv_decoded from lkv v, lku u where u.lku_key=v.lku_key and u.lku_type_string_key='<my lookup code>'
    I have lookup codes that are specific to each resource and I would like to use these codes here. I see some things like $Process Data.xxx$ and I am not sure how to use this or change the lookup code dynamically. Or is there a totally different way to do this?
    Thanks in advance
    -SK

    Hi ,
    can anyone please let me know the exact usage of Lookup Quey. I tried to find out in OIM docs but end up with no luck. By this post i am able to write basic lookup query (find out the USR_Login from USR table). I have couple of queries which i am not sure about and will apreaciate if anyone could provide me answer
    1. We have to add property - Lookup Column names, Column names, Column width and Caption for lookup query. What are their usage and restrictions (what values we can use and what we cannot).
    2. I am using my lookup field currently in AD resource form. My requirement is to provide manager options to search for user (in AD resource form only) for his/her direct reports having AD account. For this i tried to lookup the query on UD_ADUSER table but it is giving me error (even resource form on console is not coming up) Does LookupQuery is not much flexible to query the connector tables. if so how can i compete my requirement.
    3. Does lookup querry (in resource form) provides you option to provide the filter as per user attribute value in OIM user profile.
    Thanks.....

  • OIM: Lookup/Search for OIM user to include in a process form.

    running OIM 11.1.1.5
    I have a form for a custom provisioning target. One of the form fields (UD_RESOURCE_RESPONSIBLEUSER) is to be defined as a lookup query and I need to have the lookup query search users to assign to this field.
    Can anyone point me to a sample lookup query that can be used to populate a query box, similar to the "MANAGER" attribute is populated in OIM? What if I wanted to have a multi-valued attribute (i.e.: have more than one responsible user? )
    Thanks in advance

    Refer:
    User list lookup
    or
    Lookup Query
    And for multiple values, make UD_RESOURCE_RESPONSIBLEUSER a child table

  • Lookup Population in OIM

    Hi,
    i have created lookup definition say Lookup.Department
    I want to populate this field with some values in custom table.( a table say Department, created in the database which was used during OIM installation)
    what steps do i need to follow

    hi i am taking this solution from nitesh post
    The example I am taking here is to have a lookup from a custom table "access_table" containing three columns access_id, descritption and groupname (this is the column stating which group has access to which switch)
    Steps to follow:
    1. Mandatory properties to specify are :
    a) Lookup Query e.g.
    select distinct a.access_id, a.description from access_table a, usg b, ugp c, usr d where c.ugp_name = a.group_name and b.ugp_key = c.ugp_key and b.usr_key = d.usr_key and d.usr_status ='Active' and d.USR_LOGIN = '$Requester Information.User Login$'
    b) Column captions e.g. Access ID, Description
    This will ensure that in the lookup table displayed in UI will have two columns Access Id and description. Corresponding to these column captions two properties need to be put in "xlWebAdmin.properties" lookupfield.header.access_id and lookupfield.header.description. Point to be noted the captions have been converted to lower case and blank space has been repaced with "-". Put in section "LOOKUPFIELD column headers"
    c)Columns names e.g. ACCESS_ID,DESCRIPTION, these are the columns specified in the select query.
    d) Lookup column name e.g. ACCESS_ID, this is the column that is put in the textfield associated with lookup field.
    e) Column widths e.g. 25,100 This is the column width in table.
    Please find the link bellow
    Re: Form Field Validation.
    all your questions are generally answered in the forum try to use search with keyword and do rate them if slove your issues this is the motivation for giving answers
    Hope this help you
    Regards
    VM

  • Problems with lookup query

    Hi all,
    I added a lookup query in a form.
    The query is:
    select lkv_encoded ,lkv_decoded from lookup_ad_folder_vw where lkv_encoded not in (select encoded from ad_folder_vw where usr_login = '$Requester Information.User Login$')
    I need to filter by the beneficiary's username.
    This query works if the request is a self-service request. But if it is requested by other people, it doesn't work. Because the parameter "$Requester Information.User Login$" gets the requester login.
    My question is the follwing:
    How can I get the beneficiary's username?
    Are there any workaround for this?
    Thanks,
    Ariel

    As this looks moreover like a Object Form, so their is nothing you can do in this query to get the Beneficiary's username. The reason is simple that you can select multiple target users in the same request with the same Object Form and OIM in that case would not be aware as to which information from all the beneficiaries should be supplied.
    If this would have been a Process Form then individual beneficiary username could directly be mapped as every user would have its own sub-thread in that case during provisioning.
    Thanks
    SRS

  • Problem with lookup query in clustered enviornment!!!

    Hi,
    I have a lookup query in object form which will bring all users in OIM. It works fine on Standalone. But what I really dont understand is that when I use the same lookup in clustered enviornment(weblogic cluster and oracle DB cluster) it doesnt work. it brings up empty lookup.
    My lookup query is configured with the following properties:
    Defined field in object form
    - LookupQuery, Select usr_login, usr_first_name, usr_last_name from usr
    - Column options, User ID,First Name,Last Name
    - Column Names,usr_login,usr_first_name,usr_last_name
    - Lookup column name, usr_login
    - Column width, 10,100
    Thanks,
    doki
    Edited by: doki.prasad on Jun 9, 2009 11:25 AM

    Did you resolve this issue? I see a similar problem
    Thanks.

  • How to get the requestee userlogin in lookup query

    Hi,
    I have a lookup query attached with a field in object form and in that query i am fetching the results based on requestee login. In the forums i could see USR_LOGIN = '$Requester Information.User Login$'. Is there any way to retrieve the requestee login. Thanks in advance

    I wonder that would ever be possible and here is the justification:
    You can add multiple benefeciaries/requestee in a request with a single Object Form. In such cases OIM doesn't want to confuse itself with the reasoning that it has to pass which out of all the existing benefeciaries. You can always do it using OIM tcRequestOperationsIntf API.
    By the way what does your use-case do in case of multiple requestee's in the same request.
    Thanks
    SRS

  • AD Organization Lookup Query

    I am trying to set up OIM to provision to two different AD domains. I am trying to avoid the process of cloning the entire connector. So for know I just created two IT Resources and duplicated the Lookup.ADReconciliation.GroupLookup and Lookup.ADReconciliation.Organization objects. The Group Lookup is part of the IT Resource and hence didn't cause any problems.
    The Organization Lookup is however defined at the form level. I need the list of Organizations to be specific to the AD Domain. I have done the following:
    1. Created two IT Resources of type AD Server:
    -- AD Server 1
    -- AD Server 2
    2. Created new lookup called Lookup.AD.OrganizationLookupITResourceMapping with the following values:
    -- AD Server 1 == Lookup.ADReconciliaiton.Organization
    -- AD Server 2 == Lookup.AD2Reconciliation.Organization
    3. I then changed the "Organization Name" column to the following:
    Lookup Query == select lkv_decoded, lkv_encoded from lku, lkv where lku.lku_key = lkv.lku_key and lku.lku_type_string_key = (select lkv.lkv_decoded from lku, lkv where lku. lku_type_string_key = 'Lookup.AD.OrganizationLookupITResourceMapping' and lku.lku_key = lkv.lku_key and lkv_encoded = '$Form data.UD_ADUSER_AD$');
    Column Names == lkv_decoded
    Lookup Column Names == lkv_decoded
    Column Captions == Organization Name
    Column Widths == 100
    When I run the Preview Form I get the error message "Query Failed. Error: Dataset is not open". In the server logs I get "invalid character" exception from SQL. If I use SQL Plus and run this query, substituting for '$Form data.UD_ADUSER_AD$', I get the correct response. My guess is that the form data is not being returned as expected. What should I use here in order to receive the name of the IT Resource?
    Thanks,
    Pete

    More information from the log files:
    [2011-02-23T16:30:45.441-05:00] [oim_server1] [ERROR] [] [XELLERATE.DATABASE] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 0000ItKRa^jC^qQSaauHOq1DPIEM0002nl,0] [APP: oim#11.1.1.3.0] [dcid: dc05021680aa4152:3b03b6fb:12e53163b22:-7ffd-0000000000002d5a] SELECT sdc.sdc_name, sdk.sdk_name from sdc, sdk where sdc.sdk_key=sdk.sdk_key and sdc.sdc_name = 'UD_ADUSER_AD' and sdk.sdk_active_version=sdc.sdc_version and sdk.sdk_key=(SELECT sdk_key FROM TOS WHERE pkg_key = )[[
    java.sql.SQLSyntaxErrorException: ORA-00936: missing expression
    2011-02-23T16:30:54.309-05:00] [oim_server1] [ERROR] [] [XELLERATE.DATABASE] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 0000ItKRcjKC^qQSaauHOq1DPIEM0002nw,0] [APP: oim#11.1.1.3.0] [dcid: dc05021680aa4152:3b03b6fb:12e53163b22:-7ffd-0000000000002d65] select lkv_decoded, lkv_encoded from lku, lkv where lku.lku_key = lkv.lku_key and lku.lku_type_string_key = (select lkv.lkv_decoded from lku, lkv where lku. lku_type_string_key = 'Lookup.AD.OrganizationLookupITResourceMapping' and lku.lku_key = lkv.lku_key and lkv_encoded = 'BAD QUERY or BAD FORM DATA'); and 1=2[[
    java.sql.SQLSyntaxErrorException: ORA-00911: invalid character
    So obviously my query is bad. How do I fix it?
    Thanks,
    Pete

Maybe you are looking for

  • Set default Initial View to Bookmarks Panel and Page on all new docs

    Hello Acrobat Experts, We convert *many* Word docs to PDF.  We have PDFMaker force security on all docs.  Now every document has the security settings we want. That works. We want to force the default Initial View to be Bookmarks Panel and Page so th

  • Unable to use ctx_doc despite Oracle Text installation

    Hi, We're using Oracle 9iR2. I'm in need to convert a Long Raw column to readable text. I've managed to convert it to CLOB and it now gives me an RTF encoded string. I've read on several forums that this RTF string can be converted to readable text u

  • Configuring Web Logic for ODI console problem

    Hi guys , I following the instruction from here http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/odi/odi_11g/setup_jee_agent/setup_jee_agent.htm After installing the Weblogic 12.1.1.0 , I came to the configure wizard which run from C:\or

  • How do i replace the battery in a Macbook Pro?

    Need to replace battery in my Macbook Pro. How do I do this?

  • Galaxy nexus, mms is not working at all

    My mms is not working at all, cant group chat nor can I send or recieve pic. I try doing a hard reset, which did work but only for a few hrs. I can also get it to work temporarily by removing the sim card and reinserting it. I even went to verizon st