BP_CONT_SEARCH own button and own logic
Hello,
i need to implement a own button in the result list of component BP_CONT_SEARCH.
Which method do i need to redifine to add my own button?
With this button i need to read additional data to all Contact persons in the result list and export a detailed list per excel.
What is the easiest way to get all contact persons (for example ID or GUID) in the result list?
Thank you
Kind regards
Manfred
For button creation, code in DO_PREPARE_OUTPUT of the result IMPL class after redefining. Once done. On-Click event name should be created in the same IMPL class. This method id where you will code the logic.
Since the netity would be available from the context node RESULT, you will have the collection for all the entities. STRUCT.BP_GUID will give you the necessary GUID of the concerned contact person.
Rg,
Harshit
Similar Messages
-
'own monitor' or 'own lock'?
Dear,
I am writing about basics of threads, but at one moment I become confused. At some books I saw "own monitor" and some "own lock". I though that
"Thread owns monitor."
is the same as
"Thread owns lock."
actually, monitor is something what was used before, but now thats are locks, but people still say "monitor". I didn't find some part which makes it, at least to me, clear.
Is that true or it is not, in that case, what is real truth?
I read
http://java.sun.com/docs/books/jls/third_edition/html/memory.html
"Thinking in Java 3rd edition", Bruce Eckel
Also, look at next situtaion
public synchronized void a(){
wait();
public synchronized void b(){
a();
}If thread starts b(), counter of locks will become 1; when starts a() counter will become 2. When calls wait(), lock (or monitor?) will be completely realised. When it got notify() and re-own lock, it will get out of the wait set (suppose in the wait set is only that thread) and number of locks (counter) will be restored to value which was before thread goes to wait set. Where JVM keeps value of counter when thread is in the wait set? Actually, where JVM keeps number 2, in this example?
I know this is not so important for properly using synchronized, wait(), notify() and new locks, but I am interesting about what is really happening there :)
Thank you.boba5555 wrote:
You wrote :"As far as I know, lock and monitor are used interchangeably in that context."
But, I am just not sure is that right or 'own monitor' and 'own lock' must be considered differently and actually, lock is not same as monitor. Question is about synchronized part in JDK 1.4 or later.Like I said, I've never seen a distinction between them as far as Java's language level multithreading concepts are concerned. Maybe the terms have different and distinct meanings in other contexts. Sometimes in Java we might say that a particular object is the monitor, and we own that object's (monitor's) lock, but even that's fairly loose usage. And any object can serve as a "monitor" in that sense, regardless of whether its methods are all synchronized or if its fields are all private or not.
I wouldn't worry about it too much. Unless you're writing your own VM or compiler, or implementing java.util.concurrent, you probably won't find a meaningful distinction. -
Can you save your own theme and button set up so I can use the same format
Can you save your own theme and button set up, so I can use this same format for similar content. I want to keep the button content and the theme the same without having to create it everytime? I am trying to streamline the process for multiple dvd's with the same menu and buttons but different content. Does that make sense?
I am only new to this caper too, but I am pretty sure you can save a theme as a favourite by pressing the "save theme as favourite" button under file. If you have edited an existing theme but don't want to lose it, make sure you untick the replace existing button.
-
How do I get the Manged bean and Taskflow logic for Disable button in User details Modify page
Hi,
I have a requirement where I have to add to custom buttons like "Terminate" and "Reinstate" in the users detail page. Terminate is closely modeled with "Disable" button of user details page. Before I develop the custom beans and register the task flow for the custom button, I just want to understand the logic written in the managed bean for "Disable" button and understand what is there in its associated task flow. Am trying to get these details from OIM. Not sure where exactly I can get the code for this and customize as per my requirement.
Please suggest the exact location?
RaghuThanks for the information - I still was hoping that the article Mario mentioned above was accessible (perhaps just moved)? Somewhere on the BC system? Just so I can add it to my BC help folder - as well as even share it with clients who want to try things on their own (best to give them some help in that direction so they don't fumble through things).
I have the checkout form populating information, if they have purchased in the past it will populate their address - but I am also trying to get their "account page" to do the same (basically show them what their current information in the system is - then allow them to update whatever might be wrong or need changes). We have a login page, for people to sign up without having "bought" something - so the CRM won't have their billing/shipping info in the system yet. Trying to capture that without a purchasing being made. -
How to define our own selection screen for logical database in abap-hr?
Hi Friends,
Can u please help me
How to define your own selection screens for logical database.
we use to do like(goto->attributes-HRReportcatagerious ).but How to desin using customer table like t599c, t599f and how to add to my logical database?
Thanks in advance
charancheck out this online help
http://help.sap.com/saphelp_erp2004/helpdata/en/9f/dba65c35c111d1829f0000e829fbfe/frameset.htm
Regards
Raja -
I've downloaded the past 2 updates for my iphone 5s and now it keeps asking me to trust my own computer and it wont even connect to itunes! I am current with software on both my computer and my iphone 5s. Now when I hook it up to my computer it still keeps asking me if I trust the computer and it won't connect to Itunes?
DFU mode? How do I do that? So far the only thing I can do is hold down both buttons to power it on and nothing is on the screen and it wont reconize on my computer....
-
How to create own button for closed captioning
Hi,
I have created my own buttons for play, pause, exit etc. But I do not know how to create button to show closed captioning. I tried few hours but I give up. What I need to do?:
First clik - closed captioning will appear
Second clik - closed captioning will disapear.
And so on appear/disapear/appear/disapear
Help please!
PoulHave a look at: Toggle Shape buttons - Captivate 6 - Captivate blog
Replace the system variable cpCmndMute by cpCmndCC and you'll have the choice between different scenarios. -
Extending ContentBySearchWebPart with own buttons
Dear all,
I want to extend the Content Search Web Part (CSWB) with own buttons/tabs to refine the query. My idea was to derive a custom web part from the CSWB, add these buttons to the web part area and to extend the query in the button's event.
My actual problem is to place the button to the web part area. I used the CreateChildControls() method to add my buttons (to be exact RadioButton) to the Controls collection, but the buttons will be always attached at the bottom of the web part.
Here is my code:
protected override void CreateChildControls()
base.CreateChildControls();
//create filter buttons
for (int i = 0; i < 3; i++)
var filter = new RadioButton();
filter.Text = "filter " + i.ToString();
filter.GroupName = "NewsCSWP_tabs";
//set input properties
filter.InputAttributes["class"] = "NewsCSWP_radio";
//this.Controls.Add(filter);
this.Controls.AddAt(0, filter);
And it has the same effect if I use the .Add(...) or .AddAt(...) method. I tried also to call the base.CreateChildControls() after the Controls.Add(), but my buttons still appears at the bottom.
What is the supported way to achive this?
Thanks!Maybe its possible, but it is not recommended to do so.
However it does not make to much sense.
Just run your servlet as a portal compoent with an entry as native-Servlet in the pc descriptor.
Thats a 5 minute trip. -
How to make own editor and call it?
could you please tell me how to make own editor and call it on a clicking of a push button corresponding to an test Item
In the Object Navigator... just click on the 'Editor' Node and press the '+' (Create) button....
Set then any properties as you like....
So simple...
Greetings,
Sim -
How do I make my own sounds and put them on a Midi controller?
I want to be able to make my own sounds and program then into my midi controller.
Is this possible? If so How do I go about doing it?Hey man, am I right in thinking you want to make your own sounds entirely and then map them so that they can be triggered to play by your midi controller? If so, the method I'm thinking is you're going to have to start coding. The program PureData http://puredata.info/ is a good place to start, it's free and there are a lot of online tutorials if you can be bothered looking, but you'll have to put in the effort of learning how to code it properly. This might be worth it if what you are asking is what I'm thinking you're asking. Otherwise, you'll have to make do with the sounds that Logic Express can create, which isn't exactly a limited set... Hope this helps.
-
How to customize the title bar on my own Look And Feel?
Hi all!
I am creating my own Look and Feel which extends from NimbusLookAndFeel. What I'm doing is overwriting UIDefaults values??, referring to the Painters. For example:
+uiDefault.put ("Button [Enabled]", new ButtonEnabledPainter());+
But now I need is to customize the title bar of the JFrame's, but I do not see this option in Painter's values ??can be overwritten by Nimbus (http://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/_nimbusDefaults . html).
You know as possible? I have to overwrite an existing UI component? The idea is I want to make the look and feel like SeaGlass, but the code seems a bit complex to know where to begin.
I hope you can guide me on this issue.
Thank you very much for everything! And excuse my English!.
Greetings!very simple example, with direct methods
import java.awt.*;
import java.awt.event.*;
import java.util.LinkedList;
import java.util.Queue;
import javax.swing.*;
public class NimbusBorderPainterDemo extends JFrame {
private static final long serialVersionUID = 1L;
private JFrame frame = new JFrame();
private JPanel fatherPanel = new JPanel();
private JPanel contentPanel = new JPanel();
private GradientPanel titlePanel = new GradientPanel(Color.BLACK);
private JLabel buttonPanel = new JLabel();
private Queue<Icon> iconQueue = new LinkedList<Icon>();
public NimbusBorderPainterDemo() {
iconQueue.add(UIManager.getIcon("OptionPane.errorIcon"));
iconQueue.add(UIManager.getIcon("OptionPane.informationIcon"));
iconQueue.add(UIManager.getIcon("OptionPane.warningIcon"));
iconQueue.add(UIManager.getIcon("OptionPane.questionIcon"));
JButton button0 = createButton();
button0.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
frame.setExtendedState(ICONIFIED);
JButton button1 = createButton();
button1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
frame.setExtendedState(MAXIMIZED_BOTH | NORMAL);
}//quick implemented, not correct you have to override both methods
JButton button2 = createButton();
button2.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
int confirm = JOptionPane.showOptionDialog(frame,
"Are You Sure to Close Application?", "Exit Confirmation",
JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE,
null, null, null);
if (confirm == JOptionPane.YES_OPTION) {
System.exit(1);
buttonPanel.setLayout(new GridLayout(0, 3, 5, 0));
buttonPanel.setPreferredSize(new Dimension(160, 30));
buttonPanel.add(button0);// JLabel is best and cross_platform JComponents
buttonPanel.add(button1);// not possible put there witouth set Dimmnesion
buttonPanel.add(button2);// and LayoutManager, work in all cases better
titlePanel.setLayout(new BorderLayout());//than JPanel or JCompoenent
titlePanel.add(new JLabel(nextIcon()), BorderLayout.WEST);
titlePanel.add(new JLabel("My Frame"), BorderLayout.CENTER);
titlePanel.setBorder(BorderFactory.createLineBorder(Color.GRAY));
titlePanel.add(buttonPanel, BorderLayout.EAST);
JTextField field = new JTextField(50);
JButton btn = new JButton("Close Me");
btn.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
System.exit(1);
contentPanel.add(field);
contentPanel.add(btn);
fatherPanel.setLayout(new BorderLayout());
fatherPanel.add(titlePanel, BorderLayout.NORTH);
fatherPanel.add(contentPanel, BorderLayout.CENTER);
frame.setUndecorated(true);
frame.add(fatherPanel);
frame.setLocation(50, 50);
frame.pack();
frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
frame.setVisible(true);
ComponentMover cm = new ComponentMover(frame, titlePanel);
//by camickr http://tips4java.wordpress.com/2009/06/14/moving-windows/
private JButton createButton() {
JButton button = new JButton();
button.setBorderPainted(false);
button.setBorder(null);
button.setFocusable(false);
button.setMargin(new Insets(0, 0, 0, 0));
button.setContentAreaFilled(false);
button.setIcon(nextIcon());
button.setRolloverIcon(nextIcon());
button.setPressedIcon(nextIcon());
button.setDisabledIcon(nextIcon());
nextIcon();
return button;
private Icon nextIcon() {
Icon icon = iconQueue.peek();
iconQueue.add(iconQueue.remove());
return icon;
private class GradientPanel extends JPanel {
private static final long serialVersionUID = 1L;
public GradientPanel(Color background) {
setBackground(background);
@Override
public void paintComponent(Graphics g) {
super.paintComponent(g);
if (isOpaque()) {
Color background = new Color(168, 210, 241);
Color controlColor = new Color(230, 240, 230);
int width = getWidth();
int height = getHeight();
Graphics2D g2 = (Graphics2D) g;
Paint oldPaint = g2.getPaint();
g2.setPaint(new GradientPaint(0, 0, background, width, 0, controlColor));
g2.fillRect(0, 0, width, height);
g2.setPaint(oldPaint);
public static void main(String[] args) {
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
try {
UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
} catch (Exception fail) {
UIManager.getLookAndFeelDefaults().put("nimbusFocus", Color.RED);
NimbusBorderPainterDemo nimbusBorderPainterDemo = new NimbusBorderPainterDemo();
} -
I want to make an "open submenu on click" menu with use of
own fonts. With sifr3 I managed to get normal headlines and also
links as own fonts, but I it seems tricky with links and especially
with the submenu.. look at that:
Menu
with own fonts and
Menu
without own fonts.. Someown has tips how to do ? or tutorial
tips?Thank you Tom, suspected as much.
I'm thinking of doing my master (MPEG-2 or H264) with Compressor, then moving the project to Adobe Encore CS6. Is that something that might sound logical to you? As what might be best out there in software for doing something like this? -
After adding JButtons(with an image only) to a JToolBar, I noticed that
it is unnoticable when you press it. I wanted to make my own button
which does about the same the .NET style toolbars do. The result can be found here. If anyone wants to be so freely to test it if it works on
your toolbars?
Thanks
import javax.swing.*;
import java.awt.event.*;
import java.awt.image.*;
import java.awt.*;
import java.awt.geom.*;
public class KButton extends JButton implements MouseListener
BufferedImage bimg;
Graphics2D g2;
String toolTipText;
Image image;
int
height, width,
x = 2,
y = 2,
sp = 4; // space extra to add to sizes and stuff
private Color fillColor = new Color(204,204,204);;
private boolean
isPressed = false,
isEntered = false,
isExited = false;
public KButton(ImageIcon icon, String toolTipText)
super(icon);
this.image = icon.getImage();
this.height = image.getHeight(this);
this.width = image.getWidth(this);
this.toolTipText = toolTipText;
bimg = new BufferedImage(width + 1, height + 1, BufferedImage.TYPE_INT_RGB);
g2 = bimg.createGraphics();
super.setToolTipText(toolTipText);
super.addMouseListener(this);
super.setMaximumSize(new Dimension(width + sp,height + sp));
super.setPreferredSize(new Dimension(width + sp, height + sp));
super.setBorder(null);
repaint();
public void setBackground(Color bgc)
this.fillColor = bgc;
public void paint(Graphics g)
// set the background
g2.setPaint(fillColor);
// clear the background
g2.fillRect(0,0,width+sp, height+sp);
// paint the icon to graphics 2d
g2.drawImage(image, 0,0, this);
// paint a border, or not
if(isEntered)
g2.setPaint(Color.white);
g2.draw(new Line2D.Double(0,0, width, 0));
g2.draw(new Line2D.Double(0,0, 0, height));
g2.setPaint(Color.gray);
g2.draw(new Line2D.Double(0,width, width, height));
g2.draw(new Line2D.Double(width, 0, width, height));
else if(isPressed)
g2.setPaint(Color.gray);
g2.draw(new Line2D.Double(0,0, width, 0));
g2.draw(new Line2D.Double(0,0, 0, height));
g2.setPaint(Color.white);
g2.draw(new Line2D.Double(0,width, width, height));
g2.draw(new Line2D.Double(width, 0, width, height));
// paint the whole lotta image on the button
g.setColor(fillColor);
g.clearRect(0,0,width+8,height+8);
g.drawImage(bimg, x,y, this);
/* =====================================
The following gives attention to actions which should be taken when the user
presses, enters, exits or releases the mouse on the button
======================================== */
public void mousePressed(MouseEvent e)
isEntered = false;
isPressed = true;
x = 3;
y = 3;
repaint();
public void mouseReleased(MouseEvent e)
isPressed = false;
x = 2;
y = 2;
repaint();
public void mouseClicked(MouseEvent e)
isPressed = false;
isEntered = false;
repaint();
public void mouseEntered(MouseEvent e)
isEntered = true;
repaint();
public void mouseExited(MouseEvent e)
isEntered = false;
repaint();Done. Your test case works fine if you replace getCurrentDirectory() with
getSelectedFile() for the APPROVE_OPTION branch in your code. If you still
disagree with me, then please provide exact information on operating system and
java version.
import java.awt.*;
import javax.swing.*;
public class BrowserWindow extends JFrame {
public BrowserWindow() {
Container con = this.getContentPane();
final JFileChooser jfc = new JFileChooser();
jfc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
int result = jfc.showDialog(this, "Save BackUp");
switch (result) {
case JFileChooser.APPROVE_OPTION:
System.out.println(jfc.getSelectedFile());
break;
case JFileChooser.CANCEL_OPTION:
System.out.println("Cancelled");
break;
case JFileChooser.ERROR_OPTION:
break;
public static void main(String[] args) {
new BrowserWindow().setVisible(true);
} -
Is it possible to make a new template with my own logo and background?
Welcome to Apple Support Communities.
Open Mail, Help
So, create your template from scratch or edit an existing Mail template and re-save it with a new name.
Your own saved or edited/re-saved templates are stored in the Custom list at the bottom of the Stationery types.
The default templates remain with original names in the original folders.
Then to use your template in a New Message, select it from Show Stationery, Custom.
To make it easier to select Stationery templates, first open Mail, New Message, View, Customize Toolbar, and then drag the Show Stationery button to the New Message toolbar. (It will not ever appear in the default Mail toolbar, only the New Message toolbar, and can only be added to the New Message toolbar.) -
when I open a music file from a source other than apple, does itunes create it's own file and can I then delete the original mp3?
If you use iTunes' default settings then when you add a file to iTunes it places a copy of the file in the iTunes media folder and it leaves the original in place. The exception is when you drag it to the Automatically Add To iTunes folder.
It does not convert the file. You can delete the original if you wish.
Maybe you are looking for
-
Can't tie emailed Pages document to my default printer
In our office we have several printers: HP LaserJet 1300, HP Color LaserJet 2605dn, HP LaserJet 4/4M PS, etc. On my MacBook Pro I have set HP LaserJet P2055dn as my default printer. My colleague from office sent me Pages document via email. On his Ma
-
How can i make Vendor balance ZERO incase of Debit vendor and Credit-GRIR
We also have a document from last year,It is a debit amount in the vendor account. How could I get rid of this balance to make the vendor have a zero balance? the entry is - Debit - Vendor Credit-GR/IR Clearing Credit-Contact Repair Thanks Supriya
-
Internet sharing works but the DNS part doesn't
I'm posting this message because I believe it is a bit different from other 'Lion internet sharing' posts in terms of the source of sharing and also the results I get. Similar to other users experiencing the same problem, my internet sharing setup st
-
10.6.8 Slow SMB browsing of Windows Servers 2008
MY IMAC 21 .5 Inch MAC OS X 10.6.8 slow SMB browsing of windows Server 2008 kindly anybody have any idea why its happened or after LION release maybe this issue will be solve.
-
Hi, I'm looking to take on a contractor with Oracle Wireless development experience, but can not find anyone in the current market place, does anyone know anyone with this experience? the job is based in Europe for a large telecom provider, if you ha