Adding functionality to existing buttons, not overriding
Hi,
I have a toolbar that I created that has some new buttons as well as some of the already existing buttons in acrobat. I know we can use AVSetExecuteProc() to set the functionality of the buttons. For the already existing buttons, is there some way to add to the existing functionality and not completely override it?
Hi,
I'm trying to "head patch" the button's execution proc. How could I achieve
this?
Similar Messages
-
Adding functionality to Next button
Hi,
I am inplementing a train with 3 pages. While navigating from page 2 to page 3. I need to fire a server side API. I am having difficulty in distinguishing the "Next" and "Back" buttons since both buttons raised the "goto" event. As a result my validation fires on both Next and Back button. How can I distinguish the Next button from Back button, or how can I work around it.
Thnaks a lotI figured it out. It seeme like the framework is maintaing a parameter name "value" which contain the target page. Here is how it work for me..
if (("goto".equals(pageContext.getParameter(EVENT_PARAM))) &&
("3".equals(pageContext.getParameter("value")))) -
I have a form that I want to use to collect peoples information with a submit button. I am trying to get the data that gets inserted to be added to an existing excel doc when the submit button gets hit, the form then resets and someone else can fill in the same form, hit submit and his data gets added to the existing data in the same excel doc. It is basically the same as the 'collecting response' option but without having to be online. The form is going to be used at a boat-show and I am going to get people to fill it out on an iPad. Does anybody know if this is possible?
You could connect a bunch of 3700s to each computer and do this .
Or...since you're the one who monitors the monthly limit, you could restrict an individual's internet access once you see that you guys are coming too close to the cap.
I don't work for Cisco. I'm just here to help. -
Hi, I have created a substitution rule to substitute the investment profile in my projects with a blank for any WBS which is not level one. I am not sure why this rule does not take effect immediately a new WBS is included. When I try to carry out the substitution manually, I get the error message 'Error when processing asset under construction (AuC) for WBS element'. Any ideas how I can get this substituion to work when a new WBS is added to an existing project?
You should use the substitution otherway....
I believe your project is in REL status and also you have defaulted IM profile in the project, so whenever you create a WBSE, the IM profile is inherited to the WBSE and since it is in REL status, the system will create an AUC based on your IM profile and now you are using substituition to remove the IM profile so this will cause the problem...Instead of this....try this...do not default IM profile in project, and instead of removing IM profile for all WBSE which is not level 1, use substitution to write IM profile in WBSE which is only level 1. -
Exit button not functioning in MSS Team - Recruiting - Create new Candidate
Hello Experts,
Exit button not functioning in MSS Team - Recruiting - Create new Candidate Assessment iview
Location of exit button :Create new Candidate Assessment iview we have next button when we click on we can see exit button in next iview
any idea why it not functioning / help on this / or is it a bug from SAP
Thanks,
Regards
VijayHi Krishore,
Thanks for reply,
The version of BP_ERP5ESS is 1.0 SP8 and The version of SAP_ESS is 600 SP8.
do need to add extra patch for this.
please help me on this issue.
Thanks,
Regards
Vijai -
Function group BUS1001 does not exist
Hi Guys,
I have SAP QIM system which is built on NetWeaver Stack. It pulls all the data from another ECC system.
I am facing an issue while doing F4 on the field of Material. Ideally it should pull all the values there in E60 System but it is giving me an error
"Function group BUS1001 does not exist".
Can someone help me with this?Hi,
Sometimes the navigation Index for FM/program needs updating. Try this, open the FM and in the menu go to Utilities then 'update Navigation Index'.
Best of luck,
David -
Function module RSD_ZIO_ALM02_TXT_GET does not exist
Hi
I am trying to copy the data from one info cube to another info cube with the read master data in transformation rule for some of the info object. This exercise I have done many times successfully for the same structure but suddenly I am getting this error without doing any changes
'Function module RSD_ZIO_ALM02_TXT_GET does not exist'
After getting this error I have delete the transfer rule for above object than the some error are coming for the another info object which also used for read master data.
Kindly help me .(we are working on ECC 6)
Thanks and Regards
VinayHi Vis
I tried this one also but its not working. All the info objects are active and I tried after reactivating also but still error exits.
Thanks and regards
Vinay -
Function module RSD_ZBCSASSET_TXT_GET does not exist
Hi,
We are working with SEM-BCS 6.0 (SAP BI 7.0), and I want to trasfer master data of a infoobject from BI to SEM BCS through load from data stream task.
When I going to execute the task the system display the next message Function module RSD_ZBCSASSET_TXT_GET does not exist. Message no. EU802.
Thanks in advanced
CarlosSame error occured in a planning sequence of mine. The related characteristic did not have texts.
The error occured after the addition of a navigational attribute to the MultiProvider.
Solution: re-activate the aggregation level.
Late, but hope that helps... -
Calling a remote enabled function module which does not exist in caller sys
Hi,
I have a a system ABC from which I am trying call a rfc enabled fm(Test) present in system XYZ.
The fm(Test) does not exist in the system ABC so I am getting generation errors and dumps.
Is there a way for me to call these remote enabled function modules which does not exist in the caller system without the obvious errors etc.
Is there any special way.
ThanksHi,
please check this sample:
REPORT zcallfm .
DATA: xv_return TYPE sysubrc.
CALL FUNCTION 'DOESNOTEXIST'
DESTINATION 'NOWHERE'
EXPORTING caller = sy-sysid
IMPORTING return = xv_return
EXCEPTIONS system_failure = 1
communication_failure = 2
OTHERS = 4.
It shouldn't throw any generation errors in your system!
Regards,
Klaus -
I'm trying to attach a javascript funtion to a button and I
am having problems with it. Original the javascript function is
attached to a dynamically created text string. Well when I want to
attach the same function to the button it won't work, let me know
what to do make this button work with the function.
~~~~~Script~~~~~
function addRowClass(tableID, tableBody, instructionArray)
// write add link to page
var oTable = document.getElementById(tableID);
if(oTable)
// make the link
oAddLink = document.createElement("a");
oAddLink.setAttribute("href", "#");
oAddLink.onclick = function() { addFormRow(tableBody,
instructionArray); return false; }
var oLinkText = document.createTextNode("Add Another Row");
oAddLink.appendChild(oLinkText);
document.body.insertBefore(oAddLink,
document.body.firstChild);
/* main function */ <--The Function I want to attach to
button
function addFormRow(tableBody, fieldArray)
tableBody = document.getElementById(tableBody);
newRow = document.createElement("tr");
rowNum = tableBody.getElementsByTagName("tr").length - 1;
<-- ****The Error****
for (var i = 0; i <= fieldArray.length; i++)
oCell = document.createElement("td");
oInput = document.createElement("input");
switch(fieldArray[0]
case "text":
createTextbox(fieldArray[2], rowNum, fieldArray[1]
, fieldArray[3]);
break;
default:
//an input error has occurred. Nothing will be written out
to the cell.
break;
oCell.appendChild(oInput)
newRow.appendChild(oCell)
rowNum += 1;
tableBody.appendChild(newRow)
~~~~ERROR~~~~
Line 149 * <-- ****The Error**** Located in the script
"Null" is null
~~~~My Button~~~~
<input type="button" name="Button1" value="Create Row"
class="NewRowButton" value="javascript=addFormRow()">
~~~~End~~~~~
Thanks for the helpTry <input type="button" name="Button1" value="Create Row"
class="NewRowButton"
onClick="addFormRow();">
"TGuthrie" <[email protected]> wrote in
message
news:[email protected]...
> I'm trying to attach a javascript funtion to a button
and I am having
> problems
> with it. Original the javascript function is attached to
a dynamically
> created
> text string. Well when I want to attach the same
function to the button it
> won't work, let me know what to do make this button work
with the
> function.
>
> ~~~~~Script~~~~~
>
> function addRowClass(tableID, tableBody,
instructionArray)
> {
> // write add link to page
> var oTable = document.getElementById(tableID);
> if(oTable)
> {
> // make the link
> oAddLink = document.createElement("a");
> oAddLink.setAttribute("href", "#");
> oAddLink.onclick = function() { addFormRow(tableBody,
instructionArray);
> return false; }
> var oLinkText = document.createTextNode("Add Another
Row");
> oAddLink.appendChild(oLinkText);
>
> document.body.insertBefore(oAddLink,
document.body.firstChild);
> }
> }
>
> /* main function */ <--The Function I want to attach
to button
> function addFormRow(tableBody, fieldArray)
> {
> tableBody = document.getElementById(tableBody);
> newRow = document.createElement("tr");
> rowNum = tableBody.getElementsByTagName("tr").length -
1; <-- ****The
> Error****
>
> for (var i = 0; i <= fieldArray.length; i++)
> {
> oCell = document.createElement("td");
> oInput = document.createElement("input");
>
> switch(fieldArray[0]
> {
> case "text":
> createTextbox(fieldArray[2], rowNum, fieldArray[1]
> fieldArray[3]);
>
> break;
>
> default:
> //an input error has occurred. Nothing will be written
out to the cell.
> break;
> }
> oCell.appendChild(oInput)
> newRow.appendChild(oCell)
> }
> rowNum += 1;
> tableBody.appendChild(newRow)
> }
>
> ~~~~ERROR~~~~
>
> Line 149 * <-- ****The Error**** Located in the
script
> "Null" is null
>
> ~~~~My Button~~~~
> <input type="button" name="Button1" value="Create
Row"
> class="NewRowButton"
> value="javascript=addFormRow()">
>
> ~~~~End~~~~~
>
> Thanks for the help
> -
I am coding a video player in Netbeans 6.8. just find two problems:
1. the browser button not working in browser when I run the project from Netbeans under "run in browser" mode. however under "standard execution" mode, everything is fine.
2. can not run the jar file in the project's dist directory directly. in other word, I can not run the jar file outside of Netbeans.
I appreciate any help. thanks.
Main.fx:
package gui;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.paint.Color.*;
* @author Jethro
var face=Face{};
function run(){
Stage{
title: "player"
resizable:false
scene: Scene{
width:800
height:600
fill:DARKBLUE
content: [face]
}Face.fx:
package gui;
import javafx.scene.CustomNode;
import javafx.scene.Group;
import javafx.scene.Node;
import javafx.scene.control.Button;
import javafx.scene.layout.VBox;
import javafx.scene.media.Media;
import javafx.scene.media.MediaPlayer;
import javafx.scene.media.MediaError;
import javafx.scene.input.MouseEvent;
import javafx.scene.media.MediaView;
import javafx.scene.control.ProgressBar;
* @author Jethro
public class Face extends CustomNode {
public var lbf=LBF{};
public var enable=true;
public var mark="play";
public var sourceOfMedia:String;
public def player=MediaPlayer {
repeatCount:MediaPlayer.REPEAT_FOREVER
onError:function(e:MediaError){
var er=e.message;
media : bind Media {
source: sourceOfMedia
public def view=MediaView {
mediaPlayer:bind player
preserveRatio: true
public def bar=ProgressBar {
height:10
width:bind scene.width
progress: bind
if(player.media !=null){
player.currentTime.toMillis()
/player.media.duration.toMillis();
}else{
0.0
public var play=Button {
onMousePressed:function(e:MouseEvent){
if(enable and player.media != null){
mark="pause"; println("playing...");
sourceOfMedia=lbf.uri;
player.play();
enable=false;
}else{
mark="play";
player.pause();println("paused...");
enable=true;
text: bind mark
public override function create(): Node {
return Group {
content: [
VBox{
content: [
lbf,
bar,
play,
view,
}LBF.fx:
package gui;
import javafx.scene.CustomNode;
import javafx.scene.Group;
import javafx.scene.control.TextBox;
import javafx.scene.layout.HBox;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
import javafx.scene.text.Font;
import javafx.scene.text.Text;
import javafx.scene.Node;
import javafx.geometry.HPos;
import javafx.geometry.VPos;
import javafx.scene.control.Button;
import javax.swing.JFileChooser;
* @author Jethro
public class LBF extends CustomNode{
public var uri:String;
public var whereis=Text {
fill:Color.BLUE
font : Font {
size: 20
x: 10, y: 30
content: "location: "
public var location=TextBox{
text:"the song's location"
columns:40
selectOnFocus:true
public var browser=Button {
text: "Browser"
action: function() {
var jfc=new JFileChooser();
jfc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
var val = jfc.showOpenDialog(null);
if(val == JFileChooser.APPROVE_OPTION) {
location.text = jfc.getSelectedFile().getAbsolutePath();
uri=jfc.getSelectedFile().toURI().toString();
println(location.text);
public var face=Group {
content: [
Rectangle {
x: 0, y: 0
width: 800, height: 50
fill: Color.SILVER
HBox{
width:800
height:50
hpos:HPos.CENTER
vpos:VPos.CENTER
spacing:5
content: [whereis,location,browser]
public override function create():Node{
return face;
}thanks for your reply but I need more specific operation.
maybe I am not very clear about the problem one. I mean when I run the code in standard mode, if I click the browse button, a window will pop out and I can choose a video file from my local harddisk. but if I run it in "web start execution" mode and "run in browser" mode. the browse button make no response when I click it.
Edited by: Phoenix2006 on Feb 8, 2010 2:35 PM
Edited by: Phoenix2006 on Feb 8, 2010 2:37 PM
Edited by: Phoenix2006 on Feb 8, 2010 2:42 PM -
How to popup a page from a button not in a region position
Hello.
I am using Apex 2.2.1. I have a form (not a report) on which I've placed a button that is positioned "among the items" as opposed to being placed in a specific region position.
When the button is clicked I would like to have another page popup. The problem is that I can get this to work only if the button is placed in a region position. With the button in a region position, I define the target to be a URL and then place a call to the popUp2 function, as in:
javascript:popUp2('f?p=&APP_ID.:32:&SESSION.::NO:::', 900, 700);
This works fine.
However, I need to position my button on the immediate right hand side of a form item. But when I create a button in such a position, I have no field in which to place the call to the popUp2() function. Instead, I have to create a "Branch to Page or URL" and then place my javascript call in the Branch field. Unfortunately, when I click the button, Apex wants to branch to page zero instead of the desired page. I saw that when I move the mouse over the button, Apex shows:
javascript: doSubmit('MY_BUTTON_REQUEST');
And, as mentioned, Apex tries to branch to page zero.
How does one call the popUp2() function from a button that is not placed in a region position?
Thank you for your help.
ElieHi Elie,
I had the same problem ... I only got it solved with creating a hidden item and adding the input-tag into the "Post Element Text" field.
Just have a look in the source code of your page, how a button is build and copy the necesaary code to the mentioned field. So you get a button with ApEx layout and can add your javascript call.
chrissy -
Button not working into a movieClip
Hi i have made a movieclip and there is 2 buttons into that movieClips I have added Events on those buttons but those are not working. here my code
links.demoButton.addEventListener(MouseEvent.CLICK.democlick)
links.livelinkButton.addEventListener(MouseEvent.CLICK.liveclick)
function democlick(event:MouseEvent):void{
trace('demo button working')
function liveclick(event:MouseEvent):void{
trace('live button working')if demoButton and livelinkButton were created in the ide (and not using actionscript), use:
links.getChildByName("demoButton").addEvent...etc
links.getChildByName("livelinkButton").addEvent...etc -
Toolbar Button not Appearing in Plugin
The following code is not producing a button in the file toolbar in Acrobat 8 Professional, despite being called from PluginInit:
bool AddToolbarItems()
AVToolBar toolBar = AVAppGetToolBar();
AVToolButton endToolsGroupButton;
//No tool bar?
if (!toolBar) return false;
DURING
//Get the sep button
endToolsGroupButton = AVToolBarGetButtonByName(toolBar, ASAtomFromString("endToolsGroup"));
//Set up add file button
attachButton = AVToolButtonNew(ASAtomFromString("DCA:ACRAddFileButton"), GetAddFileIcon(), true, false);
AVToolButtonSetExternal(attachButton, TOOLBUTTON_EXTERNAL);
AVToolBarAddButton(toolBar, attachButton, true, endToolsGroupButton);
AVToolButtonSetExecuteProc(attachButton, ASCallbackCreateProto(AVExecuteProc, AddFile), NULL);
AVToolButtonSetComputeEnabledProc(attachButton, ASCallbackCreateProto(AVComputeEnabledProc, PluginIsEnabled), NULL);
AVToolButtonSetHelpText(attachButton, "Add File to ACR");
HANDLER
return false;
END_HANDLER
return true;
What am I missing? I can attach to Acrobat.exe and walk through the code, so I know it's executing.
Thanks.Leonard:
Thanks for the reply.
> AVAppGetToolbar - what toolbar are you expecting here? Perhaps you want a specific toolbar - or at least one that you create yourself...
This was the issue.
The docs describe AVAppGetToolbar as:
"Retrieves a special toolbar representing the union of all toolbars in the system....If this toolbar is passed to AVToolBarAddButton(), the newly added button will actually be placed on the File menu, unless it is being positioned next to an existing button, in which case it will be placed on the same toolbar as the existing button."
Perhaps when I looked for the "endToolsGroup" button, it added it to an unexpected toolbar? Dunno.
AVAppGetToolBarByName("File") worked great.
Thanks,
Brett -
Hi,
According to this document: SMB2 Client Redirector Caches Explained File.exists() is not accurate on a smb2 network share. I am not able to change any register settings, so I want to deal with it. According to the document there is an API to get the notifications from the file system. I assumed that the WatchService is the Java implementation of this API. Am I correct?
I started with the WatchDir example from the jdk samples and stripped it a bit. I only need to know when a file is created and delete (I don't care about file modifications). For testing I have added new File.exists() when a new event has been triggered. I also start a separated Thread which test the file existence also. When I don't start this separated thread the file exists returns true immediately. When the extra thread is started it is not accurate any more. I need a more accurate file.exists check in the whole application and all running threads.
The output for my test case is this:
FileExistsThread: subdir\test.txt == false
watch registered for dir: subdir\
FileExistsThread: subdir\test.txt == false
FileExistsThread: subdir\test.txt == false
FileExistsThread: subdir\test.txt == false
FileExistsThread: subdir\test.txt == false
FileExistsThread: subdir\test.txt == false
FileExistsThread: subdir\test.txt == false
WatchDir event: ENTRY_CREATE: test.txt
WatchDir: subdir\test.txt exists == false
FileExistsThread: subdir\test.txt == false
FileExistsThread: subdir\test.txt == false
FileExistsThread: subdir\test.txt == false
FileExistsThread: subdir\test.txt == false
FileExistsThread: subdir\test.txt == false
FileExistsThread: subdir\test.txt == false
FileExistsThread: subdir\test.txt == false
FileExistsThread: subdir\test.txt == false
FileExistsThread: subdir\test.txt == false
FileExistsThread: subdir\test.txt == true
FileExistsThread: subdir\test.txt == true
FileExistsThread: subdir\test.txt == true
FileExistsThread: subdir\test.txt == true
As you can see the file test.txt is created on line 9. The FileExistsThread have seen it on line 20, (at least 10 x 300 ms later).
For testing I have used 2 Windows 7 pc's (with smb2 enabled which is default). The working directory must be on the remote pc and the file test.txt must be created (or copied from another folder) on the remote pc (not using the network drive, but on the pc itself).
Here is my test code:
package nl.test.main;
import static java.nio.file.StandardWatchEventKinds.ENTRY_CREATE;
import static java.nio.file.StandardWatchEventKinds.ENTRY_DELETE;
import static java.nio.file.StandardWatchEventKinds.OVERFLOW;
import java.io.File;
import java.io.IOException;
import java.nio.file.ClosedWatchServiceException;
import java.nio.file.FileSystems;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.WatchEvent;
import java.nio.file.WatchKey;
import java.nio.file.WatchService;
public class WatchDir
private final WatchService _watcher;
private final String _dir;
public WatchDir( String dir ) throws IOException
_dir = dir;
_watcher = FileSystems.getDefault().newWatchService();
Paths.get( dir ).register( _watcher, ENTRY_CREATE, ENTRY_DELETE );
System.out.println( "watch registered for dir: " + dir );
public void run()
try
while ( true )
WatchKey key = _watcher.take();
for ( WatchEvent<?> event : key.pollEvents() )
WatchEvent.Kind<?> kind = event.kind();
if ( kind == OVERFLOW )
continue;
@SuppressWarnings( "unchecked" )
WatchEvent<Path> ev = (WatchEvent<Path>)event;
Path fileName = ev.context();
System.out.println( "WatchDir event: " + kind.name() + ": " + fileName );
if ( kind == ENTRY_CREATE )
String realPath = _dir + fileName;
System.out.println( "WatchDir: " + realPath + " exists == " + new File( realPath ).exists() );
key.reset();
catch ( ClosedWatchServiceException x )
return;
catch ( InterruptedException ex )
return;
public static void main( String[] args )
Thread t = new Thread( new Runnable()
@Override
public void run()
try
while ( true )
String filename = "subdir\\test.txt";
boolean fileExists = new File( filename ).exists();
System.err.println( "FileExistsThread: " + filename + " == " + fileExists );
Thread.sleep( 300 );
catch ( InterruptedException e )
e.printStackTrace();
return;
t.start();
try
new WatchDir( "subdir\\" ).run();
catch ( IOException e )
e.printStackTrace();
Any idea's?
Thanks,
OlafIf you donot have access to note 45172.1 as specified by Laurent Schneider.
Snippet from note
a. Mapped Drive : To use a mapped drive, the user that the service starts as
must have setup a drive to match UTL_FILE_DIR and be logged onto the server
when UTL_FILE is in use.
b. Universal Naming Convention : UNC is preferable to Mapped Drives because
it does not require anyone to be logged on and UTL_FILE_DIR should be set to
a name in the form :
\\\<machine name>\<share name>\<path>
or
"\\<machine name>\<share name>\<path>"
Maybe you are looking for
-
Mapping Error- In IDoc to File scenario
Hi Experts, Got the Mapping error for one interface (IDoc to file). After comparing with successful message found that the field value (TDLINE) is not availbale in first segment (E1EDT10) in idoc for this failed one. Mapping is : TDLINE -- Exists ---
-
Dealing with time-keeping and changing entries
Hi everyone, I'm working on a project for school, and I have to develop a database that works somewhat like eBay. Only instead of auctions users create and place bets. My question is, how would I go about implementing some sort of function that will
-
Configuring My Router to Play Diablo II
I recently purchased a Linksys Wireless Router - G (Model Number WRT54G). I got my network up and running with no problems. Both Computers connect to the internet well, but lo and behold it doesn't seem to allow me to play my Diablo 2 Expansion set v
-
Mail marks my messages as Junk
Hi, When I send a message to myself it is regularly marked as Junk. This can happen when the message is sent to a group list in which I am also a member. Although I unmark them always with "No junk", however this does not seem to solve it. And I have
-
Crawling xmp metadata from pdf's
We have some PDF files which we are crawling in. These PDF's contain XMP metadata tags. I suspect that the PDF accessor is ignoring these tags. We've tried a number of different proprty mappings all to no avail. Has anyone else had any luck crawlingi