How can I execute method of Component for name
Hello,
My program has JInternalFrame with some components. Write me please - how can I execute method of Component for name of Component ?
Like this:
... findObject("jTextArea1").cut();
Thank you in advance.
just cycle through the container's components until
you find one where getName equals "jTextArea1"Thank you for your answer.
I'm creating components in runtime (I add panel+JTextArea in JTabbedPane) and I don't know how many components will be in JTabbedPane.
I know only it's names.
I wan't to execute metod JTextaRea_n_.cut() via using JTextaRea_n_.Name.
How ?
Similar Messages
-
How can I know the right component for a transaction?
Hi, I have a question
When creating a new message in Solution Manager, notif_create, how can I know the right component given the transaction code or program name?
Thanks in advance
Edited by: María Valdés on Aug 19, 2008 6:25 PMHello Maria,
Well, in the Support Message window, place the cursor in Component box and press F4. This will brings up another window which contains the components list to which you are authorized. From that list you can choose about which component you want to create that particular support message.
For example, if you are from Quality department, the following can be visible when you press F4.
QM - Quality Management
-- QM-ADB Adobe Forms
-- QM-ADB-PRN Print Forms
For the Print Forms, the component will be QM-ADB-PRN
I hope it helps.
Cheers,
Satish. -
How can I execute a method on a specified time?
How can I execute a method on a specified time such as method1() will be executed on 1:00 p.m and the method2() will be executed in 1:00 a.m?
BilgeTonyukuk99 wrote:
How can I execute a method on a specified time such as method1() will be executed on 1:00 p.m and the method2() will be executed in 1:00 a.m?As a simple example, take a look at http://www.javapractices.com/topic/TopicAction.do?Id=54.
As an alternative (and looks like better approach), you could use the ScheduledThreadPoolExecutor. -
How can I use srvctl command line for change "Failover type" and "F method"
Hi all,
I am using Oracle One Node (11.2.0.3), and I have a service:
/u01/11.2.0/grid/bin/srvctl config service -d orcl
Service name: orcldb
Service is enabled
Server pool: orcl
Cardinality: 1
Disconnect: false
Service role: PRIMARY
Management policy: AUTOMATIC
DTP transaction: false
AQ HA notifications: false
Failover type: NONE
Failover method: NONE
TAF failover retries: 0
TAF failover delay: 0
Connection Load Balancing Goal: LONG
Runtime Load Balancing Goal: NONE
TAF policy specification: BASIC
Edition:
Preferred instances: orcl_1
Available instances:
I would like to change "Failover type" and "Failover method" to:
Failover type: SELECT
Failover method: BASIC
How can I do that? Is there any graphical tool for it? Or, How can I use srvctl command line for change it?
Thanks in advance.
Leonardo.user10674190 wrote:
Hi all,
I am using Oracle One Node (11.2.0.3), and I have a service:
/u01/11.2.0/grid/bin/srvctl config service -d orcl
Service name: orcldb
Service is enabled
Server pool: orcl
Cardinality: 1
Disconnect: false
Service role: PRIMARY
Management policy: AUTOMATIC
DTP transaction: false
AQ HA notifications: false
Failover type: NONE
Failover method: NONE
TAF failover retries: 0
TAF failover delay: 0
Connection Load Balancing Goal: LONG
Runtime Load Balancing Goal: NONE
TAF policy specification: BASIC
Edition:
Preferred instances: orcl_1
Available instances:
I would like to change "Failover type" and "Failover method" to:
Failover type: SELECT
Failover method: BASIC
How can I do that? Is there any graphical tool for it? Or, How can I use srvctl command line for change it?
Thanks in advance.
Leonardo.srvctl modify service -d database_name -s orcldb -q TRUE -m BASIC -P BASIC -e SELECT -z 180 -w 5 -j LONG
Also see
11gR2(11.2) RAC TAF Configuration for Admin and Policy Managed Databases [ID 1312749.1] -
How can we recognize the time taking for executing any process chain
Hi,
I have one metachain which consists of several local process chain. It was executed successfully. So how can I find out total time for executing this meta chain.Is there any way to find out that this process execution time is lile some hours and some mins.ST13 trans description is Analysis & Service Tools Launch pad and is part of the ST-A/PI plugin. See Note 69455 - Servicetools for Applications ST-A/PI (ST14, RTCCTOOL, ST12) aand talk to your Basis folks to find out if they can install it since it sounds like it is not installed at your site.
Here's a list of functions the tool provides - only some are BW specific, so if you can not get ST13 authorization, see if you can at least run the pgm
Analysis/Service Tools
Name Title
RTCCTOOL SAP Servicetools Update
ST12 Single transaction analysis
SDCCVIEWER SDCC: View data from ST-A/PI subroutines
SOS_CUSTOMER_DATA Customer Checks for Security Optimitation
BATCH_JOB_ANALYSIS Batch job analysis
CMO_SYSTEM_MONITORING CMO - System Monitoring
ITSTRACEVIEW ITS trace viewer (SAPjulep) for EBP/CRM
STAD_DATA_GET Select STAD data and put to download
BPSTOOLS BW-BPS Performance Toolset
BIIPTOOLS BI-IP Performance Toolset
BW_QUERY_ACCESSES BW: aggregate/InfoCube accesses of queries
BW_QUERY_USAGE BW: query usage statistics
BW-TOOLS BW Tools
SEM_BCS_STATISTIC_ANALYSIS SEM-BCS: Statistic Analysis
BWQUAC_CUST BW Query Alert Collector Customizing
TABLE_ANALYSIS Table Analysis Tools
UPGRADE_TOOLS Tools for Upgrade
MASS_MAN_MONITORING Monitoring for Mass Data
CUST_DMA_TAANA DVM: Settings for ST14 CA
PROJBROWSER Service Software: Local project browser
ANALYSISBROWSER Service Software: Analysis browser
SDCC_DOWNLOAD_SIMULATION SDCC download simulation for ST-A/PI collectors
TEXTBROWSER Service Software: Short&Longtext browser
SET_SDCC_PRODUCTIVE_CLIENT Manually set analysis client for SDCC datacollection
There were a few OSS Notes relating to ST03N dumping you might want to review to see if they need to be applied
Nothing is ever as easy as it ought to be. -
How can I get the elapse time for execution of a Query for a session
Hi ,
How can I get the elapse time for execution of a Query for a session?
Example - I have a report based on the procedure ,when the user execute that it takes say 3 min. to return rows.
Is there any possible way to capture this session info. for this particular execution of query along with it's execution elapse time?
Thanks in advance.Hi
You can use the dbms_utility.get_time tool (gives binary_integer type value).
1/ Initialize you time and date of beginning :
v_beginTime := dbms_utility.get_time ;
2/ Run you procedure...
3/ Get end-time with :
v_endTime := dbms_utility.get_time ;
4/ Thus, calculate elapsed time by difference :
v_elapsTime := v_endTime - v_beginTime ;
This will give you time elapsed in of 100th of seconds...
Then you can format you result to give correct print time.
Hope it will help you.
AL -
How can I create an apple ID for Free?
How can I create an apple ID for Free?
You can create an iTune and App Store account without credit card details
1. Sign out of current Apple ID if you are sign-in to one (important)
2. Go to App Store and select a free app
3. Tap INSTALL APP
4. Create New Apple ID
5. Confirm Your Country
6. Agree with Terms and Conditions
7. Fill in your Apple ID and Password (you must create a new Apple ID; don't use your old Apple ID)
8. Create and answer your secret question
9. Select NONE for Payment Method
10. Fill in Billing Address
11. Submit application for new Apple ID
12. Wait for verification email
13. When email arrive, verify your account
14. Start downloading your free apps -
How can I execute Stored Procedures in PARALLEL and DYNAMICALLY ?
Hi
I have a stored procedure. It can be executed like this
exec test @p = 1;
exec test @p = 2
exec test @p = n;
n can be hundred.
I want the sp being executed in parallel, not sequence. It means the 3 examples above can be run at the same time.
If I know the number in advance, say 3, I can create 3 different Execution SQL Tasks. They can be run in parallel.
However, the n is not static. It is coming from a table.
How can I execute Stored Procedures in PARALLEL and DYNAMICALLY ?
I think about using script task. In the script, I get the value of n, and the list of p, from the table, then running a loop with. In the loop, I create a threat and in the threat, I execute the sp like : exec test @p = p. So the exec test may
be run parallel. But I am not sure if it works.
Any idea is really appreciated.Hi nam_man,
According to your description, you want to call stored procedures in parallel, right?
In SSIS, we can create separate jobs with different stored procedures, then set the same schedule to kick the jobs off at the same time. In this way, we should be careful to monitor blocking and deadlocking depending on what the jobs are doing.
We can also put all stored procedures in SSIS Sequence container, then they will be run in parallel.
For more information about SSIS job and Sequence container, please refer to the following documents:
http://www.mssqltips.com/sqlservertutorial/220/scheduling-ssis-packages-with-sql-server-agent/
https://msdn.microsoft.com/en-us/library/ms139855(v=sql.110).aspx
If you have any more questions, please feel free to ask.
Thanks,
Wendy Fu
Wendy Fu
TechNet Community Support -
How can I execute program after using F4_Filename function?
Hi all,
I'm a new user on the forum. I've been working with ABAP and SAP for a few weeks. I wrote a program for importing data from excel file to SAP using BDC. During searching this forum I found information about F4_Filename function which allows users to browse the disc for a file. I'd like to add this function to my program. I have a parameter for a file name but this is an ordinary static string field. When I added the code which I found in the message on this forum the rest of program doesn't execute.
This is simple program for example:
REPORT Z_TEST8_AB.
DATA f_name TYPE STRING.
PARAMETERS p_file like rlgrap-filename DEFAULT 'c:\test.xls'.
f_name = p_file.
write:/ f_name.
This program works correctly. There is a field for parameter. I can change the default name for a file.
After all, I can run the program (F8) and rest of the code is executed. The field for parameter dissapears from the screen and the file name is displayed. ( command write)
Now I added a function F4_Filename
REPORT Z_TEST8_AB.
DATA f_name TYPE STRING.
PARAMETERS p_file like rlgrap-filename DEFAULT 'c:\test.xls'.
at selection-screen on value-request for p_file.
call function 'F4_FILENAME'
exporting
program_name = syst-repid
dynpro_number = syst-dynnr
field_name = 'p_file'
importing
file_name = p_file.
f_name = p_file.
write:/ f_name.
I can browse a computer for a file now but after selecting the file I can't run the rest of the code. When I click on the icon or press key F8 the field for parameter doesn't dissapier and the command write is not executed.
What do I do wrong?
Could anyone suggest me a solution? How can I executed the code after using this function?
Thanks in advance.
Regards,
Arek.Hi arkadiusz,
1. simple
2.
<b>start-of-selection.</b>
f_name = p_file.
write:/ f_name.
regards,
amit m. -
How can I execute external application?
Hi friends I want printing my barcodes a laser printer (Kyocera) it isn't a barcode printer. So I think (and I look kyocera web page my model doesn't support barcode printing in sap) print my barcodes using an external system. Before SAP we are using JollyPrint application for printing barcodes. It is using an Excel file.
I can create a excel file for this application. I must execute this (JollyPrint-it is a label application) application when I press a button. How can I execute this application?
Thanks
Mehmet
P.S. I have been writing this message with details may be somebody can give me a simple way for thisWell, I can suggest you following steps. May be it works for you .
-Create an external OS command in SM69
-Test OS command in SM49 ( <u><i>about OS command if you search in SDN youll get lot of material</i></u> )
-Create a Script at your OS level, Im assuming you might have some UNIX flavor or Sun solarias.
-Create a Shell script , which execute the printer job from OS .
-Shell script will have parameters . ( e.g. printer name, destination etc )
-set the path of shell script directory in SM69 ( the command you just created )
-Execute shell script using your ABAP program ( use FM "SXPG_COMMAND_EXECUTE" )
In the ABAP program you can pass the parameters and execute the command from ABAP as a result your job will start printing on the required destination. Moreover, you can also capture the spool at OS level .
FYI
For UNIX script, if you search in www.google.com ( UNIX forums) . youll get shell script .
Hope thisll give you idea!!
<b>P.S award the points.</b>
Good luck
Thanks
Saquib Khan
"Some are wise and some are otherwise" -
How can i found out parner profile for one of my purchase order number
I am having 4500000000 purchase order in our client.From this purchase order how can I find out the partner profile.I am using F4 in messages-partner field it is showing no records found for this.input.So how can I find out partner profile for one of our client.
Try the other methods of:
- iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number -
How can I include a portal component look and feel in a java servlet
Does any body know how can i include a portal component look and feel (tables, buttons, etc) in a java servlet?
Hi José,
I don't think that is possible. But you can import the css files that ep uses for its look and feel and try to give your web pages similar look and feel. The tables and other controls used in EP are totally different and are done through complex JavaScript coding instead of simple HTML tags. If you want exact lok and feel then i thin you must go for a Webdynpro based application rather then a J2EE application with JSPs.
Regards,
Guru.
PS: Give points for helpful replies. -
How can I execute a statement before a VO is running
JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660
I use ADF BC
how can I execute a statement before a VO is runningthanks for the answer
i use a logon function before I run a VO
after a certain time will be disconnected
and I have to call the function again
sorry for my English
public String logon(String username, String password){
CallableStatement st = null;
this.username = username;
this.password = password;
try {
st = getDBTransaction().createCallableStatement("begin ep_security.LogOn(?,?); end;",0);
st.setObject(1, username);
st.setObject(2, password);
st.executeUpdate();
this.getDBTransaction().commit();
} catch (SQLException e) {
System.out.println("ERROR "+e.getMessage());
this.addWarning(new JboWarning("Quote retrieved successfully"));
System.out.println("...RETURN ERROR");
return "error";
} finally {
if (st != null) {
try {
// 7. Close the statement
st.close();
} catch (SQLException e) {
e.printStackTrace();
} -
How can I execute a batch file from my java program
Hi,
Can someone help me or direct me to a link,
How can I execute a DOS batch file from my java program?
ThanksYou will need to grab a handle to the process's
outputstream so u can see its output.The OP didn't mention any output from any batch file;
nor any input for that
matter,so lets not complicate matters here for now
ok?Actually I think this is essential to see whether it works or not. It's either that or do some manual check to see whether it ran, which is not exactly elegant, and in some cases this may not be easier than simply writing the output stream code, or in fact it may be impossible to check manually.
I'm sure it wasn't intentional that your post appeared to be bristling with attitude. -
How can i execute a workflow using a bapi/wapi??
Hi All,
How can i execute a workflow using a bapi/wapi??
pls advice
thanksHi Hrus,
it's not as simple as a single BAPI to approve a workflow.
Workflow comes with a Workflow API (WAPI) that you can use to programmatically interact with the workflow system. The WAPI is implemented as a group of RFC-enabled function modules that are prefixed with "SAP_WAPI_".
Approving a workflow is simply taking a decision path for a workflow item. It is logically no different to rejecting the same workflow item or any other workflow decision.
As part of NetWeaver workflow is tightly coupled to the WAS platform you are running on so you may need to perform WAPI operations slightly differently on older releases.
Some of the WAPI calls you might need to use include: -
SAP_WAPI_GET_HEADER to get the workitem header
SAP_WAPI_READ_CONTAINER to get the workitem container
SAP_WAPI_GET_OBJECTS to get the attached objects
SAP_WAPI_DECISION_READ to get a list of possible decisions
SAP_WAPI_SET_WORKITEM_STATUS to set the workitem status
SAP_WAPI_WRITE_CONTAINER to write to the workitem container
SAP_WAPI_EXECUTE_WORKITEM to execute the workitem
I usually do what you are trying to do by adding the decision to the workflow container and then executing the workflow.
Be warned, you can really stuff things up if you get this wrong! Make sure you know what you are doing.
Quoting from Practical Workflow for SAP by Alan Rickayzen, et al from SAP Press...
Writing directly to the workflow container is dangerous because it can compromise the integrity of the process.
...be careful that you do not waste time duplicating existing ad hoc features of SAP's Workflow Engine.
For example you can use events (combined with wait steps), instead of container modifications to force the workflow to restart.
Cheers
Graham Robbo
Maybe you are looking for
-
Screen-caps - A Photoshop Workflow
Users often ask how to do screen-caps, to show what is happening with their program. Below are possible workflows for creating the screen-caps, and then there are instructions on how to "attach" the screen-caps to a Reply in the Adobe Forums, but onl
-
Report Builder - Add report Processing time
Hi, I was wondering if there was any way to add a value field to a report, with the time it took for the report to Process. It would probably be a text field with an Expression, but don't know how that would go. I know that in Expression there is a v
-
Hi all, I'm stupefied. In the past I had a Tomcat running in Apache, now I seem not to be able to accomplish it. My environment: OS: Windows XP Java: jdk1.6.0_03 Apache: Apache2.2 Tomcat: Tomcat6.0 JAVA_HOME is set to C:\Program Files\Java\jdk1.6.0_0
-
Install mountain lion from usb or dvd
i was wanting up update my imac from snowleaopard to mountain lion. But as far as i can see its only available to download from the apple store. with my internet connection this would take days to complete as my broadband spped is absolutly terrible,
-
Gnash not working after trying out lightspark
Hi all, I use uzbl as a browser, and Gnash for youtube videos playing. Everything worked fine. Recently, I tried out lightspark, uninstalling gnash beforehand. It worked, but had a tendency to crash my browser, so I uninstalled lightspark, and reinst