Search by different criteria
hi all,
I have 100+ location codes in the system. Each Location has 4 significant attributes:
int locationCode
String locationName
String locationExtCode
String locationDesc
In different processes I need to find Location in different ways. For example in one process I need to find locationName and locationExtCode by locationCode. In another process I need to find locationDesc by locationCode or locationName.
I am thinking about using HashMap but not sure how to implement these scenarios.
Thanks
i got your point. thank you very much. Do you think
having multiple HashMaps is better option performance
wise than database access as you need?Well, a database is going to be a general-purpose solution, and there's network overhead sending queries to it and processing the responses. The overhead may be worth it in then end though, if you scale out your app to possibly deal with thousands or millions of items. Keeping them all in memory might become an issue. With only a few hundred in memory, assuming that's not going to scale out, the multiple hashmaps is probably the way to go.
Similar Messages
-
How to merge two search button from different criteria
How to merge two search button from different criteria
this image show the question
http://s24.postimg.org/4algthuj9/1111.jpg
two different criteria for the same view and I need to merge it in one button as when I click
on the button search result give from two criteria parametersYou can!t using af:query. the af:query component comes as is. If you can't do it through the properties, you probably can't do it at all.
As in your other thread, the way to go is to program your own search form. This way you can use a layout and functionality you like.
For this you create a form with input fields for the values you are searching for, put them on hte page in a way you like and in the end by hitting on a button (e.g. called Search) map all inputfields to parameters of a service method you defined in your application module or VO. This service method then executes a view criteria returning all matches in the default iterator (just as if you had used af:query.
Timo -
TREX - ECC 6.0 searches in different tables
Hi, have some search related questions:
- Is it possible to use TREX for combined searches from non-indexed tables in ECC 6.0 (where data is stored in different areas such as material, classification, BOM, customers, vendors, address data and so on)?
- Is it possible to mirror tables in ECC 6.0 to TREX via change pointers so the search data is "fresh" (the returned search result will be used in combination with other data and then stored back to ECC 6.0 from the NW portal)?
- Is it possible to have cross related search attributes (fields from material master, classification, bom, dms, address and so on) on the same tab in the sap standard search help (sap search help will be called from ABAP WebDynpro's)?
The main issue is to do combined searches with different combinations (number of input fields (10-20) related to different modules/areas) in ABAP WebDynpro. To do searches with outer table joins in tables without
keys and indexes seems not be doable.
/Brg Patrick OlssonHi lorenzo,
I have successfully installed ECC6.0 IDES SR2, i have found ECC-DIMP 6.0 LEVEL 6 in Support packs, please could you tell me that how can i activate IS-MILL in my server and what are the preconditions.
Thanks and Regards
ChandraB. -
Performing searches across different Human Tasks
On our project we have been using Custom Views within BPM Workspace to perform searches on running and closed workflow instances.
We have found that we first have to choose what Human Task we want to build the custom search on (e.g.. "Vacation request Manager´s review") and then build the view.
However, we do not know how to perform searches across different tasks (e.g.: list all vacation requests either "under Manager´s review" or "pending HR acceptance") and get the results in a single page.
How can we do this?
Regards
Juan Algaba ColeraHi,
This link may help you : http://beatechnologies.wordpress.com/2011/06/29/using-flex-fields-in-oracle-bpm-11g/ -
I can delete my Internet history but I can't delete my words searched in different web sites. Would you like to help me?
Hi Niel,
There may be a problem with the definition of the rule to delete the characteristic. If you go to transaction RSMRT
and use the 'check' option to check the rule you created are there any errors for the check?
If not when you get the error message that you mention is there any additional error messages created in sm21
or dumps in ST22?
If not there may be a problem with the consistency of the cube if you goto RSRV>All Elementary tests>Transaction data
and run these tests for the cubes are there any error messages? If yes please try to use the repair function in RSRV
to correct any errors.
If none of the above helps you should delete the run you created, make a dummy change to the cube (e.g add a '.'
to the description of the cube, save the change and then activate the cube, please then try and create the
remodelling rule again.
Best Regards,
Des. -
How Oracle Ultra Search is Different from Intermedia Search
hi,
Can any one please tell me how Oracle Ultra Search is Different from Intermedia Search .from an article i came to know that Ultra search helps you to search dataq in Multiple RDBMS ,documents,URLs etc . but i think these options are also there in Intermedia
regds
sangeethUltra Search is an application on top of Oracle Text (aka interMedia Text). You can find more information about it here: http://otn.oracle.com/products/ultrasearch/content.html
-
Mac and iPhone4 contact searches behave differently
I have ~1000 contacts. One of them has an email address beginning with "c.s". Searching my mac address book for "c.s" narrows it down to that one contact. Searching iPhone contact for "c.s" gives a list of dozens of names that start with "c" and "s". Is it treating the period as a wild card?
Related search problem: one of my contacts' email addresses starts with "diz". Searching my mac address book for "diz" narrows it down to that one contact. Searching iPhone contacts for "diz" yields nothing.
Why do the mac and iPhone searches behave differently?"Powerpoint in fact is unable to play any video files, it can only play still images and sound files, as only these files can be embedded."
The mac version CAN play videos inside PPT right on a slide. They are linked, but they still play ON the slide. Basically anything the QT player can play, ppt can play right on the slide. I assumed PPT for windows could do this with formats OTHER than QT.
You're saying that NO VIDEO FORMAT IN EXISTANCE can play ON a slide in PPT for windows? I find that hard to believe.
I've seen many folks post here suggesting AVI works just fine and can be played right on the slide in PPT for Windows. Mpeg1 is normally 320x240 and well, honestly it looks like crap on a 1024x768 screen (and most people these days do NOT want to show a 320x240 movie at regular size on a large slide), so I stand by my comments made previously, unless someone can post that they tested an AVI and PTT for windows actually bumps you OUT of ppt and into a player (full screen or not). I just can't imagine that's what it's doing. QT on the other hand, is pretty much broken except in the way you described, playing it in the QT player, which is why no one wants to do that. -
Creating View Object with different criteria
Hi,
I have a requirement to execute the following queries in the application logic. We have YEAR table with mileage rates with different effective dates. If the service date is greater than any of the existing effective dates we need to get the rate with that effective date. if the service date is less than the existing effective dates, then we have to get the rate with least effective date.
SELECT mileage_rate, ... FROM year
WHERE eff_date = (SELECT MAX(eff_date) FROM year WHERE eff_date <= :bServiceDate)
SELECT MILEAGE_RATE, .... FROM YEAR WHERE
EFF_DATE = (SELECT MIN(EFF_DATE) FROM YEAR)
We have to execute the 1st query and if there is no matching records then we have to take the second query with min effective date. At present we are creating two view objects for the above scenario. Is there any possibility to create one view object with different criteria. What is the best solution to handle the above problem in ADF.
Thanks and Regards,
S R PrasadWell on the ViewObjectImpl you can fire the method getQueryHitCount() passing in the required ViewRowSetImpl. If you get the query hit count as 0, use can attached the other query and execute it.
-
Error while searching a customer based on different criterias
Hi,
I am working on Smart Service Manager 3.0 and came across an error recently.
I have a customer screen which has the search functionality. Search can be done on various criterias such as Customer ID, Name ,Serial Number etc.
When we are searching customer on the basis of serial no.
Example L62560, Cp_12345 ,172, 461
We are getting the below error
No more storage space available for extending an internal table.
Function is ZSYCLO_CRMMD_DOCUSTOMER_GET
If anyone can suggest the cause and potential resolution of this issue.
Thanks,
Star
Tags edited by: Michael ApplebyStar,
It sounds like there a lot of rows being build and causing an error within SAP and thrown to the Mobile Server.
I would suggest looking at the log file to all the values being set with the bapi and then debug the bapi in the sap system to see if you find where it is erroring.
Stephen -
AVI files - Search results different from Smart Album
I've noticed that when I use the iPhoto Search to filter all movies (.AVI files) that all my clips come up (eg. 700 clips in 2007). However, with a Smart Album I have set up to display the .AVI files, the last several weeks of clips seem to be missing (eg. 630 clips from the 2007 album). I've checked all the Smart Album criteria and they are correct. Is this a glitch in iPhoto or is there some other explanation?
macblueduck
Two possibilities:
1. There's something different in the later files that don't match the criteria of the search
or
2. Spotlight (as it is this that indexes the Library) is not working correctly. Try opening the Spotlight Preference Pane and go to the Privacy section. Drag the Pictures Folder in there, leave it a few moments and then drag it out again. This should force Spotlight to re-index the Folder.
Regards
TD -
How to create a search with multiple criteria
Hi
I've a table that contain staff information. (name, dept. position, ext, email...etc)
I've created a search page that allow the user to search any field. The result should appear in the same page
first i've created the form:
enter staff First_Name:
enter Dept. :
select position:
submit button
Then I've created the record set that select all the feilds from the table, now i need a help in the criteria, This is what I used:
SELECT *
FROM tblstaff
WHERE First_Name LIKE %colname% AND Dept = coldept
for both colname and coldept
default = 1
runtime value = $HTTP_POST_VARS['First_Name'] - $HTTP_POST_VARS['Dept']
It seems to work fine when i enter all the values in the search form. but what if i left some fields empty? In other word how can I add (All in the drop down menu and accept empty value for the text search)??
can anyone help me?The simplest way to do this is to add a wildcard character to the end of coldept and make the field optional.
SELECT *
FROM tblstaff
WHERE First_Name LIKE %colname% AND Dept LIKE coldept%
If the department field is left empty, it will match all departments.
By the way, you should not be using $HTTP_POST_VARS or $HTTP_GET_VARS. It's obsolete code, and will break on a modern installation of PHP. Use $_POST and $_GET instead. -
Searching with different character sets
Hello,
we have a problem with Intermedia 8.1.6. running on Solaris.
The table contains the text with different character sets and that's the problem. User submits the query in his char.set and the IM sometimes doesn't find the data.
Idea is to create the index using the flat ascii chars and to search in ascii ... but how?
Can anybody help me?
Thanks.
Zozzi
null<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Zozzi ([email protected]):
sorry, wrong email in the prev msg ...
this one is correct<HR></BLOCKQUOTE>
Hello,
Did you solve it ?
If yes, how to do it. I am interested in knowing it.
Many Thanks
null -
Using Dimension Formulas to sum data based on different criteria
Hi all,
I am trying to use a u201CDimension Formulau201D to perform the following calculation:
We have an account dimension which has 2 important properties:
1. CRITERIUMTYPE: This property can have 3 different values: u201CWERKu201D, u201CINVu201D OR u201CLIQu201D
2. ACCTYPE: This property can have 2 different values: u201CEXPu201D or u201CINCu201D
The client wants to have a report that sums data based on these 2 properties. An example will help to clarify this:
ACCOUNTS CRITERIUMTYPE ACCTYPE VALUE
ACCOUNT A WERK EXP 100 u20AC
ACCOUNT B WERK INC 150 u20AC
ACCOUNT C WERK EXP 200 u20AC
ACCOUNT D WERK INC 300 u20AC
ACCOUNT E INV EXP 50 u20AC
ACCOUNT F INV INC 100 u20AC
ACCOUNT G INV EXP 200 u20AC
ACCOUNT H INV INC 500 u20AC
The clients wishes to see this data in the following way:
CRITERIUMTYPE ACCTYPE VALUE
WERK EXP 300 u20AC
INC 450 u20AC
INV EXP 250 u20AC
INC 600 u20AC
In order to achieve this I have created several new accounts, one for each combination e.g.: Account WERKEXP is used to sum the data on the combination CRITERIUMTYPE=WERK and ACCTYPE=EXP. I have created a dimension formula in my account dimension but this is where I am stuck. I have created the following formula to calculate the account WERKEXP:
IIF([BUDGETPOSITIE].CURRENTMEMBER.PROPERTIES("ACCTYPE")="EXP",IIF([BUDGETPOSITIE].CURRENTMEMBER.PROPERTIES("CRITERIUMTYPE")="WERK",[BUDGETPOSITIE].CURRENTMEMBER,0),0)
The problem with this formula is the following:
The formula will add all amounts that meet the 2 criteria mentioned in the formula, EXP and WERK, but as soon as it finds an accounts that does not match the 2 criteria it will set the account WERKEXP back to 0. I need to know if there is a way, using dimension formulas, of adding these values together without the new account being set to 0 as soon as one of the accounts it needs to check does not meet 1 of the 2 criteria.
We are working on SAP BPC 7.5 for NW with SP04
All help is very much appreciated!
Kind regards,
StefanoHi,
You can also use ParentHn property to have different grouping of accounts within the dimension.
So in your case rather using the member formula you can have four accounts and add them in the Parenthn property for grouping it.
1. The Solution proposed by Nilanjan is specific for a Report/IS and Performance will be good
2. My solution will be global something similar to MDX formula, but performance may be slightly lesser than using excel function.
Hope this helps,
Regards,
G.Vijaya Kumar -
File Search and multiple criteria?
I there a way to have more than one search criteria, ie: name... contains.. AND kind...is?
ThanksSorry, no.
If you have ARD 3 you can use the spotlight search on Tiger machines which allows multiple searching criteria. -
Search works differently and "wrong" in Solaris environment
I have my test and development databases in Windows and Solaris environements with exactly same database version and configurations.
I have created an intermedia index on following table as follows:
SQL>desc cc_job_offer_search_text
Name Null? Type
JOB_OFFER_ID NOT NULL NUMBER(38)
JOB_OFFER_SEARCH_TEXT NOT NULL LONG
TEXT_TYPE VARCHAR2(6)
Version for the database running in Solaris:
SQL> select * from v$version;
BANNER
Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
PL/SQL Release 8.1.7.0.0 - Production
CORE 8.1.7.0.0 Production
TNS for Solaris: Version 8.1.7.0.0 - Production
NLSRTL Version 3.4.1.0.0 - Production
Version for the database running in Windows:
SQL> select * from v$version;
BANNER
Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
PL/SQL Release 8.1.7.0.0 - Production
CORE 8.1.7.0.0 Production
TNS for 32-bit Windows: Version 8.1.7.0.0 - Production
NLSRTL Version 3.4.1.0.0 - Production
Index Creation scripts:
exec ctx_ddl.drop_preference('cica_lexer');
begin
ctx_ddl.create_preference('cica_lexer','BASIC_LEXER');
ctx_ddl.set_attribute('cica_lexer','printjoins','$_#@*&^%/\()');
ctx_ddl.set_attribute('cica_lexer', 'skipjoins', '-');
end;
create index JOB_OFFER_SEARCH_TEXT_IDX on
cc_JOB_OFFER_SEARCH_TEXT(JOB_OFFER_SEARCH_TEXT)
indextype is ctxsys.context
PARAMETERS('FILTER CTXSYS.INSO_FILTER format column text_type lexer cica_lexer' );
After index has been created, my search works fine in Windows environment, however it behaves irratically in Solaris environment (where data has been exported from the database on Windows environment, and I have checked that the data is identical).
Database Running in Windows:
SQL> select count(*) from cc_job_offer_search_text;
COUNT(*)
1200
SQL> select count(*) from cc_job_offer_search_text
2 where contains(job_offer_search_text,'Permanent')>0;
COUNT(*)
1094
Database Running in Solaris:
SQL> select count(*) from cc_job_offer_search_text;
COUNT(*)
1200
SQL> select count(*) from cc_job_offer_search_text
2 where contains(job_offer_search_text,'Permanent')>0;
COUNT(*)
1200
====> In fact it returned all records, which is not correct!
However, there are certain queries which are working fine in both environments.
Database Running in Windows:
SQL> select count(*) from cc_job_offer_search_text
2 where contains(job_offer_search_text,'Contractual')>0;
COUNT(*)
52
SQL> select count(*) from cc_job_offer_search_text
2 where contains(job_offer_search_text,'{Greater than $150,000}')>0;
COUNT(*)
20
Database Running in Solaris:
SQL> select count(*) from cc_job_offer_search_text
2 where contains(job_offer_search_text,'Contractual')>0;
COUNT(*)
52
SQL> select count(*) from cc_job_offer_search_text
2 where contains(job_offer_search_text,'{Greater than $150,000}')>0;
COUNT(*)
20
Any idea why it is behaving "irratically" in the database running in the Solaris environment, when I select certain search criteria wheras it works absolutely fine at times?If you really need to run 8.1.7, you need to upgrade to the latest patchset. I seem to recall a problem like this which was fixed in something like 8.1.7.4. Better still, go to 10g.
Maybe you are looking for
-
Hi I have Mountain Line with Safari 6.0.2. I used to open Facebook, Youtube, Twitter etc. and everytime I select "Stay signed in" "Remember my password" etc. but it doesn't save my passwords and everytime I have to sign in again. I never sign out fro
-
Java mapping for XSD Validation
Hello, I have developed a Java mapping to validate an XML based on XSD. I works fine and generates a message with error details. I would like to create a report with all errors encountered during this Validation and to stop this message from being se
-
After the upgrade, my Apple TV pretends to connect the HDMI to a USB connector...
-
Transfering from G5 to new MacBook
This week I bought a new MacBook. I travel for a living and wanted to bring my computer on the road and so I hooked up the MacBook to the G5 and got all the info and settings from my G5. Worked very sweet. Now I want to update the MacBook with any ne
-
Hi, I can remote connect and fileshare with my Mac mini through WAN with AFP and VNC. However, since some USB harddisks on the Mac mini is using FAT, I'm filesharing via SMB. This works perfectly on the LAN, but not on WAN (It's the same problem with