How to Determine the x Value of a Rectangle
I am creating 6 rectangles through a loop like this:
var target:Array = new Array();
for (var i:Number = 1; i < 7; i++){
target
= new Sprite();
target.graphics.lineStyle(0,0,1);
target
.graphics.beginFill(0, 0);
target.graphics.drawRect((i * 100) + 50, 30, 100, 60);
target
.graphics.endFill();
target.name = "target"+
addChild(target);
I want to use the x and y locations of these rectanles to
place a movie clip there but when I try to determine the x and y
value, they come back as 0. I can get the width and the height but
not x and y. I am viewing it with just a simple trace(target[1].x).
Any suggestions on how to get this information?
Thanks.
Dave
quote:
Originally posted by:
kglad
all your target's are at 0,0. the graphics is offset but not
the sprite.
you might find it easier to do the following:
var target:Array = new Array();
for (var i:Number = 1; i < 7; i++){
target[ i ] = new Sprite();
target[ i ].graphics.lineStyle(0,0,1);
target[ i ].graphics.beginFill(0, 0);
target[ i ].graphics.drawRect(0, 0, 100, 60);
target[ i ].x = (i * 100) + 50;
target[ i ].y = 30;
target[ i ].graphics.endFill();
target[ i ].name = "target"+i;
addChild(target[ i ]);
Updated your code a bit to make the answer complete hope you
don't mind
var target:Array = new Array();
for (var i:Number = 1; i < 7; i++){
target[ i ] = new Sprite();
target[ i ].graphics.lineStyle(0,0,1);
target[ i ].graphics.beginFill(0, 0);
target[ i ].graphics.drawRect(0, 0, 100, 60);
target[ i ].x = (i * 100) + 50;
target[ i ].y = 30;
target[ i ].graphics.endFill();
target[ i ].name = "target"+i;
addChild(target[ i ]);
trace(target[ i ].x);
trace(target[ i ].y)
}
Similar Messages
-
How to determine the "Last Value" in exception aggregation
Hi gurus,
I have a KeyFigure with an exception aggregation -Last value- by time.
I report on a multiprovider ("containing" a infocube and a realtime infocube with BPS-InputLayout). I can correct separate Items with this BPS-Layout. So, at the end I have 2 values for one item.
So, by these facts, my report shows the the last value for the specific KeyFigure, but I expected that both values (the value in the infocube and the correction via BPS)are sumed up.
As this is due to the exception aggregation not the case, I could "overwrite" the normal value in the infocube with the BPS.
But SAP determines the normal value in the Infocube as "Last Value", not the one in the correction cube, which is entered via BPS.
How does SAP determine the "last value" as I can´t see any date...
Thanks in advance!Thank you for your answer...
I got the soltion by myself.
I thought, Last Value means the last Value, depending on the time, but in my opinion the function last value should be called "Greatest Value".
All figures with the same value for the reference characteristc are aggregated anyway. -
How to determine the value of -D__SUNPRO_CC?
Could any body tell me how to determine the value of -D__SUNPRO_CC? Iam now using Sun Studio 9.
Thanks in advance.The C++ Users Guide describes all the predefined macros set by the compiler.
The __SUNPRO_CC macro is a 3-digit hex number. The first digit is the C++ compiler major version number, which is 5 for all releases from WorkShop 5 in 1998 through the current release, Sun Studio 10. The second digit is the minor version number, increasing by 1 for each release in the major release series. The 3rd digit is a place holder for the very rare (none since 1994) cases when we have a micro version number. It is zero in current releases.
The current compiler release is C++ 5.7, so __SUNPRO_CC is set to 0x570.
You can see the macro setting by running
CC -dryrun -c foo.cc
and look for the -D__SUNPRO_CC =0xNNN on the ccfe command line. -
HT201209 How do I determine the remaining value on an iBooks card?
How do I determine the remaining value on an iBooks card?
If the card has been redeemed then its remaining amount should be on your account, the card itself is now effectively zero. My account's balance shows at the top left of the store's page on my computer's iTunes, and by logging in to view my account via the Store > View Account menu option. On my devices it shows at the bottom of, for example, the Featured tab in the App Store app under my account id (or you can view your account via Settings > iTunes & App Stores and it should show on the screen that you are taken to)
-
How to determine the value of max-beans-in-cache
As we have CacheFullException problem, but I dont know what is the side effect
if I set an extremely large value for this parament. Is there any proper way
to determine the proper value?
"Jenny Wong" <[email protected]> wrote:
>
>As we have CacheFullException problem, but I dont know what is the side
>effect
>if I set an extremely large value for this parament. Is there any proper
>way
>to determine the proper value?
Hi Jenny,
The WebLogic Server allows you to configure the number of active beans (with an
identity) which are present in the EJB cache.
This cache is the in-memory space where beans exist.
When a bean is brought into the cache, ejbActivate() is called, when it is removed,
ejbPassivate() is called. It is basically
equivalent to virtual memory being kept in memory or on disk. Tuning it too high
will use up memory unnecessarily.
Activation and passivation of EJBs is analogous to virtual memory on a computer.
You want to minimize the number of times that
your beans are activated and passivated. The cache size can help minimize this
activity. To set determine if you cache size
should be bigger, take a number of execution snapshots. Look at these snapshots
of your execution and see if there is a lot of
passivation and activation going on. If so, increase the size of your cache and
see if performance improves. Otherwise, leave this
value alone.
regards,
Ashok.
-
How to determine the ROWNUM in a Master Detail Form
Hello,
I am working in a Master Detail Form with Orders and Order Items Information; and I created a process that allows the users to select a Product ID on a tabular form, and the next column is populated automatically with the Product Description.
To achieve that, I followed some instructions by Denes Kubicek (http://apex.oracle.com/pls/otn/f?p=31517:241), but my case is slightly different:
<ul>I am using a wizard-created tabular form, instead of a manual tabular form; and </ul>
<ul>Instead of using another page as a Popup to pass the parameter of the ROWNUM, I am using a plug-in called “Tabular Form Super LOV” which is a modified version of the SkillBuilders’ Super LOV that works on Tabular Forms. </ul>
The Product ID is returned in the correct row by the plug-in; but in the case of the Product Description, it is always returned into the first row; and my problem is that I don't know how to determine the row where the user clicked to call the plug-in.
I set up an example in apex.oracle.com in case someone would like to look at it:
Workspace: ediazjorge
Username: test
Password: test
App Name: Sample App
App Number: 1550
BTW, I am using Apex 4.1.1.00.23 and Oracle DB 10.3.2.
Thanks in advance,
ErickHello VC,
Thank you for your time and help.
Unfortunately, it is still not working properly:
1. When the Popup LOV opens, the first row of the tabular form is 0, the second row is 1, and so on. How can I assign the values starting with 1 and in the format *0001* ? (I am still a novice on Apex and new to JavaScript :-), sorry about that).
--2. Also, when I close the Popup LOV, the value of P1_ROWNUM is ‘undefined’ again so I'm not sure if the Product Name column will be populated.--
3. And finally, you are using the jQuery Selector uPopupLOVIcon, which is an attribute of the Cloudy Theme. In my real application (Apex 4.1.1.00.26), my element looks like: *<img src="/i/lov_16x16.gif" width="16" height="16" alt="Popup Lov" alt="List" style="vertical-align:middle;" align="middle" />*. What do you recommend me to use as a jQuery Selector?
Again, I really appreciate your help and time. I think you solved the most difficult part.
Thank you so much,
Erick
Update: I just found out that the problem with my comment 2 is because I didn’t delete the previous dynamic action that set the value to P1_ROWNUM.
Edited by: ediazjorge on Sep 18, 2012 11:20 AM -
How to determine the mount point for directory /tmp ?
Folks,
Hello. I am installing Oracle 11gR2 RAC using 2 Virtual Machines (rac1 and rac2 whose OS are Oracle Linux 5.6) in VMPlayer and according to the tutorial
http://appsdbaworkshop.blogspot.com/2011/10/11gr2-rac-on-linux-56-using-vmware.html
I am installing Grid infrastructure. I am on step 7 of 10 (verify Grid installation enviroment) and get this error:
"Free Space: Rac2: /tmp"
Cause: Could not determine mount point for location specified.
Action: Ensure location specified is available.
Expected value: n/a
Actual value: n/a
I have checked the free space using the command:
[root@Rac2 /]# df -k /tmp
Output:
Filesystem 1k-blocks used Available Use% Mounted on
/dev/sda1 30470144 7826952 21070432 28% /
As you see above, the free space is enough, but could not determine mount point for /tmp.
Do any folk understand how to determine the mount point for directory /tmp ?
Thanks.I have just checked "/home/oracle/.bash_profile". But in my computer, there is no "oracle" under /home directory.Is this your first time Linux and Oracle installation? I had a brief look at your referenced link. The reason why you do not find a "oracle" user is because the instructions use "ora11g" instead, which, btw, is not standard. The directories of your installation and your installation source can be somewhat different from known standards and you will have to adjust it to your system.
My best guess is that you have either missed something in the instructions or you need to ask the author of the blog what is wrong. The chance to find someone here who has experience with these custom instructions is probably unlikely.
I suggest you try to locate the cluster verification tool, which should be in the bin directory of your grid installation. Alternatively you might want to check the RAC, ASM & Clusterware Installation forum: RAC, ASM & Clusterware Installation -
How to determine the size of the JVM process?
Hi,
How to determine the total process size of the JVM process (that includes Heap, Non Heap and Native memory)?
Is there any command to obtain this value on Solaris (for Sun JVM)?
I refer the process size to http://middlewaremagic.com/weblogic/wp-content/uploads/2010/11/Java_Heap_Diagram_12.jpg) here.
Many thanks for your help in advance!Hi,
Make sure that Total Heap + Native memory will be consider as total Memory.
That means in 32 bit you will have only at most 4 GB for process + additional 2 GB for OS.
So let assume if you have 4GM RAM then out of the 4GB you can allocate 2GB as Heap and 512m as Perm in case of Hot spot and remaining will be consider as Native memory.
But in case of 64 bit will change you will have good amount of the memory so you can use plenty of Heap and Perm size.
Still if you have query let me know.
Regards,
Kal -
How to determine the second decimal of currency is equal to 0.
Hi guys,
My problem is how to determine the second decimal of currency is equal to 0.
i.e: 130.23 the second decimal is 3.
Thx in advance.
Points will be rewarded.Hi Vincent,
if you want to check the internal currency value, you can not know from the field contents what is the second decimal. Because ABAP currency fields (CURR) are connected to currency key CUKY. For USD or EUR you have two decimals, japanese yen have no decimals where as some arabian pound have three decimals. The default are 2 decimals; all excetions can be found in table TCURX.
If you WRITE the value it is converted correctly according to the connected currency.
Just multiply the value with 10 to the power of decimals, e.g. USD value * ( 10 ** 2 ). Then do a MOD: second_decimal_of_currency = ( value * ( 10 ** decimals ) mod 10.
If result is zero, then the second decimal of currency is equal to 0.
Regards,
Clemens -
How can determine the duration of an audio file
Hi,
i'm making speech recognition project using java. i can capture sound by michrophone and playback it. the type of the sound is .wav.
my question is how to determine the recording duration (for example: determine the duration for 0.25 second) because i must recorded syllable,the assumtion is needed less than 0.5 second to say a word. and then.. can this wav file be changed into... binary or integer ?
thanks for your helpFYI I'm newbie in Java,
Yes, I want to limit the audio file lengths to a certain value. What should I do?
I have read wav file using an AudioInputStream, for audio format I'm using sampleRate = 8000.0F and sampleSizeInBits = 8. My friend said if I used 8 bit for sampleSizeInBit (resolution in amplitude) the binary file should be -128 till 127 in range according to the bit. I try this code and the result is binary file which is zero, positive, and negative.
the code
try{
audioInputStream.read(audioBytes);
for (int i=0; i<audioBytes.length;i++){
System.out.println(audioBytes);
catch(IOException ioe){
System.out.println("Error"+ioe);
I'm not sure that the code is right, but it works. Should I change the audioBytes into integer before? I try this code but it doesn't work.
int a = new int[audioBytes.length];
for (int i=0;i<audioBytes.length;i++){
a[i] = new Byte(audioBytes[i]).intValue();
this binary file has been printed in console (Im using texpad). So, how I can write that to file.txt? I'm using FileoutputStream but it doesn't work correctly. Here is the code
FileOutputStream fos = new FileOutputStream(strFilePath);
{audioInputStream.read(audioBytes);
fos.write(audioBytes);
catch (IOException ioe){
System.out.println("Error"+ioe);
When I open file .txt is read as character like this üüüüüüüüüüüüûüüüûüûûû ||||||| ||||||| ||||||||||||||||||||||||||||| ےےےےےےےےےےےے (like using alt plus number)
Edited by: anasfr on Mar 19, 2009 9:02 AM -
How to config the Default Values in IT 2006
Dear Gurus,
My Client requirement is if i create Absence quota they want default quotas values
eg PL= 40
CL=7
SL=5
Then how to config the Default Values in IT 2006
Other wise where i have to assign in Quotas limit
Please advised
Regards
MHPOConfigure ur Absence Quotas with Selection group and assign the value of that selection group in Quomo
and run RPTQTA00
Time Data Personnel Time Management IMG Managing Time Accounts Using Attendance/AbsenceRecording and Administration Define Absence Quota Types. Time Quota Types Quotas
PersonnelIMG Managing Time Time Data Recording and Administration Time Management Calculating Absence Entitlements Accounts Using Attendance/Absence Quotas Permit Quota Generation Without TimeAutomatic Accrual of Absence Quotas Evaluation.
Time Time Evaluation Personnel Time Management IMG Set Personnel Subarea Groupings for Time Recording.Evaluation Settings
PersIMG Time Data Recording and Administration onnel Time Management Calculating AbsenceManaging Time Accounts Using Attendance/Absence Quotas Set Base Entitlements Rules for Generating Absence Quotas Entitlements Base Entitlement for Absence Quota Generation.
Personnel TimeIMG Managing Time Accounts Time Data Recording and Administration Management Rules for Calculating Absence Entitlements Using Attendance/Absence Quotas Determine Validity and Deduction Periods.Generating Absence Quotas
IMG Managing Time Data Recording and Administration Personnel Time Management Calculating Absence EntitlementsTime Accounts Using Attendance/Absence Quotas Define Set Base Entitlements Rules for Generating Absence Quotas Generation Rules for Quota Selection.
Define Public Holiday Work Schedules Personnel Time Management IMG Classes
Personnel Work Schedules Personnel Time Management IMG Group Personnel Subareas for the Work ScheduleSubarea Groupings
IMG Group Personnel Subarea Groupings Work Schedules Personnel Time Management Personnel Subareas for theDaily Work Schedule
Daily Work Schedules Work Schedules Personnel Time Management IMG Define Daily Work Schedules
Work Personnel Time Management IMG Define Period Work Schedules. Period Work Schedules Schedules
IMG Define Day Day Types Work Schedules Personnel Time Management Types.
Day Types Work Schedules Personnel Time Management IMG Define Day Types.
Day Work Schedules Personnel Time Management IMG Define Special Days.Types
Work Personnel Time Management IMG Define Employee Subgroup Work Schedule Rules and Work Schedules Schedules Groupings
Work Work Schedules Personnel Time Management IMG Define Groupings for the Public HolidaySchedule Rules and Work Schedules Calendar.
Work Work Schedules Personnel Time Management IMG Set Work Schedule Rules and WorkSchedule Rules and Work Schedules Schedules.
Work Work Schedules Personnel Time Management IMG Generate Work Schedules ManuallySchedule Rules and Work Schedules
IMG Set Planned Working Time Work Schedules Personnel Time Management Default Value for the Work Schedule.
Personnel Time Management IMG Set Default Value for Time Management Planned Working Time Work Schedules Status.
Time Data Recording and Personnel Time Management IMG Define Personnel Subareas for Substitution Substitutions Administration Types.
Time Data Recording and Personnel Time Management IMG Set Defaults for Substitution Types. Substitutions Administration
IMG Absences Time Data Recording and Administration Personnel Time Management Group Personnel Subareas for Attendances and Absence Catalog Absences.
Time Data Recording and Personnel Time Management IMG Define Absence Types. Absence Catalog Absences Administration
IMG Absences Time Data Recording and Administration Personnel Time Management Define Counting Classes for the Period Work Absence Counting Absence Catalog Schedule.
Time Data Recording and Personnel Time Management IMG Rules for Absence Counting Absence Catalog Absences Administration Group Employee Subgroups for Time Quotas.Absence Counting (New)
IMG Absences Time Data Recording and Administration Personnel Time Management Group Rules for Absence Counting (New) Absence Counting Absence Catalog Personnel Subareas for Time Quotas
Time Personnel Time Management IMG Absence Absence Catalog Absences Data Recording and Administration Define Rules for Rounding Counted Rules for Absence Counting (New) Counting Absences
Time Data Recording and Personnel Time Management IMG Rules for Absence Counting Absence Catalog Absences Administration Define Counting RulesAbsence Counting (New)
Personnel TimeIMG Absence Catalog Absences Time Data Recording and Administration Management Define Counting Rules Rules for Absence Counting (New) Absence Counting Deduction rules for Absence quotas
Time Personnel Time Management IMG Absence Absence Catalog Absences Data Recording and Administration Assign Counting Rules to Absence Types.Counting
Personnel TimeIMG Attendances/Actual Working Time Data Recording and Administration Management Define Attendance Types.Times
Time Personnel Time Management IMG Attendances/Actual Working Times Data Recording and Administration Assign Counting Rules for Attendance counting (New) Attendance counting Rules to Attendance Types.
Time Data Personnel Time Management IMG Managing Time Accounts Using Attendance/AbsenceRecording and Administration Define Absence Quota Types. Time Quota Types Quotas
PersonnelIMG Managing Time Time Data Recording and Administration Time Management Calculating Absence Entitlements Accounts Using Attendance/Absence Quotas Permit Quota Generation Without TimeAutomatic Accrual of Absence Quotas Evaluation.
Time Time Evaluation Personnel Time Management IMG Set Personnel Subarea Groupings for Time Recording.Evaluation Settings
Time Data Recording and Administration Personnel Time Management IMG Managing Calculating AbsenceTime Accounts Using Attendance/Absence Quotas Set Base Entitlements Rules for Generating Absence Quotas Entitlements Base Entitlement for Absence Quota Generation.
Personnel TimeIMG Managing Time Accounts Time Data Recording and Administration Management Rules for Calculating Absence Entitlements Using Attendance/Absence Quotas Determine Validity and Deduction Periods.Generating Absence Quotas
IMG Managing Time Data Recording and Administration Personnel Time Management Calculating Absence EntitlementsTime Accounts Using Attendance/Absence Quotas Define Set Base Entitlements Rules for Generating Absence Quotas Generation Rules for Quota Selection. -
Tablespace allocation type system how oracle determines the extent size
HI
It may be silly question but the I have to ask and get some knowdge
Suppose tablespace allocation_type is system then how oracle determins the inital extent and max extent size?Was this tablespace converted to locally managed from an existing tablespace? If so, the existing extents still exist after the conversion. Also depending on the Oracle version and maybe platform the pct_increase parameter is still honored after the conversion which can lead to odd sizes. The current value of this parameter may not be the value that was in effect when extents were allocated.
Also Oracle enhanced the logic to not leave odd sized extents unused so that if by rights the system should take a 64K extent but there is a 56K extent available (perhaps at the end of a file) it can be used to fill the extent request.
HTH -- Mark D Powell -- -
How to update the table value in the valuechange event?
I have an input field in the datatable with the valueChangeListener
<rich:dataTable id="cart" value="#{cart.cartList}" var="item">
<h:inputText value="#{item.cost}" id="qty" valueChangeListener="#{items.updateCost}" onchange="submit()">
<h:outputText value="#{item.errorMsg}"> </h:outputText>
in the backing bean
Item item = (Item) model.getRowData();
// do some update, if the cost too larger, change to max_cost
item.setCost(max_cost);
item.setErrorMsg("Error Msg");
After calling the valuechange method, the screen output doesn't update the cost.
How to update the table value in the valuechange event?As you're misusing the valueChangeListener to set another input field, you need to skip the update model values phase. Otherwise the value set in the valueChangeListener will be overridden by the submitted value. You can do this by calling the FacesContext#renderResponse() inside the valueChangeListener method. This will shift the current phase immediately to the render response phase, hereby skipping the update model values and invoke application phases.
-
i have one database table called "sms1" that table is updated every day or on daily basis it has the following fields in it:
SQL> desc sms1;
Name Null? Type
MOBILE NUMBER
RCSTCNATCNATCNATCNAWTHER VARCHAR2(39 CHAR)
SNO NUMBER
INDATE DATE
From this table the is one column "RCSTCNATCNATCNATCNAWTHER VARCHAR2(39 CHAR)" . I am splitting it into different columns like :
SQL> desc smssplit;
Name Null? Type
R VARCHAR2(2 CHAR)
C VARCHAR2(2 CHAR)
S VARCHAR2(1 CHAR)
TC VARCHAR2(3 CHAR)
NA VARCHAR2(3 CHAR)
TC2 VARCHAR2(3 CHAR)
NA2 VARCHAR2(3 CHAR)
TC3 VARCHAR2(3 CHAR)
NA3 VARCHAR2(3 CHAR)
TC4 VARCHAR2(3 CHAR)
NA4 VARCHAR2(3 CHAR)
WTHER VARCHAR2(10 CHAR)
SNO NUMBER
INSERTDATA VARCHAR2(25 CHAR)
Now I am written a procedure to insert the data from "Sms1" table to smssplit table...
CREATE OR REPLACE PROCEDURE SPLITSMS
AS
BEGIN
INSERT INTO scott.SMSSPLIT ( R,C,S,TC,NA,TC2,NA2,TC3,NA3,TC4,NA4,WTHER,SNO)
SELECT SUBSTR(RCSTCNATCNATCNATCNAWTHER,1,2) R,
SUBSTR(RCSTCNATCNATCNATCNAWTHER,3,2) C,
SUBSTR(RCSTCNATCNATCNATCNAWTHER,5,1) S,
SUBSTR(RCSTCNATCNATCNATCNAWTHER,6,3) TC,
SUBSTR(RCSTCNATCNATCNATCNAWTHER,9,3) NA,
SUBSTR(RCSTCNATCNATCNATCNAWTHER,12,3) TC2,
SUBSTR(RCSTCNATCNATCNATCNAWTHER,15,3) NA2,
SUBSTR(RCSTCNATCNATCNATCNAWTHER,18,3) TC3,
SUBSTR(RCSTCNATCNATCNATCNAWTHER,21,3) NA3,
SUBSTR(RCSTCNATCNATCNATCNAWTHER,24,3) TC4,
SUBSTR(RCSTCNATCNATCNATCNAWTHER,27,3) NA4,
SUBSTR(RCSTCNATCNATCNATCNAWTHER,30,10) WTHER, SNO
FROM scott.SMS1 where SNO=(select MAX (sno) from SMS1);
END;
Now in order to update the second table with data from first table on regular basis I have written a job scheduler and I am using oracle 9.0. version...
DECLARE
X NUMBER;
JobNumber NUMBER;
BEGIN
SYS.DBMS_JOB.SUBMIT
job => X
,what => 'scott.SPLITSMS;'
,next_date => SYSDATE+1/1440
,interval => 'SYSDATE+1/1440 '
,no_parse => FALSE
:JobNumber := to_char(X);
END;
Now this job scheduler is working properly and updating the data for every one minute but it is taking or updating the duplicate values also ..like example:
R C S TC NA TC2 NA2 TC3 NA3 TC4 NA4 WTHER SNO
INSERTDATA
33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
06-SEP-2012 03:49:16
33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
06-SEP-2012 03:49:16
33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
06-SEP-2012 03:50:17
R C S TC NA TC2 NA2 TC3 NA3 TC4 NA4 WTHER SNO
INSERTDATA
33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
06-SEP-2012 03:50:17
33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
06-SEP-2012 03:51:19
33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
06-SEP-2012 03:51:19
R C S TC NA TC2 NA2 TC3 NA3 TC4 NA4 WTHER SNO
INSERTDATA
33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
06-SEP-2012 03:52:20
33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
06-SEP-2012 03:52:20
33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
06-SEP-2012 03:53:22
R C S TC NA TC2 NA2 TC3 NA3 TC4 NA4 WTHER SNO
INSERTDATA
33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
06-SEP-2012 03:53:22
33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
06-SEP-2012 03:54:45
33 35 2 123 456 789 543 241 643 243 135 RRRRRR 55
06-SEP-2012 03:54:45
Now I do not want the duplicate values to be updated ...and want them to ignore them.....
please I need a help on this query........How to avoid the duplicate values............Look at the posts closely:might not be needed if formatted ;)
create or replace procedure splitsms as
begin
insert into scott.smssplit (r,c,s,tc,na,tc2,na2,tc3,na3,tc4,na4,wther,sno)
select substr(rcstcnatcnatcnatcnawther,1,2) r,
substr(rcstcnatcnatcnatcnawther,3,2) c,
substr(rcstcnatcnatcnatcnawther,5,1) s,
substr(rcstcnatcnatcnatcnawther,6,3) tc,
substr(rcstcnatcnatcnatcnawther,9,3) na,
substr(rcstcnatcnatcnatcnawther,12,3) tc2,
substr(rcstcnatcnatcnatcnawther,15,3) na2,
substr(rcstcnatcnatcnatcnawther,18,3) tc3,
substr(rcstcnatcnatcnatcnawther,21,3) na3,
substr(rcstcnatcnatcnatcnawther,24,3) tc4,
substr(rcstcnatcnatcnatcnawther,27,3) na4,
substr(rcstcnatcnatcnatcnawther,30,10) wther,
sno
from scott.sms1 a
where sno = (select max(sno)
from sms1
where sno != a.sno
); ---------------> added where clause with table alias.
end;Regards
Etbin -
Hi Team,
R12 Instance :
Oracle Installed Base Agent User Responsibility --> Item Instances -->
Item Instance: Item Instances > View : Item Instance : xxxxx> Contracts : Item Instance : xxxxx> Service Contract: xxxxx>
In the above page there are two table regions.
Notes.
-------------------------------------Table Region---------------------------
Attachments
-------------------------------------Table Region---------------------------
--the attachments are shown using the query from the fnd_lobs and fnd_docs etc...
I want to know what are the document types are displayed in this page ?
--We developed a custom program to attach the attachments to the services contracts and the above seeded OAF page displays those ..as needed.
But after recent changes..the Attachments--> table region is not showing the attachments.
I have verified the query..and could not find any clue in that..
but i need some help if you guys can provide..
SELECT *
FROM
*(SELECT d.DOCUMENT_ID,*
d.DATATYPE_ID,
d.DATATYPE_NAME,
d.DESCRIPTION,
DECODE(d.FILE_NAME, NULL,
*(SELECT message_text*
FROM fnd_new_messages
WHERE message_name = 'FND_UNDEFINED'
AND application_id = 0
AND language_code = userenv('LANG')
*), d.FILE_NAME)FileName,*
d.MEDIA_ID,
d.CATEGORY_ID,
d.DM_NODE,
d.DM_FOLDER_PATH,
d.DM_TYPE,
d.DM_DOCUMENT_ID,
d.DM_VERSION_NUMBER,
ad.ATTACHED_DOCUMENT_ID,
ad.ENTITY_NAME,
ad.PK1_VALUE,
ad.PK2_VALUE,
ad.PK3_VALUE,
ad.PK4_VALUE,
ad.PK5_VALUE,
d.usage_type,
d.security_type,
d.security_id,
ad.category_id attachment_catgeory_id,
ad.status,
d.storage_type,
d.image_type,
d.START_DATE_ACTIVE,
d.END_DATE_ACTIVE,
d.REQUEST_ID,
d.PROGRAM_APPLICATION_ID,
d.PROGRAM_ID,
d.category_description,
d.publish_flag,
DECODE(ad.category_id, NULL, d.category_id, ad.category_id) category_id_query,
d.URL,
d.TITLE
FROM FND_DOCUMENTS_VL d,
FND_ATTACHED_DOCUMENTS ad
WHERE d.DOCUMENT_ID = ad.DOCUMENT_ID
*) QRSLT*
WHERE ((entity_name ='OKC_K_HEADERS_V'-- :1
AND pk1_value IN ( 600144,599046) --:2
AND category_id_query IN (1, :3, :4, :5, :6, :7) )
AND datatype_id IN (6,2,1,5)
AND (SECURITY_TYPE =4
OR PUBLISH_FLAG ='Y')))
--='000180931' -- 'ADP118'
The above seeded query is the one which is used for table region to retrieve the data..
how to know the dynamic values for this : AND category_id_query IN (1, :3, :4, :5, :6, :7) )
--SridharHi Patricia,
is it working for restricted key figure and calculated key figure ??
Note Number Fisc Period Opening Days
1 1 2
2 1 3
3 1 0
because I have other restriction, so I create two restricted key figure..
RK1 with restriction : Total Number of Note,
RK2 with restriction : Total Opening Days ,
then I Created a calculated key figure, average opening days in a period
CK1 = RK2 / RK1..
in this case, I am not sure if it will work or not..
for example, during RK2 calclation, it might be this 2+3 = 5, the line with 0 will be ignored..
during RK1 calcualtion, it might be 1 + 1 + 1 = 3. ---> Not sure in this case, the line with opening days 0 will be calculated or not..
could you please confirm..
Maybe you are looking for
-
LRT224 Support for multiple subnets
I am considering purchasing an LRT224, but need help with one thing. The network I manage has about 200 devices currently, with mixed brands and types of switches, access points, etc, scattered about. It is a small school that has had many different
-
Any suggestions of how to get an HP 1100A working with a Mac Mini? I've replaced my Dos machine (running XP) with a Mini and everything now works apart from the printer. Is there a driver for the 1100A? I think it's a parallel connection. Is there a
-
Best practice for having an access point giving out only a specific range
Hey All, I have an access point which is currently set to relay all dhcp request to the server DC-01, However the range that has been setup is becoming low on available IP addresses so I have been asked if it is possible to setup another range for th
-
Problem with Viewing Camera Raw/Photoshop Edited Files in Microsoft Applications
Hi When I edit my portraits in Camera Raw or Photoshop and save as sRGB JPEGS they all look fine when viewed in Bridge, Camera Raw and Photoshop. If I view the portraits in Microsoft Picture Viewer or create a web age of the portraits within Photosho
-
Single standby for cluster primary DB
hi I'm looking for some paper and advices if it's possible /how/ to setup a single standby server for primary DB which is 2-nodes RAC cluster. I use 11.2 Std Ed. on Win2008 svr R2. Note, it's a Standard Oracle Ed. I saw some document on replicating s