Creating a function (to check windowlist)
I want to create a function (or Manager) that once called will check to see if the popups are (by checking windowList). If Yes, I want to see if each person is set to invisible (which means that they have closed the popup window) and got it close and forget the window.Now, when I create any function at all... to say:
on testFunction
back track (_player.windowList)
end
and place it in the first picture... and try to use it by placing it in a button:
on mouseUp
testFunction
end
He told me that the Manager does not exist. What I am doing wrong?
Your personal Manager is expected to go into a film script, not a frame script.
Tags: Director
Similar Questions
-
function to check the alphanumeric string of pan card
for example a pan card number ' * AAFCQ4563U *'
I wan to create a function that checks the first 5 digits as capital alphabets and total length of the string is 10.
Published by: arnaud August 2, 2011 22:45Hi Arnaud,.
As already mentioned by Barend, you should always put the version number that you are using. You can use the REGEXP_LIKE expression to get the desired result. The TANK contains also the first 5 digits as the alphabets, nest 4 numbers and the last one like alphabet still once, then you should check the chain rest as well.
You can try. It works fine on Oracle 10 g and Oracle 11 g version 10.2.0.4 and 11.2.0.1.
CREATE OR REPLACE FUNCTION validate_pan_num (pan IN VARCHAR2) RETURN VARCHAR2 AS BEGIN IF (REGEXP_LIKE (pan, '[A-Z]{5}[0-9]{4}[A-Z]{1}') AND LENGTH (pan) = 10) THEN RETURN 'true'; ELSE RETURN 'false'; END IF; END;
Kind regards
Ankit -
How to create a function to calculate the calendar
Oracle Forms 6i
Hai
I'm generating a daily presence that is stored in the database with the fields
Empcode, attend_date, intimate, outtime, extratime, deptcode, unitid and some other things
I need to create a function by taking these fields of the table unitid, empcode, intimate, outtime, attend_date, deptcode and return total hours he worked, and more than 8 means it will add in extra time.
If it is possible to give the run of the date value to which to this day, you must calculate.
Thanks in advance
Srikkanth.MlSrikkanth,
Depending on how you stated your RESPONDENT and OUTTIME, columns this should quite simply be a calculation. For example, if you have declared these columns as DATE columns, the following calculation should work:SELECT NVL(OUTTIME,SYSDATE) - INTIME AS hours_worked FROM DAILY_ATTENDANCE WHERE EMPCODE = "Emp Code of the employee you are evaluating";
Once you have the HOURS_WORKED, you can check if the amount is greater than 8 (or whatever is the approved duration of working hours of the employee's) to determine if he or she worked longer than their approved shift back the extra time, and the user has worked or NULL or zero if they have not exceeded their shift.
If you have set up the columns of time as something other than the DATE or DATETIME, you will need to convert the values in input/OUTPUT at a DATE so that you can use the functionality of calculation date default Oracle or you need to build your own process of calculation of the WORK_HOURS based on how you store the RESPONDENT and OUTTIME values.
I hope this helps.
Craig... -
Function to check for the existence of the table
Hi all
Is there a direct function that can let me know whether or not a particular Table exists in Oracle DB.
TIA
See you soon,.
ParagThere is no function to check, but we can write our own logic to check if it exists or not.
CREATE OR REPLACE FUNCTION CHK_TABLE(P_TABLE_NAME IN VARCHAR2) RETURN VARCHAR2 AS
M_EXISTS VARCHAR2 (1);
NUMBER OF M_CNT;
BEGIN
SELECT COUNT (1) IN M_CNT
FROM USER_TABLES HAS
WHERE A.TABLE_NAME = UPPER (P_TABLE_NAME);
IF NVL(M_CNT,0) = 0 THEN
M_EXISTS: = 'N';
ON THE OTHER
M_EXISTS: = 'Y ';
END IF;
RETURN NVL(M_EXISTS,'N');
END CHK_TABLE;
/Satyam.
-
Using the label for datagrid created dynamically function
I am creating a data grid dynamically based on the data returned by a script from the server call.
I know that some of my data will be nested so I need to use a label function to check that these data are displayed in the datagrid control
All of the examples of the use of a label function that I can find seem to have hard coded as in the following example columns
< mx:columns >
< mx:DataGridColumn headerText = "Name" dataField = "NomMenu" / >
< mx:DataGridColumn headerText = "Vegetarian" labelFunction = "displayVegetarian" / >
< mx:DataGridColumn headerText = "Peanuts" labelFunction = "displayPeanuts" / >
< mx:DataGridColumn headerText = "Quantity" labelFunction = "displayQuantity" / >
< mx:DataGridColumn headerText = 'Price' labelFunction = "displayPrice" / >
< mx:DataGridColumn headerText = "Total industry" labelFunction = "displayLineTotal" / >
< / mx:columns >
However, I create my columns of the DataGrid dynamically if cannot use the < medium to achieve mx:DataGridColumn
My code works as follows
for (var i: uint = 0; i < xlColumns.length (); i ++) {}
DGC = new DataGridColumn();
dgc.dataField = "componentScores.ScoreValue" <-THIS NEEDS to USE A LABEL FUNCTION
dgc.headerText = _qualificationSummaryScreenData.getComponentTitle (componentIndex);
}
I've highlighted above where I need to use a label function. I really hope that someone can help me here that I am currently taking one step forward and two steps backward with Flex right now and already several days behind on this project.
Thank you very much
Paul
I do not exactly remember the syntax, but you can assign a function to the labalFunction property:
dgc.labelFunction = myHandlerFunction; something like thatHave you tried that yet?
Tracy
-
reporting invalid-ORA-00900 error while creating a function
Hello
can someone guide me to what is doing the worng...
error! sql statement not valid 00900 - ORA-.
your help is greatly appreciated.
FUNCTION test_irc (num in NUMBERS, varsql IN VARCHAR2)
RETURNS the NUMBER IS varSTMT VARCHAR2 (32767): = NULL;type of v_key_type temp2_irc.key_type %;
v_key_type1 temp2_irc.key_type1%type;
BEGIN
INSERT INTO temp2_irc (key_type, key_type1)
VALUES(v_key_type,v_key_type1);
RETURN 1;EXCEPTION WHEN OTHERS THEN
dbms_output.put_line ('down in test');
dbms_output.put_line (' SQL error: ' |) SUBSTR (SQLERRM, 1, 1000));
RETURNS - 1;
END test_irc;temp2_irc / / desc:
KEY_TYPE varchar2 (1 byte),
key_type1 varchar2 (1 byte)
If you create a database function, you must include the keyword of CREATE or REPLACE
for example
Create the FUNCTION replace or test_irc (num in NUMBERS,
varsql IN VARCHAR2) RETURN NUMBER IS
varSTMT VARCHAR2 (32767): = NULL;
v_key_type temp2_irc.key_type%type;
v_key_type1 temp2_irc.key_type1%type;
BEGIN
INSERT INTO temp2_irc (key_type, key_type1)
VALUES(v_key_type,v_key_type1);RETURN 1;
EXCEPTION WHEN OTHERS THEN
dbms_output.put_line ('down in test');
dbms_output.put_line (' SQL error: ' |) SUBSTR (SQLERRM, 1, 1000));
RETURNS - 1;
END test_irc; -
Create a trigger to check if the synonym already exists in the db
Hello
How can I create a trigger to check if the synonym already exists in the db and if exists then do not create a synonym.
my work: (it's like a schematic I developed)
Select * from all_synonyms;
declare
number of s_exists;
Start
-checks if the synonym
Select 1 in s_exists to all_synonyms;
-a mistake gets stimulus if it's not
exception when no_data_found then
-The DOF should be done inside
run immediately ' create or replace synonym;
end;
/
any help is really appreciated...
Thank you
Published by: Vinay Mummadi on 29 March 2013 12:51There are a few rules of trade more that you need to consider.
Do not forget that there are synonyms both PUBLIC and PRIVATE.
Just because there is a synonym of a given name does NOT mean it's the only one who tries to create a given user. If a user tries to create a synonym private, you need see if the OWNER and the NAME, the two match.
What is a user issuing a CREATE or REPLACE for their own private synonym? Is this OK or who need help also?
-
can I use create valude function for MSSql scalar and table.
Hello
(1) can I use create scalar function for MSSql and function table?
(2) is there how many type of function defined by the user in oracle 11 g express?
(3) and I can reture 'type' any form user defined function?
Attract sincerely944768 wrote:
the answer lies in a few cases only,
The response illustrates the basic concept of how customers need to use cursors created using PL/SQL as a layer of abstraction - SQL and this concepts adapts to ALL cases where the customer wants to Oracle via PL/SQL cursor.
a case is,
If my function returns only a single value, then I can use oracle 'create function' with the return type as types predefined as a whole, varchar2 etc?
with regard to performance.With regard to this performance problem? And why now suddenly change the question to want to use a function to return data type number or string? How does this relate to PL/SQL to return a cursor now?
A function can return scalar values, not scalar. A function may return atomic values (such as a unique number, or a non-scalar list of numbers). A function can return a complex data structure consisting of scalar values, not scalar.
However, in PL/SQL function must NOT be used to read the lines of the database to cache lines in a memory of the server PL/SQL (PGA), then back to the client.
He does not. It does not fit. It is too bloody dangerous to the overall health of the server as such code plays silly blighters with very expensive server memory.
A PL/SQL function can also be used as guideline, returning data via expensive PGA, but via the SQL engine instead and using its slider interface (which allows output data to be "gradual" and not to return all data with a single copy of croustilleur mass of the call stack) directly. IT IS, HOWEVER, AN EXCEPTION. There is very rarely the need to make the functions PL/SQL pipeline table - and is often victims of abuse and bad demonstrated with examples of absurd code here.
-
I am trying to create a function that would be on the table type returns.
Gurus,
I am trying to create a function that returns a table nested with 3
columns in a table as a guy.
my query is like
Select col1, col2, col3 from table_1;
I am a bit newbie in Oracle and have never used collections.
Can you please guide?>
I am a bit newbie in Oracle and have never used collections.
>
Then you should start with the documentation
http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28370/TOC.htmChapter 5 is all about collections using PL/SQL and examples
>
I am trying to create a function that returns a table nested with 3
columns in a table as a guy.
>
This isn't enough of a description to know what you're trying to do, or how you plan to use the service. The query you provided is completely irrelevant to the question you are asking.You ask about functions in pipeline? Here is an example of this
-- type to match emp record create or replace type emp_scalar_type as object (EMPNO NUMBER(4) , ENAME VARCHAR2(10), JOB VARCHAR2(9), MGR NUMBER(4), HIREDATE DATE, SAL NUMBER(7, 2), COMM NUMBER(7, 2), DEPTNO NUMBER(2) ) / -- table of emp records create or replace type emp_table_type as table of emp_scalar_type / -- pipelined function create or replace function get_emp( p_deptno in number ) return emp_table_type PIPELINED as TYPE EmpCurTyp IS REF CURSOR RETURN emp%ROWTYPE; emp_cv EmpCurTyp; l_rec emp%rowtype; begin open emp_cv for select * from emp where deptno = p_deptno; loop fetch emp_cv into l_rec; exit when (emp_cv%notfound); pipe row( emp_scalar_type( l_rec.empno, LOWER(l_rec.ename), l_rec.job, l_rec.mgr, l_rec.hiredate, l_rec.sal, l_rec.comm, l_rec.deptno ) ); end loop; return; end; / select * from table(get_emp(20))
-
Create the procedure to check existing data, then update, if not then insert.
Dear all,
Help, please
I create a procedure to check the current data are available or not tables, if not match, the row in the table will insert another table, if matched, data will be updated.
table source: Table_read;
check table: stor_matdata;
key to two table ID is (assy_no and t.produced_number).
Here's the code I create, but he still has an error...
---------------------------------------------------------------------
create or replace
procedure Matched
as
Start
Fusion in stor_matdata m using double on (m.assy_no = t.produced_number)
When not matched then insert into stor_matdata (sequence_id, assy_no, package, basic_type, materialnumber, factor, mattype)
Select rownum, t.producednumber, t.package_name, t.basic_type, t.consumed_number, t.factor, t.mattype FROM (select * from Table_read xxxx) t
when matched, then update package set = t.package_name, basic_type = t.basic_type, materialnumber = t.consumed_number, = t.factor, mattype = t.mattype, sequence_id = rownum factor;
end Matched;
Thank you and best regards,
HadiThere is a support missing after values
VALUES ( t.r ,t.producednumber ,t.package_name ,t.basic_type ,t.consumed_number ,t.factor ,t.mattype );
Concerning
Marcus -
I want to create the function for the function create for ODD or EVEN (NUMBER)
I want to create the function for the function create for ODD or EVEN (NUMBER) also
If number is odd, multiply by 5
If there is an even number, multiply it by 10;Not tested,
create or replace function fnc_env_odd(p_number in number) return number as begin if p_number>0 -- Remove if you want to consider negative numbers also if mod(p_number,2)=0 --Means even return p_number*10; else --Means odd return p_number*5 end if; end if; end; /
G.
-
Help finishing a function which checks a table
Hi guys,.
I need help finishing a function that checks the 6 items (indiciesOfInterestShape) in a table dynamically updated (productCode) for two types of values. the number 0 or any number between 1 and 8.
I need the result of this function to update the variable finalNumber to a number between 0 and 6.
If a 0 is found in all 6 clues that it will result in the final number type argument no increase.
If a number between 1-8 is located in one of the 6 index then the final number increases by 1. And because there are only 6 clues to check the maximum number only will never be 6.
That's what I have so far
// indicies that are dynamically updated 4 7 10 13 16 19 public static var productCode:Array = [C,A,1,A,1,A,A,1,A,A,0,0,A,0,0,A,0,0,A,0,0,A] public static var indiciesOfInterestShape:Array = [4, 7, 10, 13, 16, 19]; public static var finalNumber:int = new int; public static function countShapes(productCode:Array, indiciesOfInterestShape:Array){ for (var i:int = 0; i < indiciesOfInterestShape.length; i++){ var indexTolookAt:int = indiciesOfInterestShape[i]; var item:String = productCode[indexTolookAt]; if (item == 0){ "add zero to finalNumber" //help needed here changing the finalNumber } else{ "add 1 to final number" //help needed here changing the finalNumber } } }
Something to keep in mind, if a certain product code adds 1 to the final number index (as 1-8), but is then changed dynamically to 0, I need the number back down by 1.
Hope this has meaning and that someone could point me in the right direction at best.
Thanks in advance!
// indicies that are dynamically updated 4 7 10 13 16 19
public static var productCode:Array = [C,A,1,A,1,A,A,1,A,A,0,0,A,0,0,A,0,0,A,0,0,A]
public static var indiciesOfInterestShape:Array = [4, 7, 10, 13, 16, 19];
public static var finalNumber:int = 0;finalNumber =
countShapes(productCode, indiciesOfInterestShape);
public static function countShapes(productCode:Array, indiciesOfInterestShape:Array):int {
var finalNumber:int = 0;
for (var i:int = 0; i < indiciesOfInterestShape.length; i++){
var indexTolookAt:int = indiciesOfInterestShape[i];
var item:int= productCode[indexTolookAt];
if (item != 0){
finalNumber++;
}
}return finalNumber;
}
-
Jyn
I need some help with a game that I do. I have a list of instances, and I want to make a function that will create another symbol, similar to that was just clicked. The problem is that I don't know how to create the new instance... In my library, they are like 'next' link + name of the instance. Thank you for your help ^^,
square_mc.addEventListener (MouseEvent.MOUSE_CLICK, Create);
circle_mc.addEventListener (MouseEvent.MOUSE_CLICK, Create);
...
triangle_mc.addEventListener (MouseEvent.MOUSE_CLICK, Create);
function Create(event:MouseEvent):void
{
var name: String = "next" + event.target.name;
var temp: Name = Name();
addChild (temp);
lines of code
removeChild (temp);
}
Here's the right way to dynamically call an instance of the current class.
var ClassRef: Class = Class (getDefinitionByName ("className");
var classInstance: * = new ClassRef();
addChild (classInstance);In your case, 'className' would be your "next" + event.target.name;
and you can use event.currentTarget.name to be safer. If your objects contain other objects in their midst, 'target' can point to them instead. "currentTarget" will always point to the object with the listener who are entrusted to him.
-
I am new to oracle and I need to create a function that will take two datestamp and then tell me how many hours are between these two dates.
Opening hours are from 06:00 to 06:00 p.m., Monday to Friday.
For example: if my startdate is 20/07/2010-08:00 and at the end we day 2010-07-02 21:00. Total working hours will be 10 hours no 13.
Another scenario:
start date: 20/07/2010 03:00 and end 20/07/2010 06:01 hour. Total work hours are 1 min.
I have serious difficulty with that.
Thank you
AmirHi, Amir,
user10356209 wrote:
Frank,
THiiS is almost perfect. I see that the function is only the dates not accpeting datestamp.
I call the function with these parameters
Select Business_Hours double ((21 juillet 10 07.58.22 AM ', 21 juillet 10 07.58.22 AM'))and I get the following error
SQL error: ORA-01830: date format picture ends before converting all of the input string
01830 00000 - "date format picture ends before converting all of the input string.Any thoughts?
If the function expecects DATEs for the arguments, it does not pass strings.
One thing you can do is TO_DATE allows to convert the strings to DATEs:Select Business_Hours ( TO_DATE ( '21-JUL-10 07.58.22 AM' , 'DD-MON-RR HH.MI.SS AM' ) , TO_DATE ( '21-JUL-10 07.58.22 AM' , 'DD-MON-RR HH.MI.SS AM' ) from dual;
If you are still calling the function with strings as arguments, no DATEs, and if the strings are always in the same format, then you could call TO_DATE function, or write a separate function which takes the strings as arguments:
CREATE OR REPLACE FUNCTION business_hours_s ( in_start_datestamp IN VARCHAR2 , in_end_datestamp IN VARCHAR2 ) RETURN NUMBER DETERMINISTIC IS BEGIN RETURN business_hours ( TO_DATE ( in_start_datestamp , 'DD-MON-RR HH.MI.SS AM' ) , TO_DATE ( in_end_datestamp , 'DD-MON-RR HH.MI.SS AM' ) ); END business_hours_s ;
It's literally the entire function; just a RETURN statement.
Leave the original function exactly as it is, with the arguments to DATE. -
Create the function of responsibility which would pass parameters to 3rd party app
Hello all,.
My organization uses Oracle HRMS but no payroll. We try to convert them into electronic heels and have developed a 3rd party app, but we do not want users to have to use a separate password for our instance of EBS. Is it possible to create a function to attach to the responsibility of the employee self-service that will launch the 3 web part app and validate the information as user_id to spend?
Thanks in advance!
KristopherHello
You can use pageContext.putSessionValueDirect () API to do this, as this API set parameters directly in the HTTP session as
pageContext.putSessionValueDirect ("Parameter1", value1);
pageContext.putSessionValueDirect ("Parameter2", value2);
pageContext.setForceForwardURL ('Page URL',
NULL,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
NULL, null, true,
OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
OAWebBeanConstants.IGNORE_MESSAGES);
}It could be useful!
Ajay
Maybe you are looking for
-
How to stop the mp3 to open automatically in iTunes
When I download an mp3 file as soon as it has finished downloading, a copy is made and it reads back in iTunes. I don't want to do that, I need to find the newly added mp3 and delete iTunes. I was not able to find a way to prevent this. When I dow
-
Satellite W30T-A378 from - touch pad and the keyboard does not work
I have a problem with my laptop, the touch pad and the keyboard does not work.Can someone help me what is the possible cause? Thanks in advance.
-
Question about the extended warranty on Satellite A300-1EI
Nice day.I need to some information and help please.I bought a laptop around mid September 2008 in Saudi Arabia. (Jarir Bokstore). The store had a promotion whereby you get the standard one year international warranty, BUT they give you a further ext
-
Unable to turn on WLAN on my Satellite P200D - 12 c
Hello!I have laptop Satellite P200D - 12 c and recently installed windows 7 32 bit. The problem is that I can not for the wireless to work even with the wireless LAN switch. What happens is that the connection comes from my home network with the maxi
-
Hi people! I have a Dell DEAD tour... it has XP Home on it. I want to move it to a laptop (new), that may come pre-loaded with 7.0 Win. I need it because I have old analyzes stocks and Willmaker programs who are older who should work on XP. Microso