Use the condition in flex
Hello
I need to use itemrender or something like that to show a value of GridColumn in a color different corre its value
< s:GridColumn width = "120" dataField = "email_active" headerText = "E-mail active" >
< s:itemRenderer >
< fx:Component >
< s:GridItemRenderer >
< s:Label backgroundColor = "{data.email_active == 1?" #00ff00 ":"#FF0000"}" / > "
< / s:GridItemRenderer >
< / fx:Component >
< / s:itemRenderer >
< / s:GridColumn >
email_active: is a field of a table of my database.
the database is downloaded in datagrid using a php and copy the following code:
< s:AsyncListView id = list = "{getUserResult.lastResult}" / "UserAsyn" >
I suggest using a separate GridItemRenderer and not an embeded in the GridColumn tag.
First value label, is that the size of the length of the data of this element, thus affecting the background color will not be for the label and not the whole of the cell.
Instead of changing the label, as a rectangle graphic element, then set it to the width and height of the cell before you can set the background color according to the data.
Second reason is to avoid the question of trying to put a color value of string to a uint value.
I created and example for something similar, here is the Source view .
Tags: Flex
Similar Questions
-
How to use the conditional and made mandatory
Hello
I need to use the conditional and made mandatory something jspx page. Following line gives an error:
rendered = "#{Bindings.type.inputValue! = 'abc' & & bindings.proofId.inputValue! ="} ' "
Error: Name expected instead of &.
What is the right way?
Note: I use Jdev 10.1.3Boring, but you can use & #38; & #38; (remove the space after the &) for this.
Timo
Published by: Timo Hahn on 24.11.2009 08:46
Published by: Timo Hahn on 24.11.2009 08:48
-
How to use the funds application Flex with java
Hello
I've seen a lot of tutorials on using web application with java flex but you will not see even a tutorial for the application Office Flex with java. If anyone have pls send the link.
is it possible to create java application and desktop application without using application server?
Thank you.
Hello
Please see the link below.
http://forums.Adobe.com/thread/601342?decorator=print&displayFullThread=true
It could anser your query.
Anser another is "Merapi project" - This allows you to connect to the local application of Java of the AIR application.
-
How to use the conditions where there are more than two options
I have a blade that collects information from the user and then makes decisions based on the values entered. On a slide I use the widget drop-down list and list of"basic", "Intermediate" and "Advanced". I hoped to do is use the Coditional Structure as follows:
1. If the Basic was selected slide goto BasicQuickQuiz
2. If the intermediary has been selected goto slide IntermediateQuickQuiz
3. If Advanced was selected slide goto AdvancedQuick Quiz
I can make this work for Basic or intermediate, but I don't see how (or even if) I have a multi level if statement.
My work is about:
1. a button added logic:
So basic, then got otherwise BasicQuickQuiz goto IntermediateQuickQuiz
2. on the Enter slide on IntermediateQuickQuiz event:
If the intermediary, then keep, otherwise goto slide AdvancedQuick Quiz
It works, but it seems awkward - y at - it another way that this goal could be achieved?
TimWhat I was hoping to see was the ability to create several Else If statements within the only condition. I've changed it now to add two conditional statements, one after the other, but still find this unscrupulous feature.
I will record a feature request to add a Select Case block / Switch style fuction to this group.
However, since it is new I can live with the workflow (for this version of Cp anyway!)Tim
-
Using the conditional case statement. !
Hello Forum members.
I have a table with order of stores as well as the order dates and other information. I have a requirement to write a request for nominations for the roll of the order according to the below mentioned logic.
Name1 = Initial order date and next order within 7 days of the original order date then its considered R1
Name2 = next activity within 7 seven on the ord_id even of its R1 to date, this is going on as increases in order to ord_no simple or even dates
.
.
Final RN is Count (Rn)
RN %--Count(Rn) / Count Distinct (ord_no) * 100
Sample data output:
ORD_DATE ORD_ID 1_of_x 2_of_x 3_of_x 4_of_x 5_of_x 6_of_x Final RnX RN % 10/07/2013 10095V1 1 0 0 0 0 0 03/08/2013 10095V1 1 0 0 0 0 0 08/08/2013 10095V1 0 1 0 0 0 0 12/08/2013 10095V1 0 0 1 0 0 0 06/09/2013 10095V1 1 0 0 0 0 0 DDL:
create the table xx_ord_noms
(
ord_no varchar (30),
ord_date date,
ord_id varchar2 (30)
);
Sample data:INSERT INTO xx_ord_noms (ord_no, ord_date ord_id) VALUES ('10091', TO_DATE('07/10/2013','MM/DD/YYYY'), ' 10091');
INSERT INTO xx_ord_noms (ord_no, ord_date ord_id) VALUES ('10091', TO_DATE('08/03/2013','MM/DD/YYYY'), ' 10091');
INSERT INTO xx_ord_noms (ord_no, ord_date ord_id) VALUES ('10091', TO_DATE('08/08/2013','MM/DD/YYYY'), ' 10091');
INSERT INTO xx_ord_noms (ord_no, ord_date ord_id) VALUES ('10091', TO_DATE('08/12/2013','MM/DD/YYYY'), ' 10091');
INSERT INTO xx_ord_noms (ord_no, ord_date ord_id) VALUES ('10091', TO_DATE('09/06/2013','MM/DD/YYYY'), ' 10091');
commit;
I was intending to do something like that, but I don't get the logic for R1... R7
Select ord_no,
ord_date,
ord_id,
prev_dt,
(to_date (ord_date) - to_date (prev_dt)) data_diff,.
case
When prev_dt is null or
(to_date (ord_date) - to_date (prev_dt)) < 7 then
'R1 '.
When (to_date (ord_date) - to_date (prev_dt)) > 7 THEN
"R2".
ON THE OTHER
nULL value
END
FROM (select a.*,
(SELECT MAX (tmp2.ord_date)
OF xx_ord_noms tmp2
WHERE a.ord_id = tmp2.ord_id
AND tmp2.ord_date < a.ord_date) prev_dt
of the xx_ord_noms one).
Could someone give advise me or suggestions on how we can achieve the desired results.
Thanks in advance.
LAG and LEAD are good when you want to look forward or back up a fixed number of lines, but in this case you do not know how far behind, you will need to go.
I have a solution. It calculates the Royal Navy in number, not a position of the column, but you can turn it with instructions BOX if you want to. I did it in two steps:
First of all, I calculated the Royal Navy by comparing the date of the current and previous line. To do this, I have generated a line number using row_number() Analytics:
Select ord_no,
ord_date,
ord_id,
numrow
Rn
of xx_ord_noms
model
partition (ord_no)
dimension (row_number() over (partition by order of ord_no of ord_date) numrow)
measures (ord_date 0 Rn, ord_id)
update rules
(
RN [1] = 1,
RN [ANY] BOX when trunc (ord_date [cv ()]) = - trunc (ord_date [cv () - 1])< 7="" then="" rn[cv()-1]+1="" else="" 1="">
)
ORD_DATE ORD_ID NUMROW RN ORD_NO
---------- -------------------- ---------- ---------- ----------
10091 10 July 2013 00:00:00 10091 1 1
10091 3 August 2013 00:00:00 10091 2 1
10091 August 8, 2013 00:00:00 10091 3 2
10091 12 August 2013 00:00:00 10091 4 3
10091 2013 - Sep - 06 00:00:00 10091 5 1
Then I needed to identify all the lines of each series. I defined firstDt as the date of the first item in the series:
firstDt [1] = ord_date [cv ()]
firstDt [ANY] = CASE when rn [cv ()] = 1 then ord_date [cv ()] to another firstDt [cv () - 1] end
With that, the FinalRn is just a max (rn) Analytics (firstDt score)
I'm not clear on what R % is. Your descriptions are not clear and I think they are incompatible.
Select ord_no, ord_date ord_id
, Rn, finalRn, 100 * finalRn/totCnt PCT1, 100 * totRn/totCnt PCT2
totRn
of xx_ord_noms
model
partition (ord_no)
dimension (row_number() over (partition by order of ord_no of ord_date) numrow)
measures (ord_date, 0 Rn, ord_id, to_date (null) firstDt, 0 finalRn, 0 totRn, 0 totCnt)
upsert rules all the
(
RN [1] = 1
RN [ANY] BOX when trunc (ord_date [cv ()]) = - trunc (ord_date [cv () - 1])< 7="" then="" rn[cv()-1]+1="" else="" 1="">
firstDt [1] = ord_date [cv ()]
firstDt [ANY] = CASE when rn [cv ()] = 1 then ord_date [cv ()] to another firstDt [cv () - 1] end
[ANY] finalRn = max (rn) on (firstDt score)
totCnt [ANY] = count (*) over()
, totRn [ANY] = count (case when rn = 1 then 1 other trailing null))
)
ORD_DATE ORD_ID RN PCT1 PCT2 TOTRN FINALRN ORD_NO
---------- -------------------- ---------- ---------- ---------- ---------- ---------- ----------
10091 10 July 2013 00:00:00 10091 1 1 20 60 3
10091 3 August 2013 00:00:00 10091 1 3 60 60 3
10091 August 8, 2013 00:00:00 10091 2 3 60 60 3
10091 12 August 2013 00:00:00 10091 3 3 60 60 3
10091 2013 - Sep - 06 00:00:00 10091 1 1 20 60 3
Kind regards
David
-
Using the conditional to determine the Select statement
I don't know if anyone knows if I can do that, but I try to use a factor based on a value on what query to run...
Something like:
ORDECODE('INBOUND', 'INBOUND', SELECT 'I' FROM DUAL, 'OUTBOUND', SELECT 'O' FROM DUAL, 'BOTH', SELECT 'B' FROM DUAL);
Is it still possible?SELECT * FROM ( CASE WHEN '<~S~>' = 'INBOUND' THEN SELECT 'INBOUND' FROM DUAL WHEN '<~S~>' = 'OUTBOUND' THEN SELECT 'OUTBOUND' FROM DUAL ELSE SELECT 'BOTH' FROM DUAL END ) AllValues
Thank you
Andy
Published by: 847975 on September 28, 2011 11:02Scalar subqueries should appear in square brackets, for example
select case dummy when 'X' then (select 'First example' from dual) when 'Y' then (select 'Second example' from dual) end as demo from dual;
or if you prefer the old syntax DECODE,
select decode(dummy, 'X', (select 'First example' from dual), 'Y', (select 'Second example' from dual) ) as demo from dual;
-
Thanks VetSrini, I know how to generate the first half of this production (the names by commas).
Guidance on how I would go about generating the other half? IE: print a string called 'New' and add the names in a specific order, if the 'New' column Y as shown in the below desired output (formatting is messed up...) New: C2 must be displayed in the client and no column as it appears below).
Customer country
USA C1, C6
New: C2
Canada C3
New: C4, C5
XML:
<? XML version = "1.0" encoding = "UTF-8" standalone = "yes"? >
< root xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" >
< row >
< country > USA < / country >
C1 of < customer > < / customer >
< New > N < / New >
< / row >
< row >
< country > USA < / country >
C2 < customer > < / customer >
Y < new > < / New >
< / row >
< row >
< country > USA < / country >
C6 < customer > < / customer >
< New > N < / New >
< / row >
< row >
< country > Canada < / country >
C3 < customer > < / customer >
< New > N < / New >
< / row >
< row >
< country > Canada < / country >
C4 < customer > < / customer >
Y < new > < / New >
< / row >
< row >
< country > Canada < / country >
C5 < customer > < / customer >
Y < new > < / New >
< / row >
< / root >I sent you again, with modified solution.
,
-
How to use the Gumbo RTL support in Flex Builder 3
Hi all
I want to use the new sdk Flex with FLEX builder 3. I have already installed the SDK software and it works, but what components should I use for the right to left support?
Lior
Gordon Smith
Adobe Flex SDK team
-
PL/SQL parameter in fusion by using the clause
Hi all
I need to create a procedure where I use the Merge clause. However, by using the condition, I have to put value user_define (V_LOCALE_CD). This value checks table of locale and then to make a match with table of flex_labels_test.
There is no specific requirement and I don't have the test data.
My only question how do I use user set the value using the condition. Here is the procedure I created as follows.
create or replace the PROCEDURE UPSERT_FLEX_LABEL_3 (V_LOCALE_CD IN VARCHAR2,
V_VALUE IN VARCHAR2,
V_FIELDVALUE IN VARCHAR2,
V_FIELDNAME IN VARCHAR2,
V_TABLENAME IN VARCHAR2,
N_FLEX_TYPE NUMBER,
V_COLOR IN VARCHAR2 DEFAULT NULL,
N_IMAGE_LIBRARY_ID IN THE NUMBER DEFAULT NULL,
N_HIERARCHY_ID IN DEFAULT NUMBER 5237260000000000001,
N_IS_INHERITED IN THE DEFAULT NUMBER 1)
AS
L_COUNT NUMBER;
NUMBER OF N_LOCALE_ID;
NUMBER OF NN_HIERARCHY_ID: = 5237260000000000001;
NUMBER OF NN_IS_INHERITED: = 1;
NUMBER OF INSERTCOUNT;
UPDATECOUNT NUMBER;
NUMBER OF ERR_CODE;
ERR_MSG VARCHAR2 (100);
BEGIN
-SELECT ID IN N_LOCALE_ID OF PLACES WHERE LOCALE_CD = V_LOCALE_CD;
/ * IT WILL CHECK DUPLICATES, IF THEY ARE PRESENT, THEN IT WILL UPDATE RECORD ELSE IT WILL INSERT A NEW RECORD * /.
BEGIN
Merge into fl flex_labels_test
using (select locale id where locale_cd = V_LOCALE_CD) L
on (l.id = fl.locale_id)
When matched then
GAME UPDATE
HIERARCHY_ID = NVL (N_HIERARCHY_ID, NN_HIERARCHY_ID),
IS_INHERITED = NVL (N_IS_INHERITED, NN_IS_INHERITED),
FLEX_TYPE = N_FLEX_TYPE,
VALUE = V_VALUE,
IMAGE_LIBRARY_ID = N_IMAGE_LIBRARY_ID,
COLOR = V_COLOR
WHERE TABLENAME = V_TABLENAME
AND FIELDNAME = V_FIELDNAME
AND FIELDVALUE = V_FIELDVALUE
When not matched then
INSERT (HIERARCHY_ID, ID_PARAMETRES_REGIONAUX, IS_INHERITED, FLEX_TYPE, TABLENAME, FIELDNAME, FIELDVALUE, VALUE, IMAGE_LIBRARY_ID, COLOR)
VALUES (NVL (N_HIERARCHY_ID, NN_HIERARCHY_ID), N_LOCALE_ID, NVL (N_IS_INHERITED, NN_IS_INHERITED), N_FLEX_TYPE, V_TABLENAME, V_FIELDNAME, V_FIELDVALUE, V_VALUE, N_IMAGE_LIBRARY_ID, V_COLOR);
UPDATECOUNT: = NUMBER OF ROWS SQL %;
EXCEPTION
WHILE OTHERS THEN
ERR_CODE: = SQLCODE;
ERR_MSG: = SUBSTR (SQLERRM, 1, 200);
DBMS_OUTPUT. PUT_LINE ("ERRORS" |) ERR_CODE | ' AND ' | ERR_MSG);
END;
COMMIT;
DBMS_OUTPUT. PUT_LINE ('RECORD INSERTCOUNT =' |) NVL(INSERTCOUNT,0));
DBMS_OUTPUT. PUT_LINE (' UPDATECOUNT RECORD ='|) NVL(UPDATECOUNT,0));
EXCEPTION
WHEN NO_DATA_FOUND THEN
RAISE_APPLICATION_ERROR (-20001, "ID NOT FOUND REGIONAL SETTINGS");
END;
I guess that's what I was looking for. Thank you guys for your efforts.
-
spend the conditional statements
Hello everyone I've been working on a duty where we created a game of the match. It is for me to find a way to tell the script action what difficulties the game of the user of the game to. There are 3 easy buttons, mediym, hard. Each sets out an increased number of cards say 4 to 8 easy for way etc.
We are supposed to use the conditional switch to do this. My problem is how do you know what button was clicked the switch?
Here's the code so far, he is only set up for the easy right now. It works fine until I tried to set up the switch.
Thanks for any help you might be able to give.
package {}
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.events. *;
import flash.text.TextField;
import flash.utils.Timer;
import flash.utils.getTimer;
import flash.media.Sound;
SerializableAttribute public class Match extends MovieClip {}
var showingCard:Card = null;
const DELAY_TIME = 1000;
public void Match() {}
trace ("Match");
introscreen.btnMenu.btnEasy.addEventListener
addChild (introScreen);
If a card is displayed showingCard refers to it
card otherwise
introScreen.btnMenu.btnEasy.addEventListener (MouseEvent.CLICK, onClickButton);
} / / end of the constructor
function onClickButton(e:MouseEvent):void {}
trace ("onClickButton");
{Switch (e.Target.Level)}
'easy ': case study
layoutCards (2);
break;
}
}
//
function layoutCards(gridSize:int):void {}
trace ("layoutCards");
put gameScreenOnTop
addChild (gameScreen);
creat bridge of the faceValues valid
var Bridge: Array = [];
var lastFrame:int = gridSize * gridSize / 2 + 1;
for (var k: int = 2; k < = lastFrame; k ++) {}
Deck.push (k, k);
}
trace (Deck);
layout maps
for (var i: int = 0; i < gridSize; i ++) {}
for (var j: int = 0; j < gridSize; j ++) {}
trace (i, j);
Map: map of var = new Card();
size
Card.Width = stage.stageWidth/gridSize;
Card.Height = stage.stageHeight/gridSize;
location
Card.x = i * card.width;
Card.y = j * card.height;
important assign a face value, drawn randomly from the deck
card.faceValue = randomInteger (2.19).
card.faceValue = deck.splice (randomInteger (0, deck.length - 1), 1);
Listening
card.addEventListener (MouseEvent.CLICK, onClickCard);
Add
card.gotoAndStop (1)
gameScreen.addChild (card);
} //j
} //i
} / / end of method of positioning cards
makecard start clickable
function onClickCard (e:MouseEvent) {}
trace ("onClickCard");
var clickedCard:Card = (e.target) Card;
Turn the card clicked
clickedCard.visible = false;
Click on the first map in pair
3 cases
1 card clicked is the first in the bet
See the map and remomber it
make it not clickable at the moment
If (showingCard == null) {}
trace ("FirstCard")
clickedCard.gotoAndStop (clickedCard.faceValue); external
showingCard = clickedCard; internal
clickedCard.removeEventListener (MouseEvent.CLICK, onClickCard);
}
2A - click map is a second pair, and friendly the FirstMatch
both take-out
Else if (clickedCard.faceValue == showingCard.faceValue) {}
trace ("match")
gameScreen.removeChild (clickedCard);
gameScreen.removeChild (showingCard);
showingCard = null;
}
2B - clickedCard is second and not a match for the first.
Return both
else {}
clickedCard.gotoAndStop (clickedCard.faceValue);
freeX during a short period of time
addChild (blockScreen);
var: timer = new Timer(DELAY_TIME,1);
timer.addEventListener (TimerEvent.TIMER,
function onTimer(e:Event) {function //annonymus
delay this code
clickedCard.gotoAndStop (1);
showingCard.gotoAndStop (1);
clickable map list
showingCard.addEventListener (MouseEvent.CLICK, onClickCard);
showingCard = null;
addChild (gameScreen);
}
);
Timer.Start ();
}
}
} / / Match class
} / / packages
When I click on the easy button in the swf file I get this message.
ReferenceError: Error #1069: property not found on flash.display.SimpleButton level and there is no default value.
to Match / onClickButton)
The switch statement checks the 'e.target.level' to see which option has been selected, the part level of this being the word "Easy" or anything else. e.Target points to the object that sent the event, which seems to be a SimpleButton object. But a SimpleButton object cannot have the properties created for her as a movieclip can, in order to verify his 'level' property is looking for something that is not normally.
Where assign you the level of ownership, of what object it give you?
(hindsight: don't want to jump on the reaction of Dave.) This meets an ask me if... I always check before submitting a message to see if someone answered while I was devise a response and normally go back on the forum to check... If if I don't post unless there is a marked difference is answers this time I just went back one level and not seen no response, so I thought that none received... it looks like going back to the forum is the right path to follow)
-
show/hide the button with the icon enabled when the condition is met
Hello
I created a B button with an icon of a sign of the green check mark.
It must appear next to another A button when a condition is met.
How can I better get this working B key, without using something else than the APEX.
The condition is that some data has been inserted by clicking A button or simply exist in the database table.
I tried conditional display of point with conditiontype "PL/SQL Expression.
but could not make it work.
TNX to tide me over.
CaraHello
If you use the condition EXISTS (SQL query returns at least one row)?
This could give idea how
http://Apex-SMB.blogspot.com/2009/05/How-to-determine-if-user-can-view-apex.htmlBR, Jari
Published by: jarola 18 November 2009 16:07
Oh,.
I paste the wrong link and can not find more good.
Well anyway in this link is also example to condition EXISTSTo meet this requirement I can add a condition (SQL Exists) to the Report 2 region on Page 2:
It takes something similar and your table selection
-
Is this a bug? HTML is not escaped in the conditional read only LOV page elements
Then test my application for injection HTML filling HTML for each column in my data injected datamodel HTML running when a field only LOV ready, I noticed
I have dynamic LOV in use in my form, so their share, users can select. That sometimes I don't want to make them able to change a value, they chose earlier.
For this reason I condtionalu readonly my LOV. by using the conditional read only an option for the items on the page.
That's when a dynamic LOV made readonly HTML code inside is done instead of escaped
is this a bug or is it intentional?
At least, I think I should be able to choose the behavior.
GeertGeert - Thanks for the info. I think that's not a bug. With the read-only option, it displays the data as it would for a display text (does not save the State) items for which source of HTML element, that is, unescaped. If you want the text escaped by using your dynamic lov query simply use htf.escape_sc:
Select htf.escape_sc ('
data ') d, 1 r of the doubleScott
-
Output system are made up of several conditions by using the If Condition
Hello master. I want to create a system of products composed of several conditions using if conditions. The input of the system is derived from "counting" and the second entry is "O". Entry is in order. Then, the expected results are:
If Y<= 5="" and="" count="">=><= 20,="" the="" result="" is="">=>
If Y<= 5="" and="" 20="">=><30 result="">30>
If Y = outcome 30 C <= 5="" and="" count="">If <= 5="" y="">= 10 and County<= 20,="" the="" result="" is="">=>
If <= 5="" y="">= 10 and 20<30 result="">30>
If <= 5="" y="">= 10 and County > = result 30 CThank you for your attention.
Kind regards
Fajar
Assuming that 'A', 'B' and 'C' are digital issued by a calculation, you can use a node of the formula.
Here is a small example based on your rating (a bit confusing). It can be slightly changed, but it might be a starting point (assuming I understood you, and you're only dealing with the numeric data types simple as described in your example).
The case could just to do this using regular functions of comparison of LabVIEW and data flow.
=>=>=>=> -
Hello
I develop an application that I want to run on the normal systems and in real time using LabVIEW Proffesional Development System 2012 SP1
To control how the application interacts with the user, I created a class that defines the type of user interface behavior that should allow me to have nice dialog boxes when the system is running on a machine windows and no dialog box (or any other friendly code in non-real time) if they sail on a real-time target.
The parent class is the code that suits the actual time and the class of the child is the one with dialog boxes.
To control the class of which it is responsible, I have a structure conditional disable. It works fine when the application is built in an executable or executable file in real time, but the problem arises when I want to use the code during development on the target in real time.
I think that with the application under a target in real time (RT PXI), the proper case of the conditional - disable is enabled for the parent class is used, but the child classes are also listed under dependencies - I pressume it's because they exist on the block diagram in the case of persons disabled conditional turn off the diagram.
This means that I can't deploy the code on the target in real time as it is unhappy with the class of the child code - even if it will never run.
To save the poster my real project, I created an example with a Parent and child class and a flag to disable conditional 'class' to illustrate the problem.
If you run Test.vi, you will see that the child class always gets locked (i.e. is addictive) while running even if it is not called.
So - basically my question is: is what I can do about it or will I enough to disable it with conditionals and simply put the constant to correct class on the block diagram in the tests?
Thanks in advance
John.
I feel your pain. I came across something similar some time back.
Apparently official NOR position is that you have to put a conditional structure of Disable IN EVERY ONE OF YOUR CLASS live. In the Windows screws, you simply have a case of empty disable conditional with the windows code in another case and vice versa on the RT.
I also much prefer the method you describe...
-
Using the page as a condition for interactive report item value
Hello. I add a button named edit in one of the interactive report column. This button should be displayed under certain conditions. Conditions are 1) If the user is Mencis and 2) value of the page called P2_DUMMY is 2. The value of P2_DUMMY is to 2 when a button is clicked. I defined a dynamic action for this. The problem is that I don't know what the condition of being added to the interactive report query.
I tried
CASE WHEN: APP_USER IN ('Mencis"). WHEN BOX: P10_DUMMY = 2 THEN ' < button type = "button" class = "button-default"; ">
< span > edit </span > < / button > ' END I just get errors.
If I just put the condition as
CASE WHEN: APP_USER IN ('Mencis") THEN ' < button type ="button"class ="button-default "; "> < span > edit </span > < / button > ' END
button is displayed in the report. If I add the second condition, all I get is error. I don't know how Add an element value of the page as one of the interactive report conditions. Please help me on this.
Mencis Joe wrote:
Hello. I add a button named edit in one of the interactive report column. This button should be displayed under certain conditions. The conditions are 1) if the user is Mencis and 2) value of the page called P2_DUMMY is 2. The value of P2_DUMMY is set to 2, when a button is clicked. I defined a dynamic action for this. The problem is that I don't know what the condition to be added to the interactive report query.
I tried
CASE WHEN: APP_USER IN ('Mencis"). WHEN BOX: P10_DUMMY = 2 THEN '' END I just get errors.
If I just put the condition as
CASE WHEN: APP_USER end of '' ('Mencis") THEN
the button is displayed in the report. If I add the second condition, all I get is error. I don't know how to add a value to the page element as one of the interactive report conditions. Please help me on this.
Combine the predicates in the CASE expression by using an AND condition:
case when :app_user = 'Mencis' and :p10_dummy = 2 then '' end
Hardcode a condition like the
:app_user = 'Mencis'
is likely to prove problematic for all sorts of reasons, not least including the value of APP_USER is uppercase by default, unless otherwise during authentication.Note that the semicolon and extra double quotes in
are not valid.
Maybe you are looking for
-
The MacBook Air charging problem
The night of the 4, I loaded my MacBook Air as I do every night I come again in November 2016. When I went to pick up on this issue in the morning, he was 100%. Use it for most of the day, play music and download of Grey. Then when I went to charge i
-
Satellite A200 - cannot use Vista after the recovery of the product
Hello. I hope someone can help me with the following... This week I had various issues with which follows my laptop a Vista update that system restore did not fix, so I decided to go for a full recovery of product (which I have a complete backup of a
-
PCI-7334 with windows 7 possible?
Hello The specification says that the PCI-7334 is for windows NT / Windows 2000/XP, is it possible to work in windows 7 or vista? I want to give it a try. Thank you!
-
dll from System 32 error code (0 x 300000030)
dll from System 32 error code (0 x 300000030)
-
I'm a big gamer. I have a new computer that is 64-bit. My old computer was 32-bit. I have problems on their site to download games. Help!