Help on control events
hi all
i am doing the report in which the purchase order is not the first field in internal table and i cant even make as it is restricted..but still user needs to have that same order number should not be displayed...i tried using at new or on change but nothing working...so can anyone lpz help in this...
and similarly i have to use at end of..but here also the problem is same..so plz help..
my internal table is like::
DATA: begin of t_ekpo1 occurs 0,
banfn like eban-banfn,
ebeln like ekpo-ebeln,
ebelp like ekpo-ebelp,
werks like ekpo-werks,
matnr like ekpo-matnr,
menge like ekpo-menge,
txz01 like ekpo-txz01,
meins like ekpo-meins,
zzissue_date like ekpo-zzissue_date,
banfn like eban-banfn,
s_menge(13) type c,
quan(13) type c,
and in this i need plz help...
Hi parul,
1. simply using this internal table
(with ebeln as 2nd field)
won't work as u desire
with control-break processing logic.
2. one way is to
create another internal table
with SHUFFLED field (ebeln as 1st)
3. Loop and Move-corresponding
to the 2nd table.
4. Now use this 2nd internal table.
regards,
amit m.
Similar Messages
-
Can we use control events in smartforms
Hi all,
I am srinivas. can we use control events in smartforms, I mean at new, at end of ..... if these are not used can you suggest me any alternative....
Actually my requirement is like a classical report, for which I need to display subtotal and grand totals based on two fields....
Please help me out in this issue as it is very urgent.
<b><REMOVED BY MODERATOR></b>
Thanks in advance....
Regards,
Sri...
Message was edited by:
Alvaro Tejada GalindoHi Nick,
Thanks for the reply... it is really very useful for me.
As I discussed in my earlier mail regarding the output sequence, which should be in the below format.
number quantity uom unitprice amount curr
plant
material
date
x y z A
e f g h
p q r s
subtotal date..... 1 2 3 4
subtotal material.5 6 7 8
As you said when I using <b>event of Begin</b> its working fine. but while using the <b>event of end</b>, I am specifying date and then matnr (sort) its taking(nodes are created mean first matnr and then date) in the reverse order and when I am taking matnr and date it is placing the events(nodes) in the right order but the order date is not triggering.
can please tell me how to proceed here..
waiting for your reply..
Regards,
Srinivas -
I need help with controlling two .swf's from third.
Hi, thanks for reading!
I need help with controlling two .swf's from third.
I have a problem where I need to use a corporate designed
.swf in a digital signage solution, but have been told by the legal
department that it can not be modified in any way, I also can't
have the source file yada yada. I pulled the .swfs from their
website and I decompiled them to see what I was up against.
The main swf that I need to control is HCIC.swf and the
problem is it starts w/ a preloader, which after loading stops on a
frame that requires user input (button press) on a play button,
before the movie will proceed and play through.
What I have done so far is to create a container swf,
HCIC_container.swf that will act as Target for the HCIC.swf, and
allow me to send actionscript to the file I'm not allowed to
modify.
I managed to get that done with the help of someone on
another forum. It was my hope that the following script would just
start HCIC.swf at a frame past the preloader and play button, and
just play through.
var container:MovieClip = createEmptyMovieClip("container",
getNextHighestDepth());
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(this);
mcLoader.loadClip("MCIC.swf", container);
function onLoadInit(mc:MovieClip) {
mc.gotoAndPlay(14);
But unfortunately it didn't solve my problem. Because there
is a media-controller.swf, that is being loaded by HCIC.swf that
has the controls including the play button to start HCIC.swf.
Here's a link to a .zip file with all 3 .swf files, and all 3
.fla files.
http://www.axiscc.com/temp/HCIC.zip
What I need to do is automatically start the HCIC.swf file
bypassing the pre-loader and play button without editing it or the
media-controller.swf in anyway. So all the scripting needs to be
done in HCIC_container.swf.
I know this is confusing, and its difficult to explain, but
if you look at the files it should make sense.
ActionScripting is far from my strong point, so I'm
definitely over my head here.
Thanks for your help.Got my solution on another forum.
http://www.actionscript.org/forums/showthread.php3?t=146827 -
Hi,
Can anyone tell me what control events in ABAP are and their syntax.
Thanks n Regards
DineshHi,
Control Events are
1. AT NEW f.
2. AT END OF f.
3. AT FIRST.
4. AT LAST.
When you sort an extract dataset, control levels are defined in it.The control level hierarchy of an extract dataset corresponds to the sequence of the fields in the HEADER field group. After sorting, you can use the AT statement within a loop to program statement blocks that the system processes only at a control break, that is, when the control level changes.
AT NEW <f> | AT END OF <f>.
ENDAT.
A control break occurs when the value of the field <f> or a superior field in the current record has a different value from the previous record (AT NEW) or the subsequent record (AT END). Field <f> must be part of the HEADER field group.
If the extract dataset is not sorted, the AT... ENDAT block is never executed. Furthermore, all extract records with the value HEX 00 in the field <f> are ignored when the control breaks are determined.
The AT... ENDAT blocks in a loop are processed in the order in which they occur. This sequence should be the same as the sort sequence. This sequence must not necessarily be the sequence of the fields in the HEADER field group, but can also be the one determined in the SORT statement.
If you have sorted an extract dataset by the fields <f1>, <f2>, ..., the processing of the control levels should be written between the other control statements as follows:
LOOP.
AT FIRST.... ENDAT.
AT NEW <f1>....... ENDAT.
AT NEW <f2>....... ENDAT.
AT <fgi>..... ENDAT.
<single line processing without control statement>
AT END OF <f2>.... ENDAT.
AT END OF <f1>.... ENDAT.
AT LAST..... ENDAT.
ENDLOOP.
You do not have to use all of the statement blocks listed here, but only the ones you require.
http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/at_itab.htm
Regards
Sudheer -
Hi, I am designing a drum machine in flash pro Cs6 actionscript 3.0 and I am trying to add a keyboard event that will trigger a button event that I have all ready created, I can create the event to play the sound but this is not what I want, can I call the click event so the button will move on the key event triggering the sound, here is an example of one of my buttons code... btn, thank you if anyone can help.
import flash.events.KeyboardEvent;
playsound2.fla
playsound with extra functionality:
textbox added.
Displays ID3 info of the sound
btn.addEventListener(MouseEvent.CLICK, playSomeSound);
function playSomeSound(e:MouseEvent)
var req:URLRequest = new URLRequest("Savage.mp3");
var s:Sound = new Sound(req);
s.addEventListener(Event.COMPLETE, onSoundLoaded);
s.addEventListener(Event.ID3, onID3Info);
function onSoundLoaded(event:Event):void
var localSound:Sound = event.target as Sound;
localSound.play();
function onID3Info(e:Event):void
var id3Props:ID3Info = e.target.id3;
var sOut:String = txt.text = "";
for (var propName:String in id3Props)
sOut = propName + "=" + id3Props[propName] + "\n";
trace(sOut);
txt.appendText(sOut);
txt.text = id3Props.comment;
var ba:ByteArray = new ByteArray();
var gr:Sprite = new Sprite();
gr.x = 5;
gr.y = 50;
addChild(gr);
var time:Timer = new Timer(50);
time.addEventListener(TimerEvent.TIMER, timerHandler);
time.start();
function timerHandler(event:TimerEvent):void
SoundMixer.computeSpectrum(ba, false);
var i:int;
gr.graphics.clear();
gr.graphics.lineStyle(2, 0xFF0000);
gr.graphics.beginFill(0x00ff00);
gr.graphics.moveTo(10, 10);
// draw a circle.;
var w:uint = 15;
for (i=0; i<512; i+=w)
var t:Number = ba.readFloat();
var n:Number = (t * 200);
gr.graphics.drawCircle(i, 0, -n);Thanks, this was the code I added in the end and it works nicely, It covers my sound and id3 aswell as Im displaying lcd text in a dynamic text box.
stage.addEventListener(KeyboardEvent.KEY_DOWN, btndownKey);
function btndownKey(event:KeyboardEvent)
if (event.keyCode == 83)
var url:String = "Savage.mp3";
var request:URLRequest = new URLRequest(url);
var s:Sound = new Sound();
s.addEventListener(Event.COMPLETE, completeHandler);
s.addEventListener(Event.ID3, onID3Info);
s.load(request); -
Help with combobox event handling
hey techies
does knw any1 tutorial or where any URL which helps me adding event handling to combobox
iam new at event handling
i tried
jc1.addItemListener(this);
public void itemStateChanged(ItemEvent event)
if(event.getSource()==jc1)
System.out.println("hello");
}is this way correct to specify event handling in combobox
i tired this iam getting NPE like this
Exception in thread "main" java.lang.NullPointerException
at FinalMobile.<init>(FinalMobile.java:213)
at FinalMobile.main(FinalMobile.java:740)
plz jst let me knw and dnt tell me to refer swing tutorial i have been reffering it
any help is appreciateddoes knw any1 tutorial or where any URL which helps me adding event handling to comboboxExcuse me, I've told you at least 4 times now to download and read the Swing tutorial which has all this information with working examples. I even provided you with the download link.
How do you have the nerve to say you can't find any tutorial? -
Register Control events?
Hallo,
I've discovered that I can connect a control reference to the EventSource
input of the RegisterForEvents function. This event (e.g Button1:MouseUp)
appears as dynamic event in the EventStructure editor. Up to this point it
seems to be possible to dynamically register for control events. But
register another event (e.g Numeric1:ValueChanged) in the Button1:MouseUp
handler fails and LabVIEW tells "Cannot connect different refnum types".
Dynamically register for control events is something I'm desperately
searching for.
1. Is it just an unwanted behaviour that I can connect a control reference
to a RegisterForEvents function or is this the first step to an
undocumented feature.
2. If it is intended behaviour, how can I complete to
register another
event in a handler?
Thank you
Oliver Friedrich> I've discovered that I can connect a control reference to the EventSource
> input of the RegisterForEvents function. This event (e.g Button1:MouseUp)
> appears as dynamic event in the EventStructure editor. Up to this point it
> seems to be possible to dynamically register for control events. But
> register another event (e.g Numeric1:ValueChanged) in the Button1:MouseUp
> handler fails and LabVIEW tells "Cannot connect different refnum types".
>
> Dynamically register for control events is something I'm desperately
> searching for.
>
> 1. Is it just an unwanted behaviour that I can connect a control reference
> to a RegisterForEvents function or is this the first step to an
> undocumented feature.
>
> 2. If it is intended behaviour, how can I
complete to register another
> event in a handler?
The register for events lets you specify which object(s) you are
interested in receiving events on. If you have a VI event, you can
register and reregister at various points in your program to specify
which you are currently interested in. If the events is a Boolean
event, then any Boolean will work, but numerics aren't Booleans. If you
define the initial event to take a Control reference, then both Booleans
and Controls can be wired up since both inherit from Control.
Also note that wiring a not-a-refnum will unregister everything meaning
you don't want events for any particular control.
As for whether or not it is unintended or undocumented. It is
definitely intended, and I suspect that it is documented. Also, I'm
pretty sure the examples show how to do this.
Greg McKaskle -
i deleted my events in iPhoto Help? The "events" are not in the trash. I did download stellar phoenix recovery but not sure what to do
i deleted my events in iPhoto Help?
You deleted them in iPhoto on your Mac?
If you do not have a backup of your iPhoto library, run the recovery program you downloaded, then reimport the folder with recovered photos into iPhoto.
You will probably have to weed out plenty of seemingly duplicates (thumbnails, previews, and original files), since the program will not be able to reconstruct your events, only find image files. -
Link Menu Event and control event
I would like to have a menu item that performs the same function as a control event ("Save" or "Print"). Because there is only an event case for general "menu selection," it appears that I cannot just add an event for a specific case.
For example
Save Data case:
Button: Save Data
Menu Item: Save Data (Ctrl+S)
Print case:
Button: Print
Menu Item: Print (Ctrl+P)
Is there a way to do this without just duplicating the entire event case?
Solved!
Go to Solution.Use Producer Consumer with Events template to start
In the consumer decode the event into a case structure by reading the menu item or menu tag string.
Heres a simple example
Attachments:
BooMAIN.vi 13 KB
Boo.zip 11 KB -
Dear Friends
i had an internal Table Itab_emp
before saving from belowcode i want to check for a particular field
i had itab_otime which had value as time format for particular ids
so i want to add them for a id and check condition
output of itab_emp is
PERID Date OTIME
1 01.10.2007 013000
1 03.10.2007 001000
2 04.10.2007 000030
2 05.10.2007 001000
i want to add values for perid 1 and 2 and see the sum of that in a field in itab only so that i can apply condition
Hope u got my problem
Reflect changes in below code
i think control level events will help but How i dont know
SORT ITAB_EMP BY PERID.
LOOP AT ITAB_EMP WHERE MARK = 'X' .
IF SY-SUBRC = 0.
MOVE-CORRESPONDING ITAB_EMP TO ITAB_OTAPP .
ITAB_OTAPP-OBJID = 1.
ITAB_OTAPP-TODTE = ZHR_PR_M_OTAPP-TODTE.
ITAB_OTAPP-FRDTE = ZHR_PR_M_OTAPP-FRDTE.
ITAB_OTAPP-IMMHD = ZHR_PR_M_OTAPP-IMMHD.
ITAB_OTAPP-CRETM = SY-UZEIT.
ITAB_OTAPP-CREON = SY-DATUM.
ITAB_OTAPP-CREBY = SY-UNAME.
APPEND ITAB_OTAPP.
ENDIF.
ENDLOOP.
LOOP AT ITAB_OTAPP INTO WA_ITAB_OTAPP.
MODIFY ZHR_PR_M_OTAPP FROM WA_ITAB_OTAPP.
ENDLOOP.
Hope will get answer as soon as possible
Please Help Out Genius
With Best Regards
RubyDear Friends
i had an internal Table Itab_emp
before saving from belowcode i want to check for a particular field
i had itab_otime which had value as time format for particular ids
so i want to add them for a id and check condition
output of itab_emp is
PERID Date OTIME
1 01.10.2007 013000
1 03.10.2007 001000
2 04.10.2007 000030
2 05.10.2007 001000
i want to add values for perid 1 and 2 and see the sum of that in a field in itab only so that i can apply condition
Hope u got my problem
Reflect changes in below code
i think control level events will help but How i dont know
SORT ITAB_EMP BY PERID.
LOOP AT ITAB_EMP WHERE MARK = 'X' .
IF SY-SUBRC = 0.
MOVE-CORRESPONDING ITAB_EMP TO ITAB_OTAPP .
ITAB_OTAPP-OBJID = 1.
ITAB_OTAPP-TODTE = ZHR_PR_M_OTAPP-TODTE.
ITAB_OTAPP-FRDTE = ZHR_PR_M_OTAPP-FRDTE.
ITAB_OTAPP-IMMHD = ZHR_PR_M_OTAPP-IMMHD.
ITAB_OTAPP-CRETM = SY-UZEIT.
ITAB_OTAPP-CREON = SY-DATUM.
ITAB_OTAPP-CREBY = SY-UNAME.
APPEND ITAB_OTAPP.
ENDIF.
ENDLOOP.
LOOP AT ITAB_OTAPP INTO WA_ITAB_OTAPP.
MODIFY ZHR_PR_M_OTAPP FROM WA_ITAB_OTAPP.
ENDLOOP.
Hope will get answer as soon as possible
Please Help Out Genius
With Best Regards
Ruby -
First Mac-need help with an "event"
Hi:
After 3 days of busy activity with no freeze ups, I was feeling pretty confident. However, late last night I ran into an "event" that eventually required me to reload Tiger.
(1) I was working along and for some reason, clicking my mouse did not have any effect on any of the programs--either those running or attempting to start new ones.
(2) I was able to tab through those programs running and with a command-Q quit out of those running...still no effect on any mouse clicks....no problem moving the mouse and it would highlight top left corner buttons, but no effect if I attempted to minimize or exit.
(3) I shut the computer off and restarted a number of times....came up to the same screen each time. Held the off button both in shutting down and starting up and this time it would go to the log on screen where I was able to type in my password. Would come up to the same screen as I left it.
(4) Was able to use the remote control just fine to look at pictures, etc.
(5) After some reading, did a PRAM reset....same story as above.
(6) Finally reloaded a new copy of Tiger and was back in business.
Questions:
(1) Is this the typical freeze people are getting....with PCs, when it freezes, nothing moves and when you reboot, you have a fresh start?
(2) Short of reloading Tiger, if this happens again, what remedy (other than sending my new iMac back!) would you suggest?
Thanks for your help!Many thanks for the suggestion and the giving me some hope that this is not the dreaded freeze issue!
I forgot to mention perhaps one important bit of information: There were two Finder "windows" that were present when my "event" occurred and each time I rebooted, these same two Finder windows reappeared and my mouse was unable to move them or close them or execute any command line operations.
Not sure if this changes the story about it being a mouse software related error or not, but I found it strange that on hard reboots the machine came back with the same two windows of information. -
C# control event handling with javascript
How can I get javascript to execute for "onchange" / "OnSelectedIndexChanged" event instead of a CodeBehind method? I think "OnSelectedIndexChanged" event has to be handled by CodeBehind; but how can I replace that (or onchange) with
a javascript event handler?
I have the following in my xyz.ascx file:
<asp:DropDownList ID="ddlTypeCar" CssClass="BatsRefAddressTypes" runat="server"
onchange="javascript: testAlert();"
OnSelectedIndexChanged="ddlTypeCar_SelectedIndexChanged"
AutoPostBack="True" />
I could not get the javascript to execute, even though I removed OnSelectedIndexChanged="ddlTypeCar_SelectedIndexChanged" and/or set AutoPostBack="false".
Additionally, I tried added the following in xyz.ascx.cs Page_Load() method.
ddlTypeOfAddress.Attributes.Add("onchange", "javascript: testAlert();");
which didn't help.
Thanks for your help in advance.Hi,
you can control client events instead of server events with javascript
look this url for more information
http://www.w3schools.com/js/js_events.asp
Regards -
Flex ActiveX Control Event is Missing
Hi,
I wrote an ATL CAxDialogImpl based dialog DLL to host a flash
activex control. When I launched the DLL dialog box from a command
line C# program, I can get all the events sent from the flash
activex control to the dialog instance object, e.g. fscommand,
FlashCall, OnReadyStateChange, etc.
Now, I try to load the dialog DLL in IE using a simple local
html with VBScript, the dialog box shows up and the flash shows up
too. But I can no longer get fscommand, and FlashCall events from
the Flash activex control to the dialog instance object,
interestingly, I can still get the OnReadStateChange events.
I don't know if this is a known problem already, or it's a
bug, or is there any workaround for it, or I simply did something
wrong.
Your help is highly appreciated.
Best Regards,
EJIANGHi,
This is due to security functionality introduced in Flash
8.0. I have read the
Security
Changes in Flash Player 8 and pages linked in the
fscommand
function documentation several times but it's unclear for me in
which sandbox are put files opened in hosted ActveX Flash control.
If someone knows this would be very helpful.
Adobe states that embeding Flash Player ActiveX is not
supported and stays quiet. Maybe SliverLight guys will be more
comunicative.
We have resolved this by using AxWebBrowser control and
hosting the Flash player in a webpage instead of hosting it in
Flash ActiveX.
Another solution if you are using only local files is to try
to use "file://YOUR_PATH_TO_FILE" as an argument for LoadMovie
method. But this works only on local files.
Hope this helps -
Help with controlling Bank changes on Yamaha S90ES from Logic
Can anyone please help me with getting Logic to control the bank changes on this beast. I have it controlling the patch changes no problem it is just the bank changes I need thanx
Yeah, I'm a bit confused too. Assuming your keyboard is sending bank/program changes in the same format is receiving them, Logic will just record your data, and play it back as the keyboard sent it.
Logic is ignoring bank changes sent from my Korg Triton.
So, when recording into a region, you only get program changes, and not bank changes in your recorded data?
However, Logic is sending bank changes to the Triton perfectly.
From playing back a sequence recorded from program changes generated by the keyboard, or using Logic's bank/program change parameters in the instrument parameters?
If I use my keyboard to set the instrument, Logic sets the program,
but the bank is ignored.
I don't understand what you mean by "Logic sets the program".
n the event list, the incoming data looks as standard as could be:
my keyboard is sending a bank MSB and LSB, via events 0 and 32,
followed by a program change,
And you are saying that if you play that back, the keyboard doesn't change sounds correctly?
followed by a sysex "66/48" which I assume identifies the source
of the message (the Korg).
You can't assume anything - it could be anything. It could be a sysex patch dump of the patch, or it could be some mode setting. You'd need to read the keyboard manual to find out what it is.
So the question is: how do I get Logic to PAY ATTENTION to the
darn bank change being sent by my keyboard?
I really don't understand what you mean by "PAY ATTENTION". If you squirt MIDI data at Logic, Logic will record it into a region, and then play it back, as would all sequencers. What should Logic do differently? -
F4 Help for Training Event -Tree structure like in PSV2
Hi,
There is any function module to give the F4 help in custome development for Training Event like Tree structure in PSV2.Check AL S's response here for how to do this. CVI 6.0 does not have a native Tree control. This was introduced with CVI 7.0.
Bilal Durrani
NI
Maybe you are looking for
-
Can you customize iCal to show only one kind of Entry. Work vs Home?
I use iCal for work and home..is there way to just view HOME and Work separately? Like a filter. I don't want to see work stuff on the Calendar at home, since I have a ton of work stuff in my calendar, some of the personal entries get lost in my view
-
I had gadgets like local weather, moon phases and Chicago Tribune. Do I have to search for them again or can I get them back easily on the home page?
-
Help? iPad to printer for coupons on the go!
I am new to apple other than my iPhone! I have a wi-fi 3G iPad and am getting frustrated as I'm shopping and have forgotten a certain coupon I need. Is there a mini printer I can take on the go so that I can print from iPad while shopping when needed
-
Basic table relationship question
Just getting started working with primary and foriegn key relationships. I have a main table called fruitPicking and one of the columns is fruitID (a foriegn key linked to a primary key in a table called fruit). Anyhow for a single row in the fruit
-
Dear All, Any idea if there is a trial version for Business Objects Integrator? thanks Abdelfettah