When the user Clicks the Modify button remaining Buttons should be dispayed
Hi experts,
In my application I have 3 fields and three buttons(Modify ,save and cancel)...The 3rd field is DATE field ...i have to display only MODIFY..and the remaining 2 buttons should be disable mode at Runtime.
1) when the user clicks the MODIFY button....then only other two buttons should be visible in my current application.
2) when the user clicks the SAVE button....the 3rd field should displayed with current date or System date.
3)whenever the user modify the details using modify button...meanwhile if the user clicks the cancel button...all three fields goes to Read only mode...
Thanks In advance for all.
how can i write the logic for all these 3 requirements...can anybody plz help me...
Regards,
Praveena..
Edited by: s.praveena on Jun 14, 2010 7:36 PM
Edited by: s.praveena on Jun 14, 2010 7:39 PM
Edited by: s.praveena on Jun 14, 2010 8:01 PM
Basically you want to handl the visibility and read-only properties of the UI elements at runtime.
To handle visibility property create a context attribute of type WDUI_VISIBILITY and bind it with the UI element's visible property.
in MODIFY action handler set this context attribute to IF_WDL_CORE=>VISIBILITY_VISIBLE to make it visible
IF_WDL_CORE=>VISIBILITY_NONE to make it invisible.
Similarly to handle the read-only behaviour, create the context attribute of type WDY_BOOLEAN and bind it with the readonly property of the UI element.
and in action handler assign a value to the context attribute. ABAP_TRUE to make it readonly
ABAP_FALSE to make it editable.
Similar Messages
-
When user clicks on "Like Button," the counter increases but nothing shows up showing the user recommends my site to their friends. What did I do wrong?
I used the iframe code from Facebook's "Like Button" site; and inserted the code in the html widget popup box, then positioned it where I wanted it on my page and published. It looks fine (though I had to add "http" before my url to get it to show up).
So, when a user clicks on button, a pop-up opens asking for Facebook password. When I (the user) enter a password, nothing happens after that. I thought the idea was that a user would be able to show their friends that they like my website. After I entered my password in pop-up after clicking on "Like" I went to my facebook page (a company page) to see if it showed that I (the user that clicked on "Like" on iweb) recommended the website. But nothing showed up. I thought maybe it was because Facebook associated my password as the admin for the Facebook page so didn't count it. But a friend tried it and same thing happened. I went back and on one page I put in another facebook code for a combo Like/Send button. It shows up but acted the same as the regular Like button.
Questions:
1. Is this the way the Like Button is suppose to work? Only benefit of Like button being that it just counts the clicks on the Like button and does NOT let users share their recommendation with their friends?
2. If it's suppose to let users share their "Likes" with their friends, what did I do wrong? There were three types of code but in reading discussions, they all say to use iframe. (I used the first choice which I think was html for Javascript SDK and put that in my HTML Snippit box and the Like/Share button showed up on my iweb page next to the facebook icon and the words "likes this" but when I click it, I don't see instructions that it's sending my recommendation to my friends.)
I must have done something wrong, but can't figure out what. Does anyone know? If the only benefit of the Like Button is the counter, it doesn't seem worthwhile.
Thanks to anyone who can figure this out! My website is couponsforfun.comYou want something like this?
http://home.wyodor.net/demoos/facebook/
The send button sends the link to their friends in the address field with a message.
They recieve a message in the inbox.
There's no post on a page.
If they want that, then they should share the link themselves.
Perhaps it's best to study what facebook has to offer and how it works instead of guessing what it is supposed to do and be disappointed. -
How to stop the Flex application when user clicks on Cancel button from JS-confirm message?
Hi All,
I use the next code when a user clicks on a link:
private function clickHandler():void
ExternalInterface.call('confirm', 'Of course you want to go to the Adobe forums!');
navigateToURL(new URLRequest('http://forums.adobe.com'), '_self');
This will show up the javascript confimation box. But when the cancel-button is clicked, the user goes straightly to http://forums.adobe.com...
How to stop Flex performing the next code when a user clicks on the Cancel button?
Or, how to catch which button is clicked by a user in Flex?
Thanks!I agree with Mr. Hall that using mx.controls.Alert in Flex may be a better route.
Show the Alert like this:
// show an alert with a question and yes and no choices
Alert.show( "Would you like to go to the Adobe Forums?", "Question",
Alert.YES | Alert.NO, this, closeHandler, null, Alert.YES );
Then handle the response in the closeHandler() function:
protected function closeHandler( closeEvent:CloseEvent ):void
if( event.detail == Alert.YES )
navigateToURL( new URLRequest('http://forums.adobe.com'), '_self' );
else if( event.detail == Alert.NO )
// they chose no
The following documentation on Alerts may be helpful:
http://www.flexafterdark.com/docs/ActionScript-Alert
Let me know if that helps...
Ben Edwards -
FB70: User exit when the save button (for posting) has been click
Hi ABAP Gurus,
With regard to FB70, can anyone provide me the name of the user exit that will be triggered when the save button (for posting) has been clicked?
Thanks!
<b>
Best Regards.
Brando</b>Hello Brando,
With FB70 I recommend you implement the user-exit via the Business Add-In (BADI) way and avoid SMOD exits if possible.
The list below are the BADIs that are called by the <b>ECC6.0</b> system after you click the <b>Save</b> button to post a document. <u>They are listed in the order which they are called before the actual post</u>. You'll have to find the right one as per your requirement - you can view their definition via transaction SE18 then after you find the right one you need to use that definition to create an implementation via SE19. Here again, you'll have to choose the right method that suits your requirement. You'll find the method and class documentation in some cases with examples on how to implement, you need to write the code between the Method..EndMethod statement using the parameters provided by the Method.
1. PPA_CUST_BADI
2. FI_RES_ITEM_CURRENCY
3. AC_QUANTITY_GET
4. BADI_PRKNG_NO_UPDATE
5. FM_POP_CORE
6. FMRI
7. FMRE_BUS_PROCESS
8. FAGL_SET_SEGMENT
9. EXIT_XFMPR1_001
10. BUAVC_CHECK_RESTRICT
11. UKM_R3_ACTIVATE
12. CO_DOCUMENT_INFO
I spent a bit of time debugging FB70 to find this info for you, please appreciate by rewarding points (or else
Good luck.
Cheers,
Sougata. -
Need to show popup when the Submit button is clicked for the second time ..
Hi guys,
I have a requirement where i need to show a popup or alert when the submit button is clicked twice . When it is clicked for the first time one method is been called and its process starts. When the user clicks the submit button for the second time they should be shown a popup stating "Submit button already been clicked, please clicked OK to continue".
Can anyone help with this please , its really urgent requirement ?
Thanks in advanceHi,
I dont have any sample code to give you now. For quick reference, I can advice some psuedo steps to achieve your requirement. I dont have access to JDEV to test this. If any syntax errors then pls correct yourself.
1. Extend Controller since it is standard page ( Refer Anil Passi site for steps to extend seeded ontroller)
2. Write below logic in your Process Request method
super.processRequest(oaPageContext, oaWebBean);
pageContext.putSessionValue("status", "notInitiated");
3. Include below logic in your PFR method
if(pageContext.getSessionValue("status")!=null){
if("notInitiated".equals(pageContext.getSessionValue("status")))
super.processFormRequest(oapagecontext, oawebbean);
pageContext.putSessionValue("status", "initiated");
else
String message = "Display error message as required";
throw new OAException(message, OAException.ERROR);
You may need to import required packages ( Related to OAException).
Remeber, to sumbit the request, user need to refresh the page again so that "status" variable will be refreshed.
Hope it helps.
Thanks
venkat -
Fire a left click when the right button is pressed
I am working on a small program with a text area and mouse functionality. I have all my listeners in place but I need one additional feature and I am unsure how to go about implementing it. I want to be able to fire a left click when the right button is pressed.
The reason is because right clicking does not move the caret around the text area. I need to be able to move the caret with a right click so I can then invoke another method to do some other functionality that is associated with the right click. Any method is acceptable as long as a right click will result in the caret being able to move to a location much like a left click can.
all help is appreciated. Thanks.I'm not sure if this is "better", and my guess is that it isn't, but how about using a Robot object here to create a left mouse press and release? For instance,
import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.InputEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JComponent;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
public class RightClickAsLeft
private JPanel mainPanel = new JPanel();
private JTextArea area = new JTextArea(20, 50);
private Robot robot;
public RightClickAsLeft()
try
robot = new Robot();
catch (AWTException e)
// TODO Auto-generated catch block
e.printStackTrace();
mainPanel.add(new JScrollPane(area));
StringBuilder sb = new StringBuilder();
for (int i = 0; i < 18; i++)
for (int j = 0; j < 80; j++)
sb.append((char)(40 + j));
sb.append("\n");
area.setText(sb.toString());
area.addMouseListener(new MyMouseListener());
public JComponent getComponent()
return mainPanel;
private class MyMouseListener extends MouseAdapter
@Override
public void mouseClicked(MouseEvent e)
int button = e.getButton();
if (button == MouseEvent.BUTTON3)
if (robot != null)
robot.mousePress(InputEvent.BUTTON1_MASK);
robot.mouseRelease(InputEvent.BUTTON1_MASK);
private static void createAndShowUI()
JFrame frame = new JFrame("RightClickAsLeft");
frame.getContentPane().add(new RightClickAsLeft().getComponent());
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
frame.setLocationRelativeTo(null);
frame.setVisible(true);
public static void main(String[] args)
java.awt.EventQueue.invokeLater(new Runnable()
public void run()
createAndShowUI();
}Edited by: Encephalopathic on Apr 10, 2009 9:59 AM -
How do I make this code generate a new pro when the "NEXT" button is pushed
How do I make this code generate a new set of problem when the "NEXT" Button is pushed
* To change this template, choose Tools | Templates
* and open the template in the editor.
/* Figure out how to create a new set of problms
* Type a list of specifications, include a list of test cases
* DONE :]
package javaapplication1;
import java.awt.GridLayout;
import java.awt.Window;
import javax.swing.*;
import java.awt.event.*;
* @author Baba Akinlolu -
class Grid extends JFrame{
int done = 0;
final int score = 0;
final int total = 0;
//Create Panels
JPanel p2 = new JPanel();
JPanel p3 = new JPanel();
final JPanel p1 = new JPanel();
//Create Radio buttons & group them
ButtonGroup group = new ButtonGroup();
final JRadioButton ADD = new JRadioButton("Addition");
final JRadioButton SUB = new JRadioButton("Subtraction");
final JRadioButton MUL = new JRadioButton("Multiplication");
final JRadioButton DIV = new JRadioButton("Division");
//Create buttons
JButton NEXT = new JButton("NEXT");
JButton END = new JButton("End");
//Create Labels
JLabel l1 = new JLabel("First num");
JLabel l2 = new JLabel("Second num");
JLabel l3 = new JLabel("Answer:");
JLabel l4 = new JLabel("Score:");
final JLabel l5 = new JLabel("");
JLabel l6 = new JLabel("/");
final JLabel l7 = new JLabel("");
//Create Textfields
final JTextField number = new JTextField(Generator1());
final JTextField number2 = new JTextField(Generator1());
final JTextField answer = new JTextField(5);
Grid(){
setLayout(new GridLayout(4, 4, 2 , 2));
p2.add(ADD);
p2.add(SUB);
group.add(ADD);
group.add(SUB);
group.add(MUL);
group.add(DIV);
p2.add(ADD);
p2.add(SUB);
p2.add(DIV);
p2.add(MUL);
//Add to panels
p1.add(l1);
p1.add(number);
p1.add(l2);
p1.add(number2);
p1.add(l3);
p1.add(answer);
p1.add(l4);
p1.add(l5);
p1.add(l6);
p1.add(l7);
p3.add(NEXT);
p3.add(END);
//Add panels
add(p2);
add(p1);
add(p3);
//Create Listners
Listeners();
void Listeners(){
NEXT.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
int answer1 = 0;
//Grab the numbers entered
int numm1 = Integer.parseInt(number.getText());
int numm2 = Integer.parseInt(number2.getText());
int nummsanswer = Integer.parseInt(answer.getText());
//Set the score and total into new variabls
int nummscore = score;
int nummtotal = total;
//Check if the add radio button is selected if so add
if (ADD.isSelected() == true){
answer1 = numm1 + numm2;
//otherwise check if the subtract button is selected if so subtract
else if (SUB.isSelected() == true){
answer1 = numm1 - numm2;
//check if the multiplication button is selected if so multiply
else if (MUL.isSelected() == true){
answer1 = numm1 * numm2;
//check if the division button is selected if so divide
else if (DIV.isSelected() == true){
answer1 = numm1 / numm2;
//If the answer user entered is the same with th true answer
if (nummsanswer == answer1){
//add to the total and score
nummtotal += 1;
nummscore += 1;
//Convert the input back to String
String newscore = String.valueOf(nummscore);
String newtotal = String.valueOf(nummtotal);
//Set the text
l5.setText(newscore);
l7.setText(newtotal);
//Otherwise just increase the total counter
else {
nummtotal += 1;
String newtotal = String.valueOf(nummtotal);
l7.setText(newtotal);
//Create End listener
END.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
// get the root window and call dispose on it
Window win = SwingUtilities.getWindowAncestor(p1);
win.dispose();
//new Grid();
String Generator1(){
int randomnum;
randomnum = (1 + (int)(Math.random() * 100));
String randomnumm = String.valueOf(randomnum);
return randomnumm;
public class Main {
* @param args the command line arguments
public static void main(String[] args) {
// TODO code application logic here
JFrame frame = new Grid();
frame.setTitle("Flashcard Testing");
frame.setSize(500, 200);
frame.setLocationRelativeTo(null);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
}Edited by: SirSaula on Dec 7, 2009 10:17 AMNot only are you continuing to post in the wrong forum but now you are multiposting: [http://forums.sun.com/thread.jspa?threadID=5418935]
If people haven't answered you other posting its probably because we don't understand the question. Quit cluttering the forum by asking the same question over and over and then next time you have a new question post it in the proper forum. Your first posting was moved becuase you didn't post it properly. -
My Macbook Pro 17" 2.44ghz all of a sudden one day decided to not boot up. When the power button is pressed the sleep light in the front on the latch release turns on and there is a small running sound but it never boots up and the screen never lights up. Anyone else have this problem? Any ideas?
I'd love to repair it but not if it'll cost 500 bucks or more to replace the logicboard.
I appreciate any help
MichaelLao Bo,
yes, you can locate and copy a file from your HD to a USB key using UNIX commands. If you know the exact name of the file which you’re trying to locate, try this:
find / -iname filename -print
This command will search your entire internal disk for the particular filename. If you know that it’s within a particular user account, then you can save search time with this variation:
find /Users/username -iname filename -print
Either variation of this command will print all files found which have the given filename. Presuming that you’re able to identify the correct file, you can copy it to a USB key using the command
cp -p filename_returned_by_find /Volumes/USB_volume
If you’re not sure which volume name your USB key has, this command will show you what the possibilities are:
ls /Volumes
Please let me know if you have any trouble with these commands. -
Transfer Equivalency - What is the Modify Button for?
Can anyone tell me what the Modify button is supposed to do in the Transfer Equivalency functionality (transaction PIQED)? It seems I can not see that it does anything so I'm assuming I'm doing something wrong. I'm hoping it will allow me to equate additional work that has been added to the transcript since the last time it was equated.
Thanks,
StanStan,
You can use 'Modify' on a released equivalency determination. Clicking the button will allow you to either 'undo' the grouping for a transfer regulation that was applied, and it will allow you to enter a note for a transfer regulation.
Michael -
After iOS 7 update, my iPhone 4s Voice Memo App has 5 second delay when the record button is pressed. When it starts recording, it goes from 0 seconds to 5 or so seconds that it shows has recorded. This happens randomly and often, sometimes it will have the 5+ second delay but starts recording at zero seconds. Besides the delay it has been working fine as far as saving and playback is concerned. I have plenty of storage on the phone itself and it NEVER had this problem before I updated to iOS 7. I've reset the phone a couple times by holding down the power and home buttons at the same time. The reason I have an issue with this is that I'm always recording song ideas, melodies, and scratch takes; what I'm saying is when I come up with an idea I need to be able to know that when I hit record it will start right then so I don't forget anything that has just popped in my mind.
Does anyone have a solution or suggestion?
ThanksAfter iOS 7 update, my iPhone 4s Voice Memo App has 5 second delay when the record button is pressed. When it starts recording, it goes from 0 seconds to 5 or so seconds that it shows has recorded. This happens randomly and often, sometimes it will have the 5+ second delay but starts recording at zero seconds. Besides the delay it has been working fine as far as saving and playback is concerned. I have plenty of storage on the phone itself and it NEVER had this problem before I updated to iOS 7. I've reset the phone a couple times by holding down the power and home buttons at the same time. The reason I have an issue with this is that I'm always recording song ideas, melodies, and scratch takes; what I'm saying is when I come up with an idea I need to be able to know that when I hit record it will start right then so I don't forget anything that has just popped in my mind.
Does anyone have a solution or suggestion?
Thanks -
Why does Satellite Pro A300 not start when the power button is pressed?
Suddenly my new Satellite Pro A300 will not start correctly when the power button is pressed. The situation is this: When I press the power button the Toshiba opening picture (Leading Innovation) appears and disappers quickly. Then there is a black screen for about 30 seconds. Then there is a rectangular frame with the text Microsoft Corporation underneath. And nothing happens however long I wait.
In order to get on with the starting proces I then shut down the computer by pressing down the power button until the computer stops. ("The hard way to shut down")
Now I press the power button shortly to turn on the computer. Then the computer starts normally with the Toshiba opening picture and after a few seconds I am asked to open the computer in safe mode or in normal mode. I now choose to open in normal mode and the computer opens normally and is ready to work.
What shall I do to get a normal start procedure?When notebook starts normally (after choosing normal mode) shut down your notebook properly using START > Shut down option. Next start should be normal.
When the OS is switched down on irregular way you will be always asked how to start it again (safe or normal mode).
The same happen on my Satellite A300. -
My Wireless mac keypad has stopped properly working. The keys sometime do not correspond to the result, or a a simultaneous duel actio, for example when the delete button is pressed the. Ursor does go backwards, but it also turns the sound up. The keyboard is properly connected to the computer, and the battery life is up in the nineties.
Help please !!!!Hi, thankyou for your response. Can I just confirm that you mean turning the computer on and off again, or re-booting the whole system. If it is the first I have already turned the system on and off, with no luck.
Regards -
There is a infinity loop when the 'Accept' button is hit in the Terms of Use of the Icloud in the Apple TV. Does anybody know how to solve it?
My region is set to Australia (which is correct) Still getting the loop when trying to accept iCloud terms and condition son apple tv.
-
Newsstand suppresses the home screen from the app switcher view when the home button is pressed.
Has anyone else seen this before, I needed to lock and unlock iPad to get back to the home screen.Aloha Ethan. Fortunately it's working as designed, but you'd never believe how many people wanted to argue with me smply because it worked differently. Can't please everybody I guess. Bob.
-
Reader mode when the RSS button on the address bar
How can I switch to READER mode when the RSS button appears in the address bar instead of the READER button
Hi Hedi
if there's no Reader button, it usually means Safari has decided it's not suitable for the Reader feature.
try http://lab.arc90.com/experiments/readability/ : assuming that you do see the Reader button there, then your Safari seems to be working correctly, and the readability bookmarklet may prove useful.
Maybe you are looking for
-
Computer won't start up after 10.5.1 update
My leopard updates were a little rocky, but I got everything working eventually. However, after installing the 10.5.1 update yesterday, my computer no longer starts up properly. It hangs up for a VERY long time on the initial screen with the gray app
-
Which cable adapter I need to conet my elite monitor HP 21.5 to my desktop
I bought HP elite to upgrade my monitor but I didn't know that need a dp conection, so I bought a addapter but also don't work. it is any way that I can conect the monitor. This question was solved. View Solution.
-
My Webdyno appl is not displayed? deployed successfully.
Hi all, My appl is to connect to backend R/3 and retrieve the results from there.For this I have developed a WD FlightList appl. Deployed successfully using SDM. Before runing,I should bind the logical name of R/3 to that of SLD. I did it in Webdynpr
-
Trial language not English!
The download manager and trial version are in another language! There was never a language selection and everything else was in English until I went to download the trial version. What do I do?
-
Hello! Please give me an email-adress where I can ask in German language for problems with InDesign CS6 Many thanks Werner Schneider [email protected]