Javascript event for Dynamic Layout change
I'm using javascript to create a customization for a client and I ran into the following problem:
- My code runs by replacing the window.load event, it always run when a page is loaded but it doesn't run when the dynamic layout changes.
Does anyone know which event I can customize so that it runs always??
The dynamic layout change is driven by the following internal code, but I can't make my code run after it:
sendGetAppletCmd('ServiceRequestEditForm.SR Type','OMTGT=ServiceRequestEditForm&OMTHD=ServiceRequestNewNav&OMRET0=ServiceRequestHomepage&OCTYPE=','-','DefaultServiceRequestInsert','ServiceRequestNewForm','ServiceRequestEditForm','\/OnDemand\/user\/DefServiceRequestInsert');
For the benefit of others:
parent.document.onfocus did the trick.
Similar Messages
-
User exit for dynamic layout determination
Hello,
I would to know user exit name for dynamic layout determination for output type of Invoice and Order confirmation.
My user exit should get fired when user press the print preview button in VF03/VA03.
Regards,
Vimal NairHi
I dont' think you need a user exit, but you should manage that directly in print program.
Infact you can choose which output type has to be or not to be loaded in a document by an user exit.
But only in print program you can know if the user has choosen print or print preview.
So check in TNAPR which print program are used for orders or invoice and change them or, if they are std program, you can copy them before changing them.
After calling the sapscript (fm OPEN_FORM) or smartform you can know if user press printpreview by reading the structure of export (like ITCPP for example).
Max
Message was edited by: max bianchi -
Event for Particular PF Change
Hi Experts,
I have a Requirement where I have to Trigger the Event "Partner Function Change" on the Change of only 1 Particluar Partner Function. This Event gets triggered when I change any of the available Partner Functions in my Opportunity.
This is CRM Sales and Marketing related WF. In the BO that I am using, a Standard Event is there for Partner Function Change, but I am unable to find a Solution, where I can trigger this WF based on this Event for a Particular Partner Function.
Any pointers towards this would be appreciated.
Regards,
KanikaHi Experts,
As per your View, I have created a Z FM to check for my Conditions. It has 1 import and 1 export Parameter.
in Transcation SWE2, when I try to enter the FM corresponding to
Receiver Call - FM <Already there>
Receiver FM - SWW_WI_CREATE_VIA_EVENT_IBF <already there>
Check Function Module - ZFM < I entered >
Receiver Type FM - Blank
Destination of Receiver - Blank
These are the Values that are being entered....
Now the ERROR is :-
Check FM ZFM : Parameter SENDER not available.
Please let me know where am I going wrong...
Regards,
Kanika -
How can i call key press event for dynamically created texbox
Hi,
I create a one texbox using javascript .now i want to call onFocus event that textbox.How is itI develop grid application using javascript only.When they press add button dynamically add one row and each cell contain one textbox for enter new data.if they want to edit previous data when cursor goes to that textbox,all textvalue is selected format
-
Maintenance view event for validation when changing data
Hi All,
I have a maintenance view on a table that should validate some fields during user input.
I am using event 05 'Creating a new entry' to validate fields when user creates new entry in the table. That works fine.
I would like to have the same validations happening when the user changes fields of records already existing in the database. I tried to use event 01 'Before saving the data in the database' but the problem with this is that user can change many fields of many records before clicking 'Save'. I would like to have the error raised for incorrect entry already after the change.
So far I could not find an event to do this but only by changing the code itself. The problem with that is whenever the code is regenerated the custom part is lost.
Is there an event I can use that would help me achieve this?
Thanks in advance.Hi Abhishek,
I tried event 21, I`m playing around with that since that`s the only one triggered when I press Enter.
The problem with this is that
- the check runs when you press enter, so you can still change many fields of many records (one step maintenance) before the validation runs
- you can`t raise an error message, because only the key fields will be input ready, the non-key fields will be readonly
The way I currently handle is I undo the changes in 21 (get previous field values from TOTAL) and raise an information message i/o an error informing user to check the entry.
What I`m looking for is an event that will raise a message and set focus on the incorrect field (if there`s one such). -
Error while trying to create Transaction variant for FV60 layout change
Hi Gurus,
I am trying to change the "order/sequence" of FV60 layout (rearranging columns). For which I tried to create Transaction Variant (in sandbox). I keyed in the t-code (FV60) and gave a variant name in the field for Transaction variant. But it gives me a wierd error - "Enter transaction code". Has anybody come across this before? This is enhancement pack 7 so the config button is not available.Thanks Ravi. I went through the note and did exactly the same. But the two check boxes displayed in the note for "Adopt column sequence" and "Adopt column width" is not displayed in my screen!!! Screen shot attached.
-
Please very urgent How can i call focus event for dynamic created txtbox
Hi,
I create a one texbox using javascript .now i want to call onFocus event that textbox.How is itHi,
I create a one texbox using javascript .now i want to
call onFocus event that textbox.How is itJust for you, slowly, so you can understand:
Javascript was invented by Netscape and is a scri�ting language for browsers.
Java is a programming language invented by Sun.
Compare:
Netscape. Sun.
Notice a difference? -
Hello friends,
Can any1 pls tell me if there is a function module available which can be used for dynamic column change in ALV.
Pls also elaborate how to use it.....While filling the field catalog you can specify witht IFcondition.
Just see a example below...
FORM field_fill USING pt_fieldcat TYPE slis_t_fieldcat_alv.
DATA : ls_fieldcat TYPE slis_fieldcat_alv,
pos TYPE i VALUE 1.
ls_fieldcat-col_pos = pos.
ls_fieldcat-fieldname = 'C_ICON'.
ls_fieldcat-seltext_m = 'Change Status'.
ls_fieldcat-tabname = 'IT_OUTPUT'.
APPEND ls_fieldcat TO pt_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos = pos.
ls_fieldcat-fieldname = 'BUKRS'.
ls_fieldcat-ref_fieldname = 'BUKRS'.
ls_fieldcat-ref_tabname = 'ANLA'.
APPEND ls_fieldcat TO pt_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos = pos.
ls_fieldcat-fieldname = 'ANLN1'.
ls_fieldcat-ref_fieldname = 'ANLN1'.
ls_fieldcat-ref_tabname = 'ANLA'.
APPEND ls_fieldcat TO pt_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos = pos.
ls_fieldcat-fieldname = 'ANLN2'.
ls_fieldcat-ref_fieldname = 'ANLN2'.
ls_fieldcat-ref_tabname = 'ANLA'.
APPEND ls_fieldcat TO pt_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
IF p_farea = 'X'. " Conditional Based OUTPUT
ls_fieldcat-col_pos = pos.
ls_fieldcat-fieldname = 'GRUFL'.
ls_fieldcat-ref_fieldname = 'GRUFL'.
ls_fieldcat-ref_tabname = 'ANLA'.
APPEND ls_fieldcat TO pt_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos = pos.
ls_fieldcat-fieldname = 'GRUFL_N'.
ls_fieldcat-seltext_l = 'New Floor Area'.
ls_fieldcat-tabname = 'IT_OUTPUT'.
APPEND ls_fieldcat TO pt_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ENDIF.
IF p_ldate = 'X'. " Conditional Based OUTPUT
ls_fieldcat-col_pos = pos.
ls_fieldcat-fieldname = 'LEABG'.
ls_fieldcat-ref_fieldname = 'LEABG'.
ls_fieldcat-ref_tabname = 'ANLA'.
APPEND ls_fieldcat TO pt_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ls_fieldcat-col_pos = pos.
ls_fieldcat-fieldname = 'LEABG_N'.
ls_fieldcat-seltext_l = 'New Lease St.Date'.
ls_fieldcat-tabname = 'IT_OUTPUT'.
APPEND ls_fieldcat TO pt_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ENDIF.
ls_fieldcat-col_pos = pos.
ls_fieldcat-fieldname = 'MESSAGE'.
ls_fieldcat-seltext_l = 'Status Message'.
ls_fieldcat-tabname = 'IT_OUTPUT'.
APPEND ls_fieldcat TO pt_fieldcat.
CLEAR ls_fieldcat.
pos = pos + 1.
ENDFORM. " field_fill
Regards
Gopi -
Cinnamon keyboard layout change shortcut
Hello,
As I see, Cinnamon doesn't allow to set shortcut to (Alt + Shift) for keyboard layout changing. I've managed to found few solutions:
https://github.com/linuxmint/Cinnamon/issues/2463
https://bbs.archlinux.org/viewtopic.php?pid=1337685
http://forum.manjaro.org/index.php?topic=4658.0
But neither of them worked. I believe that some of you guys are used to this shortcut, how did you manage to config it?Maybe this? http://millertechnologies.net/forum/ind … 337#msg337
-
LV7: how to catch 'Value change' event for cursor position in XY graph?
I try to catch an event when the cursor position of a graph's cursor
changes. I created a reference for the cursor array and registered a dynamic
event 'Value change' for it. The event does not fire when the cursor changes
(either by dragging it with the mouse or by direct entry of a new value in
the cursor's X or Y fields. In contrast, when I register e.g. the 'Mouse Up'
event for the cursor array, the event IS detected.
-FranzSo this is the same behaviour as that of a regular control which also does
not fire a 'Value changed' event when it gets updated by e.g. writing to a
local.
At least the cursor's behavior is consistent then...
But unfortunately also the direct user interaction with the cursor's numeric
field does not fire the event, which is NOT consistent.
I was trying to catch cursor changes in my event loop and had used a 'Mouse
Up' event of the graph indicator to look for cursor changes (whose last
position I had kept in a local or shift reg). In order not to miss a direct
user interaction in the numeric field I added the dynamic event 'Value
change' to the same event case, but with no success, it missed the direct
entry ...
according to what you say this seems to b
e a bug then...
-Franz
"Greg McKaskle" schrieb im Newsbeitrag
news:[email protected]..
> > I try to catch an event when the cursor position of a graph's cursor
> > changes. I created a reference for the cursor array and registered a
dynamic
> > event 'Value change' for it. The event does not fire when the cursor
changes
> > (either by dragging it with the mouse or by direct entry of a new value
in
> > the cursor's X or Y fields. In contrast, when I register e.g. the 'Mouse
Up'
> > event for the cursor array, the event IS detected.
> >
>
> The reason is that value change events fire when user action directly on
> the control changes its value. They do not fire when other programmatic
> value changes occur. If you are looking at a value change on the cursor
> palette, user interaction with the numeric should fire it, but updates
> due to cursor movement are more like programmatic updates.
>
> Additional events will likely be added in future
releases, and these may
> make it easier to catch cursor movement events on a graph.
>
> Greg McKaskle
> -
Event for a change in the cursor legend
Hi!
I need to recognize a change of the cursor properties by the user through the XY-Graph Cursor Legend! (i.e. changing cursor color)
There seems to be no event for that in my event structure (although there is a event for changing the plot properties through the plot legend).
I'm using LV2009SP1.
Greets CtheRI need the recognize any change of the cursor props made by the user. Like that:
Watching the cursor-Property for a change would be no help because there are automatic changes that I do not want to catch.
Something similar to the plot attribute change event in an event structure would be most helpful:
Greets CtheR -
Layout change for S_ALR_87012143/1099 Listings report
Hi Experts,
is it possible to change layout of report S_ALR_87012143 - RFKQSU20 by some means other then abap code change?
We need to add Vendor master related data (such as PO BOX , City etc to the output ) when report is being extracted as excelsheet. This sheet should later be used to submit to 1099 Express.
Are there any other alternative provided by SAP for S_ALR_87012143 - RFKQSU20 ?
Any help would be appreciated?
Thanks a lot!!!!Hello,
As far as I know, all the relveant information required by you are
available for report RFIDYYWT.
In main screen of report RFIDYYWT:
-> go to'output control' section-> 'tax per business partner'->
click on 'configuration'-> from menu, click 'settings'-> 'layout'->
'change'-> select the fields from the right box and add it to
the left box-> click 'copy'.
BR,
Raquel -
Dynamic layout elements determination logic for output of Pro-Forma Invoice
This is my requirement below. Please give the suggestion
Business requires output to be generated in name of the client, with client logo and scenario specific data elements. To do this in Standard SAP will require to define hundreds and hundreds of layouts. By making most of the client/scenario elements on the layout we can greatly reduce the number of required layouts and reduce implementatuion effort and lead-time.
The goal is to define a generic table that will hold most of the dynamic layout elements for different document types and countries, including logo, sender address etc.
For this we will create Z-versions of the output types BA00 ( Order Confirmation, ZPRI (Pro-Forma Invoice) and RD00 (ZD00 Invoice).The layout text blocks will be permanently fixed.The print Program user-exit should call the Z-table that holds the dynamic layout elements and retrieve these elements and merge them with the matching layout text block.
Message was edited by: janardhan bHi Janardhan,
Even I have faced the similar situation.but what we have done is instead of calling the dynamic text elements..Why don't we call the text elements based on the required condition ,Then u dont have to maintain all the text elements required in the table.In the table we can only have the doumnent type,client name,logo name and address.
In the print program if u r using script layout then call the required text elements (write_text) based on the client name and document type that is fetched from the Z-table,Otherwise if u r going for smartforms then with in the layout give the condition under the conditions node of the window or the text. -
Adding a javascript event to a dynamically loaded content
Hello,
I am new to adobe air. I am trying to create a desktop application with html and javascript. I have a page that reads data from db and lists each records as links (a href). I need to assign an onclick event for each link.
both
foreach result {
<a href="#" onclick="foo()">bla bla</a>
and
foreach result {
document.getElementById('container').innerHTML = '<a href="#" id="link_id">bla bloa</a>';
document.getElementById('link_id').addEventListener("click", function() { foo(); });
With the second solution it only workd for the last record
What am I missing ?
I appreciate any help.
Thanks.I always recommend using a javascript framework such as jQuery for building JS AIR applications. If you're already using jQuery, or plan on it then look into jQuery's live binding:
http://api.jquery.com/live/
Essentially what it does is "listen" for new DOM elements that match events you're watching for and add them to your existing bindings. It's very simple. Your example below becomes:
$('a').live('click', function(){
// do something -
I've been using samsung for a long time and I just changed into an iPhone 5s and the most important thing I need is my calendar appointments , but in the notification center it doesn't show my events for tomorrow and it doesn't even show more than 1 event , will there be an updated or this soon? Or should I just shift back to samsung?????
Go to settings/notification centre and make sure today vie and calendar day view are both on
Maybe you are looking for
-
How to cancel an order?, How to cancel an order?
My daughter just mistakenly pressed a button while playing angry birds and it seems that it upgraded a feature and charged me $52, I want to cancel it but don't know how.
-
There are very poor instructions or how to create the certificate. The instructions are nice for creating of CSR etc. But no where is there any information of what type of developer you should be to get this. One outside link unrelated to apple says
-
Installing Windows XP on a new MacBook Pro with Retina Display.
I just purchased a new MacBook Pro with Retina display and need to install Windows XP on it so that I may run 3 Windows programs. I have watched a few videos on the internet on how to do this through Boot Camp Assistant, and it says at one point to
-
Attach GOS attachments with a standard send mail functionality
Hi Folks, I am here after long time and need your help. I have a requirement where I need to attach document with a standard send mail functionality. Below is the details: From Quality notification 'Action Box', if the user select a perticular action
-
Message types(IDOC) in XI
Hi, I am trying to maintain distribution model in XI, i could not found message types CREMAS, MATMAS and DEBMAS. can anyone help. Actually i am sending IDOC's from R/3 to XI, i create RFC OUTBOUND in R/3 and maintained distribution model view. Than