ImageElement Event Inconsistencies
This is a followup from a post I made 2 weeks ago titled:
"perfect time to capture image size" Filed bug: FM-301
All I'm trying to do is find the ONE event that will give me a consistent
width and height for the current imageElement, so I can run some resizing code.
I'm testing against 3 events, but under one condition or another, all of them fail:
1- MediaPlayerStateChangeEvent.MEDIA_PLAYER_STATE_CHANGE
2- LoadEvent.LOAD_STATE_CHANGE
3- ViewEvent.DIMENSION_CHANGE
My test is built using MediaPlayer placed inside a Sprite.
I'm NOT using MediaPlayerSprite nor MediaPlayerElement .
Test 1: (one image)
var vImageElement=new ImageElement(new ImageLoader ,new URLResource(new URL("./images/image4.jpg")));
pPlayer.element=vImageElement;
Test 2: (2 images using TemporalProxyElement)
pImageSerialElement.addChild(new TemporalProxyElement(3,new ImageElement(new ImageLoader ,new URLResource(new URL("./images/image4.jpg")))));
pImageSerialElement.addChild(new TemporalProxyElement(3,new ImageElement(new ImageLoader ,new URLResource(new URL("./images/image2.png")))));
pPlayer.element=pImageSerialElement;
====== MEDIA_PLAYER_STATE_CHANGE ======
Test 1: this works fine
Test 2: evt.currentTarget.width = 0 and evt.currentTarget.height = 0
====== LOAD_STATE_CHANGE evt.state = ready ======
Test 1: this works fine
Test 2: evt.currentTarget.width = 0 and evt.currentTarget.height = 0
====== DIMENSION_CHANGE ======
Test 1: this event does not fire
Test 2: this works with the except that it fires twice (Bug Filed: FM-300)
My conclusion is that either:
1- I have to use 2 different set of events if I'm displaying one image as opposed
to displaying a slide show with multiple images. This is not my preferred choice.
2- The OSMF API has a bug.
The code Ryan supplied in "perfect time to capture image size" was for a MediaPlayerSprite.
I haven't had time to test MediaPlayerSprite, but shouldn't both methods be consistent?
Sorry to keep beating this thing to death
From your reply it looks like, once the bugs are fixed that DIMENSION_CHANGE will be the perfect place to capture the width and height.
Thanks, I think I can let this one go until Sprint 9.
I have already filed a bug on the multiple events firing, a couple of weeks ago:
Bug: FM-300
Title: "DimensionChangeEvent firing twice (TemporalProxyElement)"
I just posted your forum answer, as a comment to the bug base.
Similar Messages
-
OBIEE 11g: Inconsistencies with Master-Detail events and Navigate to BI
Hi everyone,
I'm getting some pretty annoying inconsistencies with the Navigate to BI Content action as well as the Master-Detail events. Basically the main issue I get is that 90% of the time, the click does nothing.
It's a pretty simple setup, I am setting up bulb gauges to act like a fancy column selector. The bulb gauges are setup to pivot based on a Metric Type column. The goal is that if you click on "Metric 1" bulb a trend report should refresh to show Metric 1. If you click on the "Metric 2" bulb, the same trend report will show that metric.
Here's how I implemented it:
Dashboard Tab A -- Uses Navigate to BI Content
1) I have a prompt on Fiscal month in dashboard tab A.
2) I created the bulb gauge and put it in dashboard tab A
3) Setup the interaction on the bulb measure to navigate back to Dashboard Tab A.
3) Prompted the trend on Metric Type column and put it in dashboard tab A.
4) In theory, clicking on the bulb, should navigate back to the same tab and update the trend report appropriately
5) In reality, nothing happens.
6) The only way I can get the navigate to work is if I first change the value in the fiscal month prompt and click Go. Then I click on the bulb and the navigation will work ONCE. After that it's broken again.
Dashboard Tab B -- Use Master Detail -Events
1) Pretty much same situation as dashboard A, but instead of navigate to BI Content, I use the master-detail events.
2) Pretty much the same results. I cannot get it to consistently work, in fact the trick with the filter didn't do anything.
3) One thing I tried was cleared my browser history completely (Mozilla Firefox) and then launched the page. It work for about 5 clicks and then stopped.
Either way, neither of these are working properly for me.
Has anyone else had these issues?
-=Joe
Has anyone else had an issue with this?So someone explained to me that master-detail events only occur within a single report. They cannot be used to communicate across two different reports.
That is significantly less useful than I originally thought. I honestly that it was a method of communication for one report to update other target reports that are all listening on the same channel. That would have been a powerful feature. A single report refreshing other views in the same report is still useful, but not as much.
That being said, I still don't understand what the heck is going on with the navigate to BI content feature. I've been testing it out. It works with pivot tables and regular tables. But the moment I add a graph, gauge or even a "Filter" view into the dashboard page, the click stops working. Really really strange stuff. -
Events don't appear in sequence
iPhoto doesn't appear consistent with where it places photos in the main window. With my oldest photos at the top of the window and my latest at the bottom, it suddenly placed my December photo stream amongst those some ten years old! I've noticed inconsistencies like this before. In fact, when iPhoto first opens is shows the top of the window - the very oldest photos - which is invariable where I don't want to look and I have to scroll all the way down to the bottom to find the latest. Is there anyway to have the order reversed and have the newest at the top?
You can reset the sorting of the events in the View menu:
View > Sort Events > By Date, Descending
it suddenly placed my December photo stream amongst those some ten years old!
Did you upload very old photos to your Photo Stream? With a capture date ten years ago? -
Iphoto inconsistencies to be repaired
every start of iphoto requires to repair inconsistencies; any ideas?
With respect, if you're living that far from help, you really need a back up routine... Anyway:
Option 1
Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
If that fails:
Option 2
Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
Regards
TD -
Hi..
I've configured the workflow for FI Document Parking/Posting (for the BO FIPP). I'm using the standard WF WS10000051(having no customization) and its sub workflows. But when I perform an event simulation for FIPP CREATED in SWU0, I'm getting the error ...."The binding definition from the event container to the workflow
container or the task container contains errors.".... for the tasks WS10000051 and WS10000053.
I've also done a syntax check for WS10000051 and WS10000053 in SWDD, and there are no inconsistencies.
Any advice/hints on solving the aforesaid error is greatly appreciated.
Thanks in advance
PIDear Akshay...
All the event linkages have been activated in OOCU....also for the WF WS10000051(3 level parking) the events FIPP.CREATED,FIPP.CHANGED & FIPP.COMPLETED as the triggering events and for the WF WS10000051 the events are FIPP.CREATED & FIPP.CHANGED.... binding exists for all these....the mapping from event container to WF container for both the WFs is as follows...
<b>Event Container</b><----
><b>WF Container</b>
&_EVT_OBJECT& <----
> &FIPPID&
&_EVT_CREATOR& <----
> &_WF_INITIATOR&
These being the standard settings....also a check for any binding errors yields 'No Errors Found'...
Your advice is greatly appreciated...
Thanks and Regards
PI -
Inconsistencies with my add in
Hi ,
My add in works fine with the default ms word settings on my system, but when I gave to another person , the add in options are showing certain inconsistencies like the 'no spacing between paragraphs of same style' property has changed , toc is picking
up even 'Title' styles along with 'heading 1' and 'Heading 2' , all the alignment of bullets, numbered bullets have changed,etc a lot more
Upon further looking at their document I could see the changes under "Change Styles" menu in word and could see all the properties i had applied when the button click event occurred seemed to be over ridden .
Is there a way to automatically restore ms word default normal template and over ride any users' applied template when the add in loads,programatically .Have been trying to search for a work around for this , any guidance would be of great help .Thanks.Hi Apoorva,
>> Upon further looking at their document I could see the changes under "Change Styles" menu in word and could see all the properties i had applied when the button click event occurred seemed to be over ridden
Have you found out which word default setting made your add work inconsistencies? If you have, I think you could change the Normal.dotm file style with vba to change the defualt settings. Some key code like below:
Sub ChangeDefaultFont()
Documents.Open FileName:="Normal.dotm", ConfirmConversions:=False, _
ReadOnly:=False, AddToRecentFiles:=False, PasswordDocument:="", _
PasswordTemplate:="", Revert:=False, WritePasswordDocument:="", _
WritePasswordTemplate:="", Format:=wdOpenFormatAuto, XMLTransform:=""
With ActiveDocument.Styles(wdStyleNormal).Font
.Name = "Calibri"
.Size = 12
End With
ActiveDocument.Save
ActiveDocument.Close
End Sub
>> Is there a way to automatically restore ms word default normal template and over ride any users' applied template when the add in loads,programmatically
If you want to reset the default MS Word settings as the users' settings, one easiest way is to allow Word to recreate the Normal.dot template. While this will restore some settings to their first-used state (such as macros, toolbars, and the like), it will
not do the entire trick. But if you want to automatically restore ms word default normal template when loading the add in, it might be much complex.
Best Regards,
Edward
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey. -
Problems with MediaPlayer.bytesLoaded updating for ImageElement
Hello!
I use Sprint 10 (0.95). MediaPlayer.bytesLoaded property is not updating in the case using ImageElement as source media for MediaPlayer.
Correct load progress bar to make impossible. Actual values are 0/bytesTotal or bytesTotal/bytesTotal only for _mediaPlayer.bytesLoaded /_mediaPlayer.bytesTotal.
Code sample:
_mediaPlayer = new MediaPlayer();
_mediaPlayer.bytesLoadedUpdateInterval = 1;
_mediaPlayer.addEventListener(LoadEvent.BYTES_LOADED_CHANGE, onLoadProgress);
_mediaPlayer.media = _mediaElement; (_mediaElement is ImageElement)
private function onLoadProgress(event : LoadEvent) : void
loaderIndicatorProgressBar.scaleX = _mediaPlayer.bytesLoaded / _mediaPlayer.bytesTotal;
Is this bug?
Thanks in advance!Yes, this looks like a bug. Apparently we don't listen for "progress" events on an image or SWF until it's fully loaded. (I believe the fix is to mosify LoaderLoadTrait.loadStateChangeStart to add the progress listener when newState is LOADING, not when newState is READY.)
Can you file a bug and reference this thread? Thanks!
https://bugs.adobe.com/jira/browse/FM -
I have been having some inconsistencies with mouseEvents not firing. I have a mouseClicked event handler assigned to a radio button within a JTable. Occasionally it does not register clicks of the mouse - which obviously causes all manner of problems. I have traced the problem down and it appears to be that the mouseClicked is affected by moving the mouse between pressing and releasing - even if the mouse doesnt exit the radio button (mouseExited). I have got around this by changing to a mouseReleased but my question is:
Is this the normal behaviour or is there some sort of bug or perhaps some problem with the way they are being used.
I have researched further and this seems to happen to not just be tied to my circumstances - if you go to this address and run the MouseEventDemo you will see that if you move the mouse between clicking and releasing no mouseClicked event fires: http://java.sun.com/docs/books/tutorial/uiswing/events/mouselistener.html
Or am i being stupid?Hi georgemc,
With regards to whether its best to use with a radio button - probably not but that was just one example of where it is being used. The reason in that case i have needed to use a mouse event on the radio button is to be honest because i cant get a radio button correctly set up within my JTable and so i have had to create an extra column with another radio button and then emulate a radio buttongroup by having the negation of the boolean of the selected radio button set as the value of the other by my mouse listener! This mouse listener also caches changes for later saving back to db
In an ideal world i would have these two columns in a button group or possibly even better have on bit of data being represented as a pair of radio buttons
What type of listener would you suggest in the hypothetical situation that i had a working set of radio buttons within a JTable? -
Sample prog's on LDB using Get events and also using LDB_PROCESS
Hello,
Can any one send me programs on LDB by linking it to an executable program using get event and also by using the Function Module LDB_ PROCESS.
Please do not provide me the Example prog's available in SAP HELP
If you have any sample prog's then please provide them.
Have a great day!
Thanks & Regards,
Krishna Chaitanyahi,
A sample prog with LDB PNP
*& Report ZH_REPT_PAYMENT *
report zh_rept_payment line-size 80 no standard page
heading.
tables: pernr, " Standard Selections for HR Master Data Reporting
pcl1, " HR Cluster 1
pcl2, " HR Cluster 2
pa0009,
PA9001,
PA9006,
pa0002,
pc260 , " Cluster Directory for Payroll Results
bnka .
Infotypes
infotypes: 0001. " Organizational Assignment
Declaration of Internal Tables
data : bnka1 like bnka occurs 0 with header line .
data: begin of t_int_rep occurs 100,
bankl like pc209-bankl, " Bank Number
zlsch like pc209-zlsch, " Payment method
pernr like pernr-pernr, " Employee Number
ename like pernr-ename, " Employee Name
bankn like pc209-bankn, " Bank Account Number
betrg like pc209-betrg, " Amount to be transfered
zweck like pa0009-zweck, " Purpose
end of t_int_rep.
data: begin of int_rep occurs 100,
bankl like pc209-bankl, " Bank Number
zlsch like pc209-zlsch, " Payment method
pernr like pernr-pernr, " Employee Number
ename like pernr-ename, " Employee Name
bankn like pc209-bankn, " Bank Account Number
betrg like pc209-betrg, " Amount to be transfered
zweck like pa0009-zweck, " Purpose
begda like pa0009-begda, "Begin date
end of int_rep.
Declaration of Data Variables
data: ws_betrg like pc209-betrg, " BT Amount
w_val like spell occurs 0 with header line,
int_rep1(6), " TYPE I, " Employee Number
cnt type i value 0, " Counter
calcmolga like t500l-molga value '40', " Country Grouping
v_id(15),
calc_currency like t001-waers value 'INR'. " Currency
data : ctr type i,
dt_merge like pa0009-begda.
data: ws_totemp(6) type c,
ws_totamt(20) type c,
r_mth(9) type c,
ws_fpbeg(6) type c,
ws_fpend(6) type c,
ws_mthyr(6) type c,
ws_mthyr_r(14) type c,
r_mth_t(3) type c,
ws_amt(8) type c,
ws_bankl(14) type c,
ws_date(6) type c,
amount_word(500),
total_page type i,
pages type i,
remain type i.
data begin of i_spell.
include structure spell .
data end of i_spell .
data : c_molga type t500l-molga value '40',
c_banks type bnka-banks value 'IN'.
Standard Includes
include rpc2cd09. "Cluster CD data definition
include pc2rxin0.
include rpc2rx09.
include rpppxd00. " Data Definition buffer PCL1/PCL2
include rpppxd10. " Common Part buffer PCL1/PCL2
include rpppxm00. " Buffer Handling RoutinePCL1/PCL2
include zrpc2rox2. " Data Definition POCLSTERS (not J,K,U)
Selection Screen
selection-screen begin of block b1 with frame title text-001.
parameter: pa_mth(2) type c default sy-datum+4(2) obligatory,
pa_year(4) type c default sy-datum(4) obligatory,
p_bankl like pc209-bankl, " Bank Number
p_zlsch like pc209-zlsch. " Payment method
selection-screen end of block b1.
save_calc_currency = calc_currency.
count_top = 0.
get_pernr_flag = 0.
Top-Of-Page
top-of-page.
perform convert_month using pa_mth(2) r_mth.
ws_mthyr_r = r_mth.
concatenate ws_mthyr_r pa_year into ws_mthyr_r separated by space.
SKIP 5.
skip 1.
skip 4.
if int_rep-bankl eq ' '.
if int_rep-zlsch eq 'C' or int_rep-zlsch eq 'E' or
int_rep-zlsch eq ' '.
write: /1(85) 'CHEQUE PAYMENT STATEMENT'(047) centered.
elseif int_rep-zlsch eq 'L'.
write: /1(85) 'DEMAND DRAFT STATEMENT'(047) centered.
endif.
else.
write: /1(85) 'BANK TRANSFER STATEMENT'(002) centered.
endif.
skip.
write: /34 ws_mthyr_r,
62 'Page :'(008),69(2) sy-pagno intensified off,
' Of ',78(2) pages intensified off.
clear pages.
read table bnka1 with key bankl = int_rep-bankl .
if sy-subrc = 0.
if int_rep-zlsch eq 'T'.
write:/03(10) 'Bank Name : ', bnka1-banka.
write:/03(10) 'Branch : ', bnka1-brnch.
write:/03(10) 'Address : ', bnka1-stras.
endif.
endif.
skip.
write:/1(80) sy-uline.
write: /1 sy-vline, 2(5) 'Sl.No'(002),
7 sy-vline, 8(8) 'Emp.No.'(003),
16 sy-vline,17(35) 'Employee Name'(004).
*--added for Demand Draft
if ( int_rep-zlsch = 'l' or int_rep-zlsch = 'L' ).
write : 47 sy-vline, 48(15) 'Payable at'(005).
else.
write : 47 sy-vline,48(15) 'Account No.'(005).
endif.
write: 63 sy-vline,64(16) 'Amount'(006),
80 sy-vline.
write:/1(80) sy-uline.
end-of-page.
write:/1(80) sy-uline.
write:/2 'Printed on ', sy-datum.
Start-of-selection.
start-of-selection.
*perform h_headr.
ctr = 0.
set margin 5.
call function 'RP_GET_CURRENCY'
exporting
molga = calcmolga
importing
waers = calc_currency
exceptions
others.
if sy-subrc ne 0.
calc_currency = 'DEM'.
calc_currency = save_calc_currency.
endif.
get pernr.
cd-key-pernr = pernr-pernr.
perform import_cluster.
get_pernr_flag = 1.
check : ocd-version-molga eq calcmolga.
The table 'tabpernr' is filled with the personnel numbers
and is used after selection is finished.
move-corresponding pernr to tabpernr.
append tabpernr.
The table 'tab_rgdir' is filled
loop at rgdir.
rx-key-pernr = pernr-pernr.
unpack rgdir-seqnr to rx-key-seqno.
perform int_tab. "fill tab_rgdir
perform import_bt.
perform validate.
endloop.
End of Selection
end-of-selection.
*perform h_headr.
perform convert_date_a using pa_mth r_mth_t.
sort int_rep by bankl zlsch pernr betrg descending.
delete adjacent duplicates from int_rep
comparing bankl zlsch pernr .
sort int_rep by bankl zlsch bankn . "PERNR.
loop at int_rep.
at new bankl.
select single * into bnka1 from bnka
where banks = c_banks and
bankl = int_rep-bankl .
append bnka1.
clear bnka1.
endat.
endloop.
for Demand Draft - purpose added
loop at int_rep.
concatenate pa_year(4) pa_mth(2) '01' into dt_merge.
select single * "zweck into int_rep-zweck
from pa0009 where
pernr = int_rep-pernr and
bankl = int_rep-bankl and
zlsch = int_rep-zlsch
and begda <= dt_merge and
endda >= dt_merge .
if sy-subrc = 0.
int_rep-zweck = pa0009-zweck.
modify int_rep.
endif.
endloop.
*-for DD and Chq sorted by PAyable at and EMPNO wise
if p_zlsch = 'T' .
sort int_rep by bankl zlsch bankn . "PERNR.
else. "added for "payable at" for DD/Chq
else.
sort int_rep by zweck pernr . "PERNR.
endif.
*delete adjacent duplicates from int_rep.
t_int_rep] = int_rep[.
loop at int_rep.
*-for page of page no.
total_page = 0.
loop at t_int_rep where bankl = int_rep-bankl
and zlsch = int_rep-zlsch.
total_page = total_page + 1.
endloop.
pages = total_page div 25.
remain = total_page mod 25.
comment bcoz its adding one extra page no.
done as on 29/11/2004
if remain > 0.
pages = pages + 1.
endif.
**-end
at new bankl.
ctr = 0 .
new-page.
endat.
at new zlsch.
ctr = 0 .
new-page.
endat.
clear v_id.
select single natio
into pa0002-natio
from pa0002
where pernr eq int_rep-pernr.
*-testing......for soma
if ctr > 24.
ctr = 0 .
write:/1(80) sy-uline.
new-page .
endif.
ctr = ctr + 1 .
cnt = cnt + 1.
pack int_rep-pernr to int_rep1.
write:/1 sy-vline, 2(3) cnt intensified off,
7 sy-vline, 9(6) int_rep1 intensified off,
16 sy-vline,17(35) int_rep-ename intensified off .
if ( int_rep-zlsch = 'l' or int_rep-zlsch = 'L' ).
write : 47 sy-vline,48(15) int_rep-zweck intensified off.
else.
write:
47 sy-vline,48(15) int_rep-bankn intensified off .
endif.
write: 63 sy-vline,64(16) int_rep-betrg
intensified off currency 'INR',
80 sy-vline.
ws_betrg = ws_betrg + int_rep-betrg.
*-testing......for soma
skip.
write :
/1 sy-vline, 7 sy-vline ,16 sy-vline ,47 sy-vline,63 sy-vline,80
sy-vline .
*-end testing......for soma
at end of zlsch.
if int_rep-bankl = ' '.
call function 'HR_IN_CHG_INR_WRDS'
exporting
amt_in_num = ws_betrg
importing
amt_in_words = amount_word
EXCEPTIONS
DATA_TYPE_MISMATCH = 1
OTHERS = 2
w_val-word = amount_word.
concatenate 'INR.' w_val-word into w_val-word
separated by space.
write:/1(80) sy-uline.
write: /1 sy-vline, 7 'Total transfer:'(009),
64(16) ws_betrg intensified off currency 'INR',
80 sy-vline.
write:/1(80) sy-uline.
write: /1 sy-vline, 3 w_val-word+0(76) intensified off,
80 sy-vline.
write :/1 sy-vline, 10 w_val-word+76(70) intensified off,
80 sy-vline.
write:/1(80) sy-uline.
clear: ws_betrg,cnt.
skip 2.
write: /2 'Prepared by :'(010), '_______________'(013),
45 'Checked by :'(011),'_______________'(013).
skip 2.
write: /2 'Printed On ', sy-datum,
45 'Approved by :'(012),'_______________'(013).
clear sy-pagno.
endif.
endat.
at end of bankl.
if int_rep-bankl ' '.
call function 'HR_IN_CHG_INR_WRDS'
exporting
amt_in_num = ws_betrg
importing
amt_in_words = amount_word
EXCEPTIONS
DATA_TYPE_MISMATCH = 1
OTHERS = 2
w_val-word = amount_word.
concatenate 'INR.' w_val-word into w_val-word
separated by space.
write:/1(80) sy-uline.
write: /1 sy-vline, 7 'Total transfer:'(009),
64(16) ws_betrg intensified off currency 'INR',
80 sy-vline.
write:/1(80) sy-uline.
write: /1 sy-vline, 3 w_val-word+0(76) intensified off,
80 sy-vline.
write :/1 sy-vline, 10 w_val-word+76(70) intensified off,
80 sy-vline.
write:/1(80) sy-uline.
clear: ws_betrg,cnt.
skip 2.
write: /2 'Prepared by :'(010), '_______________'(013),
45 'Checked by :'(011),'_______________'(013).
skip 2.
write: /2 'Printed on ', sy-datum,
45 'Approved by :'(012),'_______________'(013).
clear sy-pagno.
NEW-PAGE.
endif.
endat.
endloop.
End of Page
end-of-page.
write: /2 'Prepared by :'(010), '_______________',
45 'Checked by :'(011),'_______________'.
*& Form IMPORT_CLUSTER
Importing Data from Cluster *
form import_cluster.
sy-subrc = 0.
rp-imp-c2-cd.
if sy-subrc eq 0.
if cd-version-number ne ocd-version-number.
endif.
endif. " SY-SUBRC EQ 0
endform. " IMPORT_CLUSTER
*& Form INT_TAB
Filling internal table tab_rgdir form int_tab.
*Fill internal table tab_rgdir.
move-corresponding rgdir to tab_rgdir.
tab_rgdir-pernr = pernr-pernr.
append tab_rgdir.
endform. " INT_TAB
*& Form IMPORT_bt
Import Values from Bank Transactions Table (BT) form import_bt.
rp-init-buffer.
RP-IMP-C2-RX.
rp-imp-c2-in.
if rp-imp-in-subrc eq 0.
if in-version-number ne oin-version-number.
write: / 'Schlüssel des Clusters RX:'(015),
rx-key-pernr, rx-key-seqno.
write: / 'The imported version of the cluster'(016), 'RX',
'is not current'(017).
write: / 'Imported version :'(018),
oin-version-number.
write: / 'Current version of cluster :'(019),
in-version-number.
stop.
else.
sy-subrc = 0.
endif.
else.
sy-subrc = 8.
write: /
'Inconsistencies between cluster directory and directory for'(020).
write: /
'No payroll results found for data in cluster directory'(021).
write : /
'Please contact hotline to solve the current problem'(022).
endif.
ws_fpbeg(2) = versc-fpbeg+4(2).
ws_fpbeg+2(4) = versc-fpbeg(4).
ws_fpend(2) = versc-fpend+4(2).
ws_fpend+2(4) = versc-fpend(4).
ws_mthyr(2) = pa_mth.
ws_mthyr+2(4) = pa_year.
check ws_mthyr = ws_fpbeg.
check ws_mthyr = ws_fpend.
loop at bt. "from pc209
int_rep-pernr = pernr-pernr.
int_rep-ename = pernr-ename.
int_rep-bankl = bt-bankl.
int_rep-bankn = bt-bankn.
int_rep-betrg = bt-betrg.
int_rep-zlsch = bt-zlsch.
append int_rep.
endloop.
IF P_BANKL ' ' AND P_ZLSCH ' '.
DELETE INT_REP WHERE BANKL P_BANKL.
ELSEIF P_BANKL = ' ' AND P_ZLSCH ' '.
DELETE INT_REP WHERE ZLSCH P_ZLSCH.
ELSEIF P_BANKL ' ' AND P_ZLSCH = ' '.
DELETE INT_REP WHERE BANKL P_BANKL.
ENDIF.
endform. " IMPORT_BT
*& Form CONVERT_MONTH
Fetching Month Text form convert_month using mth t_mth.
case mth.
when '01'.
t_mth = 'January'(023).
when '02'.
t_mth = 'February'(024).
when '03'.
t_mth = 'March'(025).
when '04'.
t_mth = 'April'(026).
when '05'.
t_mth = 'May'(027).
when '06'.
t_mth = 'June'(028).
when '07'.
t_mth = 'July'(029).
when '08'.
t_mth = 'August'(030).
when '09'.
t_mth = 'September'(031).
when '10'.
t_mth = 'October'(032).
when '11'.
t_mth = 'November'(033).
when '12'.
t_mth = 'December'(034).
endcase.
endform. " CONVERT_MONTH
*& Form CONVERT_DATE_A
Fetching Month Text * form convert_date_a using mth_t t_mth_t.
case mth_t.
when '01'.
t_mth_t = 'Jan.'(035).
when '02'.
t_mth_t = 'Feb.'(036).
when '03'.
t_mth_t = 'Mar.'(037).
when '04'.
t_mth_t = 'Apr.'(038).
when '05'.
t_mth_t = 'May.'(039).
when '06'.
t_mth_t = 'Jun.'(040).
when '07'.
t_mth_t = 'Jul.'(041).
when '08'.
t_mth_t = 'Aug.'(042).
when '09'.
t_mth_t = 'Sep.'(043).
when '10'.
t_mth_t = 'Oct.'(044).
when '11'.
t_mth_t = 'Nov.'(045).
when '12'.
t_mth_t = 'Dec.'(046).
endcase.
endform. " CONVERT_DATE_A
*& Form VALIDATE
text
--> p1 text
<-- p2 text form validate .
if p_bankl <> ' ' and p_zlsch ' '.
delete int_rep where bankl p_bankl.
elseif p_bankl = ' ' and p_zlsch ' '.
delete int_rep where zlsch p_zlsch.
elseif p_bankl ' ' and p_zlsch = ' '.
delete int_rep where bankl p_bankl.
endif.
endform. " VALIDATE
Hope this helps, Do reward. -
Calendars and contacts won't sync: "Inconsistencies"
I've seen several other topics with similar, but not exactly the same problem as me. Can't figure it out.
I've had an iphone 3g since July, with a MacBook Pro on OS X 10.5.6. No previous problems with syncing at all. A month or so ago, I turned off automatic sync for the phone in itunes preferences, and because I havn't needed to sync anything since then, no syncs have been attempted. Recently I added some new Calendar events on the laptop (without the phone plugged in), and immediately after each event, the "inconsistencies in your sync information for ical were detected and repaired" notice popped up, and I pressed OK.
Next time I plugged in my iPhone, I turned auto-sync back on, then ran a sync, and the inconsistency notice popped up for contancts, ical, and bookmarks, none of which synced at all. Also, in the "info" tab of the iPhone page in iTunes, no calendars, contact groups, or email accounts are listed. It seems to me iTunes or the iPhone thinks there's nothing to sync to. This happens every single time I sync.
Note that I DO NOT USE MOBILEME OR .MAC, and never have. I've reset my sync history in iSync, which didn't seem to help.
Message was edited by: Jake18
Message was edited by: Jake18I'm assuming you mean the "replace information on iphone" options. I tried this, but it didn't work. iTunes isn't even registering any contacts or calendars; in the info pane it doesn't list any of them. So it has nothing to replace the iPhone info with. I think I basically need a way for the iPhone or iTunes to "remember" what's on the computer.
-
Scaling/Zooming ImageElements
Hi,
this post is not only OSMF specific but it would be great if someone can help out with my problem.
I'm currently working on a MediaPlayer which works with VideoElement and ImageElements in a series. The VideoElements are dynamic anyway so I would like to animate the static images. My goal is a "Ken Burns - Effect" with movement and zoom. But first of all I need to find a way to access the right paramters of a ImageElement to manipluate them at runtime. Because ImageElements are static I load them as DurationElements first.
As what I know I need to access the current DisplayObject of the MediaPlayer at runtime. I do this by adding a EventListener on a ImageElement:
imageElement1.addEventListener(MediaElementEvent.TRAIT_ADD, onTraitAdd);
Now in the Listener function I can access the current Element:
var displayObjectTrait:DisplayObjectTrait = event.target.getTrait(MediaTraitType.DISPLAY_OBJECT);
But what I can't do know it to manipluate the current DisplayObject through e.g. :
displayObjectTrait.displayObject.scaleX = 0.5;
Working this way makes nothing happen.
Is there a better way to manipulate the ImageElement-Parameters at runtime? Has someone an idea how to apply a dynmic zoom or scaling effect on ImageElements?Have you tried using the OSMF layout API? This might be a simpler approach since you don't have to drill down to the DisplayObject, you only need to set some layout parameters (in the form of a LayoutMetadata) object and assign it to the ImageElement.
For an example of dynamic layout, see "Dynamic Layout" in the ExamplePlayer sample app (source here). -
Sending an apple event from C (not iPhone)
I'm trying to send an "open documents" event. It's giving me a -50 error (incorrect parameter) so I think it's in the aeDirDesc that gets added as the parameter, but I can't seem to find enough documentation to see what's wrong. Here's my code which is altered from a (working) chunk of code which tells finder to open an app.
Sorry about the large code fragment...
<pre>
OSErr errT;
OSType desc;
AEDesc progAddr, aeDirDesc;
char preview[PATHLEN];
uchar previewU[PATHLEN];
uchar doc[PATHLEN];
AppleEvent someAE;
FSSpec fspT, fspP;
AliasHandle DirAlias = NULL;
AEDesc fileList;
strcpy(preview,"file://Applications/Safari.app");
pstrcpy(previewU, "\pMacintosh HD:Applications:Safari.app");
pstrcpy(doc, "\pMacintosh HD:tmp:dockeepimages:Page-001");
errT = FSMakeFSSpec(0,0,doc, &fspT);
errT = FSMakeFSSpec(0,0,previewU, &fspP);
SendOpenToFinder(&fspP);
errT = NewAlias(nil, &fspT, &DirAlias);
HLock((Handle)DirAlias);
errT = AECreateDesc(typeAlias, (Ptr)*DirAlias,
GetHandleSize((Handle)DirAlias), &aeDirDesc);
HUnlock((Handle)DirAlias);
errT = AECreateDesc(typeApplicationURL, preview, strlen(preview) +1,
&progAddr);
if(errT == noErr)
errT = AECreateAppleEvent(kCoreEventClass, kAEOpenDocuments, &progAddr,
kAutoGenerateReturnID, kAnyTransactionID,
&someAE);
AEDisposeDesc(&progAddr);
if(errT == noErr)
errT = AEPutParamDesc(&someAE, keyDirectObject, &aeDirDesc);
AEDisposeDesc(&aeDirDesc);
if(errT == noErr)
if ((errT = AECreateList(nil, 0, false, &fileList)) == noErr) {
errT = AEPutDesc(&fileList, 0, &aeDirDesc);
AEDisposeDesc(&fileList);
if(errT == noErr)
errT= AESend(&someAE, 0, kAENoReplykAEAlwaysInteractkAECanSwitchLayer,
kAENormalPriority, kAEDefaultTimeout, 0, 0);
</pre>
There's no error until the AESend which gives a -50...etresoft wrote:
I wouldn't mind use AppleEvents (not the same as Applescript!) via the Script bridge or something. However, I thoroughly detest Applescript.
The AppleScript language has one major defect: in order to provide high-level readability, it sacrifices low-level semantics. i.e. Even a complete non-programmer can look at an existing AppleScript script and get a general idea of what it does, but actually figuring out the precise mechanics of how it works requires a load of effort by newbies and expert programmers alike. "English-like" syntax is all well and good, but without all those ugly brackets and braces, it can be a real PITA figuring out what's a variable name, what's a property name, what's a command, and so on. You can't tell from syntax alone as all the different structures look exactly the same - it's hopelessly ambiguous. Allowing whitespace in application-defined keywords also makes it tricky to tell where each keyword begins and ends. e.g. Is 'foo bar' a property name, or a constant name, or a command name, or a command name followed by a property name, something else? (One tip for you: in Script Editor's preferences, set the 'application keyword' style to use underlines.)
(AppleScript also has a whole bunch of lesser defects, of course... but hey, find me a language that doesn't. Come to think of it, even Apple events themselves are a bit wonky; and don't get me started on the mess that is the Apple Event Object Model or the Cocoa Scripting framework.)
OTOH, I will say two things in the AppleScript language's defense:
1. AppleScript frequently gets blamed for the bugs, inconsistencies, appallingly inadequate documentation and other defects of individual applications' scripting interfaces. This is not AppleScript's fault, however; it's the developers who wrote those applications who are to blame - and their failings affect all Apple event-capable languages, not just AppleScript.
2. It still has the best Apple event support of any language. Scripting Bridge, which you mention, doesn't work properly (various bugs, lacks various bits of functionality, and is prone to application incompatibilities), and [ironically] obfuscates and confuses the process of building and sending Apple events much worse than AppleScript does. Even appscript, which [AFAIK] provides the next best Apple event bridge after AppleScript, still chokes on the occasional application command that works without problem in AppleScript. (Of course, some of those compatibility problems are due to applications relying on behaviours that in turn rely on AppleScript's own undocumented quirks; but hey, you work with the APIs you've got, not the ones you wish you had.)
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net -
When opening reports problems inconsistencies
opening iPhoto a label appers reporting problems and inconsistencies, click for repair, when done, opens library ALWAYS in "Events" and at the riht side the banner faces, map, etc. and stays blocked. I have to force exit. I have done this procedure several times and dont want to open iPhoto again and I dont want to loose my library
If you don't want to lose your Library make a back up:
Most Simple Back Up:
Drag the iPhoto Library from your Pictures Folder to another Disk. This will make a copy on that disk.
Slightly more complex: Use an app that will do incremental back ups. This is a very good way to work. The first time you run the back up the app will make a complete copy of the Library. Thereafter it will update the back up with the changes you have made. That makes subsequent back ups much faster. Many of these apps also have scheduling capabilities: So set it up and it will do the back up automatically.
Example of such apps: Chronosync - but there are many others. Search on MacUpdate or the App Store
Other than that:
Option 1
Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
If that fails:
Option 2
Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
Regards
TD -
Critical Logging Event Red ( /sapapo/om13)
Hello,
In /sapapo/om13--->checks, we can see critical logging event is red.
I logging section, message are
1> error in /SAPAPO/OM_REORG_DAILY (date 16.10.2007)
2> Planning version was created.(date 13.10.2007)
3> ATP time series active(date 12.10.2007)
4> error OM13 ( date 10.10.2007)
we want to turn this critical loging event to green.
Should we delete livecache application logs via /sapapo/om12 or is there any other way to turn it into green.
As far as I know, /sapapo/OM13->Logging contains last entries from logging log.(/sapapo/om13->Logging----
>Logging Log .)But Last entries means how many? any parameter to do this?(Just a query)
Can somebody please help me turning critical event log to green.
Please feel free to add thougts.Thanks.
Regards,
Tushar
Message was edited by:
Tushar ChavanHello Tushar,
You could turn critical event log to green if you will not have the Critical Logging Events for the last 5 days.
For example, OM13 could Shows the Critical Logging Event as Yellow. You could run the transaction /sapapo/om11 or /sapapo/OM13 -> tab 'logging' to review the critical logging events, which have occurred recently on your system. If , for example, the 'Old transactional simulations deleted' by the //om_ reorg_daily report or corrections of the inconsistencies in /sapapo/om17 were done on your system, the events will be listed in the 'logging' section. And the OM13 Shows Critical Logging Event (Yellow) to pay attention for you to check 'logging' for more details.
Information to the reason of the yellow light can be found via the blue info button.
For example on the my local system in the transaction /sapapo/om13 -Checks -> 'Critical Logging Event' shows the yellow light. Before the yellow light you will see the last Event to be checked in "Logging".
The next info was displayed, when I was clicked blue info button:
At least one critical logging event has occurred recently. See "Logging"
in the Writer for more details.
And when will go to the transaction /sapapo/om13 -> logging ( or you could use the transaction /sapapo/om11 ), you will see "Logging" list of events for more details.
-> In your case if you have red light for the Critical Logging Event, you need to correct the problem with the error in "Logging" event.
-> You should not delete the "Logging" events on your system to get the green light
in //om13->checks, "Logging" events needed for the further analysis of the LCA problems on your system, if you have them or will have in future.
-> If the error in /SAPAPO/OM_REORG_DAILY occurred, it has to be checked/corrected. And if the job will run without errors the problem is gone. See the SAP note 800927.
->"2> Planning version was created.(date 13.10.2007)
3> ATP time series active(date 12.10.2007)"
Please review the SAP note: 792286 Repairing/activating ATP time series.
Are you running the system upgrade?
< If yes, then the note 792286 is NOT needed to be applied or pay attention.
During the upgrade the step to activate the ATP time series is before to load the master data to liveCache in the target release. And during the load master data the planning versions were loaded < created > to the liveCache from APO database. >
What is the version of your system?
-> I recommend you to create the OSS message to the component 'BC-DB-LCA'
to check the critical LCA events on your system.
Thank you and best regards, Natalia Khlopina -
Inconsistencies between B1 SLSP/SLSPP and B1i SLD
Dear Experts,
Can anyone please help me with the error encircled in the attached file? I am not able to run dashboards and I guess this error is the cause.
Any help will be highly appreciated!
Thanks & Regards,
Aakash DeliwalaHello,
Check weather the Company Database names are available in SLD Integration Framework.
If Does not exist then follow this:
1. Go to SQL Server>SBO_Common (DATABASE)>Table>SLSP. Check all your company database are available or not?
2. If database exists then DELETE your Company Database.
3. Go to SAP and Refresh your database.
4. Check your JAVA version. It should be greater than Version 5.
5. Now Install Event Sender. (Your System Drive:/Program Files/SAP/SAP Integration Framework/Event Sender/Setup. Step 3/5 Test Connection. And Finish.
6. Now restart your SAP Integration Framework Services.
7. Now go to Integration Framework & there you can see your Company Database in SLD.
This will remove inconsistencies between B1 SLSP/SLSPP and B1i SLD
Kind regards,
Jai
Maybe you are looking for
-
hi i do like the metal look and feel very much, but i'd like to provide the option of changing it just a little. basically i want to change the title bar colour from the purple to say a green, and the background greyish-beige to say a blue. i know it
-
Where do I specify the URL to test for my load testing project?
When we create a WebAndLoadTestProject in VS 2013, the only place where I can specify the URL that I actually want to test is by adding a Web Performance test to the project and specifying the URL in the recording tool. Does this mean that I cannot h
-
Apache authentication using .htaccess not working??
I have added the following to my httpd.conf file: <Directory "/Library/WebServer/Documents/secret"> Options FollowSymLinks AllowOverride None </Directory> Then I created an .htaccess file in /Library/WebServer/Documents/secret with the following cont
-
How to overcome browser malware on iMac
Has anyone examined the question of browser malware, i.e. the browser pages being changed to request more, apparently legitimate, information such as bank account numbers and pin numbers on appently legitimate bank screen pages? Does this require ke
-
Parameterized Query not working
I need help with my query, I cannot figure out what I seem to be doing wrong. here is my query SELECT CITY, EXAM_DATE, GENDER, ETHNICITY FROM APPLICANTS WHERE CITY = decode(:P1_CITYLOV,'%null%',City,:P1_CITYLOV) AND EXAM_DATE = decode(:P1_Exam,'%null