About query Operator in find page??
hi all~
I hava a trouble about query operator.
for example:
In find page , there are some attribute for query.
attribute BRAND for query the vender's name,
Assume database has the follow data:
BRAND
=================
1.IBM
2.RedIBM
3.BLUEIBMCO
Case 1:When i input IBM in BRAND attribute and press Find,the result is :IBM
Case 2:When i input %IBM in BRAND attribute and press Find,the result is : RedIBM,BLUEIBMCO
How could I get above two result just input IBM??
I want to serch the value of BRAND that contain IBM whether it location at the frond or middle.
Spray Lin,
I'm afraid that this time I do not quite understand what you are after.
When I understand you correctly, you are saying that the current behavior is not what I think it should be, for example IBM results in IBM and IBMblue. That is strange indeed.
Furthermore is it that when you try to find on IBM it should find everything with IBM in it? Said in other words, entering IBM should have the same result as entering %IBM%?
If that is the case, you can achieve that by adding an extra property to the find form bean: "wildcardUsage". Setting this to "surround" will result in a "%" being put in front and at the end of the value you enter.
You can look this up in the JHeadstart Developers Guide in the section Model-Aware Form Beans.
Jan Kettenis,
JHeadstart Team
Similar Messages
-
Unwanted query execution after Find page for the second time
My uix page comes find mode. After user inputs the criteria and clicks the find button, related rows comes. That is ok.
But, if user not input critera then press the menu button or if user clicks new row then cancel adding new row by pressing menu button, All rows in db table queried and first ten rows are displayed. How can I avoid this action? dont want to query all rows.
Thanks for your interests.
GokhanTo go production with a JHeadstart application you need a license anyway. The free download from OTN is an evaluation copy, and not intended for use with production applications. So, if you cannot have 10.1.2.1., you cannot have you system go into production ......
Steven Davelaar,
JHeadstart Team. -
How to find the backend SQL query of the JSP page in OIC
Does anybody how the best way to find the backend SQL QUERY of OIV JSP page?
How To Generate Trace Files in in HTML/JSP (using Profile Option)
Note: This requires proper responsibility to set SQL Initialization statement using Profile option.
Step 1. Login to the desired Form application.
Step 2. Select +Profile >> System ('Find System Profile Values' screen will pop up)
Step 3. Check 'User' and Type in the Username (in which the account for that user will be trace)
Step 4. Type 'Initialization%' in the Profile box and Hit 'Find' (Click here for preview.)
Step 5. In the User box, type the following statement and Hit 'Save' (Click here for preview)
BEGIN FND_CTL.FND_SESS_CTL('','','TRUE','TRUE','','ALTER SESSION SET TRACEFILE_IDENTIFIER = TESTING MAX_DUMP_FILE_SIZE = 5000000 EVENTS ='||''''||' 10046 TRACE NAME CONTEXT FOREVER, LEVEL 12'||'''');END;
Note: specify any name you like to identify your trace, in this case, testing is the end name on the trace. You can also specify the amount of data allowable to be in the trace, in this case, 5000000 is the amount set. Make sure you hit 'Save' afterwards.[Quotes in the statement are all 'Single' quotes.]
specifying TRACEFILE_IDENTIFIER value is mandatory when setting up the trace using the above profile option value
Step 6. Login to HTML / JSP page with username/password and start your flow. (Everything you do once login to HTML / JSP will get trace.)
Step 7. Logout of HTML / JSP application once you completed with your flow.
Step 8. Go back to the Profile option in the Form application and delete the Initialization SQL statement, and Hit 'Save'.
Step 9. Log in to the database server or login server and retrieve your trace file.
Identify and retrieve the trace file using the tracefile_identifier specified in Step 5.
In this case the tracefile_identifier is TESTING. (Click here for Trace file locations) *
Note: If you need to regenerate your trace or tracing a new flow, then repeat Step 1 to Step 8. To avoid self-confusion, choose a different name for your trace identifier everytime you set to trace.
Step 10. See TKPROF section on how to format trace file into readable text.
Trace Options Definition
No Trace Tracing is not activated
Activities will not get traced.
Regular Trace
(Level 1) Contains SQL, execution statistics, and execution plan.
Provides execution path, row counts as well as produces smallest flat file.
Trace with Binds
(Level 4) Regular Trace plus value supplied to SQL statement via local variables.
Trace with Waits
(Level 8) Regular Trace plus database operation timings that the SQL waited to have done in order to complete, i.e. disk access.
Trace with Binds and Waits
(Level 12) Regular trace with both waits and binds information.
Contains the most complete information and will produce the largest trace file.
****Send me an email to [email protected],I will share the document with you. -
Unwanted query execution before adding Find page restrictions
Hello,
When the JHS (10.1.2.1.27) application I made is started, the whole table content is queried without restrictions BEFORE the Find page has loaded.
Because it's a fair amount of data, I get out of memory messages.
I have used 2 specific settings that are related to this:
1) Property "Use Table Range?" has been turned off
2) Query Bind Parameters are used
Looking in the log files I noticed the following:
13:24:00 DEBUG (JhsActionServlet) -Request URI: /PppHseSisQuery/FindPppVLastBhy.do
13:24:00 DEBUG (JhsActionServlet) -Request Character Encoding: ISO-8859-1
13:24:04 DEBUG (JhsDataAction) -Executing action /FindPppVLastBhy
13:24:04 DEBUG (JhsDataAction) -Created searchBean map and stored on session
13:24:04 DEBUG (JhsDataAction) -Created new searchBean for PppVLastBhyUIModel and added to quick search bean map
13:24:04 DEBUG (JhsDataAction) -Stored searchBean for PppVLastBhyUIModel on request
13:24:04 DEBUG (JhsDataAction) -ViewObject PppVLastBhyView: value of bind param 0 set to null
13:24:04 DEBUG (JhsDataAction) -ViewObject PppVLastBhyView: value of bind param 1 set to null
13:24:04 DEBUG (JhsDataAction) -ViewObject PppVLastBhyView: value of bind param 2 set to null
13:24:04 DEBUG (JhsDataAction) -ViewObject PppVLastBhyView: value of bind param 3 set to null
13:24:04 DEBUG (JhsDataAction) -ViewObject PppVLastBhyView: value of bind param 4 set to null
13:24:04 DEBUG (JhsDataAction) -ViewObject PppVLastBhyView: value of bind param 5 set to null
13:24:04 DEBUG (JhsDataAction) -ViewObject PppVLastBhyView: value of bind param 6 set to null
13:24:04 DEBUG (JhsDataAction) -ViewObject PppVLastBhyView: executing query, bind parameter values have changed
It seems that the bind parameters get initialized in some kind of way at startup.
This is detected as a change in value apparently, after which the query execution is triggered.
So far so good. The problem is that my main query restriction is not related to any of the query bind parameters.
Because the Find page has not been loaded yet, this mandatory restriction has not been added to the searchBean yet and will therefore not be added to the view object's where clause.
The result is that all table records will be queried.
My question: Is there any way to prevent the query to be executed before the Find page has loaded?Have you tried setting the group checkbox "Auto Query?" to unchecked? This should prevent the query from executing before the find page is loaded.
Steven Davelaar,
JHeadstart Team. -
Some files in "DOCUMENTS" icon in dock won't open. Get msg saying "You need a newer version of Pages to open this document." Already have Pages 4.1 installed. Same files will open ok from Finder/Pages App./selected file. Prob not noted until recently after sync'd with ipad2 (Pages) when I installed iOS5. Anyone-- please?!
You have 2 versions of Pages on your Mac.
Pages 5.2 is in your Applications folder.
Pages '09/'08 is in your Applications/iWork folder.
You are alternately opening the wrong versions.
Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
Pages 5.2 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
Older versions of Pages 5 can not open files from later versions of Pages 5.
Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
Anything that is saved to iCloud and opened in a newer version of Pages is also converted to Pages 5 files.
All Pages files no matter what version and incompatibility have the same extension .pages.
Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
Apple has removed almost 100 features from Pages 5 and added many bugs:
http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
Rate/review Pages 5.2 in the App Store.
Peter -
Hi,
I've upgrade two of my customers to Exchange 2013.
On of them was coming from 2007, and the other was already running 2010.
Migration from both of the servers went good.
However with the customer which upgraded from 2010 to 2013 i'm experiencing strange OWA behavior:
When I login to OWA on https://owa.contoso.com/owa, and input my credentials and click sign in: I receive this error:
404
can't find page :-(
The page you're looking for couldn't be found on the server.
X-FEServer: JVBMAIL01
Date: 11-6-2014 11:54:48
Fewer details..
-> Refresh the page
In the addressbar, the following URL is displayed: https://owa.contoso.com/owa/auth/errorFE.aspx?httpCode=404
But... when I click: "Refresh the page" of just hit F5, the login proceeds, and my OWA is displayed and working fine.
This behavior only happens with my customer which was upgraded from 2010 to 2013.
The customer which i've upgraded from 2007 to 2013 doesn't experience this problem.
I've matched the IIS settings and redirect/ssl options on both servers. They are the same.
I've tried other users and i've experienced that on one user, the error message didn't appear.
When I try to delete the Exchange atributes from the user, (after exporting the mail to a PST file) and re-add the Exchange attributes, the message is gone. This isn't a solotuion however, since i've got 166 users, and about 150 of them, get the error message.
New users don't get the error.
Anybody got any clues?Hi,
From your description, I would like to verify the following thing for troubleshooting:
Please make sure that the authentication is set to Basic Authentication and Forms Authentication is disabled on OWA and ECP virtual directly in IIS. After the above settings, please restart IIS by running IISReset /noforce command.
Hope it helps.
Best regards,
Amy Wang
TechNet Community Support -
Few Questions About Migrating Site & Editing Many Pages at Once
OK. First things first. My manager doesn't want me listing
our company name in this post since we are currently trying to get
out of our hosting contract and she doesn't want to jeapordize
anything in case someone stumbled across the post by a search or
anything. FYI: I have Dreamweaver CS3.
So here's the deal. My company would like to move our site
away from this proprietary WYSIWYG online editor we have. The
current setup locks us into to this silly online editor for our
site and doesn't allow access to our files on their server. This
means that if I want to simply change the file name of a picture on
our site, I have to log in to their editor and go through about ten
stupid steps. The problem is, the site is dynamically generated.
Every page on the site looks something like this at the end:
default.aspx?pageid=9. Those links are permanently attached to
specific pages and the content on the individual pages rarely
changes. I tried using some offline downloaders to grab every page
of our site in case we move it elsewhere. When these pages are
downloaded, though, the file names change and it breaks all of the
links.
If I go into the code and change every individual link to
other pages and style sheets I can get it to look good.
So my first question is: is there a way to easily allow
Dreamweaver to import a couple hundred dynamically generated pages
and make them into static pages so that they just look like
"xyz.com/products.html"? Fortunately, our site is not extremely
large (maybe 250+ pages) so in an absolute worst case scenario I
could post a lot of the pages by hand.
My second question regards changing specific items across many
pages. Our current site contains the ability to place little
widgets into pages. This means that if we want a navigation bar on
a hundred different pages, we just edit the one entry for the
widget and every page changes. I'm sure this is possible in DW, but
I spent an hour trying to search online yesterday trying to find
info and didn't answer my question. Is this what templates are for?
I saw people mentioning Find All, but this didn't seem like a
perfect solution. I apologize if this is a very stupid question. No
one needs to take the time to explain the exact process to me, but
if someone could just tell me the name of the functionality and if
they know a specific resource to learn more about it, that would be
wonderful.
Whatever this functionality is, would I have to start over from
scratch with the pages? Or could I implement it with the current
site that's already put together? I'd be happy to convert the
site to static HTML if there's an easy way to change multiple pages
at once other than Find All and Replace.
Thank you so, so much for any help. I appreciate it. I just
want to make sure these things are possible before we start the
ball rolling down that path.I think I could answer your questions with just one answer so
here it goes.
What you need to do when making this type of mass move from
an online editor to DW would be to first download a copy of
everything you have just so you have a backup in case any mistakes
are made.
Next with the downloading of the files. You will need to log
in via FTP in Dreamweaver or via your file manager on the control
panel of your website. If you are unsure of where this is or how to
log in via FTP, you may need to contact your host for the login
information. Even though the files appear to be dynamic I do
believe that most editors would just store the pages separately and
just uses includes to make that work. However, if this is not how
it appears, post back with the name of the editor that you were
using.
Next, take one of the files you have. Based on the
description you are giving me it sounds as if they all look the
same just with different content (nav bar aside). If this is the
case you can create a template file in Dreamweaver. Within that
template you should place the content that is the same for all of
your pages. Then make one editable region for your content to go
into. These links can be found from the main toolbar for creating
editable regions and other template functions (which I believe
includes the navbar).
Also one thing to note with templates is that they will
automatically fix links on the pages when you save the template to
include new files via links. So you don't have to worry about
updating all of the pages all of the time. The only thing you would
need to update the individual pages for would be for the content on
those pages.
Hopefully this will get you started in the right direction.
But as I said in the beginning if you have trouble getting the
files off of the site post a bit more information about what you
have and hopefully someone here will be able to point you in the
right direction. -
About query not using extended knowledge base
Hello,
I compiled a small thesaurus to the knowledge base:
ctxkbtc -user dcenter/dcenter -name THES_PLACE
It contains:
GERMAN
USE FEDERAL REPUBLIC OF GERMANY
UF FRG
BT EUROPE
NT BAVARIAN
I have 2 record, 1 containing GERMAN, 1 containing BAVARIAN.
Field is indexed with a context index, and the index is synchronized.
I'm using 8.1.7.2 english.
Using an ABOUT operator, I always get 1 hit.
SQL> select count(*) from file_info where contains (places, 'about(BAVARIAN)') > 0;
The (9i) doc says:
When you augment the existing knowledge base with your new thesaurus, you query with the ABOUT operator which implicitly expands to synonyms and narrower terms.
How can I get the ABOUT query to expand to the narrower term in 8.1.7.2? Is this a bug, do I have to upgrade, or am I missing something?
ThanksHello.
Did you load the supplied english thesaurus as your DEFAULT thesaurus using the command line utility ctxload (or some other method)?
I had the same experience until I loaded the sample thesaurus in $ORACLE_HOME/ctx/sample/thes/. Now my ABOUT and SYN queries work as expected though I still have a concern about the incomplete nature of the sample thesauri (I'll open a new thread on that topic).
Hope this helps. -
How to display query result in seperated page.
How to display query result in seperated page, if the results are very big (more than 5000 records) and there are so many concurrent users (about 500 - 1000 users).
Are there any solutions or frameworks?
Plese help me .........
thanks,
--bhasinHi,
How to display query result in seperated page?I think RowSet will be the better technology to use in this
situation.For more information on this please visit http://developer.java.sun.com/developer/Books/JDBCTutorial/chapter5.html
which explains in detail about RowSets.
Hope this helps.
Good Luck.
Gayam.Srinivasa Reddy
Developer Technical Support
Sun Microsystems
http://www.sun.com/developers/support/ -
When navigating back from a Result page to its Find page the orginal query input disappears.
Is there an easy way to keep this input for refining queries? Or is this something for our wish list?
MartijnMartijn,
Are you using UIX or JSP? I am assuming UIX, because of your other question.
If you navigate back to the Find page using the tabs, you are right that the search values are gone (you could request an enhancement for it), but if you go back using the browser's back button, the search values are still there.
Could that be a solution for you?
kind regards,
Sandra Muller
JHeadstart Team -
Keeping my query rows on one page.
Please take a look at this URL
http://dev.tms-hq.com/tmsreport.cfr
and please tell me how to keep the query records on one page
and not have the type and category elements repeated on 2 pages.
Thanks so much.There's something covering the navbar on the About Me page. As soon as you get the navbar cleared it should work.
OT -
Confusion about backing beans and multiple pages
Hello:
I'm new to JSF and am confused by several high level and/or design issues surrounding backing beans. The
application I am working on (not unlike many apps out there, I suspect), is comprised of several forms which
collect various query parameters and other pages that display the query results via dataTables. Additionally, the
displayed results have hyper-text enabled content sprinkled throughout in order to allow further "drill-down" to
greater details about a given result.
Obviously, the initial forms are backed by a managed bean that has the getters/setters for each of the various
fields. From a modularization perspective, I'd prefer to have the query execution in a separate class entirely,
which I can accomplish via delegation or actionListeners. Where I get confused is in the case that one of the
hyper-text enabled fields needs to invoke yet another query requiring specific values from the original result.
In this case, how should I design the beans to store the pertinent selection information AND still be able to
have the resulting 'details' query in a separate class.
For example, let's assume that I have a form with a simple backing bean to collect initial query params. The user
fills out the form and clicks on submit. The action field of the <h:commandButton> tag inside the <h:form>
delegates to a method which performs the query and returns a navigation string to the results display page. The
results page then uses a <h:dataTable> tag to display the results. However, through the process of displaying the
results, it will create the hyper-text links as follows:
<h:form>
<h:commandLink action="viewDetails">
<h:inputHidden id="P_ID" value="#{results.id}"/>
<h:outputText value="Click here to see details"/>
</h:commandLink>
</h:form>Notice that the value="#{results.id}" is the key field (in some case I may need more than one) that the subsequent
details page will need to perform the query. However, this value is stored in the results attribute of the original
query backing bean. I do NOT want to add yet another level of queries into the same backing bean as I would like
to keep the original and details query beans separated for maintenance and style reasons. How then, can I get this
specific value ("#{results.id}") into another backing bean that could be accessed by the subsequent details page
and query? In general, how does one map a single display element to multiple backing beans (or accomplish the
effect of having one 'source' bean's value end up in another 'destination' bean's attr? If this is not possible,
then isn't the details query/page forced to use the same backing bean in order to get the data it needs? If so,
how can it determine which id was selected in this case?
I'd appreciate any thoughts, ideas and suggestions here! Is there a better way to design the above in order to
maintain the separation of logic/control? What is the 'best practice' approach for this sort of stuff?
Thanks much in advance!This is what I have done in the pass
<h:commandLink action="#{AppAction.getRecord}" >
<h:outputText value="#{bbr.id}"/>
<f:param name = "recordid" value ="#{bbr.id}" />
</h:commandLink>
within the getRecord method
String key = "";
FacesContext facesContext = FacesContext.getCurrentInstance();
ServletContext servletContext = ServletContext)facesContext.getExternalContext().getContext();
key = (String)facesContext.getExternalContext().getRequestParameterMap().get("recordid");
then call you dbmethod passing in the key of the record the user wants to edit
and then simply return a string to what page you want the user to go to
I think this is what your looking for -
I would like to use a dynamic (from database table) choice field in a find page. How can I do this manualy on most easy way with JHeadstart framework, because I can see JAG doesn't generate them?
You could add a hardcoded choice field to your find page, and create your own DataAction java class to deal with the selected value.
Are you generating JSP or UIX?
And can you explain a little more about the functional requirement? Do you want to show a choice field with values from a table that is not directly related to the data you are searching in that page? How should it influence the search? Can you give an example based on the HR schema?
kind regards,
Sandra Muller
JHeadstart Team
Oracle Consulting -
Problems about query filter (BEx).
Hello there,
I have some problems about query filter (BEx).
I have master data and I want to use attribute in this master data to dynamic filter in query(BEx).
But this attribute is key figure. I can't done it now. TT
Is this possible? If yes, could anyone advise how this is to be done?
Thanks in advance.Hi
In BEx there is option as 'Exceptions' & 'Conditions'. If you go in condition, you can specify range for key figure output. This is either predefined or by user selection. You create the condition as per your requirement & it will show you filtered data.
How to create conditions you will find easily on this site.
You can create as many conditions as no of filters you want. You can create these at query level also at report output level. -
RequestTimeoutException during a InvocationService#query operation
Hi,
I would like to know how Coherence will handle the case where during an InvocationService#query operation that executes the operation in several cluster nodes and while many of the nodes finished the operation before the request times out others fail due to the timeout. In other words, will I get a Map with the result of those nodes that finished the operation or will I get a RequestTimeoutException and no results?
Thanks,
-- GatoHi Gato,
If you look carefully at the RequestTimeoutException Javadoc, you will notice a method getPartialResult(), which serves exactly the purpose you asked about. It allows you to have your cookie and eat it too - you will know that some node(s) timed out, but will be able to see results by nodes that executed timely.
Regards,
Gene
Maybe you are looking for
-
Okay, I posted this already, and have had no one help me. I posted this 2 days ago!!! Original post: http://forums.adobe.com/message/5314268#5314268 Please. If I'm missing something, let me know. If there's help, where is it? Where's Adobe's prompt h
-
I have a database table where it keeps record of the transaction when it starts at StartTime and when it ends at EndTime. Both these entries are having the timestamp entries. Say for example, I have a tuple with Entries like 'Transaction A' starts at
-
How can Hong Kong addresses be displayed correctly in Contacts?
The address format used in China is the reverse of that used in the West, with the country displayed first and with the street address on the last line. Hong Kong is politically part of China, but uses the Western address format. Unfortunately, on up
-
I get message sayng that the card is not accepted at the particular store
-
Why do I get an error message saying Cannot Get Mail?
Why do I get this message - Cannot Get Mail - Connection to server failed?