Add button with badi
hi all,
can we add button to std sap without add screen exit through badi?
Thanks
HI, Yes you can add.. for that you have to find out the proper BADI.
Thanks,
Prasanna
Similar Messages
-
SDP94 Hide Buttons with Badi /SAPAPO/SDP_INTERACTmethod FCODES_EXCLUDE
Hello,
The Promotion Planning in transaction SDP94 contains buttons for removing objects from the Promotion (fcode PM_CUT and fcode PM_CUT_ALL).
Problem: The user should not be allowed to add or remove objects (materials) to the promotion.
It works to remove the buttons for assigning objects (PROM_OBJT or PROM_MOBJT) but it ist not possible to remove the buttons for removing the objects (fcode PM_CUT or PM_CUT_ALL).
I tried it with BadI /SAPAPO/SDP_INTERACTmethod FCODES_EXCLUDE
can anyone help me? Thanks
bernhardhello,
thanks for your answer,
with the authorization object C_APO_PROM i can only prevent a user completely from changing a promotion. But the goal is that the user can plan data in the promotion, but he should not be allowed to add or remove objects (materials).
Therefore the only thing i want to do is setting some buttons inactive.
it is possible to set the buttons for adding objects inactive, but ist ist not possible to set the buttons for removing (PM_CUT) inactive.
any ideas? -
Add Button with ALV Standard Toolbar.
Hi,
Can any one tell me how to add user-defined button with ALV
Standard toolbar? When I add Pf-status for alv output , standard alv toolbar is not displayed.
Plz do needful.On the toolbar event of your alv grid, all the button as shown in the code below.
FORM handle_toolbar USING i_object TYPE REF TO cl_alv_event_toolbar_set .
DATA: ls_toolbar TYPE stb_button.
CLEAR ls_toolbar.
MOVE 'EXCH' TO ls_toolbar-function. "#EC NOTEXT
MOVE 2 TO ls_toolbar-butn_type.
MOVE icon_calculation TO ls_toolbar-icon.
MOVE 'Payment in Other Currencies'(202) TO ls_toolbar-quickinfo.
MOVE ' ' TO ls_toolbar-text.
MOVE ' ' TO ls_toolbar-disabled. "#EC NOTEXT
APPEND ls_toolbar TO i_object->mt_toolbar.
ENDFORM
CLASS lcl_event_handler DEFINITION .
PUBLIC SECTION .
METHODS:
*To add new functional buttons to the ALV toolbar
handle_toolbar FOR EVENT toolbar OF cl_gui_alv_grid
IMPORTING e_object e_interactive ,
ENDCLASS.
CLASS lcl_event_handler IMPLEMENTATION .
*Handle Toolbar
METHOD handle_toolbar.
PERFORM handle_toolbar USING e_object e_interactive .
ENDMETHOD .
ENDCLASS.
DATA gr_event_handler TYPE REF TO lcl_event_handler .
*--Creating an instance for the event handler
CREATE OBJECT gr_event_handler .
*--Registering handler methods to handle ALV Grid events
SET HANDLER gr_event_handler->handle_toolbar FOR gr_alvgrid .
Hope this helps.
Thanks,
Balaji -
How to add buttons with links to different pages in my flash document?
Hi I created a template for my flash animation which is a simple content box and a scroll bar beside it.. Anyway at the top I also have 3 pages (they are currently just part of the png background image so they are not buttons of any sort).. My question is how can I make links to these different pages so when clicked in the flash animation they will just open normally like they would in like a website..
I am a flash beginner so I'm not too technical with it... I don't know if I would have to create 3 seperate documents for my 3 pages or something else?
Thanks!Do you expect the loaded SWF to load "into" the SWF that contains the buttons or are you expecting it to overwrite the existing SWF you're already in (similar to a web page)?
Loading a SWF inside is pretty straight forward, as long as the SWF is on the same domain or the domain you're loading from has a crossdomain.xml policy allowing it and the SWF is set to publish with the networking sandbox:
import flash.display.Loader;
import flash.net.URLRequest;
import flash.events.Event;
var myLoader:Loader = new Loader();
// listen for completion
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, handleCompleteF);
// usually add some IOErrorEvent or SecurityErrorEvent handlers here
// button hook here
myButtonInstanceName.addEventListener(MouseEvent.CLICK, loadPageF);
function loadPageF(e:MouseEvent):void
// try to load
try
myLoader.load(new URLRequest('another.swf'));
catch (e:*)
// catch any error, trace it to flash IDE for debugging
trace("Error loading SWF: " + e);
function handleCompleteF(e:Event):void
// success, add to display list
addChild(myLoader);
Season to taste, like moving the position of the Loader object. The Loader will contain the SWF in the .content property (e.g. myLoader.content) and is a display object so you can just add it directly to the display list.
If you add a second button you can re-use the myLoader to .load() a different SWF, just point it to a new function. You could re-use the same function but you'd need to detect the different buttons (possibly via the .name property). I presume you might want to do "different things" when different pages are loaded so I'm assuming you'd probably use a different function rather than make a huge reused branching function.
More info on Loader with sample code here:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Loader.ht ml#includeExamplesSummary -
Add button with specifics features in toolbar .
Hi Everybody,
I would like to add a button on toolbar with the same features than
the "HTML" and "Plain text" buttons. These buttons don't have
descriptive text when the window is large enough to see them. When the
window is to small to see same buttons, the button ">>" has to be clicked
and only then may we see the descriptive text.
When the window is in full display, the buttons display descriptive text
and make mandatory to widen the window in an exagerate way. Would it be
possible to display the descriptive text ONLY when the button ">>" is
clicked?
Best Regards,
PierreTrying second solution:Getting image in menu bar but mouse click is not working on that menu
Code changed:
//created constructor
OptionCompo()
try
img = javax.imageio.ImageIO.read(new java.net.URL(getClass().getResource("zoom.gif"), "zoom.gif"));
catch(Exception e){}
//changed code of paintComponent()
protected void paintComponent(Graphics g)
Graphics2D g2 = (Graphics2D)g;
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
int h = getHeight();
Font font = UIManager.getFont("Menu.font");
g2.setFont(font);
FontRenderContext frc = g2.getFontRenderContext();
//Rectangle2D r = font.getStringBounds(text, frc);
float sx = 5f;
//float sy = (float)((h + r.getHeight())/2) -
// font.getLineMetrics(text, frc).getDescent();
//g2.drawString(text, sx, sy);
if(img != null) g.drawImage(img,0,0,this);
double x = sx +/* r.getWidth() +*/ sx;
//in main
OptionCompo test = new OptionCompo();
What I need to do? -
How to add JPGS with bad ICC profile?
I've just started using LR 3 64 (with the newest update) and I've run into a problem with some JPG files. After import, I just get a blank box with a warning triangle, and I can't view them. If I tell it to edit the file in CS5, CS5 gives me a warning that the ICC profile cannot be used because it is invalid and will be ignored. Once I've opened the file in CS5 and saved it, LR can handle the new version without problems. As opening and saving causes some image deterioration (and takes an effort if many photos) is then any better way to fix this problem?
I guess ExifTool can do it.
UPDATE:
Here' the syntax:
Remove ICC profile from file "file.jpg":
exiftool -icc_profile= file.jpg
Remove ICC profiles from all files from directory "dir":
exiftool -icc_profile= dir -
Start Developing iOS Apps Today tutorial Edit button instead of Add button
In the Start Developing iOS Apps Today tutorial, I followed the instructions but after adding data (the final part), instead of seeing the + symbol, which should take me to the add item view, I saw the word edit, which took me to a screen where I could delete items.
The instructions say:
The actual code for viewDidLoad includes some additional lines—inserted by Xcode when it created XYZListViewController—that are commented out. Feel free to leave them in.
Referring to the following code in XYZToDoListTableViewController:
// Uncomment the following line to preserve selection between presentations.
self.clearsSelectionOnViewWillAppear = NO;
// Uncomment the following line to display an Edit button in the navigation bar for this view controller.
self.navigationItem.rightBarButtonItem = self.editButtonItem;
As it turns out, the bottom line overrides the add button with an edit button. The good news is that by changing rightBarButtonItem to leftBarButtonItem, the add symbol reappears, and the Edit button is moved to the other side.make sure u wrote the method in XYZToDoListViewController.m rather than XYZAddToDoItemViewController.m
-
[VB CS5] Adding buttons with page hyperlinks (hyperlinkpagedestinations)
Hi people.
I'm trying to add buttons with a script that link to pages.
I have got this far but the documentation is sparse and i can't find a solution.
My code so far
REM====Initiliasing
Set myInDesign = CreateObject("InDesign.Application")
Set myDocument = myInDesign.Documents.Item(1)
Set myPage = myDocument.Pages.Item(1)
REM====Adding the button
Set but = myDocument.Pages.Item(1).Buttons.Add
but.GeometricBounds = Array(0,0,25,25)
but.select()
REM==== Adding the hyperlink
set my_hyperlink = myDocument.hyperlinkPageDestinations.add(myDocument.Pages.Item(232))
Creates the button ok, seems to create the hyperlink ok. That hyperlink should go to page 232.
How do you add the hyperlink to the button so the button goes to page 232 when clicked?Ok i'm just going to go ahead and answer my own question.
Seems you can't add it to a button but can add the hyperlink to a rectangle and it works.
So the correct code looks like this
Set myInDesign = CreateObject("InDesign.Application")
Set myDocument = myInDesign.Documents.Item(1)
Set myPage = myDocument.Pages.Item(1)
Set oImageRect = myDocument.Pages.Item(1).Rectangles.add
oImageRect.GeometricBounds = Array(50,0,25,25)
set my_hyperlinkPAGE=myDocument.hyperlinkPageDestinations.add(myDocument.Pages.Item(5))
Set my_hyperlinkSource = myDocument.HyperlinkPageItemSources.Add(oImageRect)
set myHyperlink = myDocument.Hyperlinks.Add(my_hyperlinkSource, my_hyperlinkPAGE)
Voila, goes to page 5! -
Add data to the table in the database with the use of add button
The name of my database is Socrates.
The name of the table in the database is Employees
I want to be able to add data to the database. i am presently working on the add button such that when i enter date into the textfield and press the add button it should automatically register in the table.
The error upon compilation is with this line of code
If (ae.getSource() == jbtnA)// it says that ";" is expected
Below is the entire code
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Mainpage extends JFrame implements ActionListener
JTextField jFirstName = new JTextField(15);
JTextField jSurname = new JTextField(12);
JTextField jCity = new JTextField(10);
JTextField jCountry = new JTextField(12);
JTextField jSSN = new JTextField(8);
JLabel jFirstLab = new JLabel("First Name");
JLabel jSurnameLab = new JLabel("Surname");
JLabel jCityLab = new JLabel("City");
JLabel jCountryLab = new JLabel("Country");
JLabel jSSNLab = new JLabel("Social Security Number (SSN)");
JButton jbtnA = new JButton ("Add");
JButton jbtnPrv = new JButton ("Previous");
JButton jbtnNt = new JButton ("Next");
JButton jbtnDl= new JButton ("Delete");
JButton jbtnSrch = new JButton ("Search");
public Mainpage (String title)
super (title);
Container cont = getContentPane();
JPanel pane1 = new JPanel();
JPanel pane2 = new JPanel();
JPanel pane3 = new JPanel();
pane1.setLayout (new GridLayout (0,1));
pane2.setLayout (new GridLayout(0,1));
pane3.setLayout (new FlowLayout());
pane1.add(jFirstLab);
pane1.add(jSurnameLab);
pane1.add(jCityLab);
pane1.add(jCountryLab);
pane1.add(jSSNLab);
pane2.add(jFirstName);
pane2.add(jSurname);
pane2.add(jCity);
pane2.add(jCountry);
pane2.add(jSSN);
pane3.add(jbtnA);
pane3.add(jbtnPrv);
pane3.add(jbtnNt);
pane3.add(jbtnDl);
pane3.add(jbtnSrch);
cont.add(pane1, BorderLayout.CENTER);
cont.add(pane2, BorderLayout.LINE_END);
cont.add(pane3, BorderLayout.SOUTH);
jFirstName.addActionListener(this);
jSurname.addActionListener(this);
jCity.addActionListener(this);
jCountry.addActionListener(this);
jSSN.addActionListener(this);
jbtnA.addActionListener(this);
jbtnPrv.addActionListener(this);
jbtnNt.addActionListener(this);
jbtnDl.addActionListener(this);
jbtnSrch.addActionListener(this);
validate();
setVisible(true);
setDefaultCloseOperation(EXIT_ON_CLOSE);
pack();
setResizable(false);
public void actionPerformed(ActionEvent ae)
If (ae.getSource() == jbtnA)
fst = jFirstName.getText();
srn = jSurname.getText();
cty = jCity.getText();
cnty = jCountry.getText();
int sn =
Interger.parseInt(jSSN.getText());
String ad = "Insert into Employees
(Firstname,Surname,City,Country,SSN)" +
"values('"fst"','"srn"','"cty"','"cnty"','"sn"')";
Statement stmt = con.createStatment();
int rowcount = stmt.executeUpdate(ad);
JOptionPane.showMessageDialog("Your
details have been registered");
Statement stmt = con.createStatment();
int rowcount = stmt.executeUpdate(ad);
public static void main (String args[])
Mainpage ObjFr = new Mainpage("Please fill this
registration form");
try
Class.forname("sun.jdbc.odbc.JdbcOdbcDriver");
String plato = "jdbc:odbc:socrates";
Connection con =
DriverManager.getConnection(plato);
catch(SQLException ce)
System.out.println(ce);
}i have restructured the code, but the following line of code is giving error:
String plato = jdbc:odbc:socrates;
the entire code is below:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
public class Mainpage extends JFrame implements ActionListener
JTextField jFirstName = new JTextField(15);
JTextField jSurname = new JTextField(12);
JTextField jCity = new JTextField(10);
JTextField jCountry = new JTextField(12);
JTextField jSSN = new JTextField(8);
JLabel jFirstLab = new JLabel("First Name");
JLabel jSurnameLab = new JLabel("Surname");
JLabel jCityLab = new JLabel("City");
JLabel jCountryLab = new JLabel("Country");
JLabel jSSNLab = new JLabel("Social Security Number (SSN)");
JButton jbtnA = new JButton ("Add");
JButton jbtnPrv = new JButton ("Previous");
JButton jbtnNt = new JButton ("Next");
JButton jbtnDl= new JButton ("Delete");
JButton jbtnSrch = new JButton ("Search");
Statement stmt;
String ad;
public Mainpage (String title)
super (title);
Container cont = getContentPane();
JPanel pane1 = new JPanel();
JPanel pane2 = new JPanel();
JPanel pane3 = new JPanel();
pane1.setLayout (new GridLayout (0,1));
pane2.setLayout (new GridLayout(0,1));
pane3.setLayout (new FlowLayout());
pane1.add(jFirstLab);
pane1.add(jSurnameLab);
pane1.add(jCityLab);
pane1.add(jCountryLab);
pane1.add(jSSNLab);
pane2.add(jFirstName);
pane2.add(jSurname);
pane2.add(jCity);
pane2.add(jCountry);
pane2.add(jSSN);
pane3.add(jbtnA);
pane3.add(jbtnPrv);
pane3.add(jbtnNt);
pane3.add(jbtnDl);
pane3.add(jbtnSrch);
cont.add(pane1, BorderLayout.CENTER);
cont.add(pane2, BorderLayout.LINE_END);
cont.add(pane3, BorderLayout.SOUTH);
jFirstName.addActionListener(this);
jSurname.addActionListener(this);
jCity.addActionListener(this);
jCountry.addActionListener(this);
jSSN.addActionListener(this);
jbtnA.addActionListener(this);
jbtnPrv.addActionListener(this);
jbtnNt.addActionListener(this);
jbtnDl.addActionListener(this);
jbtnSrch.addActionListener(this);
validate();
setVisible(true);
setDefaultCloseOperation(EXIT_ON_CLOSE);
pack();
setResizable(false);
try
Class.forname(sun.jdbc.odbc.JdbcOdbcDriver);
String plato = jdbc:odbc:socrates;
Connection con = DriverManager.getConnection(plato);
stmt = con.createStatment();
catch(SQLException ce)
System.out.println(ce);
catch(ClassNotFoundException ce)
System.out.println(ce);
public void actionPerformed(ActionEvent ae)
try
if(ae.getSource().equals(jbtnA))
fst = jFirstName.getText();
srn = jSurname.getText();
cty = jCity.getText();
cnty = jCountry.getText();
int sn = Interger.parseInt(jSSN.getText());
ad = "Insert into Employees
values('"+fst+"',"+srn+"','"+cty+"','"+cnty+"','"+sn+"')";
stmt.executeUpdate(ad);
JOptionPane.showMessageDialog(this, "Your details have been
registered");
catch(SQLException ce)
System.out.println(ce);
public static void main(String args[])
Mainpage ObjFr = new Mainpage("Please fill this registration form");
} -
How to add a button with Javascript to Library
Hi
I am using Captivate 5.5 to create a template.
In the files which will be created using this template, we will be adding a button which executes a Javascript. Now, my question is, since this button will be used on multiple slides in the file, can I add this button (with the Javascript) to the library? Currently, we create it manually everytime.
We don't have a programmer in our team, so we can't create widget. Is there an alternative way?
Thanks for your help.
SreekanthThanks for that reply.
I now have a blank slide with the button (including the javascript) on it which solves the problem of importing it manually.
However, when we use this template to import PowerPoint presentations, when we publish the file, the first slide (the one on which I have this button) will be blank and has to be manually deleted.
Is there a way to eliminate this manual work? I tried hiding and using some actions. But it was not of any use. -
Can we add button in query region along with go and clear
Hi Friends,
i have a requirement as below steps-
1)i have developed search pgae by using query regiion
2) in pgae,first we have search items,go and clear(submit buttons), table region.
3)here go and clear buttons came automatically.
4) i can able to add button in front of the page and end of the page.
4) my requirement is i need to add one more button along with go and clear(here go and clear button are in between search items and table region) .
5)i am not able to add button along with go and clear.
Can any one know how to do this--
Thanks in Advance
vamshiHi Vamshi,
You can not create extra buttons in Standard Query region.
Alternatively you can create your custom region for the search and there you can add a button. If you don't need advanced region, you can create the custom region in place of standard one.
Anoop -
How to Add C3PO Toolbar Buttons with GroupWise in C#
Hello
i try How to Add C3PO Toolbar Buttons with GroupWise in C#. I do all like
i read here
http://support.novell.com/techcenter...a20000906.html
But i can see any result
i create file with Wizard(witout project)
Then i add this file to my EXE project
and add 2 button "Reg C3PO"(RegC3po();) and "Unreg C3PO"(UnRegC3po();)
and init
what i do wrong?
i try find ansver but find only this
http://newsportal.novell.com/article...sup.gwc3po#925
what its mean?
news:SR%Zg.16416$[email protected]:
about this question
http://newsportal.novell.com/article...sup.gwc3po#673
C3POs still don't work in the address book?
KirillKirill wrote:
> Hello and Merry Chritmas :)
>
> regsvr32 onlu for DLL. My project create EXE file :(
>
> Kirill
Ups......
You'll, according to the readme generated by your C3PO Wizard, have to run
Regasm.exe <your C3PO server>
That will create the needed regkeys...
Also, you might have to add the typelib wrapper and assambly to the GAC, bu typing:
Gacutil -i <your C3PO server>
Best Regards
Tommy Mikkelsen
IT Quality A/S
Denmark
Novell Developer Forums SYSOP
Please Report back any success or failure, That way we all learn
Sorry, but no support through email
"I hate bugs".......Tommy Lee Jones, MIB
Be a GroupWiseR, go http://www.groupwiser.net -
How t o add Link with a button in jsp
hi,
I want to add link with a button in jsp. How will i do it? Is there anyone who can help me? Please help me.
With Regards
BinaTry this,
<input type='button' onclick='window.location="a.html"'> -
HT2492 Problems with add (+) button
Hi, my add button in the lower-left corner of the screen doesn't work anymore, any idea what I can do? I can click it, but it has the same effect as clicking any other empty part of the dashboard... Cannot add or modify any of my apps.
Thanks!Also, I just checked another login - my "safe login" - to see if it did it there too, and it was perfectly fine. So it has got to be something with the user profile. No idea what though. I'm trying to find something online to help clear it up. If I do, I'll post back here to share.
-
Add button to a datagrid with custom class
Hi.
I have a custom class that i put in the dataprovider to a datagrid. And when i column with buttons i get the following error.
ReferenceError: Error #1069: Property null not found on COMPONENTS.Output.OutputFile and there is no default value.
at mx.controls::Button/set data()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\Button.as:873]
at mx.controls::DataGrid/http://www.adobe.com/2006/flex/mx/internal::setupRendererFromData()[E:\dev\3.0.x\framework s\projects\framework\src\mx\controls\DataGrid.as:1646]
at mx.controls::DataGrid/commitProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\m x\controls\DataGrid.as:1606]
at mx.core::UIComponent/validateProperties()[E:\dev\3.0.x\frameworks\projects\framework\src\ mx\core\UIComponent.as:5670]
at mx.managers::LayoutManager/validateProperties()[E:\dev\3.0.x\frameworks\projects\framewor k\src\mx\managers\LayoutManager.as:519]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:669]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\sr c\mx\core\UIComponent.as:8460]
at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src \mx\core\UIComponent.as:8403]
What shuld i do?
Thanks for help.If you are talking SE54 and Maintenance Views, when I do an SM30 on the Maintenance View and do SYSTEM->STATUS, I see GUI STATUS ZULG on program SAPLSVIM. If you look at that status, I see two buttons with dynamic text. The first one is call GPRF and has dynamic text VIM_PR_STAT_TXT_CH. You can find a suitable PBO event to set the text of that function code and if that works, find a suitable PAI event to respond to that function.
I recall finding some documentation on customizing the GUI STATUS but no luck today trying to find it.
Let us know how it goes.
Maybe you are looking for
-
Contribute CS4 on Windows 7 64 bit - Attempting to edit existing website results in a blank page
Hi, I am an IT Tech and not an Adobe Contribute user so my apologies in advance for wrong terminology. I just installed a new Windows 7 64 bit PC for a client and installed their copy of CS4 Contribute. When they attempt to edit their website the pag
-
How to track face and allocate lips in the face using labview
My final year project is "Text Input System developed by Lips Image Recognition based on Labview for Serious Disabled". In this, image of person's face will be acquired by CCD camera.. Then it has stages like face tracking, lips area allocation and e
-
When attempting to convert PDF to DOCX, the error message was exactly as follows: "There was a problem logging in. Try again?" with a "Yes" and a "No" button. Clicking "Yes" give the same message, "No" aborts the process.
-
Converting PDF to Word (Using Acorbat 8)
Any suggestions as to the best/most efficient way to process Acrobat files to Microsoft word with the least amount of work in re-formatting? We currently have Acrobat 8 (Windows/OS-XP) and would like to know if there are any layered utilities to spee
-
7.1 Update & Can't Make Calls
03/11 Just updated my 5S and can't make any calls out. I did receive a call but no calls out. I can't even call my wife's 5S which is by my side. Any thoughts out there? Thanks for your help. Mike