Conditional display of the DataGrids
HelloI use Cairngorm architecture in my application. My application analyzes an XML file and generates the datagrids based on tags in the XML file (No. tags in XML may vary). The application has views different (mxml files) that contain different datagrids corresponding to different tags.
I have binded "visible property" of those datagrids to the logical XML for analysis document that is if the tag is found in the XML file and then set the visible property of the datagrid true, otherwise set it as false.
The logic above works fine except that it leaves empty displayed between the two datagrids (for the invisible datagrids that correspond to the missing tags in the XML file).
Can someone suggest me a better way to handle this scenario?
Thank you
sentiboy
In addition to the visible set to false, do not forget also affect includeInLayout false, so invisible DataGrid is not considered in the layout.
Tags: Flex
Similar Questions
-
Interactive report, conditional display of the column binding
Hello
We have obligation to disable editing in case this field is 1 (1 = closed).
Is it possible to disable it on interactive report.
-case when status = 1 link in the column should be disabled (not visible) in order to prevent future changes on the payroll.
SELECT payroll_no, status
OF hr_payroll
ORDER BY payroll_no DESC;
I tried the link below, but it does not work in my case.
Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
Request Express 4.2.2.00.11
Thank you in advance,
Best regards, FM
Status of the INCIDENT WHEN 'ACTIVE' = then
'
OTHER END null deactivate_employee.Of
EMPLOYEES
What exactly is the error you get? What HTML is displayed in the HTML source code?
Just by looking at it, I would say that you need to remove the "/" before the f? p
Don't forget not this way could cause problems if you start using the checksum, then you might want to look at the use of APEX_UTIL. PREPARE_URL to create your URL.
-
Conditional display in the text box based on the calculated value
Hello
I have radio buttons that each have a numerical value. For example = 1 A = 2 C = 0. In the example below, the total is equal to 5.
The sum is displayed at the bottom of the document and is passed to another text box:
Instead of '5' displayed in the text box on the right, it should display a "Control" Word like this:
The displayed word is based on the totals through this range:
1-2 = 'absorbing '.
3-4 = 'practitioner '.
5 to 6 = "control".
The script I used to pass the value from the left to the right text box in the chart above is:
name of the field to text box;
var cTextBox = 'Cabinet Talent strategy knowledge - total';
get the value of the field with the name in cTextBox;
var sTextBox = this.getField ("cTextBox") .value;
Set the value of this field;
Event.Value = sTextBox;
That I need to add to this script to show one of the words, such as "control" above?
I am a complete novice to scripting. I found the above script online and somehow got it to work.
I thank very much for any help or pointers, you can provide.
Best regards
Sorry, there were some errors in the code that I provided above. Try this:
If (sTextBox > = 1 & sTextBox)<= 2)="">=>
Event.Value = "absorbing";
} ElseIf (sTextBox > = 3 & sTextBox)<= 4)="">=>
Event.Value = "practitioner";
} ElseIf (sTextBox > = 5 & sTextBox)<= 6)="">=>
Event.Value = "master";
} else {}
Event.Value = "";
}
If it still does not respond, you can send me the file at [email protected] and I'll check...
-
Conditional display of the region
Hello
I'm under APEX 5.0 on an Oracle 12 c server. I created an application that will be used by several different people in an office. Each person needs to see another part of Contacts when they connect. I also gives users the option to display or not to display various parts on the home page according to their preference. The issue I'm having is trying to control the display of a region where the APP_USER must match a user name AND an element (P7_CONTACTS) is not equal to 'C '. If it's only one condition, I have no problem with displaying or hiding in the region, but with multiple conditions, I can't find a solution. I thought to use the condition EXISTS, but can't get that to work, most likely because I write the incorrect query. I think I'm missing something obvious, but frustration is clouding my ability to think clearly at this point. Any suggestions would be greatly appreciated.
Bob
wisers wrote:
The session state Viewer shows that: p7_contacts is 'C' when the box is checked and null when it is turned off.
Second, the State must be:
:app_user = 'WISERS' and :p7_contacts is null
A null value is not equal to, or does not correspond to anything...
-
Conditional display for the links in the column?
Hi all
For a report, if you configure a column under the 'attributes of column' binding so that the report has a link to turn an edit form, is it possible to set a condition on this somewhere so that only certain LINES has an icon link (or text)?
NTYou can use a case statement?
select case when column1 = 'x' then '' || column2 || '' else column2 end from table
Minh
-
Conditional display for interactive report columns
The APEX 4, one of the options in the conditional displays for the columns was 'PL/SQL function body returning Boolean ". I had a function that returns a Boolean value, and I stuck my function call in the text like this:
return DISPLAY_FIELD (: APP_USER( )
"I don't see" ""PL/SQL function body returning Boolean " option 5 APEX. What should I use to call the same function to hide and show the column in the report?
bobmagan wrote:
Thank you. Using PL/SQL Expression will give best performance? Some of my reports have 80 + items, which must undergo this check.
Probably not what you have seen. Have less well.
And if I use PL/SQl Expression, what is the syntax I need?
this:
DISPLAY_FIELD(:APP_USER) = TRUE
For functions that return a Boolean value, just use the function call:
display_field(:app_user)
-
Problem with image display in a Datagrid loaded from local files
Hello
I'm trying to get (charges from the local file system) images to be displayed in a datagrid control.
the paths are fine, but no images are displayed in the datagrid control (I use a project based Air, AS3).
DataGrid code is:
< mx:DataGrid id = "dg" dataProvider = "{myArrayCollection}" >
< mx:columns >
< mx:DataGridColumn headerText = "Image" width = "100" >
< / mx:DataGridColumn >
< / mx:columns >
< / mx:DataGrid >
The Actionscript code is:
fileStream = new FileStream();
var imageBytes:ByteArray = new ByteArray();
var stream: FileStream = new FileStream();
array7 = new Array();
for (var j: int = 0; j < fileList1.length; j ++)
{
var file1:File = File.desktopDirectory;
File1 = new File();
File1 = File.desktopDirectory.resolvePath ("DG_TEST /" + fileList1 [j] .name);
fileStream = new FileStream();
Stream.Open (File1, FileMode.READ);
stream.readBytes (imageBytes);
Stream.Close ();
array7.push (imageBytes);
array7.push (j);
}
myArrayCollection.source = array7;
I also have: [Bindable] private var myArrayCollection:ArrayCollection = new ArrayCollection();
If I Uncomment the line array7.push (j), the figures show in the DataGrid and seem to leave a line for images?
Any ideas/code (preferably because I am very new to flex/Air) to help me to display the images in the control datagrid would be greatly appreciated.
Thanks in advance,
Guida
You are welcome
don't forget to put the discussion as 'responded' to close
-
Change the first column seen in the datagrid by code?
Hello
Is anyway to change the first column in a DataGrid using action script? I mean, for example, think I have 10 columns, only 3 are seen (0,1,2). I just want to have a button to change the first column view. Thus, for example, if I press it, 1.2, and third column will be those that is displayed in the datagrid control. I need to emulate the same thing that the scroll bar when you drag in a datagrid, but instead of letting the scroll bar does that automatically, I want to "scroll" datagrid manually.
Moreover, is anyway through datagrid children and hide the scrollbar manually?
Thanks in advance,
Aron.
horizontalScrollPolicy
-
How can we change an image programmatically in the DataGrid cell
I have a DataGrid that contains a status icon. I was able to get the initial to display in the DataGrid control status icon. But I'm unable to update the computer. Basically, I need to update the image of a selected line with a "assets/processing.png", ' assets/success.png' or ' assets/failure.png' image. I can't seem to be able to find a way to access the image in the cell need to update/replace it. I tried to give him a property from my collection ArrayCollection data provider, but it does not work. I also tried some how to get a reference to the original image, so it can be replaced, but can not understand how to do such. Here is the code for my DataGrid. I'll be very grateful for any help in this. (I'm relatively new on Flex/ActionScript, but a developer experienced otherwise).
<mx:DataGrid id="myDataGrid" left="0" top="0" bottom="0" right="0" allowMultipleSelection="true" verticalScrollPolicy="on" draggableColumns="false" resizableColumns="false" sortableColumns="false" dataProvider="{myArrayCollection}"> <mx:columns> <mx:DataGridColumn headerText="Name" dataField="name" wordWrap="true" /> <mx:DataGridColumn headerText="Status" dataField="status" width="75" textAlign="center"> <mx:itemRenderer> <mx:Component id="statusComponent"> <mx:HBox id="imageBox" width="100%" height="100%" horizontalAlign="center"> <mx:Image id="statusImage" source="@Embed('assets/pending.png')" width="16" height="16" /> </mx:HBox> </mx:Component> </mx:itemRenderer> </mx:DataGridColumn> </mx:columns> </mx:DataGrid>
The image must be a property of the arrayCollection collection. You can either save the image url as a property of type string, or if you must nest, then you can create an actionscript for each image object in a script (private var image1:Image = Image(); image1.source=@embed...)
Then, in the code that processes the event that causes the image must change, replace the image property of the collection arrayCollection member (s) concerned. Then, at the end of the code for the event, trigger the DataGrid to update using the method myDataGrid.invalidateList ();
Mark
-
Conditional display with several conditions of PL/SQL
Hi guys,.
I want my chart to conditionally display 2 points, 1. a selection list is not null (TO_CHAR(:P7_DB_LIST)! = TO_CHAR (666)) and 2. the maximum value in a query is above a certain amount such as 2000. The idea is that I currently have a graphical display in MB. 40 000 MB is not something big to see so after a certain point, I want to display a graph in GB instead. So I want 2 graph both depends on the LOV is not null, but who need the value of the query less than 2000 and the upper.
I don't know if its possible to have two parolees working together in one conditional display of the APEX (PL/SQL Expression)?
Mike
Damaged by: ATD on August 11, 2009 06:20Mike,
Laughing out loud! Welcome to PL/SQL ;)
Packages are not very difficult to get, but perhaps we should start over with a stored function a package... Here's the gist:
CREATE OR REPLACE FUNCTION size_is_valid ( p_svc_app IN VARCHAR2, p_svc_app_name IN VARCHAR2 ) RETURN BOOLEAN AS CURSOR max_size_cur IS SELECT max(size_mb) AS size_mb FROM [email protected] WHERE svc_app_name = size_is_valid.p_svc_app_name AND svc_name = size_is_valid.p_svc_app; l_max_size_rec MAX_SIZE_CUR%ROWTYPE; l_retval BOOLEAN; BEGIN OPEN max_size_cur; FETCH max_size_cur INTO l_max_size_rec; CLOSE max_size_cur; l_retval := l_max_size_rec.size_mb > 500; RETURN l_retval; END size_is_valid;
Then your new validation of test should be:
BEGIN RETURN size_is_valid(:P7_DB_LIST, :P7_PROJ_LIST); END;
Kind regards
Danhttp://danielmcghan.us
http://sourceforge.NET/projects/tapigenYou can reward this answer by marking as being useful or correct ;-)
-
Textarea conditional display based on the value of the checkbox.
Hi all
I have a question regarding the conditional display of an article based on the value of the checkbox.
I have a checkbox in a region, which is a STATIC LOV:; Y and the text box in the same region. Now I want to show this textarea only if the check box is selected. ??
Please suggest how to achieve this.
Thank you
DC
Hello
I guess that you are 4.2 Apex as you haven't shared the same.
- Create a dynamic Action on change of box which should present the value of the checkbox and update the TextArea element.
- Then continue as conditional Textarea with checkbox value.
BR,
Patrick
-
Conditional display based on the value of line
I have a report table with several lines on it. I need to post a link to another page of user action if a value in the line corresponds to an attribute of the user's role, so they can act on the item. Other display or update the document would not be able to run the link.
The logic of nickname would go something like this:
If user_role = role_this_line_item then
display approval_link
on the other
Hide approval_link
end if
I know how to write pl/sql to return to the display of the correct state of true/false, but I can't find out how to reference the value on the display line. I tried: role_this_line_item, role_this_line_item, #role_this_line_item # and none of them return one value other than false. How to refer to an attribute on the current line of the decision to hide/show correct?
Al
Al Wondra says:
I use V4.2.6 Apex in local installation of Oracle 11 g XE. I tried with IE, Firefox and Chrome. None has the conditional display.
The report is a standard report created using the Apex report wizard. I'm one of the columns (the ID of the line) changing to conditionally a link to a page to data entry. I only need one line at a time to be the active link. No line should have a link, if the user is not the role is required to perform this action.
You have described my question exactly, it seems, that the conditional rendering is applied to the entire column. I need that it is applied to specific lines. Some lines (1) will be the active link. All other lines does not display the link. Is this possible?
If you want the value of the ID to display for each row returned by the report, but only rendered as a link, if the condition is true? The values used in the State come "role_this_line_item" seems to be a value of a column in the report. "User_role" is also a column value?
The simplest option is to modify the column attribute display as for the Standard report columnID column and conditionally generate the link in the report query:
select ... , case when user_role = role_this_line_item then 'where DATA_ENTRY is the 'data entry page' target number or alias of the page.
-
How to trigger a conditional display based on a dynamic Action without submitting the Page
Hello
Using Oracle APEX v4.2 on 11g, I have the following scenario and wanted to take other people on how to accomplish what I'm trying to do, i.e.:
In region 1, I have a select item list page called P1_SELECTION, which contains selections from drop down to the user to choose from the following three: A1, B2 and C3
In region 2, I have two checkbox elements:
P1_CBOX1 I gave a conditional display of ' point value / Expression 1 column! = 2 expression, where Expression 1 = P1_SELECTION and Expression 2 = B2, so P1_SELECTION! = B2
P1_CBOX2 I gave a conditional display of ' value of the point / column Expression 1 = Expression 2 where Expression 1 = P1_SELECTION and Expression 2 = B2, then P1_SELECTION = B2 .
Use of dynamic Action on the evolution of the P1_SELECTION in region 1, how can I trigger the correct display of the checkbox in region 2, with the default view of the region 2 checkbox being P1_CBOX1, without submitting the entire page, just refreshing each of the elements checkbox to trigger the conditional display correct?
For example, on the changes of P1_SELECTION = B2 then entire submission without page, only P1_CBOX2 is presented to the user in other P1_CBOX1 is displayed.
Is this possible?
Thank you.
Tony.
Hi Tony,.
condition your dynamic action on P1_SELECTION with the following condition of javascript: this.triggeringElement.value = "B2".
Add real actions that will show P1_CBOX2 and hide P1_CBOX1
Add false actions and going hide P1_CBOX2 show P1_CBOX1
Set the dynamic actions to fire on Page load
Kind regards
Erik-jan
-
Display of the conditional field of Apex Oracle
Hello
I created two Wizard page in Oracle Apex.
I have a table point and item_detail. For element1, I have a record of detail and item2, I have two detail record.
Step 1: Choose the section that will fall to the bottom of the roll of the order of the day.
On step 2: based on the record number of detail items, I want to display the text on step 2 fields. If item1 is selected in display 1 thenl, textdisplay1, and textfield1 to step 2 step. If item2 is not selected ' will display textfield1, textfield2 to step 2, textdisplay1, textdisplay2.
SQL/pl/sql condition will be: select count (*) in the item_detail where item_id in (select item_id station where nom_element = 'provided to the step 1 "
I want this dynamic ability to display fields or at least to hide textdisplay2, textfield2 based on condition of sql/plsql.
Thank youFields / display items (or hidden) by the result of the 'Condition' selection on the page field specification APEX / point. (You have all the tabs at the top: Identification, UI, grid, Label,..., Condition,...) Condition determines whether the field is displayed. Defaults to '-point not conditional ' but if you click on the drop-down menu, there are different conditions of 30-50. There are, there's NO..., never, always. If you select "PL/SQL function body returning a Boolean", it will add an Expression 1 box in the GUI where you can write a "starting...". End; "block to return TRUE or FALSE for the condition. It display if TRUE is returned, skins, if FALSE is returned. (Someone other chime in here if I missed something.)
It is a VERY characteristic slick of APEX. The only addiitons I could ask would be: positive, negative and "do what I mean".
Howard
-
Image will not be displayed in the column DataGrid on Mac
Hi all
I use the converter to display of image element in one of the columns of the datagrid control. The problem is, when I'm providing the full as - path "/ User/Images/icon.png", image is not rendered. However, when I put this image in the "src/assets" folder and path to as - "assets/icon.png", image is displayed.
Could someone please suggest what goes wrong?
Here is the snippet of code to component converter
Beginning
" < = xmlns:mx mx:Image ' http://www.Adobe.com/2006/MXML "
width = "250".
height = "40".
source = "{data.". Icon} ".
verticalAlign = "middle".
horizontalAlign = "left".
scaleContent = "false".
maintainAspectRatio = "true" / >
End
When data. Icon is "/ User/Images/icon.png": not displayed.
When data. Icon is "assets/icon.png": display.
I guess I need to provide the relative path.
Thank you
D.A.
Try adding file:// to the front of your path: file:///User/Images/icon.png
Maybe you are looking for
-
Safari on MacOS Sierra of freezing any machine
Sierra 10.12 running on an iMac 2009 end with 12 GB of RAM, Safari 10.0. Sites chosen at random, what is happening, including the Apple support site.
-
discount Apple's music does not
Hello, when I connect to unidays, to get the discount student $ 4.99, and share successes he said "to use this feature please, make sure you see the Apple music is selected in the preferences. I checked like 10 times, it has a check mark next to it,
-
Enter the current password HP Mini 110
Hello I went into the same situation as the author of the question. My CNU mini is CNU9386HGR. Waiting for the answer, thank you.
-
Combo eSATA/USB3.0 T510i port: eSATA Cable does not fit
Hello My T510i has a combo eSATA/USB3 port. I guess an eSATA must fit it. But the eSATA cable, I bought does not fit. (It fits into my external hard drive eSATA port, however.) Can you help me with this, please? Thank you very much in advance! Ben
-
machine aligns perfectly - enough pages of test - machine says alignment failed and refuses to print with an occasional exception. HP 'aid' refuses to allow this issue