Calling single action from multiple buttons
Hi All,
i want to call a common action assigned to 2 buttons. the action will have a flag. depending on button click i have to execute method with flag as true/false.
i think i can do this by getting the ID of the button. please let me know is there any method to get the ID of the button clicked or do u have any other solution for this???
Regards,
Chandra
Hi Chandra,
Just enter "ID type string" as a parameter above to the code of the action.
Best regards,
Thomas
P.S: Another way to solve this problem is to use parameter mapping for events of ui elements.
Similar Messages
-
Can i create a single image from multiple images in lightroom?
Can i create a single image from multiple images in lightroom?
Like a panorama, a composite or focus stack? Have you tried the Lightroom forum?
Photoshop Lightroom -
How can I create a single order from multiple quotations?
How can I create a single order from multiple quotations that I have created by the transaction VA21 ?
Thanks in advance for the answers.hi
Go to transaction: /nva01
Enter order type : ZOR
Sale org :xxxx
Dist.channel:xx
Division :xx
Press enter
Click on Sale document and select Create with reference
Then enter 1st quotation number & click on COPY or Selection list. Then click on Copy .Then all line items which belong to quoation1 copy to order.
Then,
Click on Sale document and select Create with reference
Then enter 2nd quotation number & click on COPY or Selection list. Then click on Copy .Then all line items which belong to quoation2 copy to order.
Then,
Click on Sale document and select Create with reference
Then enter 3rd quotation number & click on COPY or Selection list. Then click on Copy .Then all line items which belong to quoation3 copy to order.
Now save the sale document.
Kindly give reward points
Edited by: WISH on Mar 19, 2008 2:25 PM -
Calling a Procedure from a Button? (REVISITED)
Hi All,
I once asked a question Re: Calling a Procedure from a Button? & that problem was resolved when i was working on the online ApEx.
On my application, requirements have changed a bit: I have one form based on two tables. One table contributes two fields (name & surname) to the form while the remaining fields are contributed by another table to make a total of 17 fields on the form.
My process is in such a way that a user enters an id number & clicks Search button, if the apllicant exists then both name & surname corresponding with the id number will be retrieved from the database. If the applicant does not exist then an error message will be displayed inline with the id number field. Here's the PL/SQL anonymous block to that:
DECLARE
vNAME APPLICANTS.name%TYPE;
vSURNAME APPLICANTS.surname%TYPE;
BEGIN
SELECT count(*)
INTO :P2_COUNT
FROM applicants
WHERE id_number = :P2_ID_NUMBER;
IF :P2_COUNT > 0 THEN
SELECT name,surname
INTO vNAME, vSURNAME
FROM applicants
WHERE id_number = :P2_ID_NUMBER;
:P2_NAME := vNAME;
:P2_SURNAME := vSURNAME;
ELSE
apex_application.g_print_success_message := '<span style="color:red">Applicant does not exist.</span>';
END IF;
EXCEPTION WHEN NO_DATA_FOUND THEN
apex_application.g_print_success_message := '<span style="color:red">Exception Caught.</span>';
END;The PL/SQL block works except for error displaying part (but that's a problem for another day).
NB: On my application, there’s already Automated Row Fetch & Automatic Row Processing (DML) processes for one table. Furthermore, there is also a javascript for verifying the validity of an id number. As a result, I decided to include Automated Row Fetch & Automatic Row Processing (DML) processes for the other table. When I click a Search button the javascript is activated even though I did not specify a URL target for the button - because this is a simple button among region items – it does not have Optional Url Redirect section.
I'm not sure what I'm doing wrong here - any help is appreciated.
Regards
KamoHi Dan,
Sorry for causing confusion with my post - it's just that I was asking the same question (with different constraints) as I had asked before so I didn't feel like going to details was necessary because in my post I included a link to the previous thread. Interestingly, I was working on apex.oracle.com when I posted the original thread - the only problem came to be when I started to move the solution to my application on my machine.
Anyway, thanks for the response!
Regards
Kamo -
Any Tutorial / Sample to create Single PDF from multiple source files using PDF assembler in a watched folder process. I have a client application which will prepare number of source files and some meta data information (in .XML) which will be used in header/footer. Is it possible to put a run time generated DDX file in the watch folder and use it in Process. If possible how can I pass the file names in the DDX. Any sample Process will be very helpful.
If possible, make use of Assembler API in your client application instead of doing this using watched folder. Here are the Assembler samples : LiveCycle ES2.5 * Programming with LiveCycle ES2.5
Watched folder can accept zip files (sample : Configuring a watched folder to handle multiple input files and write results to a single folder | Adobe LiveCycle Blog ). You can also use execute script to create the DDX at runtime : LiveCycle ES2 * Application Development Using LiveCycle Workbench ES2
Thanks
Wasil -
How do I create. A single PDF from multiple files? PDF pack on iOS
How do I create. A single PDF from multiple files? PDF pack on iOS
The primary reason I signed up for. PDF Pack was to create a single PDF from multiple image files and other PDFs .
Is this possible? If so how
thanks in advance
richHi Rich,
The combine files feature isn't available when you're using Reader for iOS. However, you can log on to the web interface at Adobe Acrobat.com using your Adobe ID and credentials, and use the Combine Files feature there.
Please let us know if you need further assistance.
Best,
Sara -
Single delivery from multiple Sales Orders
Can you let me know how to create a Single DN if there are different parts to be shipped if the below satisfies,
same ship-to-party
same ship date
thx,Hi Pri,
To have single delivery from multiple Sales Orders you have 2 waysto do it.
The prerequisites are,
A. All sales orders should have same ship to Party
B. Delivery due dates should be same.
C. Incoterms should also be same.
D. Shipping Point should be same.
Once this is ensured, you can either
1. Go to Tr. Code VL10A and execute the delivery document creation for the list of sales orders
Or,
2. Go to VL01N. Give 1st order no. enter into the overview screen
Here, go to main menu, Outbound Delivery ---> Collective Processing- Del. Creation
This will also take u to the same VL10A screen.
Hope, this is helpful. Award points if found helpful.
Regards,
Niketan -
Does OBIEE has ability to create a single cube from multiple data sources?
Hi all,
Does OBIEE has the ability to create a single cube from multiple sources and does it has the ability to join multiple cubes?
Looking forward to ur reply.Hi
OBIEE can join multiple data sources to make a single data model, but it's not a cube in the multi-dimensional sense like Essbase or Oracle OLAP.
To be able to join datasources together they need to have a common dimension or FK relationship depending on what the source is and what you want to do with it.
Ed -
Multi-file Loading Single Package from Multiple Agents?
hi,
i am trying to load the Multiple files from(Interface-Load Multiple file to Oracle DB) a package. as this activity is done multiple loading files Name from single table.
I just want to know that is there any solution to execute the single Package from Multiple Agents for Load Balancing from Single table. & if YES then refer any document????
Regards,
AMSIIdone.resovlesd my self
-
Possibility of calling standard actions from a java program
Hi ,
I am working for a project where customer wants to have option of saving orders as draft only and later convert to order if need be. However since we do not want many drafts to reside on server there is a need to delete these at a specified time. For draft orders I am using order templates since they stay in the database without getting converted to orders. Now I do not know how to go about the deletion part.
i need to write a program that would run on the server and which would fetch the templates (drafts) that have been created till a particular time and call the delete action of the template. Now the question is how do i call these actions from a java program where this java program will have to run on the server end (ie will be a backend process).
Please suggest.
Thanks
Roopalihello roopali,
you can create a separate thread that will run your
code that will check for stale drafts and delete them.
it is just like a session management program but here
we will be looking over the drafts and not the session
objects.
now if you want the invocation of the action from another
program, a socket program would suffice but opening ports
will cause you network connections thru firewall.
if you can make use of HTTP servlet as your service
provider e.g., you can then just pass some action params
to invoke it.
regards
jo -
Calling a Procedure from a Button?
Hi All,
I'm using Oracle Application Express 11g & I'm currently working on an application. One of the requirements for this particular application is that a user has to be able to enter an applicant's id number (in the id textfield) & if a user clicks a button then they should be able to check in the db whether the applicant exists or not. If the applicant exists then name & surname textfields should be populated with values from the database corresponding to the id number & all these three textfields should be read only. If the applicant doesn't exist then the user will be directed to a page where he/she will fill in new applicant's details.
So, I wrote the following procedure to do that:
CREATE OR REPLACE PROCEDURE search_applicant(
P17_APPLICANT_IDNUMBER IN FIR_APPLICANT.applicant_idnumber%TYPE,
P17_NAME OUT FIR_APPLICANT.name%TYPE,
P17_SURNAME OUT FIR_APPLICANT.surname%TYPE,
P17_COUNT IN FIR_CURRENCY.currency_id%TYPE) IS
BEGIN
SELECT count(*)
INTO P17_COUNT
FROM fir_applicant
WHERE applicant_idnumber = :P17_APPLICANT_IDNUMBER;
IF P17_COUNT > 0 THEN
SELECT name,surname
INTO P17_NAME, P17_SURNAME
FROM fir_applicant
WHERE applicant_idnumber = :P17_APPLICANT_IDNUMBER;
dbms_output.put_line('Name: ' || P17_NAME || ' & Surname: ' || P17_SURNAME);
ELSE
dbms_output.put_line('Applicant does not exit.');
END IF;
EXCEPTION WHEN NO_DATA_FOUND THEN
dbms_output.put_line('Applicant does not exit.');
END;
So far I have not been able to find any help in this regard. I know how to invoke a javascript from a button but I'm not sure how to go about this one.
Any help in this regard is highly appreciated.
THANK YOU
KamoThanx PaulD & Chris,
Sorry for the delay in response - I couldn't implement the solutions you recommended for me. My ApEx instance is down (& has been for the past week). It finally dawned on me that I could recreate my problem @ apex.oracle.com. Please take a look at the following application & see if you can help:
http://apex.oracle.com/pls/otn/f?p=45267:2:714925804498386:::::
Username: Kamo
Password: admin
PS: I have tried to call a Procedure from a button using a page process but it still couldn't work.
THANK YOU!
Kamo
Edited by: user5429001 on 2009/01/28 6:10 AM
Edited by: user5429001 on 2009/01/28 6:21 AM -
Calling System.exit() from multiple threads
Hi,
Why would calling System.exit() from multiple threads cause all the threads to block?
LaithThanks for your replies.
I made further tests and the problem is actually not as I described it first.
I'm using a shutdown hook that would stop all running threads if the program is stopped externally (using ctl-c for example) (I'm not using Thread.stop(), but setting a boolean value to false that would make the thread exit a while() loop in run()) .
One of the running threads would call System.exit(-1) just before it would exit run().
This thread is getting blocked if it is stopped by the shutdown hook.
I know that this is a bad coding practice, bout would still appreciate an explanation to the reason why the thread is actually blocked by System.exit().
Laith -
Calling ASP script from APEX button passing Bind variable
I am looking for some examples or best form for calling asp script from apex button that will pass apex bind variable to asp script to process.
Thanks,s
BobI am surprised by the degree of no replies. I have solved this by using asp redirects such as:
Response.Redirect("test.aspx?UserName="&user)
My formulated solution contains a page with a manually built interactive report. I have a number of bind variables at the top of the reoprt where users can query the information they want based on desginated database columns for this particular report. Once they have the "manual" interactive report displaying what they want, they click a button where a asp script is called with parameters passed that calls a Java based Crystal Reports plugin with the called correspnding report displayed with passed parameters.
Works like a charm!
This solves our reporting needs without having to resort to Bi Publisher (much too expensive) and other third party applications that kinda indicate it can work with apex but provide limited help or best form for doing so.
Bob -
Calling java script from a button
Hi,
I have a Form and I would like to let the end-user to confirm some action that was initiated by pressing a button. The best way would be to call Java script, but the button is an 'item' button and not a 'region' button - i..e it is placed between items and not above the region, like Save, Cancel etc.
In case of 'item' buttons I do not have 'Optional URL Redirect' field where to place the javascript call.
TamasYou can try this..
Instead of using button
Edit the Item to which you want to associate a button.
Go to Element tab
Under Post Element Text enter
</ br> <a href="#" -onclick=call_me() class="t20Button">Click me</a>Note : you need to change class="t20Button", i'm using theme 20 and in that the look and feel of button is derive from t20Button.
remove the hyphen before onclick ..
Regards,
Shijesh -
Need a way of calling this code from a button
Hi all
I am sorry to have to ask this but I can not find any info on this.
I found this code somewhere on the net. I should be able to delete a folder with file inside of it.
I need to call this when a button is clicked.
CAN ANYONE HELP ME or show me away of deleting a folder with files inside from a button?
public static boolean deleteDir(File dir) {
dir = new File ("Epod Configuration/Config Files/Temp Image Files/");
if (dir.isDirectory()) {
String[] children = dir.list();
for (int i = 0; i < children.length; i++) {
boolean success = deleteDir(new File(dir, children));
// The directory is now empty
return dir.delete();First have your class implement the Actionlistener interface then do this:
//create a button object
Button b = new Button("Delete");
//listen for action on the button.
b.addActionListener(this);
//add the button to the container.
add(b);
//call the method to delete the directory when button is clicked.
public void actionPerformed(ActionEvent e) {
if ("Delete".equals(e.getActionCommand())) {
deleteDir(File dir);
Maybe you are looking for
-
System.out not working on eclipse
Greetings... I am no longer a newbie on Java, but I have been facing an issue lately that I have been unable to resolve myself, even though it seems to be something so silly. I have been using eclipse for development, and by developing a simple "Just
-
Hello, I have created the customer reports that i wish to allocate the tabs but after i assign them to the designated role they don't automatically load on page load. It loads the following message: Generating analysis... Click here to view the resul
-
Do DVD Studio Pro 2 templates work in 4?
Hi, I own a version of DVD Studio Pro 2, but was wondering if I bought 4, would these old templates still show up and work in it?
-
Backing up LR DB & pictures on ext. HD
Hi, I already checked the Forum but could not find a real answer. I have my picture on my built in HD and on an external HD. If I want to use the external HD INSTEAD of the internal do I have to rescan all pics on the external and than use that new D
-
hi guys!merry christmas! i hope you can help me how to reinstali the apple mobile device in my computer..