Dynamic search
Hi allI develop the dynamically search page, but when I'm looking for with two fieldds, I got an exception.
When I search either BatchID or customer ID I got the data, but when I give the two BatchID and customerId I got below exception.
Exception:
java.sql.SQLException: ORA-00936: lack of expression
Please find the code once below:
I think we need to make some changes in VOImpl.java
CO code:
If (PageContext.GetParameter ("Search")! = null)
{
"String vBatchID = pageContext.getParameter ("BatchID")! = null? pageContext.getParameter ("BatchID"):" ";" "
"String vCustID = pageContext.getParameter ("CustmeCode")! = null? pageContext.getParameter ("CustmeCode"):" ";" "
System.out.println ("cust in PR id:" + vCustID);
Validate to ensure at least one parameter is provided
If (vBatchID.length () == 0 & & vCustID.length () == 0)
{
throw new OAException ("Please enter at least one parameter of customer research Information", OAException.WARNING);
}
[Serializable] param = {vBatchID, vCustID};
pageContext.getApplicationModule (webBean) .invokeMethod ("srchCIF", param);
}
AM code:
' public void srchCIF (String pBatchID, String pCustID)
{
System.out.println ("I'm in srch CifAM,");
System.out.println ("The package ID", + pBatchID);
System.out.println ("The Cust ID" + pCustID);
XxcustordhistVOImpl srchCLID = getXxcustordhistVO1 ();
if(srchCLID!=null)
{
srchCLID.initQuery (pBatchID, pCustID);
}
}
code vo:
' public void initQuery (String pBatchID, String pCustID)
{
System.out.println ("I'm init request");
int counter = 0;
setMaxFetchSize(-1);
setWhereClause (null);
setWhereClauseParams (null);
First check if the name is provided and add where clause
If (pBatchID.length () > 0)
{
setWhereClause ("BATCH_ID = '" + pBatchID + "'"); Here I think we should change the code
counter ++;
}
If (pCustID.length () > 0)
{
if(Counter==0)
{
setWhereClause ("CUSTOMER_CODE = '" + pCustID +"'");
counter ++;
}
on the other
{
setWhereClause ("and CUSTOMER_CODE = '" + pCustID + "'");
}
} //end if (pLastName.length () > 0)
executeQuery();
System.out.println ("I'm to execute query");
}
}
Everything that could help me please on this.
Thank you
Published by: 865730 on July 20, 2011 08:44
Hello
Use the s1.integerParseInt () method.
Kind regards
GYAN
Tags: Oracle Applications
Similar Questions
-
Hello
I have an application that contains a search engine that contains 10 boxes with different 10 other unique column in the database. So I'm looking for an application that can perform a table according to the data filled in these boxes. Data could be like this
First box is empty, the second box contains data, third box, 4th, 5th contains data and a mixture of full and empty boxes. Can you please guide me how to write the query. Its a sort of advanced search
And what was wrong with the wire that you have already opened on the same topic?
-
Post: Dropdownlist dynamic Search Page
Hello
DW CS3, PHP MySQL DB on Win XP Prof
One of my web sites, I have a Recordset.
I want to perform a search on 3 or 4 drop-down lists.
The values in the drop-down list number 2 of the list must be the result of the choices in the drop-down list on 1; 3. must be the result of choices made in 2 and so on until you get a result. If I understand correctly, the page refreshes after each choice to have a list based on the choice of the previous page filled automatically drop-down list.
Can someone tell me please to something like that?
Kind regards
Deon
Hi DeonH:
You can call this blatant self-promotion (I'm the author), but here's one
link:
http://www.tecnorama.org/go?62
The bad news: it's not free (sorry).Other excellent options supports php/mysql are:
Felice Di Stefano (Felixone):
http://www.felixone.it/extensions/prod/mxdmen.asp
WebAssist:
http://www.WebAssist.com/Professional/products/ProductDetails.asp?PID=1HTH,
Andres Cayon
Spain Adobe Dreamweaver user group
http://www.dwug.es
----------------------"DeonH"
escribio en el news message
News:fjeg7p$F81$1@forums. Macromedia.com...
> Hi there,
>
> DW CS3, PHP MySQL DB on Win XP Prof
>
> One of my web sites, I have a Recordset.
> I want to perform a search on 3 or 4 drop-down lists.
> Values in the drop-down list number 2 of the list must be the result of choice in
> drop
> 1; 3. must be the result of choices made in 2 and so on until you have
> a
> result. If I understand correctly, the page refreshes after each choice to have a
> auto
> populated drop-down list based on the choice of the previous page.
>
> Can someone please tell me something like that?
>
> Best regards,
> Deon
>
> -
Dynamic group membership query
Hello
I'm looking to set membership in a group for an existing installation of EM.
I don't want to use administrative groups that we have really not state of the lifecycle or other properties of the set target, and I don't want to put everything right now (we have several targets on single servers, over 100 on 1 Server).
Therefore, I was interested in the use of dynamic groups for DB services, e.g. dynamic group DB_APP1 where target name was like '% APP1.
I do not see this property in the dynamic groups, rather dynamic group properties are determined by the membership criteria (e.g. target =, on the host type = y)
vs
The normal groups where I can search for all the targets called "APP1%.
is there any criteria of dynamic search by name of the target in dynamic groups?
Thank you
Looks like we don't have direct Option.
http://docs.Oracle.com/CD/E24628_01/doc.121/e25353/whats_new.htm#EMCON142
2.2.3.1 dynamic groups
Note:
This feature was new in Enterprise Manager Cloud Control Release 2 (12.1.0.2).
Dynamic groups to create groups based on membership criteria. Criteria for membership is based on the properties target as target type, the life cycle State, Department, target version and so on. Targets whose properties match the criteria of a dynamic group are automatically added to the dynamic group.
Dynamic groups facilitate management groups. Administrators do not have to define the criteria for membership in the group only once and Enterprise Manager automatically adds or removes the target to or from the appropriate dynamic group.
But,
We can choose based on observation, while adding, if mention us the search string in the comment as "APP1" and mention that the same comment of the dynamic group will help.
Concerning
Krishnan
-
Hello
I have a requirement to dynamically change the Image of Action column based on the employee.
Like I know we can do it at the page level. But I have this in the code bcz my created Dynamially page.
For this I created SwitcherRn dynamically.
Query: SELECT DECODE(USER_NAME,'RAMESH','UPDATE',USER_NAME) as ACTION_PERFORMED, "+ Table +". *, OF "+ table;
I used the code:
OASwitcherBean SwitcherRN = (OASwitcherBean) createWebBean (pageContext, OAWebBeanConstants.SWITCHER_BEAN, null, "SwitcherRN");
OAImageBean UpdateImage = (OAImageBean) createWebBean (pageContext, OAWebBeanConstants.IMAGE_BEAN, null, "UpadeImage");
UpdateImage.setSource (OAWebBeanConstants.APPS_MEDIA_DIRECTORY + "yellow_diamond.gif");
UpdateImage.setWidth("8");
UpdateImage.setHeight("35");
UpdateImage.setID ("UPDATE");
If (SwitcherRN! = null & & UpdateImage! = null)
{
SwitcherRN.addIndexedChild (UpdateImage);
TableBean.addIndexedChild (SwitcherRN);
}
Its nt showing the Image.
Pls help me.
Thank you
Nani :)Hi Nani,
I sent that code you on your mail Id to the two switch as well with regard to the dynamic Search Page.
My controller code was:
Am = (OAApplicationModule) pageContext.getApplicationModule (webBean) OAApplicationModule;
am.invokeMethod ("initQuery2");
OAQueryBean q = (OAQueryBean) webBean.findChildRecursive ("region.2");OATableBean tb = pageContext.getWebBeanFactory () .createWebBean (pageContext, TABLE_BEAN, null, "Tbl") (OATableBean);
tb.setViewUsageName ("View1_1");
tb.setNumberOfRowsDisplayed (10);
ATV OAMessageTextInputBean = pageContext.getWebBeanFactory () .createWebBean (pageContext, MESSAGE_TEXT_INPUT_BEAN, OAWebBeanConstants.VARCHAR2_DATATYPE, "Col1") (OAMessageTextInputBean);
mtb.setViewUsageName ("View1_1");
mtb.setViewAttributeName ("Ename");
mtb.setPrompt ("Ename");
tb.addIndexedChild (mtb);OASwitcherBean SwitcherRN = (OASwitcherBean) webBean.findChildRecursive ("region.4");
createWebBean (pageContext, OAWebBeanConstants.SWITCHER_BEAN, null, "SwitcherRN");
SwitcherRN.setViewUsageName ("View1_1");
SwitcherRN.setViewAttributeName ("Switcher");
SwitcherRN.setLabel("Image");//.setText("Image");
SwitcherRN.setRendered (true);tb.addIndexedChild (SwitcherRN);
webBean.addIndexedChild (tb);
tb.prepareForRendering (pageContext);
tb.queryData (pageContext);Kind regards
Out Sharma -
I created a project, and the output is in WebHelp. Can I display the table of contents in a format automatically expanded?
There are only two ways I know to achieve this.
Method is to use the option "Section 508". But if you do this, you lose the recount and the Index and dynamic search.
The other is to create a table of contents that has no books and pages only.
See you soon... Rick
-
findComponentInRoot Vs bindingComponent (Performance)
Hello
Don't find a component by id from the FacesContext effective root or link a component to support bean and aid is better? I was wondering if findComponent has more impact performance because of all the iterations and extraction of the root? What is recommended and ideal scenarios to use one of them? Appreciate your thoughts. Thank you!
Jdev v 11.1.1.6.0
Hello
experts like Steven Davelaar and JavaServer Faces purists promote dynamic component research, while others - including me - say it depends on the number of searches in the element, the depth of the tree of components to search in (for example to do a search for the absolute root of view user interface or in relation to a component using findComponent()).
Load memory linked with a reference link is the beans of Java that is instantiated for the view and - of course - lifecycle dependencies (if you try to share the same bean managed to bind the components on the different points of view - subsequently visited - you face a problem with the release of bean and rear post behavior.) So using managed beans you create separate beans (beans, they are if you use the backup component links) for each view, which bloats the code base.
So if you use look-up component frequently on different points of view then a dynamic search seems to be the best choice (especially if you don't always start from the root of the user interface, but relative to a component (for example an a button).) If you have a managed bean that is associated with a view anyway, then use a binding component sounds right.
Personally, I use component links in all my samples because they are faster to build and easy to use. I would do the same thing in a real-world application? probably not and I would dependent on use case (and the frequency of searches)
Have a look here to simplify your search for component Dynamics
ComponentUtils (Apache MyFaces Trinidad)
Frank
-
What version or updated for PS CC do I need to have to ensure that the new features mentioned on June 18, i.e. the police, improvement of object queries Gallery blur, dynamic search, etc. ?
To expand on what Chuck has said, Photoshop CC 2014 is a separate facility available in the creative cloud tool...
-Christmas
-
Hello
I have a background of table which is:
CREATE TABLE TRAINING
(SET THE STATUS TO VARCHAR2 (128 BYTE) NOT NULL,)
ACTIVATE THE DELETED NUMBER (1.0) NOT NULL,
THE PLAN_ID NUMBER ARGUMENT (10,0) NOT NULL ACTIVATE.
ACTIVATE THE VARCHAR2 (128 BYTE) TEXT NOT NULL,
COUT_PREVISIONNEL NUMBER (13.2).
DATE OF DATE_CREATION)
Values inserted INTO THE TRAINING (D, 0, 10, SOFTECH, 2000000, sysdate),.
(G, 0, 12, SOFTECH, 3000000, sysdate), (G, 1, 19, TECHNOLOGY, 60000, November 10, 10)
Here, I lead a dynamic search that will allow the front-end on PHP receive the string in this form:
(STATUS = G; statut_option = 2; LABEL = SOFTECH; COUT_PREVISIONNEL = 2000000) this chain of values represents the State requests and return the result as shown below:
RESULT:
STATUS PLAN_ID WORDING COUT_PREVISIONNEL
D 10 SOFTECH 2000000
G 12 SOFTECH 3000000
19 60000 G TECHNOLOGY
I'm under 10 gr 2 on Windows Server.
Kind regardsYet another example:
declare params varchar2_table; l_pair varchar2_table; begin --getting param=value pairs params:= xt_regexp.split( 'STATUT=G;SUPPRIM=0;PLAN_ID=12;LIBELLE=SOFTECH;COUT_PREVISIONNEL=3000000;DATE_CREATION=16/11/2010' , ';' ); --for all pairs for i in params.first..params.last loop --splitting param name and param value l_pair:=xt_regexp.split(params(i),'='); -- just printing it dbms_output.put_line('Param name = '||l_pair(1)); dbms_output.put_line('Param value = '||l_pair(2)); end loop; end;
Result:
Param name = STATUT Param value = G Param name = SUPPRIM Param value = 0 Param name = PLAN_ID Param value = 12 Param name = LIBELLE Param value = SOFTECH Param name = COUT_PREVISIONNEL Param value = 3000000 Param name = DATE_CREATION Param value = 16/11/2010
-
I found this article on Creative Cow. An interesting read and one in the overall good review for Adobe.
Most of the good stuff will be long unsurprisingly date first users, and most of the bad things are not so if you're already used to the way Adobe organizes (although in some cases, have not to bad for the Adobe development team)! Enjoy.
http://library.CreativeCOW.NET/kobler_helmut/FCP-vs-Premiere-Pro/1
Some highlights for the FCP-to-PP busy wannbe.
"I was impressed by how much more before first has been compared to Final Cut 7 (import of native images of the Mercury engine performance and tight integration with other essential tools)". ""
"First overall layout is very Final Cut-esque."
«Adobe makes it easier for Final Cut users try the first, thanks to the inclusion of a model inspired by Final Cut keyboard shortcuts»
"... it is very nice not to transcode to ProRes media."
"There's a dynamic search field in the project window. It's a bit fast erand easier than those awkward Final Cut... find function.
"Adobe has got religion about metadata. "It is a nice improvement on Final Cut 7, which has virtually no metadata between support applications (unless you use also keeping it cancelled Final Cut Server).
"First editing tools work a bit like Final Cut. All the essentials are there. "
"If I had tried to do this work of heavy effects with After Effects and Final Cut, I think that would need me an additional 2-3 days of redisplay and importation of the effects."
"When I imported a Photoshop file and under the direction of chronology first, any change I made later to the file automatically would reflect on the Timeline"
"I regularly downloaded small samples of my video to an FTP server to the customer for review. Fortunately, doing whatever it was just as easy with the first. »
"When I exported video creation or Adobe Media Encoder, two applications speed up things considerably by using all the carrots in my Mac Pro 8-core." It was very nice, after the years of compressor observation ignore most of the horses of my Mac. »
"When you export video directly from first or use Media Encoder, you can embed videos exported with a ton of metadata. Compressor can not touch that. »
"I can certainly say that the First Contact with first was impressive and persuasive. '" And beyond the application itself, I have much more confidence in the ability of Adobe to offer professional solutions I do Apple. »
-
Currently, I work with the dvr here feature, I need to put the search bar for the video. This could be used to look for a video at the particular position. I don't know how to set the maximum on the dynamic search bar (as its maximum duration of DVR will be increased if video editing is continuous). I think that via the metadata that we can get the total time of video Tell me how to call the metadata to the outside. Thanks in advance.
I suggest you go through the DVRCast application @ http://www.adobe.com/products/flashmediaserver/tool_downloads/ . There DVRCastPlayer that plays content DVR, you can see that it uses the DVRManager class which is basically all of these animals you need.
-
Ladies and gentlemen,
Today my desktop support tech told me that it will install Windows XP on my PC next week because the company has so decreed for everyone.
After maybe a year of courses, "Tsk, tsk," read on XP problems in the forum, now I'm rounding up all of the documentation I can find - not to stop XP, because it is futile, but that this system forced thwart me and my readers to WebHelp.
Here's an overview of what I collected sites and messages from members of the forum. If I forgot something, please respond here.
Thank you.
Harvey
The Internet Explorer in XP SP2 information bar
A technical note from Miscrosoft, he suggests ways to eliminate some of the problems in these areas:
- Snap snap-in installation prompts
- -Pop-up blocked notification
- Guests of automatic download
- Blocked active content
- ActiveX blocked due to security settings [li]
He also said, however,
Important You can disable the information bar in Internet Explorer by lowering the default security settings. However, we strongly recommend that leave you these security settings to their default level or higher value. The security settings by default in Internet Explorer are designed to help protect your computer against viruses and Internet attacks.
A technical note to Adobe/Macromedia on the InfoBar
()http://www.adobe.com/cfusion/knowledgebase/index.cfm?event=view & id = KC.rb_99740 & extid = rb_99 740()
These two parts cover these problems:
- Cannot open WebHelp on my PC after generating HR.
- Some of WebHelp display features are disabled, such as indexing and dynamic search.
- Blocker for popups flags almost all useful for WebHelp, which requires authorization by point or drop the domain on the whitelist. [li]
Useful threads in this forum:
Blocker popups in XP SP2 and help on the Web
()http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=447 & threadid = 985045 & erthread ent = y( )
Popup Blocker prevents...
()http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=65 & catid = 451 & threadid = 1020871( )
They have links with other threads on related issues.
It seems that the essential is for all users to access the security settings in XP and IE and use at their discretion.
Comments?
Hello hicham
Where is stored your WebHelp? How your users can access?
My reason for asking is because often, the FUD (fear, uncertainty and doubt) is totally unfounded. XP introduced all these stuff? Sure! But that ONLY happens IF your users each have their personal copy of WebHelp, installed on their PC and are accessed in this way. I'm guessing that this is rarely the case. WebHelp, by its very nature is best served (pun completely intended) to a server. This is normally the way users view. When your users view WebHelp in this way, they should not never met this pesky yellow information bar.
- Snap snap-in installation prompts
-
Indexing on search for regular expression for dynamic model
Hi all
Is it not possible to create an index for the regular expression search (REGEXP_LIKE) for the model 'dynamic '?
If the model is static, we can create FBI, but is it possible for dynamic diagrams? Please notify.
Kind regards
HariN °
The best option is an Oracle text index.
http://download.Oracle.com/docs/CD/E11882_01/text.112/e16594/TOC.htm -
APEX 4: Dynamic Action to manipulate a search string in the interactive report
Hello
I have the following problem. I have an interactive report that shows a few columns and one of them has a barcode that has been saved as a numeric value for display in the column is something like ("123456789"). All works fine so far. If anyone 123456789 they will get the right line and all is well. Unfortunately if I scan in the barcode with a barcode scanner, he enters '01234567890'. I don't have nor the ability to reprogram the scanner BC and I can't change how the data gets displayed.
So I thought I would create a dynamic action that is triggered when the contents of the textfield object change. So, I've created a dynamic action, selected jQuery and entered .apexir_SEARCH and the Change event.
I then chose to run JavaScript and entered as cod:
var newsearch = document.getElementById ('apexir_SEARCH').value.replace (/ ^ [0] + / g, ");
var inputObj = document.getElementById ("apexir_SEARCH");
If (inputObj)
{
Update of the value
inputObj.value = newsearch;
}
So far so good. When I load the page and enter a value from a '0', it works like a charm and it removes the zero. But if I delete again on the page and the search filter, dynamic action will do nothing. I'm really confused, as if I just made a mistake in the JavaScript code or what is the reason, that the action runs only the first time. I have to reload the page and then it will still be to manipulate the string once, but the second time, it won't.
I'm very happy for any help you can provide!
Thank you
DennisHi Dennis,
The thing that comes to mind is to check that the scope of the event of dynamic action is 'live '. If it's on (default) bind, then when a partial page refresh occurs, action will not fire the first time. Direct fires each time.
Hope this helps
-
Search for an item that is created dynamically c ++
I use ComponentDefinition to create a page.
ComponentDefinition { id: preferences objectName: "preferences" Preferences { } }
C ++ I want to find this component, how do I do that?
I tried several approaches with objectName, but none were successful.
-put objectName in the definition (as seen above)
-put objectName into the brackets of the above preferences
-put objectName in the Preferences.qml
That's how I try to find page:
Page* preferences = root->findChild
("preferences"); What I want to achieve is to broadcast a signal from the qml page dynamically created, which connect to a slot machine c ++ and fill the qml of c ++.
There is an example in the link that they provided;
In main.qml:
https://github.com/BlackBerry/Cascades-samples/BLOB/master/locationdiagnostics/assets/main.QML
Maybe you are looking for
-
Satellite L20-214: Does recover CD contains the Win XP Pro
Hello I have a PC laptop toshiba satellite L20-214, it came with windows xp pre-installed 2, so I don't have a CD of Windows XP2.I want to format and reload windows XP2. The recovery of the supplied product disc with the laptop there Windows XP2 on i
-
How save multiple tabs as a bookmark?
I find the Tabs (Pages) reopen last opened is great, I used it as Favorites. However, if my system crash or I need to reinstall the OS or something else - all tabs have disappeared and I can't transfer the addresses of tabs like bookmarks don't. Y at
-
Packed error Library Project: contains the compiled code
I have tried to understand how the packed library works for LVOOP, but facing a wall with an error and do not know how to solve. (i) I did a "class 1", I then put in a library called 'library'. (II) I create a library packed and put the top-level lib
-
BlackBerry Smartphones can send/receive emails via my blackberry curve
Hi I'm new to this forum and am not a user, even if were using a older Bay to work emails for the last 3 years; just got this new bberry lcurve ess than a month ago at best buy and they have set up to receive emails from my 2 separate and personal Tr
-
How to download Windows 7 Home Premium OA
I bougth a toshiba computer with Windows 7 Home Premium OA preinstalled but the recovery partition has been deleted. I have the product key. What can I do to get Windows 7 Home Premium OA download and reinstall again?