Syntax for a loop
Hey folks,
I've heard about for loops being the best way to accomplish what I need. With my coding level, i'm looking to have that when all the checkbox states are true, then go to a specific frame. the issue is when I was using event listeners inside each of the mouse click events, it would trigger on the ninth click as all conditions would have been met. The syntax for a loop appears daunting, is there any way to execute my function so it's always "listening" or will execute eimmeidatley if the conditions are met?
OFbandSEVENclose.addEventListener(MouseEvent.CLICK, OnFRYERbandSEVENclose);
function OnFRYERbandSEVENclose(e: MouseEvent): void
gotoAndPlay(1);
OFbandSEVENcheckONE.visible = false;
OFbandSEVENcheckTWO.visible = false;
OFbandSEVENcheckTHREE.visible = false;
OFbandSEVENcheckFOUR.visible = false;
OFbandSEVENcheckFIVE.visible = false;
OFbandSEVENcheckSIX.visible = false;
OFbandSEVENcheckSEVEN.visible = false;
OFbandSEVENcheckEIGHT.visible = false;
OFbandSEVENcheckBUTTON1.addEventListener(MouseEvent.CLICK, checkbuttonONE, false, 0, true);
function checkbuttonONE(e:Event):void
if( OFbandSEVENcheckONE.visible == true){
OFbandSEVENcheckONE.visible = false;
}else{
OFbandSEVENcheckONE.visible = true;
OFbandSEVENcheckBUTTON2.addEventListener(MouseEvent.CLICK, checkbuttonTWO, false, 0, true);
function checkbuttonTWO(e:Event):void
if( OFbandSEVENcheckTWO.visible == true){
OFbandSEVENcheckTWO.visible = false;
}else{
OFbandSEVENcheckTWO.visible = true;
OFbandSEVENcheckBUTTON3.addEventListener(MouseEvent.CLICK, checkbuttonTHREE, false, 0, true);
function checkbuttonTHREE(e:Event):void
if( OFbandSEVENcheckTHREE.visible == true){
OFbandSEVENcheckTHREE.visible = false;
}else{
OFbandSEVENcheckTHREE.visible = true;
OFbandSEVENcheckBUTTON4.addEventListener(MouseEvent.CLICK, checkbuttonFOUR, false, 0, true);
function checkbuttonFOUR(e:Event):void
if( OFbandSEVENcheckFOUR.visible == true){
OFbandSEVENcheckFOUR.visible = false;
}else{
OFbandSEVENcheckFOUR.visible = true;
OFbandSEVENcheckBUTTON5.addEventListener(MouseEvent.CLICK, checkbuttonFIVE, false, 0, true);
function checkbuttonFIVE(e:Event):void
if( OFbandSEVENcheckFIVE.visible == true){
OFbandSEVENcheckFIVE.visible = false;
}else{
OFbandSEVENcheckFIVE.visible = true;
OFbandSEVENcheckBUTTON6.addEventListener(MouseEvent.CLICK, checkbuttonSIX, false, 0, true);
function checkbuttonSIX(e:Event):void
if( OFbandSEVENcheckSIX.visible == true){
OFbandSEVENcheckSIX.visible = false;
}else{
OFbandSEVENcheckSIX.visible = true;
OFbandSEVENcheckBUTTON7.addEventListener(MouseEvent.CLICK, checkbuttonSEVEN, false, 0, true);
function checkbuttonSEVEN(e:Event):void
if( OFbandSEVENcheckSEVEN.visible == true){
OFbandSEVENcheckSEVEN.visible = false;
}else{
OFbandSEVENcheckSEVEN.visible = true;
OFbandSEVENcheckBUTTON8.addEventListener(MouseEvent.CLICK, checkbuttonEIGHT, false, 0, true);
function checkbuttonEIGHT(e:Event):void
if( OFbandSEVENcheckEIGHT.visible == true){
OFbandSEVENcheckEIGHT.visible = false;
}else{
OFbandSEVENcheckEIGHT.visible = true;
// SHOW FINAL SCREEN===============================================
function OFbandSEVENCOMPLETE(e:Event):void
if( OFbandSEVENcheckONE.visible == true && OFbandSEVENcheckTWO.visible == true && OFbandSEVENcheckTHREE.visible == true&& OFbandSEVENcheckFOUR.visible == true && OFbandSEVENcheckFIVE.visible == true && OFbandSEVENcheckSIX.visible == true && OFbandSEVENcheckSEVEN.visible == true && OFbandSEVENcheckEIGHT.visible == true){
gotoAndPlay(12);
stop();
Yes all are on one frame, the movieclips for the checkmark and the buttons that trigger the checkmark. I put your code in and my ubttons still trigger the checkmarks to go visible but there is nothing signalling the end. basically just need it to go to frame 12. Here's my mods below
OFbandSEVENclose.addEventListener(MouseEvent.CLICK, OnFRYERbandSEVENclose);
function OnFRYERbandSEVENclose(e: MouseEvent): void
gotoAndPlay(1);
OFbandSEVENcheckONE.visible = false;
OFbandSEVENcheckTWO.visible = false;
OFbandSEVENcheckTHREE.visible = false;
OFbandSEVENcheckFOUR.visible = false;
OFbandSEVENcheckFIVE.visible = false;
OFbandSEVENcheckSIX.visible = false;
OFbandSEVENcheckSEVEN.visible = false;
OFbandSEVENcheckEIGHT.visible = false;
var checks:Array = new Array(OFbandSEVENcheckONE, OFbandSEVENcheckTWO, OFbandSEVENcheckTHREE, OFbandSEVENcheckFOUR, OFbandSEVENcheckFIVE, OFbandSEVENcheckSIX, OFbandSEVENcheckSEVEN, OFbandSEVENcheckEIGHT);
OFbandSEVENcheckBUTTON1.addEventListener(MouseEvent.CLICK, doCheck); //buttons to click that trigger the checkbox movieclips
OFbandSEVENcheckBUTTON2.addEventListener(MouseEvent.CLICK, doCheck);
OFbandSEVENcheckBUTTON3.addEventListener(MouseEvent.CLICK, doCheck);
OFbandSEVENcheckBUTTON4.addEventListener(MouseEvent.CLICK, doCheck);
OFbandSEVENcheckBUTTON5.addEventListener(MouseEvent.CLICK, doCheck);
OFbandSEVENcheckBUTTON6.addEventListener(MouseEvent.CLICK, doCheck);
OFbandSEVENcheckBUTTON7.addEventListener(MouseEvent.CLICK, doCheck);
OFbandSEVENcheckBUTTON8.addEventListener(MouseEvent.CLICK, doCheck);
function doCheck(e:MouseEvent):void
var sel:Boolean = true;
for(var i:int = 0; i < checks.length; i++){
if(!checks[i].visible){
sel = false;
break;
if(sel){
trace("all selected");
OFbandSEVENcheckBUTTON1.addEventListener(MouseEvent.CLICK, checkbuttonONE, false, 0, true);
function checkbuttonONE(e:Event):void
if( OFbandSEVENcheckONE.visible == true){
OFbandSEVENcheckONE.visible = false;
}else{
OFbandSEVENcheckONE.visible = true;
OFbandSEVENcheckBUTTON2.addEventListener(MouseEvent.CLICK, checkbuttonTWO, false, 0, true);
function checkbuttonTWO(e:Event):void
if( OFbandSEVENcheckTWO.visible == true){
OFbandSEVENcheckTWO.visible = false;
}else{
OFbandSEVENcheckTWO.visible = true;
OFbandSEVENcheckBUTTON3.addEventListener(MouseEvent.CLICK, checkbuttonTHREE, false, 0, true);
function checkbuttonTHREE(e:Event):void
if( OFbandSEVENcheckTHREE.visible == true){
OFbandSEVENcheckTHREE.visible = false;
}else{
OFbandSEVENcheckTHREE.visible = true;
OFbandSEVENcheckBUTTON4.addEventListener(MouseEvent.CLICK, checkbuttonFOUR, false, 0, true);
function checkbuttonFOUR(e:Event):void
if( OFbandSEVENcheckFOUR.visible == true){
OFbandSEVENcheckFOUR.visible = false;
}else{
OFbandSEVENcheckFOUR.visible = true;
OFbandSEVENcheckBUTTON5.addEventListener(MouseEvent.CLICK, checkbuttonFIVE, false, 0, true);
function checkbuttonFIVE(e:Event):void
if( OFbandSEVENcheckFIVE.visible == true){
OFbandSEVENcheckFIVE.visible = false;
}else{
OFbandSEVENcheckFIVE.visible = true;
OFbandSEVENcheckBUTTON6.addEventListener(MouseEvent.CLICK, checkbuttonSIX, false, 0, true);
function checkbuttonSIX(e:Event):void
if( OFbandSEVENcheckSIX.visible == true){
OFbandSEVENcheckSIX.visible = false;
}else{
OFbandSEVENcheckSIX.visible = true;
OFbandSEVENcheckBUTTON7.addEventListener(MouseEvent.CLICK, checkbuttonSEVEN, false, 0, true);
function checkbuttonSEVEN(e:Event):void
if( OFbandSEVENcheckSEVEN.visible == true){
OFbandSEVENcheckSEVEN.visible = false;
}else{
OFbandSEVENcheckSEVEN.visible = true;
OFbandSEVENcheckBUTTON8.addEventListener(MouseEvent.CLICK, checkbuttonEIGHT, false, 0, true);
function checkbuttonEIGHT(e:Event):void
if( OFbandSEVENcheckEIGHT.visible == true){
OFbandSEVENcheckEIGHT.visible = false;
}else{
OFbandSEVENcheckEIGHT.visible = true;
// SHOW FINAL SCREEN===============================================
function OFbandSEVENCOMPLETE(e:Event):void
if( OFbandSEVENcheckONE.visible == true && OFbandSEVENcheckTWO.visible == true && OFbandSEVENcheckTHREE.visible == true&& OFbandSEVENcheckFOUR.visible == true && OFbandSEVENcheckFIVE.visible == true && OFbandSEVENcheckSIX.visible == true && OFbandSEVENcheckSEVEN.visible == true && OFbandSEVENcheckEIGHT.visible == true){
gotoAndPlay(12);
stop();
Similar Messages
-
Flex 3: syntax for populating ArrayCollection by loop
Hi, I'm a newb. I can't find an example of how to do this. Any examples would be greatl appreciated.
I want to chart some engineering data by populating my chart's dataprovider with an array collection (so far no problem). I want to poulate the array collection by looping through a math expression and I can't figure out the syntax for that. For example...
[Bindable]
private var myChartData:ArrayCollection = new ArrayCollection([
{vertNum:100, horizNum:100}
I want to loop through and add more points programmatically so if I loop 5 times I end up with...
[Bindable]
private var myChartData:ArrayCollection = new ArrayCollection([
{vertNum:100, horizNum:100},
{vertNum:110, horizNum:110},
{vertNum:43, horizNum:120},
{vertNum:88, horizNum:130},
{vertNum:140, horizNum:140},
// etc...
The number of horizontal variables to plot ould be in the hundreds, so I don't want to set up a huge static array collection with expressions in each location. I'd prefer to solve the expression as a loop iterates and populate the array collection as it goes. But I haven't got a clue how to 'word' that.
thanks!Here is an example of adding data points from a simple formula using a random number generator and scaling the randomness up. The process is just to create a new Object for each iteration of the loop and add the object to your ArrayCollection. You can assign as many properties to the object as you need, which can be helpful for using one ArrayCollection that is displayed in multiple charts.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="build_model()">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
private function build_model():void {
var obj:Object;
var chartAC:ArrayCollection = new ArrayCollection();
for (var i:uint = 0; i < 100; i++) {
obj = new Object();
obj.horizNum = 100 + 10 * i;
obj.vertNum = i * Math.random();
chartAC.addItem(obj);
linechart1.dataProvider = chartAC;
]]>
</mx:Script>
<mx:LineChart left="10" right="10" top="54" bottom="10" id="linechart1">
<mx:series>
<mx:LineSeries displayName="Series 1" yField="vertNum" xField="horizNum"/>
</mx:series>
</mx:LineChart>
<mx:Button x="10" y="10" label="Build Model" click="build_model()"/>
</mx:Application>
Chris -
For Each Loop in Jdev 10.1.2.17.84
Is there anyway of using a for each loop in Jdev 10.1.2.17.84? I get errors for the standard syntax:
for (int item : numbers) {
System.out.println("Count is: " + item); }
Am i missing something?Okay, i'm on 10.1.3 now and the syntax:
for (int item : numbers) {
System.out.println("Count is: " + item); }
still doesn't work. What am I missing now?
On compile I'm getting:
Error(41,23): ; expected
for the line with for (int item : numbers) { -
"for each" loop - under the hood question
Question about the for each loop. Is it optomized? I think this is a poor use of memory management -
for (int i = 0; i < stop; i++) {
Object obj = new Object();
doSomething(obj);
}And this is the ideal, using the same object -
Object obj = new Object();
for (int i = 0; i < stop; i++) {
doSomething(obj);
}So underneath the hood, which is the for each loop comparable to? I love the syntax, it's very clean-looking in the code, but at the same time I don't want to hurt performance.Question about the for each loop. Is it optomized? I
think this is a poor use of memory management -
for (int i = 0; i < stop; i++) {
Object obj = new Object();
doSomething(obj);
}And this is the ideal, using the same object -
Object obj = new Object();
for (int i = 0; i < stop; i++) {
doSomething(obj);
}So underneath the hood, which is the for each loop
comparable to? I love the syntax, it's very
clean-looking in the code, but at the same time I
don't want to hurt performance.That depends on YOU. You CANNOT write a for-each loop for the code you provided. A for-each loop requires an Iterable. (I think that's what it requires--it at least requires something to iterate over, not just an index variable as you have.)
Consider the following, however:
Object o1 = new Object();
for (Foo foo : fooList) {
Object o2 = new Object();
foo.doStuff(o1, o2);
} It will be equivalent to this:Object o1 = new Object();
for (Iterator iter = foo.iterator(); iter.hasNext();) {
Foo foo = (Foo)iter.next();
Object o2 = new Object();
foo.doStuf(o1, o2);
} How could it be any different? It has to keep the behvior of the "old fashioned" iteration. -
Write the syntax for declaring table control in dialog programming?
1) Write the syntax for declaring table control in dialog programming?
2) Write the syntax to call a selection screen in a modal dialog box?hi,
check this code for table control.
DIALOG PROGRAMMING
TABLE CONTROL
IN SE51
PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
LOOP AT ITVBAK WITH CONTROL TABCTRL. ## TABLE CONTROL NAME
ENDLOOP.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0100.
LOOP AT ITVBAK.
ENDLOOP.
IN PAI FLOW LOGIC
PROGRAM YMODULE_PR4 .
TABLES : KNA1, VBAK.
DATA : BEGIN OF ITVBAK OCCURS 0,
VBELN LIKE VBAK-VBELN,
ERDAT LIKE VBAK-ERDAT,
ERNAM LIKE VBAK-ERNAM,
NETWR LIKE VBAK-NETWR,
END OF ITVBAK.
CONTROLS : TABCTRL TYPE TABLEVIEW USING SCREEN '0100'.
TO ACTIVATE SCROLL BAR
*& Module USER_COMMAND_0100 INPUT
text
MODULE USER_COMMAND_0100 INPUT.
CASE SY-UCOMM.
WHEN 'EXIT'.
LEAVE PROGRAM.
WHEN SPACE.
SELECT VBELN ERDAT ERNAM NETWR
FROM VBAK
INTO TABLE ITVBAK
WHERE KUNNR = KNA1-KUNNR.
TABCTRL-LINES = SY-DBCNT.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Module STATUS_0100 OUTPUT
text
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_0100 OUTPUT -
Code to write syntax for JOB submit ( Please answer ASAP)
Hi,
I need sytax to submit a job
Right now I am using this code to send 4 parameters.
I need to send these 4 in a structure.
submit Ztestjob USER sy-uname
via job p_jobnm
number p_jobcount
with afko-rsnum eq afko-rsnum
with aufnr_d eq aufnr_d
with sernr_d eq sernr_d
with p_lmnga eq p_lmnga
AND RETURN.
So I have to pass a structure of values into the BGprogram through a submit and do a couple of loops in the BGPROGRAM.
I need the syntax for submit .
I also need to know how to catch the structure with values in the BGPROGRAM.
Anyone please answer ASAP
Message was edited by:
ramana peddu
Message was edited by:
ramana pedduHi,
<u>SUBMIT</u>
Calls an executable program of type 1.
Syntax
SUBMIT <rep> [AND RETURN] [VIA SELECTION-SCREEN]
[USING SELECTION-SET <var>]
[WITH <sel> <criterion>]
[WITH FREE SELECTIONS <freesel>]
[WITH SELECTION-TABLE <rspar>]
[LINE-SIZE <width>]
[LINE-COUNT <length>].
Calls the program <rep>. If you omit the AND RETURN addition, the current program is terminated. Otherwise, the data from the current program is retained, and processing returns to the calling program when <rep> has finished running. The other additions control the selection screen and set attributes of the default list in the called program.
Regards,
Bhaskar -
Usage of for-each loop inside another for-each loop
Hi All,
I have tried using a for-each loop inside another for-each loop as given below.
<?for-each:G_1?>
<Customer Details>
<?for-each:G_2?>
<Address>
<?end for-each?>
<?end for-each?>
Its not getting inside the second loop.I have referred this link
Re: Loop Question but it didn't help me much.Please let me know if am going wrong somewhere.
Regards,
Sudeep.Sudeep,
The syntax of the for-each statements looks oke. but you have omitted some question marks after the < and before the >.
Furhermore, there cannot be spaces in XML element names. So, "Customer Details" won't work. Change it to something like: "Customer_Details". Also be reminded that the element names are case-sensitive.
try this:
<?for-each:G_1?>
<?Customer_Details?>
<?for-each:G_2?>
<?Address?>
<?end for-each?>
<?end for-each?>
Regards,
Kevin -
Highest speed for a loop in the microprocessor of my CRIO?
Hello:
Im trying to develop a control system for an inverter with with my CRIO 9022, the speed of my system is 10 kHz(the switching frequency for the inverter is 10 kHz).
Im trying to develop the controller using the microprocesor, but I was reading that the highest speed achievable for a loop in the microprocessor is around 1 Khz, is this true?
If is it, how can I develop a control with a loop of 10 Khz? this speed is only achievable using the FPGA?
Thanks a lot!
RegardsSorry for dont attach the subVI, but the calculation that I perform inside are not diffcult, the first one is only aritmetic calculations and the second one is a PID (I attach them).
Maybe I can try to move them to the FPGA, but would be very tedious because I need huge times for compile and if I want to make any change will be very more difficult.
Do you think that the processor can not carry out these loop a higher speed than 400 Hz?
Thanks
Attachments:
SubVI1.PNG 50 KB
SubVI2(PID).PNG 81 KB -
Creating new 'category/index' for apple loops in logic
As well as the standard apple loops, I currently have an additional apple loops jampack & a number of self-made apple loops.
These have been indexed automatically, & can be referenced via the drop-down on the top right of the loop browser as 'jampack' & 'my loops' respectively.
I've just bought a 3rd party dvd of apple loops, & would like to be able to reference these via the same kind of category in the loopbrowser drop down, however, the 3rd party DVD has no 'installer' like the official jampack, but instead just has folders of 'apple-loopyfied' AIFFs to drop in the loop browser.
I assume if this is the case they will appear by default under 'my loops', which isn't ideal - is there a way I can manually create another category(/folder?) for these loops which I can reference via Logic's loop browser drop-down?
Any help appreciated
Adamok, still stuck on this but have found the following from page 61 on 'new in logic 7.2'
http://manuals.info.apple.com/en/NewFeatures_in_Logic_Pro7.2.pdf
'To keep things tidy, the loop browser offers advanced loop management tools, the jam pack management drop-down allows you to limit the display to loops from a specific jam pack, or other folder' .....then....describing an option from the pull-down, 'vendor x - choose to play loops from a specific third party vendor'
- this looks perfect for what i want to do, but i assume a vendor must include certain data/meta-data in their loops for this indexing to work & display under vendor x as a dropdown, how do i know if the dvd I have bought will have this? hmmmm.... -
How to get the last error for while loop?
How to get the last error for while loop? I just want transfer the last error for while loop, but the program use the shift register shift all error every cycle.
What do you mean by "get" and "transfer"?
If the shift register is not what you want, use a plan tunnel instead.
Typically, programmers are interested in the first, not last, error.
Can you show us your code so we have a better idea what you are trying to?
LabVIEW Champion . Do more with less code and in less time . -
Syntax for using a variable in an equation.
Hi all,
Simple question here. What is tha appropriate syntax for using a variable in a calculation equation. Specifically, I am taking an established curve fitting equation from my channels and trying to calculate it over a lineargenerated data set to extend the curve beyond the original data sample. Here is the small portion of script I have that will not work. Thanks for any help.
dim a,b,c
a = Data.Root.ChannelGroups(5).Channels("air consumption formula").Properties("ResultApprAnsatzCoef1").Value
b = Data.Root.ChannelGroups(5).Channels("air consumption formula").Properties("ResultApprAnsatzCoef2").Value
c = Data.Root.ChannelGroups(5).Channels("air consumption formula").Properties("ResultApprAnsatzCoef3").Value
Call Calculate("Ch(""[5]/Air Consumption LG"")= ""a"" + Ch(""[5]/LinearGenerated"")*""b""+""c""*ch(""[5]/LinearGenerated"")^2")Hi Gloorious,
I am using diadem script. In my example above, for the equation, if I substitue a,b,and c with numerical values, the script runs just fine and the formula executes as desired. Is there a way to place the variables there instead as I have tried to do (I was hoping it was just a syntax issue) or do I have to approach it a completely different way?
This script will execute just fine:
Call Calculate("Ch(""[5]/Air Consumption LG"")= 4 + Ch(""[5]/LinearGenerated"")*5+6*ch(""[5]/LinearGenerated"")^2")
but this will not:
dim a,b,c
a = Data.Root.ChannelGroups(5).Channels("air consumption formula").Properties("ResultApprAnsatzCoef1").Value
b = Data.Root.ChannelGroups(5).Channels("air consumption formula").Properties("ResultApprAnsatzCoef2").Value
c = Data.Root.ChannelGroups(5).Channels("air consumption formula").Properties("ResultApprAnsatzCoef3").Value
Call Calculate("Ch(""[5]/Air Consumption LG"")= ""a"" + Ch(""[5]/LinearGenerated"")*""b""+""c""*ch(""[5]/LinearGenerated"")^2") -
How to use for each loop in XSLT when my source is a multilayout file and db
How do I use a for each loop in XSLT when my source is multilayout file and db .
My multilayout file is basically contain 2 kind of data one for employee and another for dependent.
Now my requirement is I want to read each line of data whether it is it is employee or dependent do a join with db and write it in my target file.
eg : File content
1 RichaKumari 311289 TCS INDIA
2 KiarnKumar 456782 BRO RichaKumari 311289 INDIA
2 Ravi 456882 BRO RichaKumari 311289 INDIA
eg : db Content
311289 RichaKumari TCS INDIA Bangalore [email protected]
Now in Final File I need something like this :
1 RichaKumari 311289 TCS INDIA
2 KiarnKumar RichaKumari 311289 TCS INDIA
2 Ravi RichaKumari 311289 TCS INDIA
here 1 and 2 are the identifier which will decide which layout to follow .Hi,
I think you'll need two nested for-each's... Something like...
<xsl:for-each select="$root/row[layout = 1]">
<xsl:variable name="employee" select="."/>
... write employee ...
<xsl:for-each select="$root/row[layout = 2 and dependentid = $employee/id]">
... write dependent ...
</xsl:for-each>
</xsl:for-each>
Cheers,
Vlad -
Syntax for Evaluate function in OBIEE
Hi
I have browsed through the docs but couldn't find syntax for Evaluate function. Could someone pass me the full syntax and if possible a helpful example against essbase.
ThanksHi
definitely
syntax:- EVAULATE('your db function(%1,%2)', parameter list)
here %1 and %2 are the no.of parameters (columns or may constant values) to be passed for the db-function
if you have 3 parameters then you need to use %3 also.. means the columns to be passed.
following exapmples are for ORACLE db,
ex1: EVALUATE('upper(%1)', 'kishore kumar') gives the result as -> KISHORE KUMAR
ex2: EVALUATE('upper(%1)', 'Markets.Region') here Markets.Region is column.
you also can call the user-defined functions through evaulate
EVALUATE('functioname(%1,%2), column1, column2)
the above function has 2 parameters to be inputted
Thanks & Regards
Kishore Guggilla
Edited by: Kishore Guggilla on Jan 16, 2009 11:00 PM -
SQL Syntax for hour/date range in Query
Hi
I am trying to set up an query for sales order documents procesed in the last 30 minutes to be set as an alert to be run every 30 minutes to the sales manager. I am having difficulty getting the syntax for the last 30 minutes
Any suggestions?
Davidhi,
I'm not sure query is correct,but u can modify it futher to get correct one.
SELECT T0.DocNum, T0.DocDate, T0.CardName, T0.DocTotal FROM ORDR T0 WHERE DateDiff(dd, T0.DocDate ,getdate()) = 0 and
DateDiff(Minute,T0.DocTime,' ') <= 30
Jeyakanthan -
FAGLL03 : Submit syntax for dynamic selections
Hi Experts,
My z report contains following fields in selction screen.
1 . G/ L account
2. Comapny code
3. posting date
4. document type
5. layout
In my z report i used following syntax for passing selection screen values to standard program and getting data.
SUBMIT FAGL_ACCOUNT_ITEMS_GL
WITH SD_SAKNR IN S_SAKNR
WITH SD_BUKRS IN S_BUKRS
WITH X_OPSEL EQ ' '
WITH X_CLSEL EQ ' '
WITH X_AISEL EQ 'X'
WITH SO_BUDAT IN S_BUDAT
WITH PA_VARI EQ P_VAR
EXPORTING LIST TO MEMORY
AND RETURN.
The above syntax is not working for dynamic selection field ( document type ), entire document types data is fetching from standard program. I want to fetch document type data based on my z report selection values for document type field.
Expect for document type field , submit syntax is working.
kindly provide submit syntax for my above requirement .
Any suggestions from experts....
thanks & regards,
Hari priya
Edited by: Hari Priya on Aug 24, 2009 4:33 PMHi,
Try like this.
call function 'RS_REFRESH_FROM_SELECTOPTIONS'
exporting
curr_report = 'FAGL_ACCOUNT_ITEMS_GL'
tables
selection_table = i_sel[].
Fill your profit center values in i_sel
Submit FAGL_ACCOUNT_ITEMS_GL with selection-table i_sel and return
WITH FREE SELECTIONS TEXPR AND RETURN
Regards,
Shamma
Maybe you are looking for
-
Assigning a value to the String array - geting exception
Hi, All I'm trying to do is String[] appName = null; appName[0] = "all"; This is throwing a Null Pointer Exception!
-
Error while invoking secure web service.
Hi, I am trying to access a secure web service through a simple BPEL process in SOA Suite 11g. When I test it through enterprise manager I am getting the following error. Since it's a secured websecure i set the WS policy(oracle/wss_username_token_cl
-
I want to take the photos from my old iphone 5 that is backed up on my itunes and but them on icloud and onto iphoto. Any help?
-
How to increase render speed in premiere pro
Hey Everyone, Is there a way to speed up the render time in premiere pro? I do realize on my mac the processor isn't the fastest. I have 8 gigs of ram and But, I have all other programs closed, I only have premiere running and I don't have a lot
-
Condition type of zero amount to do MIRO
Dear Experts, If the condition type is zero amount in PO, can it occur in MIRO? I need to add value of this condition type during MIRO. Please advises. Thanks & Best Regards