Using apex item for list of number for 'IN' clause

Greetings,
I have a computation that looks like this:
select count(mr.mr_id)
from ds_moriver mr
where mr.approved = 0 OR mr.approved IS NULL
and mr.mr_id NOT IN (:P62_MRID)
I am looking to enter numbers in the NOT IN clause like '123,234,...'
I have a text field item (P62_MRID) where the user can enter IDs for the NOT IN clause.  So for example, 13578,182.  If the user enters one number it works fine.  If the user enters 2 numbers with a comma (13578,182) then I get this error when the computation is run:
ORA-01722: invalid number
So substituting 13578,182 for P62_MRID the SQL statement should compute as:
select count(mr.mr_id)
from ds_moriver mr
where mr.approved = 0 OR mr.approved IS NULL
and mr.mr_id NOT IN (13578,182)
Why am I getting the error, 'ORA-01722: invalid number'?
Thanks in advance!
John

Glad to help. Don't know how long you've been using APEX, but thought I'd caution you against "going wild" with the item substitution syntax. In general, if you can do it with bind variable syntax, that's better. The use of item substitution syntax can contribute to SQL injection attacks. But, if you have suitable control over the contents of the items being substituted, the risk is mitigated. Just don't create an APEX process like this:
begin
   &P10_TEXT_DIRECTLY_FROM_USER.
end;
That'll get you into trouble.

