How do I reed a carrige return from a JTextArea
How do I reed a carrige return from a JTextArea, as i would like to hadel this with a button press event.
Try adding a keyListener and use the appropriate method to get the key used from the passed in KeyEvent
public void keyPressed(KeyEvent e) {
if(e.getKeyStroke() == KeyEvent.VK_ENTER) {
... // the rest goes here. Please check this code for it is not tested
}ICE
Similar Messages
-
How to check if the approver returned from AME is the last apporver
Hi,
I have setup multiple Approval Groups which uses a query to derive the approver list. Each Self Service HRMS transaction is attached to a different approver group.
My requirement is to write a function in Workflow to check if the approver returned from AME is the last approver of the group.
Please let me know how I can achieve this.
Thanks,
Rachanathere is some seeded attribute like is_last_approver. Check the value if this returns tru then it is last approver
-
Periodic Alert-How to send all the records returned from the SQL in a mail?
Hello all,
I have defined a Periodic Alert, my SQL query returns more than one record whenever I run it. I also defined an action to send an email with the message consisting of the output variables from the SQL. Whenever i run this alert, a mail is being sent for every single record returned from the query. But i want to send a single mail containing all the records information that my SQL query returns.
For Example: My SQL query lists all the users created on current date.
Select User_Id, User_Name into &OUTPUT1, &OUTPUT2
from fnd_users where trunc(creation_date) = trunc(sysdate)
Now i want to send a mail with all the users information from the above query, to SYSADMIN. How can this be achieved?
Thanks & Regards
chakooHi Chakoo,
If the Periodic Alert is not working as requried. You can write a simple package with 3 procedures to implement the writing output to a out file and simultaneuosly send email to multiple receiptents.
Example:
Create Package xx_pac
Create public Procedure P1
begin
Select User_Id, User_Name into &OUTPUT1, &OUTPUT2
from fnd_users where trunc(creation_date) = trunc(sysdate)
fnd_file.put_line (fnd_file.output, &OUTPUT1, &OUTPUT2);
end;
(Create private Procedure P2
begin
---Write the email package using the UTL_SMTP approch. Using this approch you can send the procedure P1 output file as an attachment to the desiginated receiptents.
end;
(Create public Procedure P3
begin
---call the procedure P1 using the "g_request_id = fnd_request.submit_request"
---Wait for the above procedure to complete using "l_conc_status := fnd_concurrent.wait_for_request" procedure.
---call the procedure P2. (When called you must provide the correct to, from address)
end;
end;
Register the Package xx_pac as a concurrent program and schedule when submit it from the request.
Regards
Arun Rathod -
Dynamic Pages: how to overide the default format returned from the oracle query.
When writing a dynamic page, portal always displays any return from a database query in a default format or grey background table:
<TABLE border="0" cellspacing=0 cellpadding=2 style="background-color:#E0E0D0">
<TR>
<TH ALIGN="LEFT" style="background-color:#C0C0A0" > </TH>
</TR>
<TD ALIGN="LEFT" valign="TOP" WIDTH="0">
Is there anyway to change this or this how the
function
PORTAL30.wwv_render_report.show always works?
Thanks in advance!James,
Please see posting http://technet.oracle.com:89/ubb/Forum70/HTML/000073.html.
Just a reminder, please search the forum before posting your question. It's quite likely that someone else has already asked the same question.
Regards,
Jerry
null -
How to create COGSuFF0Cwhen goods was returned from customer
Hi,
goods which deliveried from nonvaluated sales order stock was returned from customer and reduce revenue and AR.
so, we need do following process:
create returned sales order〉delivery note and goods receipted-〉billing
the goods can be receipted in sales order stock ,and can be invoiced .
but how to create COGS with returened sales order for nonvaluated sales order stock?Hi
T-CODE :MR21 ,It is used to change the standard price ,we are in the environment that make to order with nonvaluated sales order stock ,so donu2019t need do standard coting .
I konw : With a nonvaluated sales order stock, inventory changes are not reflected in Financial Accounting. The sales order stock is settled to Financial Accounting only after results analysis and settlement of the calculated values (results analysis data) .
for normal process , if billing was created ,then do results analysis and settlement of the calculated values ,COGS will be post in financial accounting
for returen prcoess :
1. created returen sales order and referenced origin billing document.
2. create delivery note and goods receipted in sales order stock which was deliveried to customer stock
3. create billing document and revenue posted in financial accounting
4. do results analysis with returen sales order ,the system show error message: W KJ 816 No object was selected
when used the orign sales order to do results analysis ,but without any change to save !
how to post COGS in financial accounting ,when goods was return from cusromer in the environment that make to order with nonvaluated sales order stock ? -
How to determine the error code, returned from LDAP server
I use the next code for connect to LDAP server:
try{
ctx = new InitialLdapContext(env, null);
//if connection successfull ...
} catch (NamingException){
//if error occured ...
}Is it possible to determine the numeric error code, returned from server?I was just working on using openldap, binding to it and checking for expired passwords and locked accounts and it looks like that an AuthenticationException is thrown in these circumstances and the ctx is null so it is not possible process connection response controls. But you can look at operation attributes if you have password policy enabled and you are looking for these type of errors
-
How to automatically actualize UWL after return from WebDYNPRO?
Hello,
in the universal worklist (uwl) i have configured a workstep to open a Web Dynpro application instead of the SAP GUI. This works fine and i can process the Workflow.
But after processing of workstep I returns to the UWL using
WDPortalNavigation.navigateAbsolute( "ROLES:portal_content/tm.eop.fd.eop_root/tm.eop.fd.content_root/tmcz.eop.fd.tmcz_root/tmcz.eop.fd.my_workspace/tmcz.eop.ro.my_workspace/my_workspace/tmcz.eop.iv.uwl", WDPortalNavigationMode.SHOW_INPLACE,
(String) null,
(String) null, WDPortalNavigationHistoryMode.NO_DUPLICATIONS,
(String) null,
(String) null,
(String) null);
In the UWL there is non relevant item (item that was processed in WebDynpro) and it angers users.
It is possible to actualize UWL automatically after return from WebDYNPRO application? WebDYNPRO is opened in the same window and frame as UWL.
Thanks for your help.
Ondrej LednickyFollowed what vinay and Timo sugguested:
One solution is to use a af:dialog in the popup where you define a dialogListener to catch the outcome of the dialog and if it's OK you call your other method.
I wrote method code in back bean like this:
public void refreshBillFromDialog(DialogEvent dialogEvent) {
// Add event code here...
if (dialogEvent.equals(false)){
return;
AdfFacesContext adfFacesContext;
adfFacesContext = AdfFacesContext.getCurrentInstance();
adfFacesContext.addPartialTarget(Bill4NewReceiptPending);
//actionEvent.getComponent().processUpdates(FacesContext.getCurrentInstance());
BindingContainer bindings2 = getBindings();
System.out.println(" refreshBillFromDialog:bindings2: "+bindings2);
OperationBinding operationBinding2 = bindings2.getOperationBinding("ExecuteWithParams");
Object result = operationBinding2.execute();
if (!operationBinding2.getErrors().isEmpty()) {
return ;
And it works: the adf table(Bill4NewReceiptPending) in the calling page will be refreshed after the dialog popup was closed!
Thank you all!
What's more, I found even if I use bounded workflow calling instead of using popup dialog calling, the returnListener wasnot executed either.
And there is still a issue in the popup Dialog: The strange behavior of checkbox selection, see the thread:
Why the page cannot refresh correctly after making checkbox selection?
I tried and put aside for some days, and have no idea yet.
Can anyone give helps?
Thanks! -
How to capture all the rows returned from a sql select query in CPO
Hi,
I am executing an sql select query which returns multiple rows. I need to capture the values of each row to specific variables. How do I proceed.
Thanks,
SwatiThe select activities ("Select from Oracle," Select from SQL Server," etc.) against database already return tables. Use one of the database adapters to do your select, and it will already be in a table form. Just put your query in the select and identify the columns in your result table. The online help or the database adapter guides in the product documentation can help.
-
How to count no of records returned from a query?
Hello,
I need to find out how many records displayed from a query without writing any other queries.
i mean that.
I have a query such as:
query = "select * from users";
and the resultset for it is rs.
and i need to display how many records fetched from this query without using any other query such as "select count(user_id) from users" etc.
Is there any function ?No, unfortunately there is no method or property that will tell you how many rows have been returned by a query.
People use many different techniques.
1.The simplest would be, keep incrementing a counter in while ( rs.next() ) and at the end you'll have the count. But only at the end, after the loop.
2. Run another query with count(*) just to fetch the count.
3. Run the same query twice, once for counting and then again for printing out. Very dumb idea though, might as well do 2. suggested above.
4. If you have a scrollable resultset, you could go to the lastRecord and then getRow number and hence know how many there are and then rewind the resultset. I don't know how advisable using scrollable resultsets is.
5. Create a slightly clumsy query like : select count(*) as "totalcount", emp_id, emp_name, emp_email, emp_phone from employees group by emp_id, emp_name, emp_email, emp_phone. You'll need to use the group by clause since count() is an aggregate function and you can't mix aggregate functions and columns unless you add the group by to all the columns you're fetching. -
How to compare a boolean value returned from a function in a sql query
Hi all
i have a function which return boolean true or false.
mean while i am writing a sql query which should check this function and will return a result set only when it is true. how will i use a function which returns boolean in a sql query..
thanks in advance'
HariI don't think this is possible - i'm not sure. Can you post your function script? The reason why am i asking this is --
satyaki>set serveroutput on
satyaki>
satyaki>
satyaki>
satyaki>create or replace function test_satf(emno in number)
2 return boolean
3 is
4 v_cnt number(5);
5 v_flg boolean;
6 begin
7 select count(*)
8 into v_cnt
9 from emp
10 where empno = emno;
11
12 if v_cnt = 1 then
13 v_flg := TRUE;
14 else
15 v_flg := FALSE;
16 end if;
17
18 return v_flg;
19 exception
20 when others then
21 v_flg := FALSE;
22 return v_flg;
23 end;
24 /
Function created.
satyaki>
satyaki>
satyaki>
satyaki>
satyaki>
satyaki>desc emp;
Name Null? Type
EMPNO NOT NULL NUMBER(4)
ENAME VARCHAR2(10)
JOB VARCHAR2(9)
MGR NUMBER(4)
HIREDATE DATE
SAL NUMBER(7,2)
COMM NUMBER(7,2)
DEPTNO NUMBER(2)
satyaki>
satyaki>
satyaki>
satyaki>select count(*) from emp;
COUNT(*)
14
satyaki>
satyaki>select empno,test_satf(empno)
2 from emp;
select empno,test_satf(empno)
ERROR at line 1:
ORA-06552: PL/SQL: Statement ignored
ORA-06553: PLS-382: expression is of wrong type
satyaki>select to_char(test_satf(empno))
2 from emp;
select to_char(test_satf(empno))
ERROR at line 1:
ORA-06552: PL/SQL: Statement ignored
ORA-06553: PLS-382: expression is of wrong type
satyaki>
satyaki>create or replace function test_satf(emno in number)
2 return varchar2
3 is
4 v_cnt number(5);
5 v_flg varchar2(10);
6 begin
7 select count(*)
8 into v_cnt
9 from emp
10 where empno = emno;
11
12 if v_cnt = 1 then
13 v_flg := 'TRUE';
14 else
15 v_flg := 'FALSE';
16 end if;
17
18 return v_flg;
19 exception
20 when others then
21 v_flg := 'FALSE';
22 return v_flg;
23 end;
24 /
Function created.
satyaki>
satyaki>
satyaki>select test_satf(empno)
2 from emp;
TEST_SATF(EMPNO)
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TRUE
TEST_SATF(EMPNO)
TRUE
TRUE
TRUE
14 rows selected.Or, may be i'm missing something.
Regards.
Satyaki De. -
How to populate DataGird with data returned from php page?
Hi, I'm new in Flex, I try to populate DataGrid with data from PHP, My code is
<mx:HTTPService
id="personRequest" result="getPerson(event)" url=http://localhost/searchPerson.php useProxy="false" method="POST" showBusyCursor="true" resultFormat="e4x">
</ mx:HTTPService>
<mx:DataGrid
id="searchResult" dataProvider="{???what to paste here???}" y="30">
</mx:DataGrid>
private
function getPerson(evt:ResultEvent):void { var res:XMLList = evt.result..dane as XMLList;searchResults =
new XMLListCollection(res);
output from PHP
<person>
<dane>
<name>ABC</name>
<street>XLXXLX</street>
</dane>
<dane>
<name>DEF</name>
<street>YAYAYAY</street>
</dane>
</person>
If I set the dataProvider as "searchResults" it doesn't work. I probably have to set as dataprovider any ArrayCollection , but I don't know how to convert my XMLListCollection to it.
Could anyone help me populate Datagrid with
name | streer
ABC, XLXXLX
DEF, YAYAYAY
Best Regards,
MariuszThanks for your reply, but I'm afraid it doesn't work :-( Could you browse my code and check what I'm doing wrong???
full mxml code:
<?xml version="1.0" encoding="utf-8"?><mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="personRequest.send()">
<mx:Script><![CDATA[
import mx.rpc.events.ResultEvent;
[Bindable]
public var searchResultsXML:XML;
private function getPerson(evt:ResultEvent):void
{ searchResultsXML = (evt.result
as XML);
trace(searchResultsXML); }
]]></mx:Script>
<mx:HTTPService
id="personRequest" result="getPerson(event)" url=http://localhost/searchPerson.php useProxy="false"
method="POST" showBusyCursor="true" resultFormat="e4x"></mx:HTTPService>
<mx:DataGrid id="searchResult" dataProvider="{searchResultsXML.dane}"></mx:DataGrid>
</mx:Application>
trace statement returns:
<person>
<dane>
<id>1</id>
<nazwisko>Topczewski</nazwisko>
<imie>Mariusz</imie>
<imie2/>
<miejscowosc>Bia?ystok</miejscowosc>
<ulica>Nowogródzka</ulica>
<dom>7B</dom>
<lokal>25</lokal>
</dane>
<dane>
<id>1</id>
<nazwisko>Topczewski</nazwisko>
<imie>Mariusz</imie>
<imie2/>
<miejscowosc>Bia?ystok</miejscowosc>
<ulica>Sybiraków</ulica>
<dom>15</dom>
<lokal>27</lokal>
</dane>
</person> -
Who know how to handle pl/sql table return from stored procedure calling from jsp
I have some stored procedure which return pl/sql table (index by table), It is look like an array. how jdbc handle this?
CallableStatement cs = con.prepareCall("EXECUTE bill.getcountry(?,?)");
cs.setInt(1, cid);
cs.registerOutParameter(2, java.sql.Types.VARCHAR);// ARRAY?
ResultSet rs = cs.executeQuery();
Array array = (Array) rs.getObject (1);
ResultSet array_rset = array.getResultSet ();Not that familiar with the OCI (Oracle Call Interface), but I think this call will be problematic - the OCI deals with SQL data types and not with PL/SQL structures.
The OCI has since Oracle 8i sported an object call interface (see OCI Runtime Environment for Objects for details).
This allows you to use the CREATE TYPE command to create advance user data types - and these are supported by the SQL engine, PL/SQL engine and external languages via the OCI.
So you need to have a look at the Perl-DBI documentation to see how it supports Oracle object types and consider using these. As for internal PL/SQL data structures. These are not supported by the SQL engine and I would expect limited or no support in the OCI for these. Anyway, using SQL data types makes a lot more sense ito flexibility and transparency across languages and environments. -
How to get string which is return from a method and method is called from a filter
Can anyone please guide me how i will get a string on a template, this string value is return by method which is called through 'ValidateStandered' filter.
My problem is when i CheckIn a document, i am implementing some validation of duplicated document and duplicated document is identified by some metadata value.
if metadata value of CheckIn document(current document) is same with existing document then filter will return ddocname and ddoctitle of existing document on a template(user can see the ddocname of existing item).please find error logs also:
intradoc.data.DataException: !csDbCouldNotBind,getValueOfDuplicateDocument
at intradoc.jdbc.JdbcQueryUtils.buildQuery(JdbcQueryUtils.java:107)
at intradoc.jdbc.JdbcWorkspace.buildQuery(JdbcWorkspace.java:736)
at intradoc.jdbc.JdbcWorkspace.createResultSet(JdbcWorkspace.java:639)
at CheckInRestrictionFilter.CheckInRestrictionFilter.getResultSet(CheckInRestrictionFilter.java:108)
at CheckInRestrictionFilter.CheckInRestrictionFilter.doFilter(CheckInRestrictionFilter.java:57)
at intradoc.shared.PluginFilters.filterWithAction(PluginFilters.java:114)
at intradoc.shared.PluginFilters.filter(PluginFilters.java:68)
at intradoc.server.DocServiceHandler.validateStandard(DocServiceHandler.java:1251)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86)
at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:324)
at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:79)
at intradoc.server.Service.doCodeEx(Service.java:620)
at intradoc.server.Service.doCode(Service.java:592)
at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1693)
at intradoc.server.Service.doAction(Service.java:564)
at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1483)
at intradoc.server.Service.doActions(Service.java:559)
at intradoc.server.ServiceRequestImplementor.executeSubServiceCode(ServiceRequestImplementor.java:1346)
at intradoc.server.Service.executeSubServiceCode(Service.java:4109)
at intradoc.server.ServiceRequestImplementor.executeServiceEx(ServiceRequestImplementor.java:1222)
at intradoc.server.Service.executeServiceEx(Service.java:4104)
at intradoc.server.Service.executeService(Service.java:4088)
at intradoc.server.Service.doSubService(Service.java:3998)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86)
at intradoc.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:310)
at intradoc.common.ClassHelperUtils.executeMethod(ClassHelperUtils.java:295)
at intradoc.server.Service.doCodeEx(Service.java:637)
at intradoc.server.Service.doCode(Service.java:592)
at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1693)
at intradoc.server.Service.doAction(Service.java:564)
at intradoc.server.Service.doScriptableAction(Service.java:4050)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86)
at intradoc.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:310)
at intradoc.common.ClassHelperUtils.executeMethod(ClassHelperUtils.java:295)
at intradoc.server.Service.doCodeEx(Service.java:637)
at intradoc.server.Service.doCode(Service.java:592)
at intradoc.server.ServiceRequestImplementor.doAction(ServiceRequestImplementor.java:1693)
at intradoc.server.Service.doAction(Service.java:564)
at intradoc.server.ServiceRequestImplementor.doActions(ServiceRequestImplementor.java:1483)
at intradoc.server.Service.doActions(Service.java:559)
at intradoc.server.ServiceRequestImplementor.executeActions(ServiceRequestImplementor.java:1415)
at intradoc.server.Service.executeActions(Service.java:545)
at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:751)
at intradoc.server.Service.doRequest(Service.java:1974)
at intradoc.server.ServiceManager.processCommand(ServiceManager.java:486)
at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)
at intradoc.idcwls.IdcServletRequestUtils.doRequest(IdcServletRequestUtils.java:1355)
at intradoc.idcwls.IdcServletRequestUtils.processFilterEvent(IdcServletRequestUtils.java:1732)
at intradoc.idcwls.IdcIntegrateWrapper.processFilterEvent(IdcIntegrateWrapper.java:223)
at sun.reflect.GeneratedMethodAccessor130.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at idcservlet.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:87)
at idcservlet.common.ClassHelperUtils.executeMethodEx(ClassHelperUtils.java:305)
at idcservlet.common.ClassHelperUtils.executeMethodWithArgs(ClassHelperUtils.java:278)
at idcservlet.ServletUtils.executeContentServerIntegrateMethodOnConfig(ServletUtils.java:1680)
at idcservlet.IdcFilter.doFilter(IdcFilter.java:457)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3739)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3705)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2282)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2181)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1491)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221) -
How to display first row value returened from a query as checked as default in a report
How to display first row value returned from a query as checked as default in a report
Example
Parameter 1
Paramerter2
ABD
x(checked)
Test
DEF
JMG
MudassarHi Mudassar,
The issue is caused by the order in which the parameters appear in the report data tab can be difference between our report execution and it failing. In other words, “Parameter2” is execution before parameter “A” due to this issue. We can adjust the parameter’s
order to solve the issue.
If “Parameter2” is parameter “A”, we cannot use that expression. Because fields cannot be used in report parameter expression, if we want to display the first value returned from a query as default value, we have to fill the “Specify values” text box with
the specific value in Default Values dialog box.
Regards,
Alisa Tang
Alisa Tang
TechNet Community Support -
Buffered Reader from a JTextArea?
Hi everyone,
can anyone please tell me how i can get a buffered reader from a JTextArea? This is what I would like to do where the following gets displayed in the JTextArea
Please enter your name: (user enters data here)
Please enter your id number: (user enters id number here)
I had coded this using the System.in but now trying to convert to a GUI
Regards,
MHi there,
I can't use get text as I will already have the other data that is written in the text area there as well, so it will get all the text. I need to be able to write stuff and then read the next line from what I have written. For example using my the command prompt:
static BufferedReader br = new BufferedReader(
new InputStreamReader(System.in));
System.out.print("Enter choice : ");
System.out.flush();
String choiceStr=null;
try
choiceStr = br.readLine();
} catch (IOException ioe)
System.out.println("Error reading choice.");
System.exit(1);
int choice = -1;
if (choiceStr.length() > 0)
choice = Integer.parseInt(choiceStr);
switch (choice)
case 0: ....
}On screen it would have wrote Enter choice: (user puts "7" )
when the 7 and then /r is pressed then it will read in the 7 only.
Thanks, M
Maybe you are looking for
-
Best practice for simply invoking a web service
Hello, We have web services deployed and accessible as wsdl documents in the SOA service manager/UDDI product. What is the best practice for simply calling a web service method deployed without regard to whether it is deployed on Tomcat, WebSphere, O
-
How to display the Current Date on page using ADF Components
Hi, Is there any way to display the system date on a page developed using ADF Components. I am thinking of writing the java code to display the date. Just wanted to check is there any pre-defined component of ADF that I can make use of. Could anyone
-
CE 7.2 and NWDI CMS error
Hi All, I have installed CE 7.2 successfully. And now doing Post installation configuration. I have two questions. 1. NWDI comes along with CE7.2 or not? If yes how can we confirm that installed successfully? If not what is the way..? 2. In configura
-
HS ODBC connection to unidata SQL translation
Experts please help. I successfully created a db link to unidata using HS ODBC. When I execute SQL for example "SELECT NAME FROM CUSTOMER@unidata", Oracle translates the SQL as "SELECT NAME AS C000 FROM CUSTOMER@unidata". The issue is, unidata ODBC d
-
Music is using 75% of my battery in the background
Music is using 75% of my battery in the background Over an 8-9 hr period. I have turned off cellular data and anything else that could possibly use up the battery that's related to music. I have even reset the phone. When I look under battery usage i