Insert taking place more than once
Hi,
I have a jsp page where the user does some selection in the drop down lists. Here I want to insert userName, date into Oracle table.I am able to do that. But the problem is it is inserting twice as the page refreshes when the user does some selection. I want to insert only once.How can I fix this.
Zarina.
You can set a flag to say if its already inserted once, the flag is flipped and it will not update again. Or you can have database constraints where the 2nd insert would fail.
Hope this helps
Similar Messages
-
Heading level hierarchy errors when topics are in TOC more than once
I have discovered that the hierarchy in the Heading levels in
the Printed Documentation will differ from than in my online help
table of contents hierarchy, and that the problem is due to topics
that are intentionally in the TOC more than once.
For example, in chapter 5 of a particular help system the
hierarchy should be:
Heading 1 < Chapter 5 title from top-level book>
Heading 2 <title of second level book>
Heading 3 <title of topic that appears under second-level
book>*
What I actually get is:
Heading 1 < Chapter title from top-level book>
Heading 2 <title of second level book>
Heading 4 <title of topic that appears under second-level
book>*
* This same topic appeared in an earlier chapter. In that
chapter it was really at a Heading 4 level.
Due to company styles, etc. we use a numbering system at the
headings and in the TOC, so instead of
5
5.1
5.1.1
I erroneously get
5
5.1
5.1.1.1
This type of hierarchy issue appears multiple times in this
particular document (which I inherited by the way.)
Other than restructuring the document to not reuse topics in
different places in the TOC, is there a solution or a workaround
for this problem?
What I am doing so far, is generating the Print Documentation
one chapter at a time. As long as a topic is not reused with the
same chapter, my hierarchy of heading levels is maintained;
otherwise, it is not. Then I can put the chapters back together
after fixing the few places that still have heading level problems.
This however, will be quite cumbersome as this document is
translated into nine other languages.
I am using RoboHelp X5 for Word / Word 2003 for the source
and most of the translations; RoboHelp Asian Edition, Simplified
Chinese / Word 2003 for the Chinese translation. The heading level
hierarchy error occurs in both versions.>> AF: I've commented in sections...
Without Maintain Heading Levels, RH will apply heading levels
to the books and then the topic levels will get bumped down. So a
top level book will be Heading 1 and the Headings in the topic will
get bumped down to 2, 3 and 4 etc. If then you have another book
one level down so that it gets Heading 2 applied, the same topic
but under the level two book would then get 3, 4 and 5 applied.
That is not the original problem but hopefully we are agreed
that is how things work on that.
>> Yes - that is the expected behavior. When it didn't
happen as expected, that's what led me to the discovery of the
cause of the problem (topic reuse).
Your problem was that firstly Heading 3 got bumped to Heading
4 if the same topic was inserted into the TOC twice. I assume it
was OK in the first instance, or is it that when you add it twice
it goes wrong everywhere?
>> Your assumption is correct. First occurrence is
correct. Second, third, and fourth (yes - there is one topic that
is used 4 times! ) are not correct based on TOC hierarchy.
On the numbering, nothing surprises me. If you look at my
site you will see that for RH HTML, i gave up on getting it right.
I have had many queries on this and more than a few people have
indicated they will work on the problem and get it working. I'm
still waiting. There are many posts about outline numbering
problems. Has anyone got it working satisfactorily?
>> I don't really have numbering problems. The
numbering is following the RoboHelp-generated hierarchy and the
.dot template that I apply. It's just that the RH-generated
hierarchy and its heading levels don't correspond to the "real"
hierarchy because of the reuse issue.
I have seen various Word gurus maintain that numbering has
not worked entirely satisfactorily since Word 2! Also enough posts
to convince me this is a Word issue, not a RH issue.
If you want to create a new project and knock something up
that demonstrates this problem, by all means zip it up and send it.
I'll assume it will be a small project and zip to less than 5mb. If
more, contact me first.
>> Unless you have RoboHelp X3 Asian Edition,
Simplified Chinese, there is really no need. I plan to either avoid
the reuse issue in the source, or build the print doc in sections
which is easy enough in RoboHelp X5 for the non-Chinese languages.
It is in the older Asian edition where the problems are compounded
by the omitted reuse topics. If you do have RoboHelp X3 Asian
Edition, Simplified Chinese and want to experiment, I can send you
a cut-down version of the project. Don't feel obligated though;
unless you can read Chinese (I can't) it is very tedious to work
with. -
Archiving same data more than once due to overlapping variant values
Hi all,
i had accidently run 2 archiving jobs on the same data. For instance, job 1 was archiving for company code IN ( where the company code was from IN00 till ZZ00), which was the unwanted job. The second archive job archived data from IN99 till INZZ ( not the whole IN company code ).
These 2 jobs failed due to log fulll ( the data was too huge to be archived), however when i expand the jobs in the failed SARA session, the archive files has up to 100 MB size.
Below are some of the problems which will incur if we archive the same data more than once ( which i found from my online search )
- some archiving objects require that data only exists once in the archive therefore duplicate data can lead to erroneous results in the totals of archived data
- Archiving the data again will affect checksum. Checksum normally conducted before and after archiving process and its purpose is to validate whether the same file contents exist in the newly created archive files as compare the original data.
Could anyone advice me on how to overcome this multiple archiving on the same data issue. Apart from above stated impact, what are the other problems of multiple archiving on same data?
The failed archived sessions are currently in "Incomplete Archiving Session" and in 1 week time they will be deleted by archive delete jobs and will be moved to "Completed Archive Session". I highly appreciate if anyone could help
Source of finding:
http://help.sap.com/saphelp_nw73/helpdata/en/4d/8c7890910b154ee10000000a42189e/content.htm
http://help.sap.com/saphelp_nwpi71/helpdata/en/8d/3e4fc6462a11d189000000e8323d3a/frameset.htm
http://help.sap.com/saphelp_nw70/helpdata/en/8d/3e4fc6462a11d189000000e8323d3a/content.htmHello,
There are several issues here. In this case it seems pretty clear cut that you did not want the first variant to be executed. Hopefully none of the deletions have taken place for this archive run.
In cases where you have overlapping selection criteria and some of the deletions have been processed you can be in a very difficult situation. The best advise that I have would be to check your archive info structure CATALOG definition and make sure that both the archive file and the offset fields are set to DISPLAY fields and not KEY fields.
If your file and offset are key fields then when you use the archive info structure you would pull up more than one copy of the archived document.
Example: FI document 12345 was archived and deleted in archive run 1 and archive run 2.
The search for the archive info structure when the file and offset are keys fields would return two results.
12345 from run 1
12345 from run 2
If the CATALOG has the file and offset as display only fields you would only return one result
12345 from (whichever deletion file was processed first)
The second deletion process would have a warning message in the job log that not all records were inserted.
Please note that any direct access of the data archive file that bypasses the archive info structure and goes directly to the data archiving files would still show two documents and not a single document.
Regards,
Kirby Arnold -
Prevent user from resetting password more than once in a day
Hi,
1) my requirement is that, i want to prevent a user from resetting his password more than once in a day in OIM 11g.
i guess that has to be implemented using a pre-process event handler on reset password page.
is that achieveable? i dont have much idea on which places i can attach a pre-process event handler to.
2) I want to restrict a user from using sequential passwords. eg: abhi1, abhi2, abhi3
This is not present OOTB. just want to know. can we do it via custom code.? but this will expose that password (security breach- which i dont want)
is there any way i can achieve this via configurations in OIM or some event handler.?
Thanks in advance.1.yes, update "Minimum Password Age" to 1 for the password policy.
2. you can't achieve this by configuration. But, yes write an event handler and put your validation there. probably this is required on manual create or update so use pre-insert and pre-update eventhandler for validation.
--nayan -
Hi, I've been looking into this for awhile and believe the answer is 'no' but was just wondering if anyone here would know of a solution.
The company I work for has a formulier on which a number of Excel files are placed. This form is then sent to a five (often different) people who are then required to open the Excel files and if accord to place their digital signature. We would like to make sure that no one is able to sign the form more than once and also if possible to make sure they have opened the Excel files. It would be great if anyone had any tips...
All the very best,
Martin AngellI am not an Excel or Excel-to-PDF conversion expert, so I do not know how Excel forms are converted to PDF form fields. With this caveat here's what I do know.
In Acrobat It is possible to create a PDF form in which there are JavaScripts associated with fields (any fields, including signature fields). These JavaSripts can do a lot of things, including checking the signer's certificates on the already signed signature fields. Then you can make all unsigned signature fields read-only, in which case the user will not be able to actually sign them. After that you can overlay a button field on top of each unsigned signature field with exactly the same dimensions and associate a JavaAcript with this button field. This JavaScript would put up an UI asking the user for the signing certificate and its password, check this certificate's CN against the list of already signed signature fields and initiate the signing of the unsigned signature field behind this button if your condition is satisfied.
I never tried that myself but it could work. This looks complicated and it is but if you really want it you can try. -
Button/click box click more than once
Hi, I'm hoping you guys can point out what I'm doing wrong...
I have an image where the user can click on certain parts of
it to display a callout. However, I want them to be able to click
on the area of the image more than once if requried. I suppose you
can say it's a bit like an image map.
First I used click boxes to achieve this, then I tried using
transparent buttons. However for both of these methods you can only
click on each part once during playback. Clicking again does not
show the callout.
I thought about copying the contents to another slide and add
a 'Reset' button the user could click on. This would move to the
other slide, but this seems a bit on the 'clunky' side, so I
thought there must be a setting or something really obvious that I
have missed. I was unable to find the relevant informaiton in the
help file or elsewhere in the forum, so if it does exist I would
appreciate someone pointing me in the right direction.
How can I allow the user to click on parts of the image more
than once to show the callout?
Thanks for your help,
LizThanks for your reply Rick.
I started the activity using rollovers, but I wanted the user
to do something more definite than just hovering over each part of
the image. So essentially, I want the rollover functionality but
with the ability to click instead of just hovering the cursor over.
I thought this would be easy!
I've tried using both buttons and click boxes without any
success. I ventured a little into slidelets, but I want the callout
to appear in a very specific place and this did not appear to
satisfy my requirements. The 'click to stick' sounds intriguing so
I'll take a look into this, but I'm not convinced it's what I want.
Any more suggestions are most welcome.
Regards
Liz -
Use Topic in TOC more than once...
We have just purchased RoboHelp 6 for our Help System
generation as well as to begin developing online training courses.
I have a WebHelp File that contains 5 books - one book per
procedure. I have a topic that is applicable to two procedures.
Without having to make a copy of the topic, is it possible to set
up the TOC to use the topic in question more than once?
The problem arises when I am setting up the Browse Sequence.
I tried to set up the Browse Sequence using the Auto-create using
TOC...option, but the sequence appears to be in alphabetically
order. In fact, it is in no way, shape or form even close to the
TOC (as indicated in the Help - Topics in each browse sequence will
be in the same order as in the TOC)!!!
So, I tried to manually create the browse sequence. I used a
browse sequence to contain all topics, then I set up another browse
sequence to contain the duplicate topic. When I use the navigation
arrows to move through the toc, it will not advance to the second
browse sequnce.
Any ideas or suggestions would be greatly appreciated. Thanks
in advance.
LisaHi LNT1
The trick to all this is to never directly link from the TOC
to the desired topic. Let's assume the TOC should have a topic
appearing in two different places. In order to make this work, you
link from two different redirect pages.
Now if you generate WebHelp, I see where there could be an
issue, because the browse sequence can only link from one topic to
another. In other words, a topic can only have a single link to and
a single link from it. So in this case, the redirect trick would
fail. However, another trick comes to mind that may work. Instead
of a Redirect page, you could have two different pages that instead
of redirecting, contained an Inline Frame (IFRAME) that simply
displayed the contents of the desired page. Basically, the pages
containing the IFRAME would link properly and provide the desired
effect.
For more on IFRAMEs, download my Tips and Tricks file and
scan it for how to create IFRAMES.
Cheers... Rick -
How do I erase unwanted albums from iCloud.On my iPad the same album has been added more than once yet on my mac with iCloud there are no issues.
I assume you mean photo albums. How were these albums added in the first place? Where they created on your iPad? Do they have the same name?
-
Can any one help me i am having the problem with trigger . The trigger fires more than once. I want the trigger to be fired for every COMMIT and not for each row.
The pl/sql used for populating the table in given below
CREATE OR REPLACE TRIGGER REFRESH_MV_TRIGGER
AFTER INSERT OR UPDATE ON CONTACT_HISTORY
DECLARE
cnt NUMBER;
BEGIN
IF ( INSERTING ) THEN
dbms_output.put_line('INSERTING');
END IF;
IF ( UPDATING ) THEN
dbms_output.put_line('UPDATING');
END IF;
END;
DECLARE
BEGIN
FOR i IN 1..2 LOOP
INSERT INTO CONTACT_HISTORY(TARGET_ID,CAMPCODE,COMMSTAGE,CUSTOMER_KEY,solicit_dt)
VALUES(i,'CAMP4','COMM1',i,SYSDATE);
END LOOP;
COMMIT;
END;
sql> output when i run pl/sql block
INSERTING
INSERTINGI am not shure what you need exactly but maybe this might help:
CREATE TABLE dept (
deptno NUMBER(2) PRIMARY KEY,
dname VARCHAR2(14),
loc VARCHAR2(13)
CREATE TABLE dept_history (
deptno NUMBER(2),
dname VARCHAR2(14),
loc VARCHAR2(13)
CREATE MATERIALIZED VIEW dept_mv
BUILD IMMEDIATE
REFRESH ON COMMIT
AS SELECT * FROM dept
CREATE OR REPLACE TRIGGER bir_dept_mv
BEFORE INSERT ON dept_mv
FOR EACH ROW
BEGIN
INSERT INTO dept_history VALUES (:NEW.deptno, :NEW.dname, :NEW.loc);
END;
INSERT INTO DEPT (deptno, dname, loc) VALUES (1, 'D1', 'L1');
1 row created.
INSERT INTO DEPT (deptno, dname, loc) VALUES (2, 'D2', 'L2');
1 row created.
SELECT * FROM dept;
DEPTNO DNAME LOC
1 D1 L1
2 D2 L2
SELECT * FROM dept_history;
no rows selected
SELECT * FROM dept_mv;
no rows selected
COMMIT;
Commit complete.
SELECT * FROM dept_history;
DEPTNO DNAME LOC
1 D1 L1
2 D2 L2
SELECT * FROM dept_mv;
DEPTNO DNAME LOC
1 D1 L1
2 D2 L2Regards,
Zlatko Sirotic -
Displaying the records records which are coming more than once
hi
create table temp(comp_id int,branch_id int);
comp_id | branch_id
---------+-----------
1000 | 1
1000 | 1
1000 | 2
1000 | 2
1000 | 3
2000 | 1
2000 | 1
2000 | 2
2000 | 3
how can i write a query which displays the records records which are coming more than once on the basis of fields comp_id and branch_id. e.g. 1000 | 1 should be displayed because it is coming more than once. 1000 | 3 should not be, because it has a single entry.select comp_id, branch_id, count(*)
from temp
group by comp_id, branch_id
having count(*)>1
Please note this forum is not a SQL class and it is not the place to have your homework done.
Sybrand Bakker
Senior Oracle DBA -
Running the VI more than once, won't populate the array correctly!
I have found something pretty weird while I was trying to do the following:
I have an Array to wich I want to append a new set of data from two sources. To do
this I found two different ways:
1. I can take the array and append every element (from the sources of new data) to
the array.
2. Or, I can create a new array, and append it to the previous one.
Every of those solutions is ilustrated in the enclosed VIs. But the second one
doesn't work correctly. If we run it just once, it will display the correct data,
but if we run it more than once, it will show the cells of the appended data
empty!!!
How come this happens? It seems I'm missing something very basic and i
mportant.
Thank you for your time and help.
Regards,
JAVIER
Attachments:
1_This_is_the_working_solution.vi 20 KB
2_Why_does_this_doesnt_work.vi 24 KBHi,
actually you don't need to add elements continiously to each other or to the array.
The basic solution is to form the appropriate array and insert it into your array.
I have made the example.
Good luck.
Olrg Chutko.
Attachments:
Solution3.vi 20 KB -
'PortfolioBacklogs' cannot appear more than once if content model type is "all"
I'm trying to add another level above feature and have followed these instructions https://msdn.microsoft.com/en-us/library/dn217880.aspx
The project is setup as scrum not agile, maybe that is why???, but I get the following error:
'PortfolioBacklogs' cannot appear more than once if content model type is "all"
and haven't been able to find where to change the content model type.Hi Dckennedy1,
Thanks for your post.
What’s the version of your TFS? TFS 2013 Update 4? Your current team project created using default Scrum 2013.4 process template? After which step you received this error? You can share your error screenshot(s) here.
I created a new Scrum 2013.4 template team project in my TFS 2013 Update 4 Server, and followed the steps in that document to add Initiatives work item type in my TFS Web Access, the Initiatives work item type be added into portfolios successfully, you can
refer to the below screenshot:
The only difference with steps in that document is I edited the PortfolioBacklogs section as below in my ProcessConfiguration.xml file.
<PortfolioBacklog category="MyCompany.InitiativeCategory" pluralName="Initiatives" singularName="Initiative">
<States>
<State value="New" type="Proposed" />
<State value="In Progress" type="InProgress" />
<State value="Removed" type="InProgress" />
<State value="Done" type="Complete" />
</States>
<Columns>
<Column refname="System.WorkItemType" width="100" />
<Column refname="System.Title" width="400" />
<Column refname="System.State" width="100" />
<Column refname="Microsoft.VSTS.Common.BusinessValue" width="50" />
<Column refname="Microsoft.VSTS.Scheduling.TargetDate" width="100" />
<Column refname="System.Tags" width="200" />
</Columns>
<AddPanel>
<Fields>
<Field refname="System.Title" />
</Fields>
</AddPanel>
</PortfolioBacklog>
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. -
Since I updated to iCloud, (which may or may not be related) Mail on my MacBookPro 10.6.8 has been unable to connect to MobileMe more than once or twice per day. Mail on my iPhone 4 and my old iMac has no problems. When there is no service a yellow warning triangle appears adjacent to the Inbox and Connection Doctor reports,"Trying to log into this MobileMe IMAP account failed. Verify that username and password are correct." Since it does fetch Mail from time to time they cannot be wrong.... can they? Should I update to 10.7 and if so what does that entail?
You have been using MobileMe's email settings, which sometimes continue to work for a time after migration but then get turned off. iCloud's mail server settings are different. Strictly speaking Lion 10.7.2 is required for iCloud, and on that Mail is set up automatically.
Snow Leopard cannot access most of iCloud's facilities, however you can set Mail up manually to access your email. The method is described here:
http://www.wilmut.webspace.virginmedia.com/notes/icloudmail.html
The situation with iCloud and Snow Leopard is described in detail here:
http://www.wilmut.webspace.virginmedia.com/notes/icloudSL.html -
How do I repeat the same row more than once in report 10g
How do I repeat the same row more than once in report 10g
So I can print the bar code more than once
in report;
Edited by: user11106555 on May 9, 2009 5:50 AMGREAT THAN X MAN
It is already working, but with the first ROW
select ename from emp
CONNECT BY ROWNUM<=5
ENAME
SMITH
SMITH
SMITH
SMITH
SMITH
ALLEN
WARD
JONES
MARTIN
BLAKE
CLARK
SCOTT
KING
TURNER
ADAMS
JAMES
FORD
MILLER
BUT I want this result
Item1
Item2
Item3
to
Item1
Item1
Item1
Item2
Item2
Item2
Item3
Item3
Item3 -
How can i place more than one photo on the print sheet
im trying to place more than on photo on a sheet of photo paper, how do I do this
There are basically two ways of using multiple iPods on a computer and these involve:
a) Sharing a single iTunes library and user account.
b) Creating multiple user accounts and having separate libraries.
Sharing a Library
If you want to share the one library, you can set either or all of the iPods so that they only get updated with only certain playlists (you can update from more than one if you wish):
Loading songs onto iPod automatically - Windows
Choosing the update option "Sync Music - Selected playlists" allows you to create a playlist specifically for the iPod and drag the tracks you want into it. If you tire of the list and want to change it, you just add or remove the songs you don't want. The ones you take out out remain in the library to be used some other time if you choose. You can read more about playlists at these links:
iTunes: Creating playlists of your favorite songs
How to create a Smart Playlist with iTunes
However since you seem to have a problem with that method you can choose to update any or all of the iPods manually and just drag whatever content you want to them: Managing content manually on iPod
Separate User Accounts
Another option is to create a separate User account for each person on your PC or Mac. Different accounts by definition would give you completely separate libraries. Each account has it's own iTunes folder, Library and iTunes Music folder and you load it with CDs etc just as you did with your original one. The iPod can be set to update however the owner chooses, sync all, manual or sync specific playlists
If you are unfamiliar with setting up Windows user accounts you can read more here: Using Windows XP User Accounts
Maybe you are looking for
-
How do I manage two apple ids and iCloud for my teen's iPad?
Before my son turned 13, he used my Apple ID to set up his purchases for his first iPad. Now he has his own apple ID. He has his own iPhone and a different iPad for school. The school wants him to use iCloud to back up everything. I just set up i
-
How many songs can you put in an Ipod touch 64GB if you only use it for music?
I've heard the Ipod classic 160GB is discontinued. Could someone tell me how many songs you can put in the Ipod touch 64GB if you exclusively use it for music and don't put any photos, videos or anything?
-
How to instal camera raw in mac
Hi, I'd be obliged if someone could advise me how to instal camera raw 8 into an imac. many thanks
-
Bootcamp?? your experiences? Vista and Linux
I'm planning to get a macbook pro and I have a few questions before doing so. It's always nice to have the option of different OS's on the computer, so if I install Vista on there would the hardware (both of the graphics cards and if the backlit keyb
-
Itunes wont launch until log out/log in
Can anyone help with this error log, I have to log out and back in before itunes will work again after this crash.