Similar Messages

  • Using "Deleted Items" folder for long term storage.

    I have a user that is using the "Deleted Items" folder in Outlook for long-term storage.  He has unchecked the box in the options which would remove the items in the Deleted Items folder at shutdown
    and is having problems with his Outlook freezing up several times a day.  He was using a Microsoft Surface as his primary computer and has since changed to a Dell Latitude, but Outlook still freezes up.  He has an Office 365 Pro Plus license. 
    I have been looking for articles to explain all the reasons for not using "Deleted Items" for storage, but in order to get him to change, This is not a .pst, it is the Outlook default “Deleted Items”. 
    .  I really need some "ammunition" to let him know the consequences of keep that much mail in Deleted Items. 
    Could you tell me when Outlook starts, does it enumerate the Deleted Items folder as it does the Inbox? 

    I have to agree with Robert's point here. The question of whether or not the user should be doing this answers itself: of course he shouldn't. On a lighter note there's a Dilbert cartoon from 2003 which covers this very point:
    http://dilbert.com/strips/comic/2003-11-13/
    I'd suggest you ask him to create a sub-folder of his inbox and get him to move everything over, then he still has his history and can use deleted items the way it was intended.
    The question I would ask is are you sure that this has any bearing on his Outlook freezing issue? I have encountered people who never empty their recycle bin and I have encountered issues with Outlook freezing, but I don't recall ever having the two together.
    If you still have issues after he's moved everything then it's a general Outlook freezing issue, so you have to look at those sort of things. For a start, is it bang up to date with Microsoft Updates? If so how big is his mailbox? Presumably he has an ost
    file, so how big and fragmented is that? I'd probably try creating a new Outlook profile. If not then what add-ins does he have, could they all be disabled for a while to see if it's one of them, then add them back one at a time? If not is it worth running
    a repair in Office? I've had that fix a fair few issues.
    Just a few thoughts. I don't know if any of them will help.

  • Using CASE WHEN for Essbase column in OBIEE 11g

    Hi all,
    I have a business model in OBIEE 11g, taking the source from Essbase 11. The measures of the Essbase cube in the physical layer is flattened, and the aggregations for the measures are set to SUM.
    The Product dimension has 5 generations. In Product logical table, I created a logical column called "Product Grouping" using a simple CASE WHEN formula:
    CASE
    WHEN "TEST"."Product"."Gen5,Product" IN ('100-10', '100-20', '200-10', '300-10') THEN 'Group 1'
    WHEN "TEST"."Product"."Gen5,Product" IN ('100-30', '200-20') THEN 'Group 2'
    ELSE 'Group 3'
    END
    Problems:
    1. If I don't place this "Product Grouping" in the logical level/hierarchy, I got error in the report when I simply show Product Grouping and a measure.
    2. If I place this "Product Grouping" in the logical level/hierarchy (on the 5th level), no more error in the report when I simply show "Product Grouping" and a measure. The measure value also shows the correct SUM (group by). However, when I add "Gen1,Product" the "Product Grouping" and the measure value suddenly becomes not grouped by.
    Has anyone ever tried and encountered something like this? Any thoughts?
    Thank you very much!

    Hi Deepak, thansk for the suggestion.
    However, I can't use calculated item for this report because:
    1. incorrect result will be shown when my measures involve a formula to derive a percentage value.
    2. calculated item is not available if we do "combine requests" (or union) in 11g.
    Any thoughts anyone on how to solve this? Is this just me, or it's a bug?
    Thank you very much.

  • How to create read only Apex items

    Hi,
    I'm creating a report using Apex items to display the result values inside editable text boxes. They are then referred by using APEX_APPLICATION.G_F02 etc.
    My requirement is to make the last row of this report (the values for "Total") as non editable or read only. Can anybody help me with the code that i would need to add in the query? The query goes something like this:
    apex_item.text(7, TO_CHAR(nvl(year_4,0),'999,999,999'), 12, 12, 'style="text-align:right;font-weight:bold"',ROWNUM) "YEAR_4", ..

    Surprising. I would have expected there to be a CSS style to disable a form item.
    Depending on your reasons for wanting to use APEX_ITEM, you could:
    Select your required value as part of the query (without using apex_item.)
    Visit your report attributes, then the attributes for your specific column.
    Change the column type to text field.
    Add readonly=true into the item attributes.
    Rgds
    Ben

  • Create document item from list, then no lookups

    SharePoint 2013: I have a content type set up in a document library with a default document template attached (in this case an excel workbook file).
    In SPD 2013 (using a 2010 workflow), I can use the "Create Item in List" function in SPD from an adjacent list on the same site collection to create a record in the document library, and set the content type such that when the workflow is done there
    is indeed a new document waiting for me in the doc library, utilizing the expected template file.
    The issue:
    The output of the "Create Item in List" function is the ID of the item created.  Using the Create variable, I believe I should be able to immediately lookup attributes of the newly created Document item, such as the last modified date and URLs.
     I'm doing the lookups within the output of a Log (to workflow history) function.  However, certain fields always come back blank.  Performing the same lookup, using a known Document item ID (created in another w/f session) is successful.  It
    would be nice to email out a URL of the file I just created from the same workflow.
    I've tried having the W/F wait up to 5 minutes, but it appears that certain attributes cannot ever be retrieved in the same workflow, while others can indeed be retrieved (GUID of the new doc is successful, for instance).
    I've read some online debate related to this, but I can't find anyone having the exact same issue as me, nor explain why it's happening.  It seems like it should be so straightforward.  Any ideas?  Thanks!

    Hi,
    According to your description, my understanding is that you create a document library item using “Create item in list ” action and when you log some certain attributes of the item to workflow history list, then
    it has no value.
    I try to reproduce this issue with your steps and it works as expected in my environment.
    For a better troubleshooting, I suggest you do as the followings:
    1. Check if the certain new created item field has value in the list which always return blank.
    2. I suggest you can create a new simple workflow to log the field data for new created item to workflow history list to test if it works.
    3. If the issue still exists, I suggest you can track the workflow using Fiddler. You can see detailed web request for the workflow, it will be easier to find the cause of this issue.
    Here is a detailed article for your reference:
    http://msdn.microsoft.com/en-us/library/office/dn508412(v=office.15).aspx
    Best Regards
    Jerry Guo
    TechNet Community Support

  • Query for create manual tabular form using apex collection using item textfield with autocomplete

    can we create a manual tabular form inside item textfield with autocomplete ?
    how it is possible?
    with Apex_item API used for this item.
    i used this code for creat  cascading select list
    select seq_id,
    APEX_ITEM.SELECT_LIST_FROM_QUERY(
            p_idx                       =>   1,
            p_value                     =>   c001,
            p_query                     =>   'SELECT C001 D
         , C002 R
      FROM APEX_COLLECTIONS
    WHERE COLLECTION_NAME = ''col1''',
            p_attributes                =>   'style="width:150px" onchange="f__name(this,parseInt(#ROWNUM#));"',
            p_show_null                 =>   'Yes',
            p_null_value                =>   null,
            p_null_text                 =>   '- Select name -',
            p_item_id                   =>   'f01_'|| LPAD (ROWNUM, 4, '0'),
            p_item_label                =>   'Label for f01_#ROWNUM#',
            p_show_extra                =>   'NO') name,
    APEX_ITEM.SELECT_LIST_FROM_QUERY(
            p_idx                       =>   2,
            p_value                     =>   c002,
            p_query              =>   ' SELECT null d, null r FROM dual WHERE 1 = 2
            p_attributes                =>   'style="width:150px"',
            p_show_null                 =>   'Yes',
            p_null_value                =>   null,
            p_null_text                 =>   '- Select name -',
            p_item_id                   =>   'f02_'|| LPAD (ROWNUM, 4, '0'),
            p_item_label                =>   'Label for f02_#ROWNUM#',
            p_show_extra                =>   'NO')name2,
    from apex_collections
    where
    collection_name = 'COLLECTION1'
    It is fine .
    but i want item in tabular form  textfield with autocomplete and remove select list. my requirement is using textfield with autocomplete select a employee name and second item textfield with autocomplete display dependent perticular employee related multiple task.
    how it is created.i have no idea related textfield with autocomplete.Please help me....

    pt_user1
    I understand that the add row button is currently doing a submit.
    To not submit the page you need a dynamic action on the page.
    Does the javascript function addRow do what you want?
    Otherwise have a look at the following two threads Add row in manual tabular form using dynamic action and Accessing Tabular Form & Add Elements to Collection without Page Submit.
    You're process could be something like:
    Add the new values to the collection using the idea's in the second thread and at the same time add the new row.
    And as second action refresh your tabular form.
    If you get stuck set up what you have done on apex.oracle.com using the tables from the demo application.
    Nicolette

  • Create Multiple tasks for Single Item in List using state machine workflow in sharepoint

    Hi,
    I want to create multiple create tasks for Single Item in List based on Assigned to column using state machine Workflow through visual studio
    Here Assigned to column allows multiple users. so i have to create task for every user based on column .
    I'm trying for this but i didn't got any solution
    Please provide solution for this.

    Hi,
    According to your post, my understanding is that you wanted to allow multiple users to approve.
    There are some articles about creating parallel tasks in state machine workflow, you can have a look at them.
    http://www.codeproject.com/Articles/477849/Create-Parallel-Task-in-State-Machine-Workflow-in
    http://msdn.microsoft.com/en-us/library/office/hh128697(v=office.14).aspx
    http://social.technet.microsoft.com/Forums/office/en-US/b16ee858-4360-479a-a686-4ee35b7be9db/sharepoint-2010-workflow-creating-multiple-tasks?forum=sharepointdevelopmentprevious
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • I am using Windows XP and just installed Elements 12. When I try to select a different brush or shape the drop down list will not stay open long enough to select a different item. I have used Elements 9 for awhile and have not had this problem

    I am using Windows XP and just installed Elements 12. When I try to select a different brush or shape the drop down list will not stay open long enough to select a different item. I have used Elements 9 for awhile and have not had this problem

    grannybel
    It would appear that you are destined for the Adobe Photoshop Elements Forum since your question is related to Photoshop Elements and not Premiere Elements which is the focus program where you have posted.
    But, while the arrangements are being made, here are a few things for you to think about if you have not already
    1. Reset Tools - Select Brush Tool, then
    2. Delete Settings File
    Go to Full Editor/Edit Menu/Preferences/General and click on the option "Reset Preferences on Next Launch".
    We will be watching for your progress.
    Thank you.
    ATR

  • Use Windows PowerShell to count and list total number of items in Folders E-Mail in Office Outlook?

    I have the need to generate a list of all outlook folders and the total number of items listed beside each folder name. I thought I could simply modify the script from " http://blogs.technet.com/b/heyscriptingguy/archive/2009/01/26/how-do-i-use-windows-powershell-to-work-with-junk-e-mail-in-office-outlook.aspx
    " regarding the total number of items in the junk folder but no luck.
    I thought I could just simply duplicate line 6 of the aforementioned script
    "$folder = $namespace.getDefaultFolder($olFolders::olFolderJunk) " and change the folder name but getting the "Method invocation failed because [Microsoft.Office.Interop.Outlook.OlDefaultFolders] does not contain a method
    named 'olFolder'.
    At line:7 char:1
    + $folder = $namespace.getCurrentFolder($olFolders::olFolder("Design Engineering S ...
    I've found a way to export a list of all these folders using exportoutlookfolders.vbs to a txt file but doesn't include total number of items.
    Looking for any pointers on how to make this work. Don't expect anyone to write it for me but I am still learning PS. Would be great to find a way to import all of these folder and subfolder names into the script. Will be appreciative of any advice though.
    There's an enormous amount of Outlook folders.
    Outlook 2013
    Windows 8
    Thanks,
    Barry

    Since I am not and administrator, but an end user, I do not have access to the Get-Mailxxxx commandlets to make this really easy and had to do this long hand.
      The following will pull folder.name, folder.items.count, and sum the total size of each folder's items for all folders and their subs. 
    Just one warning, the summation can take some time with a large PST file since it needs to read every email in the PST. 
    There is also some minor formatting added to make the results a little more readable.
    $o
    = new-object
    -comobject outlook.application 
    $n
    = $o.GetNamespace("MAPI") 
    $f
    = $n.GetDefaultFolder(6).Parent 
    $i
    = 0
    $folder
    = $f
    # Create a function that can be used and then re used to find your folders
    Function
    Get-Folders()
    {Param($folder)
     foreach($folder
    in $folder.Folders)   
    {$Size =
    0
    $Itemcount
    = 0
    $foldername
    = $folder.name
    #Pull the number of items in the folder
    $folderItemCount
    = $folder.items.count
    #Sum the item (email) sizes up to give the total size of the folder
    foreach ($item
    in $folder.Items)
    {$Itemcount
    = $Itemcount
    + 1
    $Size =
    $Size +
    $item.size
    Write-Progress -Activity ("Toting size of "
    + $foldername
    + " folder.")
    -Status ("Totaling size of "
    + $Itemcount
    + " of "
    + $folderItemCount
    + " emails.")
    -PercentComplete ($itemcount/$folderItemCount*100)
    # just a little formating of the folder name for ease of display
    While($foldername.length
    -le 19){$foldername
    = $foldername
    + " "}
    #Write the results to the window
    Write-Host ("-folder "
    + $foldername
    + "  
    -itemcount " +
    "{0,7:N0}" -f
    $folderItemCount +
    "   -size " +
    "{0,8:N0}" -f ($size/1024)
    + " KB")
    #If the folder has a sub folder then loop threw the Get-Folders function.
    #This two lines of code is what allows you to find all sub folders, and
    #sub sub folders, and sub sub sub for as many times as is needed.
    If($folder.folders.count
    -gt 0)
    {Get-Folders($folder)}
    get-folders($folder)

  • Unable to create publication item for remote database using db link

    The mobile repository is in instance A.
    I have to access and sync data from a table in remote database instance B.
    I have run the consolidator_rmt.sql script in instance B under schema_B. I have created a private fixed user db link in instance A under schema_A to access schema_B's tables. I then created a synonym test_B for table test_B in schema_B using the DB link.
    While creating publication item for test_B using MDW, the column list for test_B appears blank. Has anyone encountered this problem and what is the solution.
    Thanks for your help.
    Rosa.

    Hello Pruthvi ,
    See these threads
    Uninstalling MaxDB
    Work process Ended.
    Thanks
    Chandran

  • How to implement tooltip for the list items for the particular column in sharepoint 2013

    Hi,
    I had created a list, How to implement tooltip for the list items for the particular column in SharePoint 2013.
    Any help will be appreciated

    We can use JavaScript or JQuery to show the tooltips. Refer to the following similar thread.
    http://social.technet.microsoft.com/forums/en/sharepointdevelopmentprevious/thread/1dac3ae0-c9ce-419d-b6dd-08dd48284324
    http://stackoverflow.com/questions/3366515/small-description-window-on-mouse-hover-on-hyperlink
    http://spjsblog.com/2012/02/12/list-view-preview-item-on-hover-sharepoint-2010/

  • Cannot set item's price in new sales order using E-Commerce for ByDesign.

    Hello,
    I'm working on a program to create zero value sales orders in my companies SAP system to help track warranties.  Every portion of this program is straight forward except for setting an item's list price to zero.  I'm using C# .NET.  Below is my code to create the SalesOrderMaintainRequestItem. Any advice would be greatly appreciated.
    private SalesOrderMaintainRequestItem[] GetItems(Warranty warranty) // Custom Warranty Object
        int count = warranty.LineItems.Count; // Warranty object has an array of line items
        SalesOrderMaintainRequestItem[] item = new SalesOrderMaintainRequestItem[count];
        for (int i = 0; i < count; i++) // for each line item in the warranty object
            item[i] = new SalesOrderMaintainRequestItem();
            item[i].BuyerID = _ID;
            item[i].ItemProduct = new SalesOrderMaintainRequestItemProduct();
            item[i].ItemProduct.ProductID = new NOCONVERSION_ProductID();
            item[i].ItemProduct.ProductID.Value = warranty.LineItems[i].ReplaceWith;               
            item[i].PriceAndTaxCalculationItem = new SalesOrderMaintainRequestPriceAndTaxCalculationItem();
            item[i].PriceAndTaxCalculationItem.ItemMainDiscount = new SalesOrderMaintainRequestPriceAndTaxCalculationItemItemMainDiscount();
            item[i].PriceAndTaxCalculationItem.ItemMainDiscount.Rate = new Rate();
            item[i].PriceAndTaxCalculationItem.ItemMainPrice = new SalesOrderMaintainRequestPriceAndTaxCalculationItemItemMainPrice();
            item[i].PriceAndTaxCalculationItem.ItemMainPrice.Rate = new Rate();
            item[i].PriceAndTaxCalculationItem.ItemMainPrice.actionCode = ActionCode.Item01; // tried all the options for this one
            item[i].PriceAndTaxCalculationItem.ItemMainPrice.Rate.DecimalValue = 1.0M; // trying to set it as $1  just for testing, will be 0 when live
               // past tests that didn't work
            //item[i].PriceAndTaxCalculationItem.ItemPriceComponent = new SalesOrderMaintainRequestPriceAndTaxCalculationItemItemPriceComponent[1];
            //item[i].PriceAndTaxCalculationItem.ItemPriceComponent[0] = new SalesOrderMaintainRequestPriceAndTaxCalculationItemItemPriceComponent();
            //item[i].PriceAndTaxCalculationItem.ItemPriceComponent[0].Rate = new Rate();
            //item[i].PriceAndTaxCalculationItem.ItemPriceComponent[0].Rate.BaseDecimalValue = 1.0M;
            //item[i].PriceAndTaxCalculationItem.ItemPriceComponent[0].Rate.DecimalValue = 1.0M;
            //item[i].PriceAndTaxCalculationItem.ItemPriceComponent[0].Rate.CurrencyCode = "USD";
            //item[i].PriceAndTaxCalculationItem.itemPriceComponentListCompleteTransmissionIndicator = true;
            item[i].ItemScheduleLine = new SalesOrderMaintainRequestItemScheduleLine[1];
            item[i].ItemScheduleLine[0] = new SalesOrderMaintainRequestItemScheduleLine();
            item[i].ItemScheduleLine[0].Quantity = new Quantity();
            item[i].ItemScheduleLine[0].Quantity.Value = warranty.LineItems[i].ReplaceQty;
        return item;

    Hi Joshua,
    it's a long time ago and I hope you were able to solve your issue. For others who want to change prices in sales orders the following might be helpful:
    It is not possible to set the price of a sales order in the create webservice call. You need to create the sales order first and then call the webservice a second time with actionCode="02" (Update).
    The following is an extract from the sales order webservice documentation:
    Node – PriceAndTaxCalculation
    A price and tax calculation is the summary of the determined price and tax components for a business case. A specification of the general procedure for price and tax determination and valuation using attributes those are characteristic or relevant for the whole object.
    Note: PriceAndTaxCalculation cannot be created but can only be modified. So this means that if the customer wishes to change the Discount or Freight charge, then the customer has to create the order first and then make a second web-service request to the update this sales order with the pricing information that is to be changed.
    For the update you only need to send the ID of the sales order, the IDs of the items and the PriceAndTaxCalculation node.
    The following would be an easy XML example for the update call:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:glob="http://sap.com/xi/SAPGlobal20/Global">
       <soapenv:Header/>
       <soapenv:Body>
          <glob:SalesOrderBundleMaintainRequest_sync>
             <SalesOrder>
              <ID>1234</ID>
                <Item actionCode="02">
                   <ID>10</ID>
                   <PriceAndTaxCalculationItem actionCode="02">
                      <ItemMainPrice>
                         <Rate>
                            <DecimalValue>5.00</DecimalValue>
                            <CurrencyCode>USD</CurrencyCode>
                         </Rate>
                      </ItemMainPrice>
                   </PriceAndTaxCalculationItem>
                </Item>
             </SalesOrder>
          </glob:SalesOrderBundleMaintainRequest_sync>
       </soapenv:Body>
    </soapenv:Envelope>
    If you need further help with webservices or C#, let me know.
    Best regards,
    Felix

  • Capturing Detail Items for a Related List in a New Item Form

    I have a simple (ha!) requirement to capture Purchase Requests with the individual line items being captured in a separate List.  I have been using InfoPath, but will consider ANY solution at this point.
    If I have an Edit Item Form, I can have a Data View (LIst View Web part) that will display all related items in my Details List (using a filter on the Parent ID).  I can even add a Data Form Web Part below this to allow for the entry of a single itme
    at a time, and make the lookup field of the new item default to the ID of the parent item.
    All well and good for the Edit Item.  But if I want to do the same on my New Item Form, I am up the proverbial without a paddle because I do not have access to the ID of the Parent List Item (that is still being captured).
    So, using any of the standard SharePoint technologies (except Visual Studio), how can I create a New Item Form, in which I can enter items for a related details List and see those detail items already entered, all while capturing the original form?

    Hi Mike,
    According to your description, my understanding is that you want to get the details of the related items in New Item form.
    I recommend to edit the new item form in InfoPath and use repeating table to display the related items based on the value in the lookup column.
    Here are the detailed steps:
    Edit the new item form(listB for example) in InfoPath and then add the related list(listA for example) including all the details you need as external data source to the form.
    Choose the secondary data source added in step1 in Fields panel and then expand dataFields, then right click d:SharePointListItem_RW and select Repeating Table to insert the secondary data source added in step1 as repeating table to the form.
    Right click d:SharePointListItem_RW in the Fields panel and select Rules, then click New and select Formatting in Rules panel.
    Click None under Condition in Rules panel, then select ID field in the repeating table in the first box, select is not equal to in the second box, then choose Select a field or group in the third box and select Main under Fields, then click the lookup field
    in the form and then click OK.
    Select Hide this control under Formatting in Rules panel.
    Thanks,
    Victoria
    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]
    Victoria Xia
    TechNet Community Support

  • Maximum number of items for an FI document ('999') has been exceded

    Hi,
    I have try to move some materials from one storage location to another using  MB1B transaction. And i receive following error:
    Maximum number of items for an FI document ('999') has been exceded.
    Please someone help me.
    Thank you.

    Dear Dan
    As you would be aware one FI document can have line items upto a maximum of 999 and it seems, you are trying to input more than that and hence the error.
    Try to minimise the number of line items and retry.
    thanks
    G. Lakshmipathi

  • Use custom field for work phone number in CUCiLync

    Hi,
    I have searched and tried out all sorts of different settings for enabling/changing the way CUCiLync searches the Active Directory (AD) for contact phone numbers.
    But no matter what setting I use in the HKEY_CURRENT_USER\Software\Cisco Systems, inc.\ Client Services Framework\AdminData and/or HKEY_CURRENT_USER\Software\Cisco Systems, inc.\ Client Services Framework\Active Directory hive, CUCiLync still uses the default for Work phone number. The default for this is to use telephoneNumber, the value that I wish to use is the ipPhone field.
    The registry values that I have tested so far are these.
    HKEY_CURRENT_USER\Software\Cisco Systems, inc.\ Client Services Framework\AdminData
    LDAP_AttributeName_businessPhone
    LDAP_AttributeName_primaryPhoneNumberForSearches
    LDAP_AttributeName_otherPhone
    All set to ipPhone, and I have also tested to set it to another field in AD that contains the same value as the ipPhone, that is in my case extensionAttribute5.
    HKEY_CURRENT_USER\Software\Cisco Systems, inc.\ Client Services Framework\Active Directory
    BusinessPhone
    PreferredNumber
    DisableSecondaryNumberLookups
    First two set to ipPhone and the third set to 0, and I have also tested to set it to another field in AD that contains  the same value as the ipPhone, that is in my case extensionAttribute5.
    The above values comes from these two urls,
    http://www.cisco.com/en/US/docs/voice_ip_comm/cucimoc/8_5/english/installguide/config_active_directory.html#wp1141403
    http://www.cisco.com/en/US/docs/voice_ip_comm/cucimoc/8_5/english/installguide/config_active_directory.html#wp1137551
    The later url have this
    Table 3-9 LDAP Registry Subkeys
    Subkey   Names
    Description
    LDAP_AttributeName_primaryPhoneNumberForSearches
    Specify   the phone number that you use to resolve most LDAP queries. This value must   match one of the values specified for the following LDAP keys:
    •LDAP_AttributeName_businessPhone
    •LDAP_AttributeName_homePhone
    •LDAP_AttributeName_mobilePhone
    •LDAP_AttributeName_otherPhone
    The   values that are valid for the LDAP attribute keys listed above are:
    •telephoneNumber
    •homePhone
    •mobilePhone
    •otherTelephone
    •a   custom LDAP attribute value, for example, myCustomPhoneNumber
    The   value of the LDAP_AttributeName_primaryPhoneNumberForSearches key must match   one of the values in the list above, for example, telephoneNumber. Otherwise,   the value of the LDAP_AttributeName_businessPhone key is used.
    The version of CUCiLync is 8.5(3)-4.5.9, that is the latest I can find on the support download page, have also tried with earlier version 8.5.(1).
    Does anyone have any suggestions for how to achieve this, if at all possible?
    Roger Kallberg

    This is the reply we got from TAC.
    Regarding to your query, Can you please go through the attached flow diagram (also you can see it in the link given below). I hope it will clarify more on the telephone number display behavior in office communicator.
    As per this flow chart presently your setup is working as designed. As per the design, the number should be in E.164 format in order to be available in MOC.
    You have AD in your network as a source, so  OCS pulls this information from LDAP it is integrated with. As per Microsoft, here you need to add Normalization rules to OCS to normalize the number into the E164 format.
    http://technet.microsoft.com/en-us/library/bb964002%28office.12%29.aspx
    Phone number display for MOC contact:
    •-          OCS will not provide a contacts number unless it is correctly formatted to the E.164 standard.
    •-          The Address Book Service on OCS processes the contacts phone number and attempts to normalize it.
    •-          If correctly normalized then the number is inserted into the OCS address book.
    •-          Communicator will only display this normalized number if it is properly formatted in E.164 (+13125551234).
    •-          The E.164 standard defines an international numbering plan for public phone systems.
    •-          In the E.164 standard, each number contains a country code, an area code, and a subscriber number.
    •-          Each phone user has a globally unique number.
    •-          In Cisco UC Integration for Microsoft Office Communicator, phone numbers in E.164 format must begin with a plus character ("+").
    I have done some research to your first question. Can you please just go through the blog given below from the Microsoft.
    http://blogs.pointbridge.com/Blogs/schertz_jeff/Pages/Post.aspx?_ID=26.
    It tells that If the numbers not in E.164 format then the number will not appear in office communicator if LDAP integrated. Can you please check with Microsoft to see their inputs on this.

Maybe you are looking for

  • How can I have two itunes accounts on one computer?

    How can I have two itunes accounts on one computer?

  • ACD as main display under Windows/BootCamp while in clamshell possible?

    Is there any way to run a BootCamp Windows XP Pro installation on an MBP using the ACD as main display while in clamshell mode? Currently the system refuses to wake up after I close the lid. I use a BT mouse/KB, but even with a USB mouse connected it

  • Check box  in ALV Header for selection

    Hi, I'm working on ALV in ABAP web dynpro. We have a requirement to check some rows and based on the selection a FM should be executed. I've used checkbox in the column for selection. Is there anyway to use a check box (or any element)  in the column

  • Help in copy command

    Hi Can i use parallel and append hint in while inserting data through copy command in sqlplus? My databse version is Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production PL/SQL Release 9.2.0.4.0 - Production CORE 9.2.0.3.0 Production TNS

  • PHOTOSHOP ELEMENTS 9 TRIAL

    I HAVE DOWNLOADED THE TRIAL VERSION OF PHOTOSHOP ELEMENTS 9 - NO PROBLEM WITH INSTALLING HOWEVER, WHEN I TRY TO CALL UP THE WORKDPACE SO THAT I CAN EDTIT FULLY, IT WILLNOT OPEN AND KEEPS SAYING THAT THE TRIAL HAS EXPIRED. ANY SUGGESTIONS? ADONE SUPPO