How to avoid duplicate on form OPS
HelloI have developed a search page in the OPS and after search, he questions a few lines in the region of the Table. a point is a textinputItem called "sequence".
In this field user write values such as (1, 2, 3, 4, 5... etc). My requirement is to stop the user enter a value of sequence again... Means that if he (1,2,3,3,3,4,5), then he must raise the error.
Let me know if you people could not understand my requirement...
I developed something like this:
Public Sub checkseq()
{
Sequence of string = "";
OAViewObject vo = (OAViewObject) findViewObject ("XXBCR12ToolkitVO1");
vo.executeQuery ();
System.out.println ("line are" + vo.getAllRowsInRange () .length);
Rank [r] = vo.getAllRowsInRange ();
int n = vo.getAllRowsInRange () .length;
for (int i = 0; i < n; i ++)
{
}
}
Kind regards
Parag
Hello
WHT mistake you get paste it here.
Nani :)
Tags: Oracle Applications
Similar Questions
-
When I copy the contents of a folder on a USB key, I sometimes gave options to maintain two copies or ignore that (and others like him) in the folder I'm in that copy. I keep the video files in a video folder on a USB key and I try to copy C/disc/videos as often as possible. But sometimes, I don't know where I stopped the last time that the copy and select the files already in the destination folder. Why didn't we the possibility to jump if a duplicate constantly? Is there a way to prevent duplicate files when you do this?
What type of USB key that you use? I use a 500 GB USB external hard drive and can't reproduce your problem, but mine is (well) permanently connected.
I always manage the items I copy on records, so when I add new files they copied to a folder on the external drive. If I do double job inadvertently with something the only place where it is likely to be found in the previously copied folder, and it's a simple matter to check.
Another point, when you copied elements on the external hard drive you by keeping the files on the drive or are you allow to delete? -Thanks - r.
-
How to avoid duplicates on a column with condition
Hi all
I need some advice here. At work, we have an Oracle APEX application that allow the user to add new records with the decision of the increment automatic number based on the year and the group name.
Said that if they add the first record, group name AA, for 2012, they get the decision number AA 1 2013 as their record casein displayed page of the report.
The second record of AA in 2013 will be AA 2 2013.
If we add about 20 records, it will be AA 20 2013.
The first record for 2014 will be AA 1 2014.
However, recently, we get a claim of the user on two files of the same name of group have the same number of the decision.
When I looked in the history table and find that the time gap between 2 record is about 0.1 seconds.
In addition, we have the correspondence table which allows the user admin update the sequence number start with the restraint that it must be greater than the maximum number of the current name of the current year.
This boot sequence number and the name of the group is stored together in a table.
And in some other case, the user can add a decision duplicate for related record number. (this is a new feature)
The current logic of the procedure to add the new record on the application are
_Get max record table with selected group name (decision_number) and the current year.
_INSERT in the folder table the new record came with the decision to number + 1
_ update sequence number of the number of the decision just added.
So instead of utitlising the process of editing the built-in automatic table of the APEX, I write a procedure that combine all three processes.
I have run some loop for continually perform this procedure, and it seems that it can generate autotically new decision unique number with time about 0.1 second difference.
However, when I increase the number of entry to 200 and let two users run 100 each.
If the time gap is about 0.01 second, double decision numbers are displayed.
What can I do to prevent duplicate?
I can't just apply a unique constraint here for three columns with condition because it can be duplicated in some special conditions. I don't know much about the use of lock and its impact.
This is the content of my procedure
create or replace
PROCEDURE add_new_case)
-ID just use the trigger
p_case_title IN varchar2,
p_year IN varchar2,
p_group_name IN VARCHAR2,
-decisionnumber here
p_case_file_number IN VARCHAR2,
-active
p_user in VARCHAR2
)
AS
NUMBER default_value;
caseCount NUMBER;
seqNumber NUMBER;
previousDecisionNumber NUMBER;
BEGIN
-execution immediate q '[alter session set nls_date_format = "dd/mm/yyyy"]';
SELECT count (*)
IN caseCount
OF CASE_RECORD
WHERE GROUP_ABBR = p_group_name
AND to_number (to_char (create_date, "yyyy")) = to_number (to_char (date_utils.get_current_date, "yyyy"));
SELECT max (decision_number)
IN previousDecisionNumber
OF CASE_RECORD
WHERE GROUP_ABBR = p_group_name
AND to_number (to_char (create_date, "yyyy")) = to_number (to_char (date_utils.get_current_date, "yyyy"));
IF p_group_name IS NULL
THEN seqNumber: = 0;
ON THE OTHER
SELECT Seq_number INTO seqNumber FROM GROUP_LOOKUP WHERE ABBREVIATION = p_group_name;
END IF;
IF caseCount > 0 THEN
default_value: largest = (seqNumber, previousdecisionnumber) + 1;
ON THE OTHER
default_value: = 1;
END IF;
INSERT INTO CASE_RECORD (case_title, decision_year, GROUP_ABBR, decision_number, case_file_number, active_yn, created_by, create_date)
VALUES (p_case_title, p_year, p_group_name, default_value, p_case_file_number, 'Y', p_user, sysdate);
-Need to update the sequence here also
UPDATE GROUP_LOOKUP
SET SEQ_NUMBER = default_value
WHERE the ABBREVIATION = p_group_name;
COMMIT;
EXCEPTION
WHILE OTHERS THEN
Logger.Error (p_message_text = > SQLERRM)
, p_message_code = > SQLCODE
, p_stack_trace = > dbms_utility.format_error_backtrace
);
LIFT;
END;
Many thanks in advance,
Ann
It's easier to solve for the case, while p_group_name is not null. In this case, you update a GROUP_LOOKUP line, so that you can select to update this line at the beginning, to prevent cases of two for the same group added at the same time. To do this, change the selection of GROUP_LOOKUP to:
SELECT Seq_number INTO seqNumber FROM GROUP_LOOKUP WHERE ABBREVIATION = p_group_name for an updated VERSION OF the SEQ_NUMBER;
and move this to be the first thing that did the procedure - before it has CASE_RECORD lines.
In the case when p_group_name is set to null, you have some object to be locked. I think the best you can do is to lock the entire table GROUP_LOOKUP:
the table lock in exclusive mode GROUP_LOOKUP wait 100;
The '100 expectation' means that he will wait until 100 seconds before giving up and trigger an error. in practice, that is expected to only wait a moment.
Exclusive mode allows others to read, but not to update the table.
UPDATES and the LOCK of the TABLE will be updates of other sessions wait for this transaction to validate. Queries from other sessions are not affected.
The locks are released when you commit or roll back.
-
How to avoid using the 'form' tag
Hi all
Is it possible to call a form of my FORMS_PATH site from the browser without using the format of tag in the URL?
for example, this is my URL to call the form master.fmx--> http:// < machine >: < port >/forms/frmservlet? form = master.fmx, is what I want to call it without using the format of tag after the? in the URL.
Thank you.You can configure your formsweb.cfg file to include a section for your application.
Lets say you have a section called myApp in the formsweb.cfg file,
Then you can use http:/.../forms/frmservlet?config=myApp to call the applicationNote: If ssoMode = true in the related section of the formsweb.cfg for the MyApp, then the signature will only kick in the first
You can use a specific environment file (a copy of the default.env file to your app) and then specify this environment file in the section of the formsweb.cfg file MyApp.
[myApp]
envFile = myApp.env
ssoMode = true
form = MyAppFirstForm
pageTitle = MyApp
...Hope this is useful
-
How to eliminate duplicates in this table
SELECT sti.item,
MI: ITEM_DESC,
Count (STI. Item) item_count,.
d.dept_name,
d.group_no,
d.BUD_INT,
STI.standard_unit_retail,
ISC.unit_cost,
margin (sti.standard_unit_retail - isc.unit_cost).
Count (STI. Item) *(STI.standard_unit_retail-ISC.unit_cost) total_amount,.
County (sti.item) * isc.unit_cost Tot_Sales,.
STH. TRAN_DATETIME
Of
sa_tran_item sti,
item_supp_country Sai,
IM item_master,
STARTING d,
sth sa_tran_head
WHERE
STI. Item = isc.item
and sti.item = im.item
and d.DEPT = sti. DEPT
and sth. TRAN_SEQ_NO = sti. TRAN_SEQ_NO
and sth. TRAN_DATETIME between: p1 and: p2
Group of sti.item, im. ITEM_DESC, d.dept_name, d.group_no, d.BUD_INT, sti.standard_unit_retail, isc.unit_cost)
STI.standard_unit_retail - isc.unit_cost), STH. TRAN_DATETIME
When I combine this STH. TRAN_DATETIME I have some duplicate values in STH. TRAN_DATETIME repeated dates... How to avoid duplicates and at the same time the group the STH. TRAN_DATETIME...
Please help... urgentHello
If you mean that you must get rid of time, then you can put TRUNC around STH. TRAN_DATETIME:
SELECT sti.item, im.ITEM_DESC, COUNT(sti.item) item_count, d.dept_name, d.group_no, d.BUD_INT, sti.standard_unit_retail, isc.unit_cost, ( sti.standard_unit_retail-isc.unit_cost ) margin, count(sti.item)*(sti.standard_unit_retail-isc.unit_cost) total_amount, count(sti.item)*isc.unit_cost Tot_Sales, trunc(sth.tran_datetime) TRAN_DATETIME FROM sa_tran_item sti, item_supp_country isc, item_master im, deps d, sa_tran_head sth WHERE sti.item = isc.item and sti.item=im.item and d.DEPT=sti.DEPT and sth.TRAN_SEQ_NO = sti.TRAN_SEQ_NO and sth.TRAN_DATETIME between :p1 and :p2 group by sti.item, im.ITEM_DESC, d.dept_name, d.group_no, d.BUD_INT, sti.standard_unit_retail, isc.unit_cost, ( sti.standard_unit_retail-isc.unit_cost ), trunc(STH.TRAN_DATETIME)
Herald tiomela
http://htendam.WordPress.com -
How can I avoid duplicate emails in my Inbox O.E.?
duplicate emails
How can I avoid duplicate emails in my Inbox O.E.. I also receive emails in BT Yahoo Mail but only one every time. Thank you. Brian
Check out these links. I don't know if they are up to date, but it should get you going in the right direction. -
How to avoid make records duplicate when you save a series?
How to avoid make records duplicate when you save a series?
When you schedule a recording for a TV series, Media Center automatically records episodes based on the options you set here.
1. click the Start button, click all programsand then click Windows Media Center.
2. on the Media Center start screen, navigate to tasks, click settings, click TV, click recorderand then click default record.
3 scroll to the series as the default record section.
4. do one of the following:
· Under Show type, click the plus sign (+) or minus (-) button to record only new episodes, reruns or direct episodes.
· Under channels, click the plus (+) or minus (-) record button present in this series on any channel, or on a specific channel.
· According airtime, click the plus sign (+) or minus (-) button record shows in this series at any time, or only at a specific time.
· Under the keep up to, choose how many records in this series to keep before older episodes are automatically deleted.
5. click on Save.
-
I'm reproducing the shape to draw the Adobe similar to how it is done in artificial intelligence. It took me 20 minutes to duplicate a form three times in a mansion of flower pedal. There must be an easier way! Any ideas?
Thank you!
Rachelle
I couldn't even find my own post, but here it is: once you have a form that is created, you can easily turn/stamp it several times.
-
How to import images in the latest Lightroom who don't not take FOREVER and avoid duplicates?
I have the error and installed the "update" (highly questionable terms of ). Now, import takes FOREVER and I don't see the option to avoid duplicates?
Any help much appreciated.
I don't see the option to avoid duplication?
Adobe removed this feature (and many others) of the new import in CC 2015.2 / 6.2. They have apologized for that and for having introduced a large number of bugs, and in the next version they will be restoring the old import feature: Lightroom 6.2 version update and apologies, 6.2 Lightroom import update.
Meanwhile, while you could try to solve the problems with 2015.2.1 / 6.2.1 I recommend return you to 2015.1.1 / 6.1.1 the last stable release: http://www.lightroomqueen.com/how-do-i-roll-back-to-lightroom-2015-1-1-or-lightroom-6-1-1/. Many people who have done so, and the same Adobe now recommends if you have serious problems (and you'll very probably).
-
Hi, I spent long hours to solve this problem and wait for the answer from the expert.
I created a form with text boxes and one of them, I created just small image button to call the modal region of the tree.
Everything is OK, tree appear and disappear after the passage of the code value for the text element in the parent form.
But it refreshed and initialized all other areas of empty text as well... ^ ^;
I think that, because of the link in SQL tree. Someone help me?
Select case when connect_by_isleaf = 1 then 0
When level = 1 then 1
else -1
end the status,
level,
"CAT_NM" as the title,
NULL as an icon,
"CAT_CD" as a value.
NULL as ToolTip,
? p = & APP_ID.:112 :'|| : APP_SESSION |': P112_CAT_CD :'|| "' CAT_CD ' as link-> How to avoid refreshing the page parent and just switch the CAT_CD to the called page?
'category '.
Start with 'PARENT_CAT_CD' is null
connect prior "CAT_CD" = "PARENT_CAT_CD."
siblings arrested by "CAT_CD".
Hey "zoomok,"
Large - an example would have been my next request in any case I took a glance and changed your demo page to work as you want.
Things of note:
-SQL source tree: NO link value! A link value will generate apex code that will redirect you to the link. It will always be a redirect page, where a rerender page, and not what you want! Leaving NULL allows us to interact with the tree interactively via javascript
-Code in variables and functions global page - javascript - next:
function treeOnload(){ var l$Tree = $("#tree_modal div.tree"); // get the tree instance // handle the onselect event of the tree $.tree.reference(l$Tree).settings.callback.onselect = function(NODE, TREE_OBJ){ $s( "P112_CAT_CD", $(NODE).attr('id') ); // get the VALUE of the node and put it in item P112_CAT_CD closeModal(); // close the active modal region }; };
-In javascript - dependent section I added a call to this procedure:
treeOnload(); // initialize the tree with our settings
And that's all! I didn't know that you use "openModal". There are different ways to implement modal regions, so it is important to know how we do for ourselves what to do with it.
FYI - you now need to change your credentials. And mark the answer that has helped you or is correct, please.
-
Avoid duplicates when you import XMLs?
There are a few versions, we have fixed the problem to get the duplicate items when you import new projects in another. This was very helpful.
However, I have noticed that when you import XMLs, first does not apply the same level of... discretion
Is it possible to get XMLs for import without creating duplicate items? I found a workaround by first import the XML file into a new project and then import this project first to my main project... but when I'm in a great documentary film which takes 3-4 minutes to open each time, it's not ideal.
This is particularly important for people using the Pluraleyes because organize us images in first and then export to the EP, and then must bring with XMLs, and it would be great if we didn't have to do a bunch of media management manual to avoid duplicates in the project file.
Thank you!R
Hi Ryan,
Get your feature to the appropriate string request by filling out this form: http://adobe.ly/feature_request
Thank you
Kevin
-
How to avoid default line on a table
Dear members,
I created a simple JSF page using ADF.
On the page, I display departments and employee data.
Data display of the departments using the ADF form and data from employees are displayed using the Table of the ADF.
When I run the page a default line will appear above the Table of the ADF.
I ask you to please let me know, how to avoid this line by default displayed on the top of the table.
Thanks in advance.
Kind regards.DOH - I just realized. This is for filtering :)
Set the property 'filterVisible' to your table to "false".
-
How to avoid the SORT operation.
Hi gurus,
Oracle version is 11.1.0.7
I have a select query that has Row_number() over (Partition of col1, col2 order by col1, col2 desc nulls last) function to eliminate the DUP on these two passes.
Here it costs 4639 for sorting. Now, I added a two other columns in the query Select (has not changed the Row_number analytic function).
COST of sorting is now 555635.
This sort operation may use Temp table space. How to avoid the cost of SORTING.
Note: I use the function analytical only to eliminate duplicates on Col1 and Col2 only.
How to sort takes a large part of the COSTS by adding only two columns in the select list.
Any Suggestions...?
Thank you
MikeI would say:
1 don't worry unnecessarily about the cost of sorting - do you know if you have a problem.2. in general, eliminate from the beginning, sort late (i.e. After you have eliminated all you can)
3. If you are concerned by the outpouring sort on the disc then you could go to manual management of pga (assuming that you are currently using automatic) for this particular operation and override sort_area_size.
-
How to insert duplicate values in another table.
angle of attack!
I created two tables a and b
create table one
(key primary code number);
create table b
(code number,
DAT date);
insert into the table of a (code)
values (1234);
insert into the table of a (code)
values (1235);
commit;
Select * from a;
one
-----
1234
1235
-----
insert into the table of a (code)
values (1234);
commit;
ERROR on line 1:
ORA-00001: unique constraint (GMS. SYS_C0030897) violated
{color: #ff0000} * I need, when the user inserts duplicate data, must be inserted into another table b.* {color}
How can I do in forms 6i? Help, please. Thanks in advance.
Hello
What is the relationship with the forms?
Anyway, you can create a trigger on table A that intercepts the error in an exception block, and then create a new row in table B.
If the error comes from a forms based block, intercept the error in a trigger insert.François
-
How to avoid the SEPARATE in OBIEE SQL
Hello...
For the issue I posted previously...
Problem with the data type LONG in responses
I executed the query into a FROG, and I've identified the error because of what this error is coming... because of SEPARATE...
I took care to avoid this column in ORDER BY putting order on another column...
Now my question is how to avoid the DISTINCT clause in SQL generated by OBIEE...
If the first column of criteria is then it avoids the SEPARATE... but if I use measure... Group of will come... and group of should not be used here...
If it's done... my problem is solved...
Of course... I get duplicate rows...
However, I want the answer how avoid SEPARATE?
Waiting for the response from your...
Thanks and greetings
Kishore GuggillaKishore,
In the physical layer, open the properties of physical catalog and in the features tab find DISTINCT_SUPPORTED and remove the check box value.
who removed separate in each query generated for this database.
-Madan
Maybe you are looking for
-
Hello When cleaning my A350-04 s today, I removed my keyboard to find the motherboard marked "3 G / UWB / GPS» It was a surprise for me, as the laptop was not announced with 3G / UWB or GPS. It also has a SIM slot behind the battery, but I can't seem
-
Why my Satellite L300-227 switch mode 'sleep' in a way that bothers?
Hello!For some time, as soon as I type on the keyboard, it goes into mode "Eve". I'm forced to write slowly so that it cannot fall in mode "Eve".Please, I'm really uncomfortable, you can help me, please!It's always the same! I'm french, so sorry for
-
Printer HP C4795 unrecognized by the network
I have a printer HP C4795 wireless for 2 years. It worked fine until recently. It is no longer recognized on my network. I made no changes to the network in the last 6 months. Some other points -When I use the USB port to connect the printer direc
-
Oracle Version = 10g---------------------------------------Hi gurusI want to put control of database level 1 and do not know how to reach my goal and appreciate if someone help out me. Thank youExplanation of the problemI have 3 tables and inserting
-
Disappeared from the Import destination area
I don't know if this is new to the 2015.7 version or it's because that new OS Sierra missed something, or accidentally, I did something to cause it.On the left is what I now compared to what it should looks right.