How to search with multiple search condition in MDM5.5 API.

hello my friends,
how can i obtain right records like SQL:  "select * from mainTable where (A=a and B=b) or (A=c and B=d) or (A=e and B=f)";
              A,B:fieldCode
              a,b,c,d,e,f :fieldValue
Thanks!

Hi Orloffmax,
I missed a point here.
All field dimensions within a search group needs to be the same field dimension.
For example:
     (A=a || A=b) // OK
     (A=a || B=b) // not OK
So you are getting the below error.
So the only option left to perform search now is
1. Create a Search Object for (A=a and B=b), Perform the search and Save the list of RecordsIds
2. Create a Search Object for (A=c and B=d), Perform the search and Save the list of RecordsIds
3. Create a Search Object for (A=e and B=f), Perform the search and Save the list of RecordsIds
4. As you have to perform an OR Operation Search on all the above 3, you can do a round about thing as APIs are not helping much. You can put all the above Records in a HashMap with both Key and Value as RecordId. By doing this you'll get a list of Unique record Ids.
I am not able to find out a way in which the APIs can help you more, so have suggested you such an approach. If you ever find a better one, do share please.
Regards,
Sruti

Similar Messages

  • How to deal with multiple disk path's

    hi
    i'm setting up a new server with virtual servers with extra io domain's
    now i have a question on how to deal with multiple disk path's
    so following questions:
    - can i enable multipath on the primary and on the alternate domain?
    i tried this but when rebooting the alternate the alternate keep's freezing and the only solution is to hard stop it and it's depending host
    - if i can't enable multipathing how to handle this
    for example a disk has on the primary domain 4 path's to a disk
    do  i then assign all 4 path's to a virtual disk server or do i create a virtual disk server per path
    if i do the first is adding all the path to the same mpgroup enough or not

    Hello
    1.-can i enable multipath on the primary and on the alternate domain?  Yes. i understand for multipath mpxio or similar.
    2.-i tried this but when rebooting the alternate the alternate keep's freezing and the only solution is to hard stop it and it's depending host
    if you are going to use alternate domain you have to give this IO the all bus root nexus, what you describe sounds like DIO,
    3.- - if i can't enable multipathing how to handle this for example a disk has on the primary domain 4 path's to a disk
    If you have 4 path to the same disk in the primary and you are using multipath let's say mpxio, then you will have only one disk in the primary, which is a virtual device that handle the 4 paths.  That's is what you have to use in a vds.
    Please check this doc to see the best practice to ldom
    white-paper-ldom
    regards
    eze

  • How to search with multiple constraints in the new java API?

    I'm having a problem using the new MDM API to do searches with multiple constraints.  Here are the classes I'm trying to use, and the scenario I'm trying to implement:
    Classes:
    SearchItem: Interface
    SearchGroup: implements SearchItem, empty constructor,
                 addSearchItem (requires SearchDimension and SearchConstraint, or just a SearchItem),
                 setComparisonOperator
    SearchParameter: implements SearchItem, constructor requires SearchDimension and SearchConstraint objects
    Search: extends SearchGroup, constructor requires TableId object
    RetrieveLimitedRecordsCommand: setSearch method requires Search object
    FieldDimension: constructor requires FieldId object or FieldIds[] fieldPath
    TextSearchConstraint: constructor requires string value and int comparisonOperator(enum)
    BooleanSearchConstraint: constructor requires boolean value
    Scenario:
    Okay, so say we have a main table, Products.  We want to search the table for the following:
    field IsActive = true
    field ProductColor = red or blue or green
    So the question is how to build this search with the above classes?  Everything I've tried so far results in the following error:
    Exception in thread "main" java.lang.UnsupportedOperationException: Search group nesting is currently not supported.
         at com.sap.mdm.search.SearchGroup.addSearchItem(Unknown Source)
    I can do just the ProductColor search like this:
    Search mySearch = new Search(<Products TableId>);
    mySearch.setComparisonOperator(Search.OR_OPERATOR);
    FieldDimension myColorFieldDim = new FieldDimension(<ProductColor FieldId>);
    TextSearchConstraint myTextConRed = new TextSearchConstraint("red",TextSearchConstraint.EQUALS);
    TextSearchConstraint myTextConBlue = new TextSearchConstraint("blue",TextSearchConstraint.EQUALS);
    TextSearchConstraint myTextConGreen = new TextSearchConstraint("green",TextSearchConstraint.EQUALS);
    mySearch.addSearchItem(myColorFieldDim,myTextConRed);
    mySearch.addSearchItem(myColorFieldDim,myTextConBlue);
    mySearch.addSearchItem(myColorFieldDim,myTextConGreen);
    the question is how do I add the AND of the BooleanSearchConstraint?
    FieldDimension myActiveFieldDim = new FieldDimension(<IsActive FieldId>);
    BooleanSearchConstraint myBoolCon = new BooleanSearchConstraint(true);
    I can't just add it to mySearch because mySearch is using OR operator, so it would return ALL of the Products records that match IsActive = true.  I tried creating a higher level Search object like this:
    Search topSearch = new Search(<Products TableId>);
    topSearch.setComparisonOperator(Search.AND_OPERATOR);
    topSearch.addSearchItem(mySearch);
    topSearch.addSearchItem(myActiveFieldDim,myBoolCon);
    But when I do this I get the above "Search group nesting is currently not supported" error.  Does that mean this kind of search cannot be done with the new MDM API?

    I'm actually testing a pre-release of SP05 right now, and it still is not functional.  The best that can be done is to use a PickListSearchConstraint to act as an OR within a field.  But PickList is limited to lookup Id values, text attribute values, numeric attribute values and coupled attribute values.  It works for me in some cases where I have lookup Id values, but not in other cases where the users want to search on multiple text values within a single field.

  • How to sync with multiple computers?

    I have my iTunes library on my MacBook and all of my Apple devices synced accordingly. My family also has an iMac, and I would like other family members to be able to sync from the iMac. I know I can use Home Sharing to allow the iMac to view/play the music when my Macbook is active on the network. I also know I can purchase iTunes Match so I can access the music when my MacBook is offline and edit the playlists. Yet, I would love to be able to set up the iMac so the iDevices could actually by synced with that computer as opposed to mine. How can I go about this?

    Yes, you can sync your device with multiple computers.  Only that one is set to AUTO SYNC whilst the rest is set to "MANUALLY MANAGE MUSIC".
    Refer to this article:
    Using iPhone, iPad, or iPod with multiple computers
    http://support.apple.com/kb/HT1202
    However, issues may occur leading to data corruption or data loss if you regularly sync Contacts, Calendars, Notes, or bookmarks between multiple computers using iTunes and your iOS device. Syncing once to move your data to a new computer should not cause these issues.
    Refer to this article:
    iOS: Issues syncing content with multiple computers using iTunes
    http://support.apple.com/kb/TS1474

  • How to deal with multiple language SQL script?

    Hi All,
    We now want to create a SQL script that contains multiple languages(English, Chinese, Japanese), this script need to be run at there different database installed on different OS, for example, Oracle9i on Windows 2000 English Edition/Chinese Edition/Japanese Edition.
    If I save the file as ANSI format, this file will only be recognized at local OS(e.g. the Chinese and Japanese character will not be normally displayed on other OS, if I run the script, the CH/JP characters will not be stored normally in DB).
    If I save the file as Unicode format, this file can be recognized by all three OS, but Oracle SQL Plus will not recognize it, thus we can't run the script.
    Who can tell me how to deal with this issue? Is it possible to save only one script that can run on different language OS?
    Thanks,
    Spark

    Hi,
    The ISQLplus supports multiple languages, but there will be following problems for my case:
    1.ISQLplus don't support Unicode format script too, so I must save the file as ANSI format.
    2.To display the characters normally depends on the database server's platform. I create a script contain three languages with ANSI format in Chinese OS, but if I want to load this script to database server installed on English OS via ISQLplus, the Chinese characters will not be displayed normally too.
    PS:
    So, I think this is not only related with Oracle but also the Windows OS, it is hard to create one file with ANSI format that can be displayed normally in different platforms.
    Thank you all the same,
    Spark

  • How to filter with multiple selection on a single column on external list, currently only one filter per column is available.

    I have external list where i want to apply multiple filter for every column like we do in Excel spreadsheet - we can filter a spreadsheet column by selecting multiple checkbox for every  column. I am using Sharepoint 2010
    Is this possible in sharepoint 2010? Any idea how to acheive that?
    Thanks in advance.

    Hi Rahul,
    According to your description, my understanding is that you want to use filter with multiple values on a column of an external list in SharePoint 2010.
    Per my knowledge, there is not an OOB way to achieve it. As a workaround, you can custom the web part to implement it. There is an articles for your reference:
    http://blogs.telerik.com/aspnet-ajax/posts/13-11-05/add-excel-like-multi-select-filtering-to-your-asp.net-datagrid
    In addition, you can use a third party solution to achieve it, please take a look at:
    http://abilitics.com/Blog/index.php/sharepoint-improved-grids-with-excel-like-inline-editing/
    http://social.technet.microsoft.com/forums/sharepoint/en-US/3d19b9d3-d394-4af9-9e8e-2dee70b50540/filter-column-with-multiple-filter-values-in-sharepoint-list
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • How to deal with multiple mail files?

    Here's the story; it's sad but true: After a failed iSync spirited away all of my emails, the Apple Care techie I spoke to a month ago wasn't able to fully resolve the problem. So, currently in my Home Library folder I have 2 Mail files: #1 is labeled "Mail" and #2 is "Mail Copy."
    "Mail" has one sub-folder called "Mailboxes" and four other folders for each of my four POP email accounts (there are also a number of other files that I'm ignoring for the moment like--Envelope Index, Signatures.plist, ect.). All mail from the past 4 weeks is in the folder labeled "Mail." But...
    The other folder in my home library--"Mail Copy"--contains 3 POP email accounts and each one has sub-folders that contain mailboxes with my emails that go back many months. I want to keep the email in both folders, "Mail" and "Mail Copy."
    Problem: How to get the older messages out of "Mail Copy" and back into the current "Mail" folder. Clearly, it would be a mistake to simple drag them from one location to the other, since the "Contents" files and ".plist" files wouldn't match.
    I would be extremely grateful for any guidance the Mail authorities who contribute to this forum might be able to give.
    Also, for the life of me, I cannot figure out where the emails actually reside. The "Mail" folder contains a subfolder entitled "Mailboxes" and it contains subfolders for each mailbox like "Action.mbox" and "Hold.mbox." Then, inside each .mbox folder are other files and usually one folder. Most of these files have names like "content_index," "Info.plist," "mbox," and "tableofcontents." And there is a folder labeled "Messages" and it contains numerous ".emix" files and one "tableofcontents file." My confusion begins when I open a particular POP account folder and find .mbox folders also located there and those folders also contain .emix files. I've searched the entire knowledge base, and I find no explanation anywhere of which files/folders are located where and why.
    Many thanks for your time and trouble, Jay

    The easiest way to combine the old folders with the new is to use the "Import" option in Mail's File menu. Consult the Mail Help topic "Importing email into Mail" for comprehensive instructions for doing that. In your case, the "archived" messages will be the ones in "Mail Copy."
    The actual messages are stored in individual *.emlx files, inside each mailbox folder's "Messages" folder. (For instance, you would find a message in a locally stored, root level mailbox "Action" at path ~/Library/Mail/Mailboxes/Action.mbox/Messages/xxx.emlx, where "xxx" is a number.)
    Some of the files you mention are leftovers from Mail 1.x & are not needed with Mail 2.x. They won't do any harm if left in place, but you can remove them if you wish. (I suggest making a backup of the entire ~/Library/Mail/ folder beforehand, in case something you need accidentally gets deleted.)
    These files are not needed by Mail 2.x: "content_index," all "tableofcontents" files, & files named "mbox." All folders with names ending in ".mbox" are needed, since they contain the .emlx files. You may also find folders in ~/Library/Mail/Mailboxes/ with no ".mbox" extension pared with folders of the same name with the ".mbox" extension (like "Hold" & "Hold".mbox") -- do not delete any of these, as they contain "Messages" folders as well.

  • How to deal with multiple sessions?

    My application has requirement that number of users can log simultaneously. They can search documents, browse the site, etc. Now the funtions they can perform depend on their user type. So to keep track of their userids and usertypes, do i need to create different sessions for each of them?
    If yes, how do i tackle such a multiple session problem? ( Say if an user of type A clicks the search documents button, how do i know which session he belongs to?)
    If no, what else can i use?

    Hi,
    You only need to maintain different user types and assign one or more types to your users. You can have another table that say what privileges each user type has. Then the first time the user logs in, you fetch this information and store it in your session. Then when the user tries to do something, all you do is get his user type and see if the user type has permissions to do that specific action. You then allow or disallow him from doing the action.
    Hope this helps.
    Cheers,
    vidyut

  • How to merge with multiple updates

    Hi All,
    can someone help with merge and multiple updates when matched ?
    create table foo
    id number,
    name varchar2(30),
    col1 date,
    col2 date
    create table bar
    id number,
    name varchar2(30),
    col1 date,
    col2 date
    insert into foo values ( 1, 'test1', sysdate + 30, sysdate);
    insert into foo values ( 2, 'test2', sysdate + 30, sysdate);
    insert into foo values ( 3, 'test3', sysdate + 30, sysdate);
    MERGE INTO BAR T1
    USING (SELECT id, NAME, col1, col2 FROM foo) T2
    ON (T1.id = T2.id)
    WHEN MATCHED THEN
    UPDATE SET T1.NAME=T2.NAME where T1.Name != T2.Name
    UPDATE SET T1.col1=T2.col1 where T1.col1 != T2.col1
    UPDATE SET T1.col2=T2.col2 where T1.col2 != T2.col2
    WHEN NOT MATCHED THEN
    INSERT (ID, NAME, col1, col2 ) VALUES (t2.Id, t2.NAME, t2.col1, t2.col2);
    Reason for having multiple updates to same row is i want to update the column only if name, col1, and col2 columns have changed. So, I want to first match by rows and then update the columns in bar that have changed in foo.
    Any thoughts on how I might do this in merge ?. I get the foll. error
    ERROR at line 6:
    ORA-00933: SQL command not properly ended
    Thanks
    Vissu

    I think you will be better off reading this link.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_9016.htm#SQLRF01606
    It will be something like this.
    MERGE INTO BAR T1
    USING (SELECT id, NAME, col1, col2 FROM foo) T2
    ON (T1.id = T2.id)
    WHEN MATCHED THEN
    UPDATE SET T1.NAME=T2.NAME ,
                          t1.col1 = t2.col2 ,
                          t1.col2 = t2.col2
    where T1.Name != T2.Name or t1.col1 != T2.col1 or t1.col2 != t2.col2
    WHEN NOT MATCHED THEN
    INSERT (ID, NAME, col1, col2 ) VALUES (t2.Id, t2.NAME, t2.col1, t2.col2);Please note this code is untested.
    Regards
    Raj

  • How to Edit with Multiple People - HELP

    We used to be a small, 1-guy editing operation. But now we are huge (joke) and have 3 guys doing editing on an ongoing kids program. 
    I need some help with how to effectively edit the same program with 3 different people editing.
    I assume that it's impossible for all 3 editors to edit the same project file simultaneously, right?  That would be ideal as long as each person is working on a different scene, but even then, I'm sure it would introduce all kinds of problems.
    So I'm left pondering the best way to edit one large program (1-hour in final length) between multiple people.  The best method I've come up with to this point is to split my project up into 5 individual PP projects broken down by general scene categories. 
    That way each person can work on the "same" project/episode, but yet be working off of separate files, thus avoiding syncing problems. 
    But this only seems like a bandaide to our situation, especially if we bring on a couple more editors in the future.
    Any suggestions on working on the same project/episode at the same time between multiple people?

    There was a recent thread on similar issues.  I don't have this situation (one man shop), but one aspect of the "import sequences" to a master gets my attention.  I was starting to do this for my own projects (e.g. a season's worth of ball games where you want to do individual gamnes as well as a highlight of the season).  One project for it all gets rather complicated, and it seemed simple to import key sequences into another project.  But...
    A) This is not a dynamic link, but an import.  The whole project (or whole sequence(s) your choice) come in, inside a new bin.  changes in the other sequence are not updated in the master, so you need to be finished in the imported sequence - or be prepared to import again and redo any transition work.
    B) When you import, even though all the clips are from a shared pool, Premiere creates new instances in the imported bin.  Even if you offline and relink (so you don't literally need multiple clips on disk), they are still multiple instances in the bins.  As long as you don't plan on using work on clips in other sequences/projects, it really won't matter.  But, for example, if editor A adds markers to Clip 1 in their project, and you import their project to the master project, Clip 1 in editor B's project imported to the master will not hve the marker set by editor A,
    All logical really, but it limits this as a workaround to making Premiere work as a shared editor.

  • How to deal with multiple hard drives?

    I am using Aperture 1.5 but am having trouble
    dealing with the Library structure. I want to be able to have Aperture recognize and work with Projects located on several different external hard drives. Where should the main library be located? In 1.5 is there such a thing anymore as a Branch library? I had a branch library on an external drive. I may have messed things up so that Aperture doesn't quite know where things are. Is there a way to re-organize things so that when I open Aperture ALL the projects I've worked with do appear? Thanks.

    To have Aperture work with projects on different hard drives, just import the project files but tell Aperture to copy the files from their current location (say a media card or CD) to a directory of your choice on any drive of your choice. You can store projects on multiple drives. I don't think it matters where the main library is located, it could be on your primary drive, or on one of your external hard drives. I'm not sure how to consolidate projects that were enclosed in different libraries other than to export the projects individually, and then reimport them into the new centralized library. I do wish Aperture would allow one multiple select projects (it only allows you to select one at a time) for exporting. I also wish that Aperture had a 'Consolidate Libraries' command which would allow one to just pull all 'found' projects into one library.
    Dual 2.7 GHz 5.5 Gig RAM   Mac OS X (10.4.6)  

  • How to deal with multiple Android ressolutions with Flash- AIR games

    Hi,
    I have some Flash games that want to make run on different Android devices. How do we do so? I've seen that in one of my games, while I check "full screen" when exporting, the game area is not taking all the available space on the screen. I guess that's because the aspect ratio.
    I've seen this nice tutorial to solve that problem on Flex apps/games: http://gregsramblings.com/2010/05/06/scaling-an-adobe-air-application-to-fit-multiple-reso lutions-and-netbooks/
    Is there any similar solution for flash based games?
    Thanks!

    That article looks like it's geared towards desktop applications, and it makes sure the window never gets bigger than the original size.
    You will read, any minute now, that a lot of people set the stage to not scale, and then use layout code to position the interface to look right, and will even take note of the DPI of the device to make sure that buttons are the right physical size. That's fine for typical utility apps, but if you have a detailed illustrated background, or any sort of fixed bitmap art, it may not be the right way to solve the problem.
    The way I solve the problem is to not do any scaling at all, I leave that up to Flash, but I have spare content off the edges of the stage, that will be revealed on wider or taller screens.
    The first time I used that approach I made the Flash stage be 480x320, and had extra content above and below the stage, to a total height of 360. That single file would exactly fit the iPhone screen and also the different aspect ratio iPad. On the iPad you would see the extra content.
    That works fine if you layout for the widest device, and a have extra content for the less wide devices, but there is only one device less wide than the iPhone, the iPad. So now I have switched the technique to horizontal.
    My stage is now 1024x768, and there is a lot of extra content off the left and right edges. I have enough there that it will still fill the screen on the widest device, which is the new Samsung Galaxy Nexus.

  • How to work with multiple catalyst components in Flash Builder?

    Hey There,
    Can I create multiple components and merge them together? For example, I want to create a list control state, and bring it into my existing Flash Builder project. Then down the road, do something similiar... How would I go about that, and what files are essential fromt he catalyst project.. (assets, components, main.css, privateData..
    Thanks in advance!

    Yes, you can :-)
    You can export the components from different Flash Catalyst projects as fxpl files and then import them into Flash Builder. In Flash Catalyst, right-click in the Library panel and you will see the export command to save the current project's components into an fxpl file.
    A great article on Flash Builder/Flash Catalyst workflows is here:
    http://www.adobe.com/devnet/flashcatalyst/articles/flashbuilder_flashcatalyst_workflows.ht ml
    Ty

  • How to comminucate with multiple PLCs with Modbus TCP/IP using dynamic multithreads?

    I have an application in which I communicate with several PLCs using MODBUS TCP/IP toolkit. There is an array of IP addresses that the user can configure. Using for loops allows to work with this however if one PLC is out, the program waits for the timeout before polling the next PLC. I would like to use a multithreading type in order that all PLCs are polled at once and is not dependent of each other. In other words, I would like to dynamically simulate several while loops happening at the same time. Is this possible?
    Thanks
    arikb

    arikb wrote:
    Thanks A_Patel,
    I thought of doing that but do I need to run this as a VI server in that case? How would I pass inputs and outputs of the subvi?
    Appreciate the help,
    arikb
    Take a look at my Nugget on dynamically creating occurences found here.
    Just ignore the Occurence stuff and the rest of the code and verbage should help you. The example code creates a bunch of background processes and passes a unique parameter to each.
    Have fun,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to work with multiple users accessing one database

    I am a newbie in oracle.
    I want to give access to my oracle database for more users.
    I created oracle connection with c# project. The application allow to user to insert data to a database table. Now I want to give access to the different users with a login. Is there any way to give access other users to the same database using their username and passwords?
    I'm confused. Please help.
    thank you.

    In the database, set up your data schema with data tables, views, and stored procedures to support your application.
    That schema owner should only be a trusted data administration person.  Let's call that schema APP_DATA.
    Then you set up another schema called APP_DATA_USERS with no privileges and no data.
    Then you create an Oracle ROLE object called APP_DATA_ROLE.
    You grant the app_data_role to the app_data_user account.
    You then grant object permissions in the APP_DATA_ROLE that you want the app_data_user to have for the app_data data objects, like Create SESSION, SELECT on TABLE X. or SELECT, INSERT, UPDATE on TABLE Y.
    Now the APP_DATA_USERS only has specific permissions needed on specific app_data data objects that you control by the app_data_role.
    Then your application only opens connections to Oracle via the single APP_DATA_USERS account
    which is constrained by the APP_DATA_ROLE permissions on what can be done in the data schema APP_DATA.
    in your web or app config you create the connection information for the single app_data_user account.
    Putting the database aside, you now create the application layer with login controls so many users can use the application.
    But when they need data, the application only makes a connection to the single APP_DATA_USERS account
    Oracle ODP.NET auto handles the multiple session connections by the multiple application users to the single APP_DATA_USERS account.
    In summary the multiuser access is controlled by the application
    all making connections (sessions) with a single, limited privilege app_data_user account on the database side.

Maybe you are looking for

  • PL/SQL: Could not find program unit being called: mydb.pkg_alert (newbie)

    This is my first attempt at a pretty in debt package. All the procedures and functions work successfully on their own. When i try and put them into a package and run the package, i get these errors? ORA-04063: package body "mydb.PKG_ALERT" has errors

  • HP Envy Touchsmart 4-1118TU - Audio not working - Windows 8.0

    Hello, The audio on my HP ENVY touchsmart notebook has stopped working - notebook is approx 12 months old. This occured seceral months ago, uninstalled the driver, reinstalled the driver and it fixed the problem. Has now happened again, sometimes res

  • I am unable to upload files via web browser

    Good morning I have just upgraded to Mavericks (10.9.5), and I am running into a weird issue. I am unable to upload any files via the web browser. If I go to a website, and select an Upload File option, I am taken to Finder, where I am able to select

  • Help setting up my tv settings for game mode xbox 360

    I recently bought a Panny 50" plasma (G20). If anyone could help me out and let me know what the best settings are or what you personally have set up for gaming on your Xbox 360 I would greatly appreciate it! Trying to calibrate my tv and would great

  • Mac os

    I am considering a mac mini and have had a windows computer all of my life so i am wondering a few things about the mac software itself: Ive read about no viruses, can i still browse the web with my cable connection? and if so how does it not have an