Check distance (within a range) moved in y-axis?
In my example below is there a way the code can check how far the numbers have moved in the y-axis so that eventually I can have a button that checks to see if the user has moved the numbers to a defined distance in the y-axis (within a range)?
http://twistedpancreas.com/edge/misc/mouseDown.zip
Thanks in advance.
Hi,
You should not put any statements between If and else condition , they should go together .
if(x.position().top > -2277 )
sym.getComposition().getStage().getSymbol('lab_items').getSymbol('numbers').$('labMarks') .animate({'top':'-=50px' }, 300, 'linear', scrollCont);
sym.getComposition().getStage().getSymbol('lab_items').$('btnCheck').bind('click touchstart',function(e){
e.preventDefault();
$(this).unbind('click touchstart');
sym.getComposition().getStage().getSymbol('lab_items').$("feedbackText").html("incorrect" );
else
console.log("stop");
sym.getComposition().getStage().getSymbol('lab_items').$('btn').unbind(' mousedown touchstart');
sym.getComposition().getStage().getSymbol('lab_items').$('btnCheck').bind('click touchstart',function(e){
e.preventDefault();
$(this).unbind('click touchstart');
sym.getComposition().getStage().getSymbol('lab_items').$("feedbackText").html("incorrect" );
So please do not write any If conditions between the above If and else .
Thanks
Saurav
Similar Messages
-
"Battery serial does not validate", but the number is within the range
My sister came home from abroad for Christmas, and I checked her PB 12-inch battery serial number. Her battery has the serial number ZZ3480FJPVEA as far as I can see. This falls into the replacement range:
12-inch
iBook G4 A1061 ZZ338 - ZZ427.
On the exchange page, Apple writes: "If the first 5 digits of your battery’s 12-digit serial number fall within the noted ranges, please order a replacement battery immediately." But the battery serial does not validate even if I replace the zero with the letter "O".
Are there batteries within the range that still are ok?
Ingmar
PowerBook G4 12-inch Mac OS X (10.4.8)I could not post an answer to the topic without marking the question
"answered", though it wasn't!
Strange, because the question is not marked as answered and it is not necessary to mark it in order to reply (simply click on the "reply" link near each post you want to reply to).
However when you feel that your question is answered - or the forum cannot be of further assistance - mark the question as answered and maybe also give some final notes.
If you got helpful replies, then you may award the posters by granting points. You can do so by clicking to "helpful" and "solved" buttons appearing near each post (you need to be logged in).
The buttons mean what they state: "Helpful" in the sense of user gave a useful answer or further information allowing you to solve an issue with some work of your own. "Solved" means that this post of the user is mainly responsible for managing an issue.
You can only mark one posting as "solved" in a thread, and - I hope this is correct - two or three times marking posts as "helpful". With the last, I'm not sure, you may have a look at "Help & Terms of Use". -
Urgent please- need help to retreive all values within a range
Hi,
I need to retreive all the values(ID) within a range no matter if it is available in the database or not. I just need this in a sql query not a stored proc.
for ex:
select id, name, age
from employee
where id between (1 and 10)
It returns
id name age
1 x 22
3 y 26
4 z 23
10 c 32
I need a query which should return values as follows.
id name age
1 x 22
2
3 y 26
4 z 23
5
6
7
8
9
10 c 32
quick replies will be appreciated.This is one way of doing
select decode(id,null,lev,id),name,age from employee,(select level lev from dual
connect by level < 11)
where employee.id(+)=lev
The above will display between 1 and 10. If you want to specify some other range then the below query will do,
select decode(id,null,lev,id),name,age from employee,(select level lev from dual
connect by level <=10
minus
select level lev from dual
connect by level <5)
where employee.id(+)=lev
The above query will display between 5 and 10 -
Sql to find narrow ranges within broad ranges in the same table?
hi,
i'm building a query to find narrow ranges of zip codes within broader
ranges in a table (for tax purposes). for example:
LOW_ZIP HI_ZIP
23400 23499
need to find
23401 23402
23403 23440
23441 23... you get the picture. :)
so, each row has a low value and a hi value, then i need to run a
subquery to take those values and find narrower ranges. any ideas?
so far here's what i have - neeless to say it doesn't work. :P
select sales_tax_id,
from_postal_code,
to_postal_code
from ar_sales_tax a,
(select from_postal_code as fpc,
to_postal_code as tpc
from ar_sales_tax
where rowid = rowid) b
where from_postal_code between b.fpc and b.tpc
and to_postal_code between b.fpc and b.tpc
and end_date is nullhere's the table layout...
SQL> desc ar_sales_tax
Name Null? Type
LAST_UPDATE_DATE NOT NULL DATE
LAST_UPDATED_BY NOT NULL NUMBER(15)
CREATED_BY NOT NULL NUMBER(15)
CREATION_DATE NOT NULL DATE
LOCATION_ID NOT NULL NUMBER(15)
RATE_CONTEXT NOT NULL VARCHAR2(30)
ENABLED_FLAG NOT NULL VARCHAR2(1)
START_DATE NOT NULL DATE
END_DATE NOT NULL DATE
FROM_POSTAL_CODE NOT NULL VARCHAR2(30)
TO_POSTAL_CODE NOT NULL VARCHAR2(30)
TAX_RATE NOT NULL NUMBER
TAX_ACCOUNT NUMBER(15)
LOCATION1_RATE NUMBER
LOCATION2_RATE NUMBER
LOCATION3_RATE NUMBER
LOCATION4_RATE NUMBER
LOCATION5_RATE NUMBER
LOCATION6_RATE NUMBER
LOCATION7_RATE NUMBER
LOCATION8_RATE NUMBER
LOCATION9_RATE NUMBER
LOCATION10_RATE NUMBER
ATTRIBUTE_CATEGORY VARCHAR2(30)
ATTRIBUTE1 VARCHAR2(150)
ATTRIBUTE2 VARCHAR2(150)
ATTRIBUTE3 VARCHAR2(150)
ATTRIBUTE4 VARCHAR2(150)
ATTRIBUTE5 VARCHAR2(150)
ATTRIBUTE6 VARCHAR2(150)
ATTRIBUTE7 VARCHAR2(150)
ATTRIBUTE8 VARCHAR2(150)
ATTRIBUTE9 VARCHAR2(150)
ATTRIBUTE10 VARCHAR2(150)
ATTRIBUTE11 VARCHAR2(150)
ATTRIBUTE12 VARCHAR2(150)
ATTRIBUTE13 VARCHAR2(150)
ATTRIBUTE14 VARCHAR2(150)
ATTRIBUTE15 VARCHAR2(150)
PROGRAM_APPLICATION_ID NUMBER(15)
PROGRAM_ID NUMBER(15)
PROGRAM_UPDATE_DATE DATE
REQUEST_ID NUMBER(15)
DATE_FIRST_USED DATE
LAST_UPDATE_LOGIN NUMBER(15)
SALES_TAX_ID NOT NULL NUMBER(15)
SQL> spool off -
Function Module to Compare Date within date Range
Hi All,
Does anyone know Function Module to Compare Date within date Range...For example i need to find whether 08/02/2006 falls in between 07/15/2006 and 09/15/2006......data: datum type sy-datum value '20070802',
datum_low type sy-datum value '20070730',
datum_high type sy-datum value '20070930'.
If datum between datum_low and datum_high.
Endif.
Regards,
Rich Heilman -
Selecting (checking boxes) within Library in iTunes
Is there a quick way to select or deselect (checking boxes) within your library (or specific playlist) as a means to control the items that you want to move to the ipod? Usually in a similar environment, you have an option to select all of the boxes and check them or the reverse in an attempt to control selection.
Can anyone help? Apple(corp) suggested this support forum.
Thanks (in advance)
DavidMake a selection by clicking on the first track and shift-clicking on the last one for consecutive tracks or command-click on ones that are non-contiguous (you can combine these techniques). Then control-click on the selection and choose "Check (Unselect) Selection".
-
Query to find numeric range gaps within another range
Hi All,
Is it possible to find the solution with a SQL query for the following scenario.
I have done it in PL/SQL but want to do it in SQL. I have tried with analytic functions but not able to find the expected results.
Suppose i have a Table A with below data
Range_Start Range_End
4 16
20 100
101 200
250 300
And Table B with below data
SubRange_Start SubRange_End
7 9
10 13
20 60
70 80
110 190
270 300
i want to find the missing gaps in Table B within the ranges specified in Table A, like below
Output
start end
4 6
14 16
61 69
81 100
101 109
191 200
250 269Hi Dear,
Can I do reverse I mean I can get output as your question from your output as below:
I have this table
FID STARTD ATE END DATE
1 01-MAY-10 03-MAY-10
1 09-MAY-10 11-MAY-10
1 03-JUN-10 04-JUN-10
2 03-JUN-10 04-JUN-10
2 04-AUG-10 04-AUG-10
2 06-AUG-10 06-AUG-10
I want like this.
FID FDATE
1 01-MAY-10
1 02-MAY-10
1 03-MAY-10
1 09-MAY-10
1 10-MAY-10
1 11-MAY-10
1 03-JUN-10
1 04-JUN-10
2 03-JUN-10
2 04-JUN-10
2 04-AUG-10
2 06-AUG-10
And:
How can i get date wise entry from Joining date to relieving date like..
FID START DATE END DATE
1 01-MAY-10 03-MAY-12
1 09-MAY-10 11-MAY-11
2 04-AUG-10 04-AUG-11
I want like this.
FID FDATE
1 01-MAY-10
1 03-MAY-10
1 04-MAY-10
1 05-MAY-10
1 16-MAY-10
1 17-MAY-10
1 08-May-10
1 09-May-10
1 03-May-12
Can you please help me.
Thanks,
Edited by: 978452 on Dec 24, 2012 12:02 AM -
Random number within TWO ranges
Is there anyway to select a random number within TWO ranges ? For example, a random number between the range (10 to 50) OR (100 to 200).
Thank you !This is a simple class that produces a number between a range:
class RandomRange
static java.util.Random random= new java.util.Random();
* Return an int between n1 and n2
static int getIntBetween(int n1, int n2) // n2 must be greater than n1 or n2-n1 must be positive
// get random number between 0 and the range(n2 - n1)
int result= random.nextInt(n2- n1);
// plus the offset
result += n1;
return result;
// return random.nextInt(n2 - n1) + n1;
// the result is n2 exclusive, to make it inclusive return (result + 1)
* Return a double between d1 and d2
static double getDoubleBetween(double d1, double d2)
return random.nextDouble()*(d2 - d1) + d1;
// d1 and d2 can be any value
* Return a float between f1 and f2
static float getFloatBetween(float f1, float f2)
// similar
}---------------------------------- -
hello,
i am using Check Box within Rowrepeater and after bind (on toggle) to an action, wehen i click on the check box in the Portal, all other check boxs are filled too in the same time,
please show me how can I resolve this?
BRHi Samo,
Check your node cardinality and to which attribute you are binding. Make sure that binded attribute should be
under same node which is binded to the table.
Cheers,
Kris. -
Limit range of chart value axis
I'm sure this is blindingly obvious, but I can't figure it out. I have a simple line chart (graphing dollar values), and I want to limit the range of the value axis. Specifically, I want to raise the minimum value displayed to somewhere near the smallest data value, so that my curve isn't flat across the top of the graph. If I enter a number into the Minimum field under Value Axis Format in the Inspector, the vertical axis labels all collapse to the bottom of the chart.
I can't imagine that what I'm trying to do is at all uncommon - how could it possibly be this hard?
Thanks,
AaronAaron,
Well, I have to say that what you show is exactly as you described. I've never seen that and have no idea what might cause it. I can only offer a few bits of general advice. Run software update and make sure you have the latest update for Numbers 08, Restart your computer, try to duplicate the problem in an fresh Numbers document. If a fresh document works properly, copy your content over, keeping track of your additions so you can try to identify the content that causes the problem should it reappear.
Jerry -
How to Check date within limit
Hello 2 all,
Plz Help me i am new 2 Labview
i am using labview 8.2.1
i want 2 check the given date within the From and To date for Report generation.
plz help me if any one knows, i need it urgently.
Solved!
Go to Solution.I imagine that when you pass a string into In Range and Coerce it does an alphabetical check. It doesn't know you formatted the string as a date. It just sees a string. Use time stamps. An example is attached. It's LV 8.5
Tim Elsey
LabVIEW 2010, 2012
Certified LabVIEW Architect
Attachments:
date checking-1.vi 7 KB -
Supress authentication check from within ABAP code
Hi,
we want all users to update their email-address in their own sap profile. (a self service)
By default, in the screen "System"->"User Profile"->"Own Data", he can update all except his email-id.
For this, we have written an abap report.
DATA: p_smtp TYPE TABLE OF bapiadsmtp WITH HEADER LINE,
p_return TYPE TABLE OF bapiret2 WITH HEADER LINE,
p_addressx TYPE bapiaddr3x.
data: p_uname TYPE xubname.
PARAMETERS: p_email TYPE ad_smtpadr OBLIGATORY.
p_uname = sy-uname. "logged in user
p_smtp-e_mail = p_email.
p_smtp-std_no = 'X'.
p_smtp-home_flag = 'X'.
p_smtp-consnumber = '001'.
p_addressx-e_mail = 'X'.
CALL FUNCTION 'BAPI_USER_CHANGE'
EXPORTING
username = p_uname
addressx = p_addressx
TABLES
return = p_return
addsmtp = p_smtp.
when we execute this report, with all rights, it works fine.
but a normal user when he executes, he is getting this error:
"You are not authorized to change users in group"
the su53 screen shows:
Authorization check failed
Object Class BC_A Basis: Administration
Authorization Obj. S_USER_GRP User Master Maintenance: User Groups
Authorization Field ACTVT Activity
02
Authorization Field CLASS User group in user master maintenance
<Dummy>
the point here is we cannot add User Maintenance rights to all our normal users.
is there any way, within the report (code) we can suppress the authentication check, programatically just while calling 'BAPI_USER_CHANGE', so that the user will be able to update his email-id.
thanks in advance,
Madhu_1980Here are 2 useful links:
http://www.sapdev.co.uk/fmodules/fms_updateaddress.htm
Updating email address in SU1/SU3
If these don't help the noly thing I can suggest is that you write your own bdc program.
Regards,
Warren. -
Checks to be done before moving the objects from DEvV to PROD systems
Hi,
Please provide the standard methods and checks to be done in the transport requests before moving the objects from DEv to PROD.
Please help us here.In se10 find your request and
Upper left corner - Request\task -> Complete check -> Object (syntax check) and Check Request Consistency.
This you can do for your request and all the tasks included in your request.
Note: Transport may still fail due to numerous reason (i.e) not all the objects needed are collected in the request,
but at atleast it gives some assurance that objects are not blocked in other requests etc... -
Custom authorisation checks from within actions
Does anyone have any experience of using authorisation object /DBM/ORDER to control field entry from actions in DBM 6.0? We wish to control entry of certain fields such as pricing data between different levels of the business such as a parts manager, supervisor or counter assistant and are wondering if this object could be used or whether we should develop additional objects?
In this scenario would it be necessary to create an action for every business role, call the same execution code from each action and then assign the OE_ACTION (field /DBM/ORDAC in object /DBM/ORDER) to each user profile? If this is the case then I'm not quite sure how x number of actions (and corresponding event(s)) for each role should be configured however!Hi David,
It is true that you will need a custom authorization object for your requirement with all the fields as per your requirement into it.
Ex: ZDBM_FLDCHK with fields
PRSDT and so on.
Now you need to create a BADI Implementation for /DBM/BADI_OE_ACTION_PREPARE. Create this implementation without filter action so that this could be executed at every action. Within this BADI implementation you can write your code for checking whether the user has changed the values on screen by comparing the HEADER_DETAIL corresponding values in VBAK_COM.
I hope this helps.
Give points if useful.
Regards,
Prakash -
Today's Date within Date Range
I have a BeginDate and EndDate in a database. I want to be able to list those records if todays date is within the date range of BeginDate and EndDate. I am unsure of the coding on this. Has anyone done this and can give me some help? Thanks.
Error Occurred While Processing Request
Variable GET is undefined
Ok That is what I thought. I have tried it without the # and I get There is an error in the syntax of the query.
Maybe you are looking for
-
Difference in closing balance of last year and opening balance of next year
hi all, when i see the cumulative balances of bank g/l in T.code-FS10N for the last year and see the balance carried forward in this year , i have found a small amount of difference of Rs.300. I have checked the line item balances and it is showing t
-
What are these lines around a table?
Probably a basic question, but I've run across something in Dreamweaver that is a little maddening... When I create tables with 0 cellpadding or cell spacing, I'm still getting hairline "borders" around my table cells - if anyone can see the problem
-
Firefox open links in new tab even if its shuold not be opened in a new tab
when i open a link it will open in a new tab even i fix the settings still it opens i new tabs. how can i fix this?
-
Photoshop CS6 freezes computer
Hi, Running 64bit Win 7 Dell Studion XPS system. I originally installed the Master Suite, but it hung on the Acrobat X install. So I went in and uninstalled Photoshop and reinstalled it. All other programs in Suite work. Installed a brand new shi
-
What is causing a green box with white checkmark inside it, to appear in my images?
What is causing a green box with white checkmark inside it, to appear in my images?