Easy with a dropdown and he user wont have to worry about * placement.
Create a dropdown with the CONTAINS, STARTS WITH, ENDS WITH
filter:
(<param>='CONTAINS' AND <Field> LIKE '%<param2>%' ) OR (<param>='STARTS' AND <Field> LIKE '<param2>%') OR
(<param>='ENDS' AND <Field> LIKE '%<param2>')
If you bought the software you should be able to go to the cognos.com support section and download the pieces you have purchased.
If not you need to contact support and see if they can help you. Nothing much you can do with the wrong software. FM in Cognos 8 is very different then RN1.1 FM
run each query's tabular data and see how long it takes to return. If they are all very quick then it is more then likely a formatting issue.
To prove this take the query you have and drop them into a new list report without any formatting and run.
Always.. Never skip it.
If you are going to skip it you may as well just run your query in toad or query analyzer. Creating a real report from pure sql would be a nightmare to maintain.
change your filter to what you have there.
"[PA Purchase Order Detail].[Material].[Material Identifier] like (?Material1%?)"
A LIKE filter would work best with a text box or similar. Where the user manually inputs the string.
You can make a new drop down list that has 3 static values,
?Parameter1?
STARTS WITH
ENDS WITH
CONTAINS
Create your filter using these values
(?SearchType?='Ends With' AND [DataItem] LIKE '%'||?Parameter1?)
OR
(?SearchType?='Contains' AND [DataItem] LIKE '%'||?Parameter1?||'%')
OR...
the problem is you are lopping through the entire result set. So your drop down is doing multiple <forms> instead of adding to just one form and one drop down.
the ELSE needs to only show the form element one time. Maybe if $count=4 then echo "<form" "select" <option first option... ELSE option...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.