Take action before destory
Hello, I am so confused with my current problem. Actually, I need to tackle some attributes in session just before destory.
However, using HttpSessionListener is not OK, as its destory action is called after destory. Choosing HttpSessionAttributeListener is also not a good idea, as this listener may invoke many many time when any attributes are added or replaced. Any suggestions.
I attach the HttpSessionListener to the object type itself that I store in the session. That way, when the session is invalidated, the object instance that is being tossed can handle any cleanup of its instance fields.
Here is how I handle it. You can always just implement HttpSessionListener on each object if you already have a parent class. This implementation works fine in WebSphere4.0, so I can only assume that it would work elsewere.
public abstract class Saveable implements HttpSessionListener
public void valueBound(..){}
public void valueUnBound(...)
save();
public abstract void save();
}
Similar Messages
-
What method is used to take action of Enter button in keyboard?
I doing exercise about GUI.
One ex ask me type a number in one JTextField object, press Enter and then another converted number appear in the second JTextField object. This ex are not allowed to use a JButton object. I have no idea about what method to use to take action of pressing Enter. Please help me.
Thank youEncephalopathic wrote:
codingMonkey wrote:
Interesting. I never knew that.Did you really not know, or are you trying to tell me in a nice way that my answer is full of chit (it's been known to have happened before and I know will happen again)?I really did not know that. It is an interesting little fact that might come in useful someday. :) -
Hey folks,
Building a ticketing type system and when a ticket is opened, we want it to go to everyone on our team, not just one person. What's the best way to accomplish this and how?
Do we:
1. Make the field blank so it's searchable that way?
2. Can the assigned to field tied to active directory be filled in with more than 1 name where it doesn't require all names to take action on it?
3. Saw people mentioning assigning to a group but then not sure how to create a group (names are tied to active directory) and not sure how to make the workflow allow just one and not all individuals in that group to take action on it.
First step would be for the individual taking action on it to reassign it to themselves, effectively taking it out of the "queue"
Any help would be greatly appreciated!!
Oh and just a note that SharePoint Designer wasn't set up for us to use BUT we have InfoPath and that is something we can use (go figure lol).
Thanks!Ben I'll send you the VI
Attachments:
TEST.vi 589 KB
TEST.vi 59 KB -
Your computer appears to be infected
We believe that your computer is infected with malicious software. If you don't take action, you might not be able to connect to the Internet in the future.
Learn how to remove this software.No you do not have a virus. That is a standard web popup usually, that tres to get up to download a "removal program". The removal program is the virus or similar.
-
my i phone 5c wont stop restarting!! sometimes it takes hours before the phone starts working again. Sometimes when it does this red lines go up and down the screen. Im so ready to go back to my 4s does anyone know how to fix this??? Should i mention i have tried restarting back to new and i have the most up to date software. Please help
If the center portion of the monitor is flickering then your GPU on the logic is bad or (unlikely given this symptom) that your monitor cable is pinched/damaged.
**Imediately backup ALL your important data while you can still see things on the monitor
Contact Apple for appt. for in shop diagnostics for full examination and for parts replacement
nobody can give you a cost on a repair that isnt fully diagnosed online and cannot be.
perform SMC reset just to check:
Shut down the computer.
Plug in the MagSafe power adapter to a power source, connecting it to the Mac if its not already connected.
On the built-in keyboard, press the (left side) Shift-Control-Option keys and the power button at the same time.
Release all the keys and the power button at the same time.
Press the power button to turn on the computer. -
Accounting Entries when Invoice Verification takes place before GR
Hello All,
I have some difficulty in understanding the accounting entries when Invoice Verification takes place before Goods Receipt.
The scenario is as below: - (It is taken from one of the SAP documentation - AC530 - Actual Costing & Material Ledger- pg.No.2-8)
1) Stock of material available u2013 50 units / Value Rs.125 /Moving average price in the material master Rs.2.50 per unit
2) Invoice receipt takes place before goods receipt u2013 100 pc @ Rs.4.00 pc
3) System does internal stock coverage check. As per SAP document, the stock shortage is 50 pieces.
4) So the price difference arise i.e.Rs.100 (How this amount is arrived at? u2013 Not understood)
5) The price difference of Rs.100 is only partially debited to the material (Rs.50). The rest is posted to price difference account (Rs.50)
The accounting entry u2013
GRIR A/c Dr 300
Inventory A/c Dr. 50
Price Diff. A/c Dr. 50
To Vendor A/c 400
Question u2013
- I have not understood how Rs.100 is calculated & on what Moving average price the calculation takes place.
- As per the calculation in the document, the moving average price of the opening stock is Rs.2.50.the stock is 50 units. (50*2.50=125)
- The Invoice receipt happens at 100 pcs @ Rs.4.00 (100*4=400)
- So the new moving average price will be Rs.3.50 (Rs.125 + {100*4=400})=Rs.525. Rs.525/(100+50)pcs = Rs.3.50
- So how the price difference & posting to Stock account is calculated in the accounting entry?
Please help,
Thanks & Regards,
GovHi,
Check below mentioned thread to understand posting to price difference account..
Logic of price difference posting
you missed one aspect of this and that is PO qty and PO price.
GR/IR will get debit at IR Qty * PO Price.
rest all calculations are in the link provided..
- So the new moving average price will be Rs.3.50 (Rs.125 + {100*4=400})=Rs.525. Rs.525/(100+50)pcs = Rs.3.50
Moving avg. will be calculated on stock value / qty in stock. new MAP will be stock value = (125 +50) = 175 and stock qty = 50 units so MAP will be 175/50 = 3.5.
Since, GRN has not been done yet stock value (100*4) will not be there..
Regards,
Sayujya -
''locking this thread as it is not a Firefox support issue''
Your information has been sent to our customer service department. We will review your case (est. time 72 hours) and take action as necessary.
== URL of affected sites ==
http://Try getting help from Facebook. Those aren't Firefox support issues.
-
Hi guys
Does any one know or have an idea on how to run a javascript function on "action before rendering" on a webtemplate?
I know, I can run an instruction command but ther is no option to run a javascript function from the properties of the webtemplate.
Thanks
ShlomiNo setting that Iknow of. Typically, you would use VBA code to act on the wkbk data before displaying it.
-
BI 11G : logging in into reporting services takes minutes before landing
All,
logging in into em/console works relatively fine....but when I want to log in into analytics...it takes minutes before I'm logged in.
I have the same problem when I want to log in into Administrator or Catalog manager (online)
Installation is on Linux (32bit) - client tools on windows.
At this moment I have no clue what can cause this problem. Anyone already noticed the same issue or has some good tips?
Txs!!
A.
Edited by: ADB on 19-okt-2010 5:34Hej Nico,
it was a pretty stupid one...
I migrated my rpd...and didn't change the connection pool settings correctly to point to my new db.
That was already a problem of course ;-)
And because I had some initialization blocks defined in the rpd, it took a while before they turned an error....
and that was the reason why it took such a long time before I could log in into the reporting environment or a client tool.
Once I had disabled the init blocks, it was no problem. And after I changed the connection pool correctly everything was solved.
Hope things are more clear now.
Txs,
A -
What should be take action against following sql tuning report.
Hi
what should be take action against following sql tuning report.
SQL ID : fn3mt5dvm7fba
SQL Text : SELECT * FROM (select
to_number(ow.waybl_no) waybl_no,ow.id wb_id,
To_Number(ogp.gp_no) gp_no,
To_Number(ots.trip_sht_no) trip_sht_no,
otr.nm,
ots.gty_br_mast_id,
DECODE(otr.sign_recd,'1','YES','NO') Sign_Recd,
DECODE(otr.stamped,'1','YES','NO') Stamped,
otr.dlvry_dt dlvry_dt,
otr.tel_no,
--otr.remarks,
Decode(otr.comments, NULL,'','Yes') remarks,
otr.id ID,ops_safex_utl.get_br_nm(to_number(ow.bkg_br_mast_id))
book_br,
ow.pick_dt book_date
from
ops_ts_reconsile otr,
ops_pultd_wb_dtls opuwd,
ops_trip_sht ots,
ops_waybl ow,
ops_ultd_wb_dtls ouwd,
ops_gate_pass ogp
where
otr.trip_sht_id=ots.id and
otr.pultd_wb_dtls_id=opuwd.id and
opuwd.ultd_wb_dtls_id=ouwd.id and
ouwd.gate_pass_id=ogp.id and
opuwd.waybl_id=ow.id and
otr.status_lid=157 and
ots.gty_br_mast_id = (:br_Id) and
(otr.dlvry_dt = :searchDate OR :searchDate IS NULL) and
otr.note_prpd = 'N' and otr.pod_recd = '1' and
not exists (select TS_RECONSILE_ID from OPS_POD_FRWD_NOTE_DTLS
where TS_RECONSILE_ID = otr.id)
union
select
to_number(ow.waybl_no) waybl_no, ow.id wb_id,
To_Number(ogp.gp_no) gp_no,
null trip_sht_no,
ogr.nm,
ogp.dlvry_br_mast_id,
DECODE(ogr.sign_recd,'Y','YES','NO') Sign_Recd,
DECODE(ogr.stamped,'Y','YES','NO') Stamped,
ogr.dlvry_dt dlvry_dt,
ogr.tel_no,
--ogr.remarks,
Decode(ogr.comments, NULL,'', 'Yes') remarks,
ogr.id ID,ops_safex_utl.get_br_nm(to_number(ow.bkg_br_mast_id))
book_br,
ow.pick_dt book_date
from
ops_gp_reconcile ogr,
ops_gate_pass ogp,
ops_waybl ow
where
ogr.gp_id=ogp.id and
ogp.waybl_id=ow.id and
ogp.dlvry_br_mast_id = (:br_Id) and
(ogr.dlvry_dt = :searchDate) and
ogr.note_prpd = 'N' and ogr.pod_recd = 'Y' and
not exists (select GP_RECONSILE_ID from OPS_POD_FRWD_NOTE_DTLS
where GP_RECONSILE_ID = ogr.id)) QRSLT ORDER BY trip_sht_no desc
Bind Variables :
1 - (VARCHAR2(32)):37069
2 - (DATE):07/11/2011 00:00:00
3 - (DATE):07/11/2011 00:00:00
4 - (VARCHAR2(32)):37069
5 - (DATE):07/11/2011 00:00:00
FINDINGS SECTION (3 findings)
1- SQL Profile Finding (see explain plans section below)
2 potentially better execution plans were found for this statement. Choose
one of the following SQL profiles to implement.
Recommendation (estimated benefit<=10%)
- Consider accepting the recommended SQL profile.
execute dbms_sqltune.accept_sql_profile(task_name => 'TASK_58643',
task_owner => 'SYS', replace => TRUE);
Recommendation (estimated benefit: 99.15%)
- Consider accepting the recommended SQL profile to use parallel execution
for this statement.
execute dbms_sqltune.accept_sql_profile(task_name => 'TASK_58643',
task_owner => 'SYS', replace => TRUE, profile_type =>DBMS_SQLTUNE.PX_PROFILE);
Executing this query parallel with DOP 128 will improve its response time
99.11% over the SQL profile plan. However, there is some cost in enabling
parallel execution. It will increase the statement's resource consumption by
an estimated 14.56% which may result in a reduction of system throughput.
Also, because these resources are consumed over a much smaller duration, the
response time of concurrent statements might be negatively impacted if
sufficient hardware capacity is not available.
The following data shows some sampled statistics for this SQL from the past
week and projected weekly values when parallel execution is enabled.
Past week sampled statistics for this SQL
Number of executions 17494
Percent of total activity 7.2
Percent of samples with #Active Sessions > 2*CPU .63
Weekly DB time (in sec) 614696.04
Projected statistics with Parallel Execution
Weekly DB time (in sec) 704166.9
2- Restructure SQL finding (see plan 1 in explain plans section)
An expensive "UNION" operation was found at line ID 4 of the execution plan.
Recommendation
- Consider using "UNION ALL" instead of "UNION", if duplicates are allowed
or uniqueness is guaranteed.
3- Alternative Plan Finding
Some alternative execution plans for this statement were found by searching
the system's real-time and historical performance data.
The following table lists these plans ranked by their average elapsed time.
See section "ALTERNATIVE PLANS SECTION" for detailed information on each
plan.
id plan hash last seen elapsed (s) origin note
1 209247904 2011-07-12/10:09:08 7.564 Cursor Cache
2 4029269565 2011-07-12/10:20:21 15.374 Cursor Cache original plan
3 4128886984 2011-07-08/11:30:25 42.426 AWR
4 3695555639 2011-07-12/08:30:30 101.459 AWR
Recommendation
- Consider creating a SQL plan baseline for the plan with the best average
elapsed time.
execute dbms_sqltune.create_sql_plan_baseline(task_name => 'TASK_58643',
owner_name => 'SYS', plan_hash_value => 209247904);
ADDITIONAL INFORMATION SECTION
- The optimizer could not merge the view at line ID 3 of the execution plan.
The optimizer cannot merge a view that contains a set operator.
- SQL Profile "SYS_SQLPROF_01306b26f6aa0000" exists for this statement and
was ignored during the tuning process.afzal wrote:
Hi
what should be take action against following sql tuning report.
<snip>Perhaps no action at all.
You can ALWAYS produce a report that will show "top 5" issues. The question is NOT "do I have an issue reported by a tuning report". Yes you do. Everyone does. Always. Even if you slowest batch job runs in 1.3 seconds and your slowest OLTP transaction completes in 0.0001 second.
The question is "do I have a problem that is serious enough to spend time solving?"
If your average OLTP transaction completes in 3 seconds, how much effort is justified to get a 50% improvement?
How much effort is justified to get that same 50% improvement on transactions that complete in 1.5 seconds? 0.2 seconds?
Beware of Compulsive Tuning Disorder. -
For example in the notification center it says you can set an app up to trigger an alert that requires an action before proceeding and I'll get them if the screen is locked but if I'm using the phone then the only way I will know about a text msg etc is if I happen to see the badge icon with the red numbers. Any help would be much appreciated. And yes everything is set up to trigger those in the notification center. Thx!
Ok, thanks for taking my questions. I'm sorry I wasted the USD 700. As I said earlier, I am very frustrated. I appreciate the courtesy of replying in Portuguese
-
Take action on sucessful execution of a job
Hi,
I want to create a scheduled job, during each execution of this job, I wanted to take action on "successful completion", how do I do that?
ThanksI meant is there a way to configure the job as multistep or something where if the first step completes, I execute the second step.
For example, I could create the job and use "errorAction" to take action when the job errors out, is there something similar with successful completion? -
Stupid ios 6 ...How apple will take action on this. I want to trow my iphone now
Go ahead, but be careful it doesn't hit any innocent people.
-
Task reminders hijack the bberry, must take action on each before doing anything else
I often want to be able to bypass all my reminders that have popped up to get to the application in the background, such as the phone. They block everything and I have to individually snooze each which can take awhile - grrrr! Also the max snooze option is 30 mins- it should up be up to 1 day. My Palm Treo was much better about this....I don't want to have to not use reminders. Does anyone know of a patch, workaround or 3rd party app to get around this problem?
Hi,
>>A CHAR datatype and VARCHAR2 datatype are stored identically (eg: the word 'WORD' stored in a CHAR(4) and a varchar2(4) consume exactly the same amount of space on disk, both have leading byte counts).
Ok, but on the other hands:
SGMS@ORACLE10> create table x (name char(10), name2 varchar2(10));
Table created.
SGMS@ORACLE10> insert into x values ('hello','hello');
1 row created.
SGMS@ORACLE10> commit;
Commit complete.
SGMS@ORACLE10> select vsize(name),vsize(name2) from x;
VSIZE(NAME) VSIZE(NAME2)
10 5
SGMS@ORACLE10> select dump(name),dump(name2) from x;
DUMP(NAME) DUMP(NAME2)
Typ=96 Len=10: 104,101,108,108,111,32,32,32,32,32 Typ=1 Len=5: 104,101,108,108,111Cheers -
Adding Hyperlinks in Report shuould take action in PDF Output
Hi All,
I had a requirement with reports
Explanation of the requirement.
I had a report aaa.rdf which gives a (one)employee monthly details.
which need to be output in PDF.
now the requuirement is
I had added labels "next-month" and "previous-month" labels at either side of report title.
I need the code to kept in these labels such that when this report is executed and taken into PDF file, when user
user clicks on the "next-month" or "previous-month" in that PDF file, the action to take is it should re-ran the same report(aaa.rdf) and should display the output in PDF in the same window but now the output should show the
coressponding next-month or previous-month results respectively of that employee.
please let me know if this make sense.
please guide for the above requirement.
this is very very urgent your help will be appreciated.
Thanks in advance
RRMHi,
it is not too late ....
It's possible to add such Hyperlinks to the pdf-Output of a report.
With use of the built-in rw.set_hyperlink('hyperlink') in a format trigge you can realize that. "hyperlink" is for example then something like:
'/reports/rwservlet?destype=cache&desformat=pdf&report=drilldetail.jsp&userid=scott/tiger@josi&p_deptno='||:deptno
In your case it's a call to the same report you run before and you had to set your month-parameter in the call depending your current month (next or previous).
With srw.set_hyperlink_attrs('string') it's possible to add additional attributes like for example
srw.set_hyperlink_attrs('target=_new')
which opens a new browser window.
This works for HTML & PDF.
Regards
Rainer
Maybe you are looking for
-
Dvi to s- video (audio issue
I have a macbook pro and purchased a DVI to S-video cable to watch a slideshow through iphoto. I am able to see the slideshow; however, I cannot hear any audio through the TV? How do I correct this issue? joe
-
BI 7.0 parallel processing of queries in a web application
Hi, I'm currently having problems with a web application / web template with 10 data providers (different queries). When executing the web application the 10 queries are executed sequentially. Since each query takes about 30 sec., the complete execut
-
Getting current terminal background color
is there any way to retrieve the current background color in the active terminal (xterm/konsole/whatever)? preferably in c. tnx.
-
Windows Message Queue 64-Bit Support
Just wondering if the Windows Message Queue will ever be updated to support 64-bit Windows? It is some really neat low level tools on windows but only works fully in 32 bit Windows. I'm looking to detect when a window is resized, or has a mouse down
-
Hi all, I know there are a few of these already but I have just bought a PS4 and am looking for new people online to play with, Games I have so far Dragon Age Inquisition, Elder scrolls, battlefield hardline, evolve. Am really looking forward to gett