Execute Javascript in SCRIPT_ITEM onload, but only once
Hi,
if I publish my webtemplate then the javascript function (executeJS_SET_ITEM_PARAMETERS_R) inside the script item is executed. The execution is done via onload="javascript:executeJS_SET_ITEM_PARAMETERS_R".
Within the JavaScript I create some parameters to change some settings of the webtemplate. At then end the command is executed and the template is refreshed.
1.The problem is that the Javascript is executed recursively (always onload). How can I ensure that the JavaScript is executed only once (the template only refreshed once)?
2.Within executeJS_SET_ITEM_PARAMETERS_R these lines are commented:
//To extract specific values of parameters refer to the following:
//var key = currentState.getParameter( <b>PARAM_KEY</b>).getValue();
//alert( "Selected key: " + key );
What is meant by PARAM_KEY? Maybe I can use this parameter to create a condition that ensures to execute the code only once. Where can I found these PARAM_KEYs?
Thanks for the info.
BR, Andreas
You might try this approach, using the following workflow...
1) *Get Specified Finder Items* -- press the "+" sign, navigate to the target folder and choose it.
2) *Set Folder Views* -- move the icon slider to 128, etc., and check "Apply Changes to Sub-folders."
From Automator's File menu select Save As Plug-in > Plug-in for: Folder Actions.
The AppleScript, located in the User > Library > Scripts > Folder Action Scripts folder, can then be modified:
on adding folder items to this_folder after receiving added_items
tell application "Macintosh HD:Users:username:Library:Workflows:Applications:Folder Actions:Make 128.app"
run -- 'run' replaces 'open added_items'
end tell
end adding folder items to
This has worked for me consistently (so far) using Mac OS 10.4.11; not tested in Leopard. Your results may vary.
Good luck.
Similar Messages
-
I am having an issue with both Pages and Numbers on my iPad. Whenever I am at the document list page and use "edit" to make a copy of a document or delete it, the iPad locks up. Happens almost every time. Also happens on my iPhone but only once in a while. Thought of completely redoing the iPad, but if it happens on the phone as well, won't help. ???
Hello APVzW, we absolutely want the best path to resolution. My apologies for multiple attempts of replacing the device. We'd like to verify the order information and see if we can locate the tracking number. Please send a direct message with the order number so we can dive deeper. Here's steps to send a direct message: http://vz.to/1b8XnPy We look forward to hearing from you soon.
WiltonA_VZW
VZW Support
Follow us on twitter @VZWSupport -
Execute ABAP code in Start Routine only once
I have ABAP code in a start routine that I only want to execute once. Is there a way to tell this is first execution of the start routine?
Also can I find out these value in the start routine ABAP:
1. How many data packets there are?
2. What data packet I am processing?
Regards,
Mike...Hi,
I've just setup a little test:
TRules, Start Routine Global Decl:
DATA: GVI TYPE I, GVN(5) TYPE N.
Start Routine:
IF GVI IS INITIAL.
GVI = 1.
ELSE.
ADD 1 TO GVI.
ENDIF.
MOVE GVI TO GVN.
This is basically counting the times the start routine is executed and populating the var GVN; I am posting GVN in a char ZTESTGV in the target cube. I am posting as well the datapakID in my cube.
I have loaded two requests (each 4 packets)
the first one first to PSA and then from the PSA to the target: this is Serially using one single process. Here's the result in the cube:
Request________________________________DATAPAKID_____ZTESTGV
REQU_8B5ASGQNYYNIV1OJN68HFH1SR____________1____________1
REQU_8B5ASGQNYYNIV1OJN68HFH1SR____________2____________2
REQU_8B5ASGQNYYNIV1OJN68HFH1SR____________3____________3
REQU_8B5ASGQNYYNIV1OJN68HFH1SR____________4____________4
In this case the global variable is persistent accross packets.
the second request is loaded in paralell: this is, multiple processes are executed at the time. Here's the result in the cube:
Request________________________________DATAPAKID_____ZTESTGV
REQU_14QVH21BSVH44FAJW94BD7N2H____________1____________1
REQU_14QVH21BSVH44FAJW94BD7N2H____________2____________1
REQU_14QVH21BSVH44FAJW94BD7N2H____________3____________1
REQU_14QVH21BSVH44FAJW94BD7N2H____________4____________1
In this case the global variable is always1 !!
This is logic since several a process cannot access the internal memory used by another one...
Conclusion; the global variable will work only if the load is serial...
hope this helps...
Olivier. -
I am Canadian but travel between Canada and the US so have a Canadian account AND an American account. the movie I need to download (for a school project for my daughter) is not available through the Canadian iTune store, only the American but I am a whopping four dollers short on that account so I need to use a Canadian credit card to top up but do not want it left on the account. The billing address for the Canadian card is, obviously, a Canadian address..... what do I do????
Click here and ask the iTunes Store staff to zero your account balance.
(114902) -
Sleep WORKS, but only once...
Finally, virtually everything I've ever wanted working on my laptop works thanks to Arch, including the elusive ACPI S3 sleep mode. There is only one problem: the ACPI exits on resume from sleep, which means I manually have to type in /etc/rc.d/acpid start before it will sleep again, or before my battery and temperature monitoring applets will work. Admittedly, this is a small annoyance next to it not resuming at all, but I'm SO CLOSE to every single feature working flawlessly, and this seems like such a small thing. However, I am baffled. My /var/log/acpid :
[Fri Aug 25 11:11:49 2006] received event "button/lid LID 00000080 00000006"
[Fri Aug 25 11:11:49 2006] notifying client 6122[0:0]
[Fri Aug 25 11:11:49 2006] notifying client 6156[0:0]
[Fri Aug 25 11:11:49 2006] completed event "button/lid LID 00000080 00000006"
[Fri Aug 25 11:11:49 2006] exiting
[Fri Aug 25 11:27:37 2006] starting up
[Fri Aug 25 11:27:37 2006] 0 rules loaded
[Fri Aug 25 11:27:37 2006] events file connection closed
[Fri Aug 25 11:27:37 2006] exiting
As I understand it, acpid is designed to exit when it finds a /proc/acpi/events file that is closed. Somehow, on resume, this file is not being initialized again fast enough by the kernel. I'm using the 2.6.17-beyond3 kernel. ACPI is just serving as an events concentrator for powersaved, hal-acpi-addon, and all of the other programs that otherwise fight over the /proc/acpi/events file. The suspend2ram.log file from powersaved:
suspend2ram initiated: 2006-08-25 11:11:49
Debug info follows here, please include in your bug reports. Thanks.
Loaded modules:
Module Size Used by
ath_pci 74532 0
ehci_hcd 25608 0
uhci_hcd 18440 0
sha256 11520 0
twofish 44800 2
fglrx 383596 8
ip_queue 7840 1
iptable_filter 3072 1
ip_tables 11236 1 iptable_filter
ipv6 203424 10
rfcomm 29332 0
hidp 12800 2
l2cap 18688 10 rfcomm,hidp
bluetooth 37220 5 rfcomm,hidp,l2cap
sd_mod 14848 0
pcmcia 27820 0
wlan_scan_sta 11520 1
usb_storage 67776 0
snd_seq_oss 26368 0
snd_seq_midi_event 6400 1 snd_seq_oss
slamr 427304 0
snd_seq 42576 4 snd_seq_oss,snd_seq_midi_event
snd_pcm_oss 32160 0
snd_mixer_oss 14208 1 snd_pcm_oss
i2c_viapro 7572 0
i2c_core 15872 1 i2c_viapro
yenta_socket 21004 1
rsrc_nonstatic 10240 1 yenta_socket
pcmcia_core 31128 3 pcmcia,yenta_socket,rsrc_nonstatic
shpchp 30504 0
pci_hotplug 24004 1 shpchp
amd64_agp 9796 1
agpgart 24012 2 fglrx,amd64_agp
ath_rate_sample 10240 1 ath_pci
wlan 155612 4 ath_pci,wlan_scan_sta,ath_rate_sample
ath_hal 190160 3 ath_pci,ath_rate_sample
ohci1394 27568 0
ieee1394 74840 1 ohci1394
tg3 88580 0
via_ircc 16916 0
snd_via82xx 21528 2
gameport 11016 1 snd_via82xx
snd_mpu401_uart 6528 1 snd_via82xx
snd_rawmidi 17952 1 snd_mpu401_uart
snd_seq_device 6540 3 snd_seq_oss,snd_seq,snd_rawmidi
snd_via82xx_modem 10888 6
snd_ac97_codec 79520 2 snd_via82xx,snd_via82xx_modem
snd_ac97_bus 2688 1 snd_ac97_codec
snd_pcm 64644 6 snd_pcm_oss,snd_via82xx,snd_via82xx_modem,snd_ac97_codec
snd_timer 17412 2 snd_seq,snd_pcm
snd 40292 26 snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_via82xx,snd_mpu401_uart,snd_rawmidi,snd_seq_device,snd_via82xx_modem,snd_ac97_codec,snd_pcm,snd_timer
soundcore 7520 1 snd
snd_page_alloc 7688 3 snd_via82xx,snd_via82xx_modem,snd_pcm
ppdev 7300 0
lp 9092 0
rtc 10036 0
irda 102200 1 via_ircc
crc_ccitt 2688 1 irda
parport_pc 22564 1
parport 28616 3 ppdev,lp,parport_pc
joydev 7872 0
evdev 7680 2
acerhk 23676 0
cpufreq_ondemand 6444 1
powernow_k8 10912 0
freq_table 4256 1 powernow_k8
capability 3848 0
commoncap 5760 1 capability
usbcore 97408 4 ehci_hcd,uhci_hcd,usb_storage
ext3 107528 3
jbd 48020 1 ext3
dm_crypt 9352 1
dm_mod 42648 7 dm_crypt
ide_cd 32160 0
cdrom 30368 1 ide_cd
ide_disk 14724 3
via82cxxx 8068 0 [permanent]
generic 4740 0 [permanent]
ide_core 99912 5 usb_storage,ide_cd,ide_disk,via82cxxx,generic
Memory info:
total used free shared buffers cached
Mem: 1035084 288908 746176 0 13860 136012
-/+ buffers/cache: 139036 896048
Swap: 2097144 0 2097144
/proc/cmdline: root=/dev/system/root ro video=vesafb:ywrap,mtrr,1400x1050-32@75 splash=silent,theme:gir console=tty1 quiet resume2=swap:/dev/system/swap
========we are going to sleep, preparing.========
== checking runlevel ==
no shutdown/reboot in progress, good.
== Unmounting FAT/NTFS filesystems: ==
none found in /etc/mtab
== FAT/NTFS filesystems unmounted ==
Stopping services: ('networkmanager acpid acpid cups netfs alsa network' configured)
stopping acpid:
## stty: standard input: Invalid argument
## [1;34m:: [1;37mStopping acpid[1;0m [-9G [1;34m[[0;36mBUSY[1;34m][1;0m [-9G [1;34m[[1;37mDONE[1;34m][1;0m
stopping netfs:
## stty: standard input: Invalid argument
## [1;34m:: [1;37mUnmounting network filesystems[1;0m [-9G [1;34m[[0;36mBUSY[1;34m][1;0m [-9G [1;34m[[1;37mDONE[1;34m][1;0m
stopping alsa:
## stty: standard input: Invalid argument
## [1;34m:: [1;37mSaving ALSA Levels[1;0m [-9G [1;34m[[0;36mBUSY[1;34m][1;0m [-9G [1;34m[[1;37mDONE[1;34m][1;0m
stopping network:
## stty: standard input: Invalid argument
## stty: standard input: Invalid argument
## [1;34m:: [1;37mStopping Network[1;0m [-9G [1;34m[[0;36mBUSY[1;34m][1;0m [-9G [1;34m[[1;37mDONE[1;34m][1;0m
ejecting PCMCIA cards...
Unloading modules: ('prism54 nvidia ath_pci nvsound acx100 acx_pci hsfmodem prism54 bcm4400 emu10k1 forcedeth ipw2100 ipw2200 natsemi psmouse rt2400 ehci_hcd ohci_hcd uhci_hcd ehci-hcd usb-ohci usb-uhci snd_ens1370 snd_ens1371 en1370 en1371 via_agp via_rhine i8042 intel_mch_agp rt2500 button speedstep_smi ndiswrapper usblp' configured)
checking prism54
checking nvidia
checking ath_pci
# trying to unload: ath_pci
unloaded: ath_pci
checking nvsound
checking acx100
checking acx_pci
checking hsfmodem
checking prism54
checking bcm4400
checking emu10k1
checking forcedeth
checking ipw2100
checking ipw2200
checking natsemi
checking psmouse
checking rt2400
checking ehci_hcd
# trying to unload: ehci_hcd
unloaded: ehci_hcd
checking ohci_hcd
checking uhci_hcd
# trying to unload: uhci_hcd
unloaded: uhci_hcd
checking ehci-hcd
checking usb-ohci
checking usb-uhci
checking snd_ens1370
checking snd_ens1371
checking en1370
checking en1371
checking via_agp
checking via_rhine
checking i8042
checking intel_mch_agp
checking rt2500
checking button
checking speedstep_smi
checking ndiswrapper
checking usblp
prepare_sleep finished for suspend2ram
/usr/sbin/s2ram not found, falling back to echo.
==== finished, return code 0 ====
========we are back from suspend, cleaning up.========
== restore_after_sleep: restart and reload everything ==
Resuming:
switched back to console: ' 7'
Reloading modules:
uhci_hcd
ehci_hcd
ath_pci
inserting PCMCIA cards...
Restarting services:
starting network:
## stty: standard input: Invalid argument
## [1;34m:: [1;37mStarting Network[1;0m [-9G [1;34m[[0;36mBUSY[1;34m][1;0m [-9G [1;34m[[1;37mDONE[1;34m][1;0m
starting alsa:
## stty: standard input: Invalid argument
## [1;34m:: [1;37mRestoring ALSA Levels[1;0m [-9G [1;34m[[0;36mBUSY[1;34m][1;0m [-9G [1;34m[[1;37mDONE[1;34m][1;0m
starting netfs:
## stty: standard input: Invalid argument
## [1;34m:: [1;37mMounting Network Filesystems[1;0m [-9G [1;34m[[0;36mBUSY[1;34m][1;0m [-9G [1;34m[[1;37mDONE[1;34m][1;0m
starting acpid:
## stty: standard input: Invalid argument
## [1;34m:: [1;37mStarting acpid[1;0m [-9G [1;34m[[0;36mBUSY[1;34m][1;0m [-9G [1;34m[[1;37mDONE[1;34m][1;0m
Remounting filesystems:
not necessary.
======================================
restore_after_suspend_to_ram: finished
Sorry about the messed up characters. I've tried adding acpid to the services restarted by powersaved, and even editing the powersaved scripts so that they'll run /etc/rc.d/acpid start as the absolute last possible thing, with no luck. If anyone has any insights into how this might be fixed, I would appreciate the help. If I can get this resolved, I would be more than happy to write a wiki tutorial on how to get my laptop, an Acer Ferrari 3200 fully functional on ArchLinux.
Thanks in advance,
joshuahereticYou might try this approach, using the following workflow...
1) *Get Specified Finder Items* -- press the "+" sign, navigate to the target folder and choose it.
2) *Set Folder Views* -- move the icon slider to 128, etc., and check "Apply Changes to Sub-folders."
From Automator's File menu select Save As Plug-in > Plug-in for: Folder Actions.
The AppleScript, located in the User > Library > Scripts > Folder Action Scripts folder, can then be modified:
on adding folder items to this_folder after receiving added_items
tell application "Macintosh HD:Users:username:Library:Workflows:Applications:Folder Actions:Make 128.app"
run -- 'run' replaces 'open added_items'
end tell
end adding folder items to
This has worked for me consistently (so far) using Mac OS 10.4.11; not tested in Leopard. Your results may vary.
Good luck. -
Folder Action works, but only once
Attached a Folder Action to a folder in my Home directory, to upon dropping folders/files to that folder will change the Folder Views to 128 Icon size (and subfolders) - works once, then next time I drop a folder into that folder doesn't do anything.
Here is the script attached via Automator to that folder
on adding folder items to this_folder after receiving added_items
tell application "Macintosh HD:Users:USERNAME:Library:Workflows:Applications:Folder Actions:MAKE 128.app"
open added_items
end tell
end adding folder items to
Is there something I'm doing wrong? Folder Actions are still Enabled for said folder but dropping into that folder does not produce these results - something happens in the menubar but that's it.
Message was edited by: nickdynamiteYou might try this approach, using the following workflow...
1) *Get Specified Finder Items* -- press the "+" sign, navigate to the target folder and choose it.
2) *Set Folder Views* -- move the icon slider to 128, etc., and check "Apply Changes to Sub-folders."
From Automator's File menu select Save As Plug-in > Plug-in for: Folder Actions.
The AppleScript, located in the User > Library > Scripts > Folder Action Scripts folder, can then be modified:
on adding folder items to this_folder after receiving added_items
tell application "Macintosh HD:Users:username:Library:Workflows:Applications:Folder Actions:Make 128.app"
run -- 'run' replaces 'open added_items'
end tell
end adding folder items to
This has worked for me consistently (so far) using Mac OS 10.4.11; not tested in Leopard. Your results may vary.
Good luck. -
Paragraph List - Allow more then 1 PAR selection but only once (Unique)?
Hey all,
I'm looking at the Studio Handbook in the properties types for the PSL's. I can't figure out which property checkbox I need to check off so it'll allow the user to select more then one PAR, but does NOT allow the user to re-select a PAR that has already been selected.
thoughts? ideas?When you are in the multiline text field, the properties window will show the properties. If you have made the MTL field a paragrph selection (with the check box), you should be able to expand the Paragraph Selection and there is a check box for Single pass - you might also want to check single based on what you have said you need to do.
-
ITunes starts once, but only once.
This happened to me before, basically what happens is I download a new version of iTunes, install etc., it works fine. However, as soon as I restart my computer, from there after iTunes just simply won't open. I've uninstalled, redownloaded, installed, restored memory, tried different versions, everything I can think of but nothing fixes it, which leaves me with Winamp or Media Player, both of which I really dislike. I'm running 03 XP on a 03 or 04 HP Pavilion, and up until now iTunes has worked fine since I got my first ipod some 3 years ago. Any suggestions or links I may have overlooked? Thanks.
Start with this article - see if it will work in another windows account, first.
http://support.apple.com/kb/TS1421 -
Redirected printers using Remote Desktop Easy Print driver work only once during session
Hello all
We are running Windows Server 2012 R2 Remote Desktop Services Sessions hosts with printer redirection allowed using only the Easy Print Driver, we have no other drivers installed on the servers. All client printers are redirected and can print fine, but
only once per session! We have tested with several different client printers and they all work a single time in each session. After that the user needs to log off and then back on again to be able to print once again, but only once. Needless to say, our users
are annoyed. If I look at the c:\windows\system32\spool\printers folder while jobs are printing, but failing, I can see the spool files appearing and disappearing as jobs are spooled. No errors in the event logs accompany the behaviour. Our clients are running
Windows 7, 8 and 8.1. All exhibit the same problem. The error looks a little like what is described here:
http://support.microsoft.com/kb/2925429
While similar, this problem describes a scenario where Easy Print is not used, but XPS is, and since Easy Print is based on XPS and the behaviour is very similar, I am tempted to make a connection.
I have checked all the usual stuff with permissions etc, and no manufacturer provided drivers are present. The problem appears on newly installed systems as well as one that have been running for some time. Restarting the spooler services does not resolve
the problem. Actually I do not think it is related to the spooler service or driver framework at all, but rather is an Easy Print driver issue that is occurring much later in the process, if not I would see some errors in the logs and no jobs would print at
all.
Anyone ever heard of something like this?
Thanks
MorganHi Morgan,
Based from your description, users can only print once during single RDP session, I suggest you check if this issue also happens locally.
In addition, after the first print attempt, does any other issue exist on the RDP session?
Is the server fully patched? If there are any available driver updates, please also apply them. If there are any third party software installed, try disable/uninstall them to see if the issue persists.
You can also enable print auditing to get more detailed information about this issue.
More information for you:
Auditing Printing Events
https://technet.microsoft.com/en-us/library/cc976774.aspx
Logging Spooler Events
https://technet.microsoft.com/en-us/library/cc976746.aspx
Best Regards,
Amy
Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected] -
Hello to all,
we are facing a problen with single sign on to SBO. Add On connect works only once, the second time, after stopping the Add On from SBO Add On Manager, SBO shows a message, 'Add On Time' out or 'Invalid Connection string'.
This happens only in a particular workstation/installation. When restarting SBO it works again, but only once.
Installed Versions : Windows 2003 Server SP 1, SBO 2005A SP01 PL 50.
Has someone an idea ?
Thanks
Thomas
Edited by: Rui Pereira on Dec 23, 2008 4:07 PMLets do a full install. But do it this way;
'''[http://www.mozilla.org/en-US/firefox/all/ Download Firefox Full Installer For All languages And Systems]''' {web link}
Save the file. Then;
Using your file browser, open the '''Programs''' folder on your computer.
'''Windows:''' C:\Program Files
C:\Program Files (x86)
'''Mac:''' Open the "Applications" folder.
'''Linux:''' Check your user manual.
• Linux: If you installed Firefox with the distro-based package manager, you should use the same way to uninstall it - see Install Firefox on Linux. If you downloaded and installed the binary package from the Firefox download page, simply remove the folder firefox in your home directory.
Look for, and rename any Mozilla and Firefox folders by adding '''.old''' to them.
Now run the full installer.
If all goes well, remove the OLD folders when you are done. -
Startup Beep but only through USB speakers...
I am using a brand new Aluminum iMac 24" 2.4 with OSX 10.4.10 installed. The computer is connected to a USB hub which further connects to Harmon / Kardon external speakers and an iPod dock.
I recently installed (2) 2G OWC memory modules. At startup, the iMac beeped twice indicating a memory issue. I removed the memory and replaced the OEM memory (1) 1G module. At restart, the iMac continued to beep but only once. I disconnected all peripherals, shut down completely and restarted - no beep. I shut down and powered on several times - no beep. I thought all was well until I reconnected by USB hub. Once again, one beep at startup through the external speakers.
I zapped the PRAM but no help. Can USB connections can cause this? I'm trippin' out.
-dIt's not one of life's necessities, no. It is an awesome sound though. It's a pick-me-up.
I do find it curious that my old SE, SE30, IIci, LC475, Power Macintoshes 7500 and 8500, and PowerBook G3 always had the startup chime through the external speakers and this machine doesn't. -
Why I press button only once, but it executes 2-4 times??
Dear Sir:
I used following code in a project, when I press buttonTest only once, looks like it execues 2 or three times.
and it outputs:
I am testing
I am Calling a new testing
I am testing
I am Calling a new testing
Class myButtonTest(){
public void actionPerformed(ActionEvent e) {
if ("Test".equals(e.getActionCommand())){
System.out.println("I am testing");
buttonTest.setBorder(red);
CallAnotherTest();
public void CallAnotherTest(){
System.out.println("I am Calling a new testing");
public void myButtonTest(){
MotherCall motherCall= new MotherCall();
motherCall.buttonTest.setActionCommand("Test");
motherCall.buttonTest.addActionListener(this);
public Class MotherCall(){
JButton buttonTest= new JButton();
}I only need it executes ONCE, no more no less,
Can Guru help??
ThanksYou can't be using the code you posted as it is far from being able to compile:
* a class declaration with parameters
* a class that is supposed to implement the ActionListener interface but doesn't declare this.
etc..
Please post the real code used. -
Hello everyone,
I am communicating with a serial device using the VISA functions. My VISA commands are inside a loop, and per loop itteration I am sending a default command and receiving a message back from my device. However, I would like to incoroporate two non-default cases, which are to be initiated by buttons on the front pannel. When pressed, a corresponding command should be sent to the serial device only once, and then I'd like to go back to the default case. The message coming back fromt the device should be a string, common to all cases - I don't want a separate string per case. How can this be done efficiently?
I tried to do a three-case case structure, but I haven't figured out how to use boolean switch buttons for more than two cases (I prefer buttons to a drop-down menu selection). I also tried an event structure (which I have no experience using), but these remain idle, and I can't figure out how to make a default case run actively.
Thank you in advance for your help.
Solved!
Go to Solution.An event structure has a time out event which you could wire a value to. The default value (nothing wired to it) is -1 which means never timeout. You can put in a 0 which means zero timeout, execute the timeout case immediately if some other event hasn't already been queued. Or put in any value meaning milliseconds. Wait that many milliseconds and execute the timeout case if another event hasn't happened in the mean time.
Do combine multiple boolean buttons, build them into an array. Then search 1-D array for the first true. A -1 means none are true, a number from 0 to n-1 means that particular element of the array is true. So you just feed the value to the case structure. (-1,default 0 1 2 ...) -
What is the best approach for executing this code only once?
Hi,
What would be the best way to this using JSF/Java web architecture? I have a login page, login.jsf, that submits login credentials to another servlet and if successful, is redirected to a login success page, which I have called "main.jsf", my application's main page. What I want to do, however, is when the login success mechanism redirects to my application, I want to run a bit of Java code (which requires access to the session object) that executes only once, and then redirects to my application's main page.
In other words, I could put this Java code on my application's main page, but then it would execute every time a user visited it.
Any advice on the most efficient way to do this?
Thanks, - Davelaredotornado wrote:
Thanks for your reply but I have a question. If the filter is executed on every page, then, assuming the user is logged in, the code would be executed every time. How can I create this such that my code snippet is executed only once, preferably after the user is re-directed to the login success page?It is more secure. On login just put the User object as attribute of HttpSession and check in the filter if it is there. -
Start routine: only once per teh load but not once per data packet
Hi,
I would like to execute some code in start routine (in update rules) only once per the load but not once per the data packet.
How can I implement this.
Regards,I once had that same requirement, but in a datasource in R3. I'm not sure if the same solution would work in BW, though. I used a memory id to keep the variable value between packets:
DATA: ... n_globalvar TYPE n ...
then I added...
IMPORT n_globalvar FROM MEMORY ID 'ZMEMID01'.
...at the start of the routine to retrieve to the variable the value from the memory id.
At the end of the code, I exported the variable back to the same memory id...
EXPORT n_globalvar to MEMORY ID 'ZMEMID01'.
Maybe you are looking for
-
[Solved] System completely broken after update
Today while updating my system as usual something went south terribly fast Here's the pacman log of the update [2009-07-09 12:14] synchronizing package lists [2009-07-09 12:14] starting full system upgrade [2009-07-09 12:18] upgraded kernel-headers (
-
Payment advice required on ACH file to bank
Hi Folks, My client have a requirement to add payment advice to ACH payment file to bank. I'm generating the DME file (ACH payments ) correctly and are able to print payment advices. I want the payment advice to be added to the DME file; When, I unch
-
HT1725 Movie rent download problem
Hi i rent a movie to my ipad and its keep telling me waiting and its not downloading .... And it tooks allmost 3 hours waiting !!
-
DW: "Halo Left Nav" template
I am trying to create more space between the top margin (for my header graphic) and the Nav. bar with pop-up/down sub-links. Problem is that when I shifted everything downwards, the pop-up subglobal navs don't stay open as well when I try to hover th
-
Hi I am fairly new to Flash Development, but have started trying to bypass some of the more tedious tasks I've been running into. I have Flash CS5.5 and I've noticed when updating BMP Asssets in my files, the file size will balloon in some cases to o