no selection in the list with custom itemRenderer
Once an itemRenderer custom, consisting of a canvas with image and label, submit to a list control that list loses the ability to choose. the selectable attribute is set to true. There are no managers in the renderer that can eat the event.How can I provide the itemRenderer custom without losing the functionality of the list?
Theoretically, you should avoid using containers as element converters because they are 'heavy' with the functionality you don't need.
Best practice is to extend or to copy and modify ListItemRenderer.as. The source is in the file framework somewhere.
This is not trivial, but it's not rocket science either. The Adobe code is quite clear and well commented.
In addition, google: Alex Harui element converter, for a few examples by a master of Adobe.
Tracy
Tags: Flex
Similar Questions
-
Change the list with Custom MXML itemRenderer DP problem
Hello
I have a list of spark with a custom MXML itemRenderer which has two States.
One or the other is based on a property of data.isTrue, as follows:
override protected function getCurrentRendererState (): String
{
If (Data.isTrue) {return 'TrueState' ;}
Back to 'FalseState ';
}
When data.isTrue is set to true, the TrueState has the value that has a small arrow on the right side.
When the dataProvider is replaced by a new collection, it restores all data correctly, except the image that is always visible when isTrue was true to the previous data set.
To the overview, the arrow disappears.
How can I fix this please?
You may need to add a substitution of data layer that calls invalidateRendererState
-
Select the list with propose pulling the values of %
Hi all
I have a tabular presentation of data app and from views of the choices selected in the 'list of selection with submit' the post, it works very well for the chosen values, when I choose '%' I want to display all existing records in the form of tables, but instead he said: "no data found". How to solve this? Kindly help and advice.
ex:
Query tabular-
Select a, b
table
When a type: POINT
Agenda:
Type: select the list to submit
Named LOV:
Select a d, a r
from table_recherche by 1
Receive your answer.
Thank you and best regards,
SenanaHello
You have to check what is the value returned by the selection list when you select '%' in the select...
There is a null value to display field where you can enter '%' and the return NULL value you enter 0then change your query in a table
Select a, b from table when one like: POINT GOLD: ITEM = 0Kind regards
Shijesh -
Select the list with doSubmit ('SAVE')
Dear members,
Please do not kill me for that matter...
I use APEX 2.1.0.00.39 delivered with XE. What I need is a list of selection within a form region indicating the content of a source LOV which is a column of data. If the select list is replaced by another value, it should initiate a doSubmit ('SAVE').
I tried the list with submit - did not work. I tried to change the STI to a selection list and:
But both times the result I have the same thing: when I change the select list of another element, the form is committed, but after reviewing it, the original of the select list item is selected again...HTML Form Element Attributes: javascript:doSubmit('SAVE');
What I am doing wrong?
Best regards
JohannHi Johann,.
The parameter must be defined:
onchange="javascript:doSubmit('SAVE');"
What are the parameters of complete Source, you have for the item? You use any calculation a process on the question?
Andy
-
Enable / disable fields by selecting from the list
Hey guys,.
How can I make an option like < bool > with a list instead of a checkbox.
Example of work in text QooQees Widget magic. I already asked this developer but got no answer.
This selection in the list turns off the text field:
And if you choose another option that it activates the text field:
No idea how to do this?
Unfortunately, it seems that it is a hole in the documentation, but the
tag in lists also support the disableOptions attribute, similar to the way in which the tag of under the made. You can see an example in the section for its operation. -
Hi all
There is a problem, I'm dealing with my custom page. I am trying to expand the controller with my custom class, but get the error below
oracle.apps.fnd.framework.OAException: could not create Java class: (oracle.apps.xxar.cusstd.createcus.webui.xxArCreCusCO) associated with the area: (ArUtilRN). It is probably because the class name is incorrect or not included in the project.
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1247)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1435)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2848)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1991)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:567)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:455)
If the file is present in the right folder
[webui applmgr@gfs3devapp1] $ pwd
/ opt/oracle/gfs2d/FS1/EBSapps/COMN/java/classes/Oracle/Apps/xxar/cusstd/createcus/WebUI
[webui applmgr@gfs3devapp1] $ ls - ltr
Total 4
-rw - r-. 1 applmgr oinstall 1177 Feb 25 10:17 xxArCreCusCO.class
I have to follow this discussion, but is not help me: https://community.oracle.com/thread/3647610
Please help.
Thanks, Jerome
Hello samia,.
In R12.2.4, you will need to create the jar with custom classes. Please visit the Doc ID 1577661.1
Hope this helps you solve your problem.
-
Select the list with the list of dynamic values with more than 4000 tank of query
Hello
I have no application where users can store SQL queries in a CLOB column. This query is then used to populate the list, select a dynamic element through LOV. Following the code returns the query for dynamic LOV used to populate the select list. It works fine except when the length of the lv_sqlStatement becomes more than 4000 characters. Then application crashes with "ORA-06502: PL/SQL: digital or value error: character string buffer too small" when Select the list item rendering.
Any ideas how to get around this problem? Any help is appreciated. Do not say to them to write shorter than 4000 queries because I can't (it's operational requirements).
DECLARE
lv_sqlStatement end_user_set.sql_statement%type;
BEGIN
lv_sqlStatement: =: P2_SQL_STATEMENT;
return ' select the label, value of (' | lv_sql_statement | t ')
To_char (t.value) if not in (select value from end_user_set_member eusm)
where eusm. EUSRSET_ID = ' | : P2_EUSRSET_ID | ')';
END;I just blogged about this problem and posted a solution. See this announcement:
http://www.deneskubicek.blogspot.de/2013/03/select-list-with-dynamic-lov-and-Ora.html
Denes Kubicek
-------------------------------------------------------------------
http://deneskubicek.blogspot.com/
http://www.Apress.com/9781430235125
http://Apex.Oracle.com/pls/Apex/f?p=31517:1
http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
------------------------------------------------------------------- -
Select the list with a shipment does not save to the database
OK, I have a form with several fields (text, radiobox, selection list, display text). I have one of these lists of selection fill a display in the text field. When I chose a selection of the selection list, she filled the screen in the text field with the correct information but erased all the other information that was the inscription in the other fields. I searched the forum and found that the selection list should be a selection with mailing list and the branch page on itself, which works, but now these 2 fields information is not saved in the database. All other fields are saved, but not both. Anyone know what im missing? Thank you
DeannaHi Deanna,
First the display as a text cannot insert data into the database. It can only display data from database. I guess you do not want the user to enter these areas, and that's why you use display as text field.There is a good way to resolve this situation. Say, you have 3 select list P1_ITEM1, P1_ITEM2, P1_ITEM3 in your page. For the change of P1_ITEM1 the screen Select the list and the LOV type in your query, assuming you want the value to be retrieved from a table. Therefore, type-
Select emp_id, ename from emp;
type the default value and null -1 and display null YESvalue. Make sure that under the type of source, you have the selected with the correct name database column.
for P1_ITEM2 to the section LOV retype your query - i.e.Select mng_id, executive pay where emp_id = NV('P1_ITEM1') or NV ('P1_ITEM1') = 1
Basically, this statement updating the data in the list select second after the first selection. type the default value and null -1 and display null YESvalue. Make sure that under the type of source, you have the selected with the correct name database column.
Do the same for the third. It should work fine.
I hope this helps.
Kind regards
Pascal M
http://Tajuddin.whitepagesbd.com -
Select the list with option key
Has anyone found a way to impliment a Select list that also allows you to enter a value that is not in the list of selection?Hello
Have you tried a popup LOV?
Not perfect, but usable solution.
Concerning
Michael
-
Getting the list of Custom Component ListView
Hello
I'm trying to figure out how to get the 'checked' property of a custom component of QML.
Basically, it's the same as the first example on https://developer.blackberry.com/cascades/documentation/ui/custom_components/index.html
This is a list, with a listItemComponents, whose type: "item" contains a check box and the label.
I have an ActionItem whose job is to take all elements that are enabled and do something.
The ActionItem triggers a C++ code that should get this list.
Problem is, I can't figure out how to get the selected items. I tried the selected() function but it returns empty.
I have to turn this into a multiple selection?
I got so far is the back of GroupModel, after selection, but this does not include anything other than what I fed in the first place. Which makes sense.
There are a lot of similarities between this issue and the other. Should help to my code and comments in this post, I think: http://supportforums.blackberry.com/t5/Cascades-Development/LstItemComponent-doesn-t-track-the-model...
-
Hi all
Is it possible to fill the results in a drop-down list with the name of the entity instances.
for example, I instantiated instances 4 x by the name of the child as part of the entity of children.
Then on a separate screen, I want a drop-down list to be filled with the name of the child.HARRY BARRY SALLY LARRY
for example
Maybe, I have a question:
I'm on v10.1what is your favourite child (which is a drop down showing 4 instance names (HARRY,BARRY,SALLY,LARRY)
See you soonHello
There is a way to make this out-of-the-box, but all depends on your data model.
I assume here that you have 2 entities, the person and the child. The child has an attribute called 'name of the child. "
Creates a one-to-one between the person and the child relationship, that he calls "the child preferred person '...
Then, create an individual question screen. Add a control to the "relationship of entry" to the screen in question. For the 'legend', write something like "Please choose your favorite child." For the "attribute" display, choose the name of the child.
This will display the question exactly as you want - it will ask the user to select from a list of all children.
Of course, if the person can have many favorite children, create a relationship one - several. However, this will display the names of the children as the boxes, because the user is now allowed to select more than one.If the relationship is just together, you can then use this relationship to access the name of the favourite on the level of the individual child (using InstanceValueIf), or you can run the rules that apply only to the favorite child.
It's just a suggestion that Ive just tested in 10.3, I did 10.1 at hand at the moment but don't remember which is new to the brand (others, please correct me if I'm wrong). Give it a go, see if it works and get back to me, if it's not. If this does not work on 10.1 you should certainly consider the upgrade to 10.3 for a host of other reasons too. Otherwise, it is achievable with a custom control.
See you soon,.
BenBen Rogers
Senior Consultant - Monad Solutions
http://www.monadsolutions.com -
The list with the variable row height
Hi, please look at the example below
What I do is:
-J' I create an item in list with variableRowHeight set to true.
-The dataProvider contains 2 numbers: 2 and 3
-In the itemRenderer, this causes in progress of creation, respectively 2 and 3 buttons
-As you can see, the height of the list is badly calculated, a scroll bar appears.
-When you switch 2 and 3 (so that the table becomes 3 and 2), the list is too large.
-I could make a custom list class and override the method of measurement, but I can't understand what to measure. I should be able to walk through the itemRenderers and measure their height.
Any ideas?
THX,
Dany
<? XML version = "1.0" encoding = "utf-8"? >
" < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML "layout ="vertical"creationComplete =" init () "> "< mx:Script >
<! [CDATA]
Import mx.collections.ArrayCollection;
[Bindable]
private var dp:ArrayCollection;
private function init (): void
{
var a: Array = [2, 3];
DP = new ArrayCollection (a);
}
[]] >
< / mx:Script >
< mx:List width = "100%" dataProvider = variableRowHeight "{dp}" = "true" rowCount = "{dp.length}" >
< mx:itemRenderer >
< mx:Component >
< mx:VBox >
< mx:Script >
<! [CDATA]
Import mx.controls.Button;
override public function set data(value:Object):void
{
Super.Data = value;
If (this.numChildren == 0)
{
for (var i: int = 0; i < value; i ++)
{
var b:Button = new Button();
b.label = "Row" + value;
this.addChild (b);
}
}
}
[]] >
< / mx:Script >
< / mx:VBox >
< / mx:Component >
< / mx:itemRenderer >
< / mx:List >
< / mx:Application >Sorry, it's a method on a list called measureHeightOfItems. The results,
Add viewMetrics.top and down and you should have the exact size of the
List.
-
Selection of the list of clients using the clause "EXISTS".
Dear all,
I have 3 tables, say,
TABLE1:
CUST_CODE
(PRIMARY KEY)
CUST_NAME
CUST_COUNTRY_CODE
CUST_CITY_CODE
CUST_AREA_CODE
A
CUST1
COU1
CIT1
A1
B
CUST2
COU2
CIT2
A2
C
CUST3
COU2
CIT2
A3
D
CUST4
COU3
CIT4
A4
E
CUST5
COU3
CIT5
A5
TABLE2
STOCK_SYS_ID
(PRIMARY KEY)
STOCK_CUSTOMER_CODE
STOCK_CUSTOMER_
COU_CODE
STOCK_
CUSTOMER_
CIT_CODE
STOCK_
CUSTOMER_
ARE_CODE
STOCK_DOC_
CREATED
1
A
[Leaving empty as we have reference only to the customers and the date here...]
10/15/2015
2
B
15/09/2015
3
A
16/08/2015
4
C
18/08/2015
5
E
22/07/2015
6
C
31/01/2015
7
A
15/10/2014
TABLE 3
AREA_CODE
AREA_COUNTRY_CODE
AREA_CITY_CODE
A1
COU1
CIT1
A2
COU2
CIT2
A3
COU3
CIT2
A4
COU3
CIT3
A5
COU4
CIT5
How can I find the list of clients of TABLE1, which are present in TABLE2 by 2015 and have country-city-zone, both correct mapping as specified in section TABLE3 using the clause "EXISTS".
Is that my output will be like,
CUST_CODE
(ONLY CORRECT CUSTOMER CODES)
CUST_NAME
A
CUST1
B
CUST2
Thanks in advance,
Séverine Suresh
Hello
So, you want to see 3 columns in table1 correspond to 3 columns in t3. It is not enough for only 1 column equal:
Area_Code must be equal
country_code and must be equal
city_code and must be equal.
Here's a way to encode that, by using the EXISTS operator in a WHERE clause:
SELECT cust_no, cust_name
FROM table1 t1
WHEN THERE IS)
SELECT 0
Table 3 T3
WHERE t3.area_code = t1.cust_area_code
AND t3.area_country_code = t1.cust_country_code
AND t3.area_city_code = t1.cust_city_code
)
;
I hope that answers your question.
If not, please post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and the results you want to start from these data (otherwise what you've posted already).
Explain, using specific examples, how you get these results from these data.
Always say what version of Oracle you are using (for example, 11.2.0.2.0).
See the FAQ forum: Re: 2. How can I ask a question on the forums?
-
Change the VM with custom attributes defined in a CSV file
Hi all
I'm doing something that I think should be simple (but this is the first time I used powercli and am not a good code writer), but I find it hard to tell.
I created 2 custom attributes (owner and owner of the SSG system) in vCenter for my virtual machines. I have a list of vm names csv and their associates "owners". I would use powercli to read the csv file and connect to the VC server and the 'owners' of entry in the appropriate field.
I borrowed com code from various places on the internet and these forums but I can't seem to make it all work. I managed at least to read the information in the csv file and is displayed on the screen of my laptop. What I can't do is get 3 columns in the csv file to be recognized as variables (unless there is some default variables I don't know) I can put in the game-Annotation lines.
The code I have is:
# Input range, includes all IBD VM names that are registered.$data = import-Csv "C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts\vmowners1.csv"-Header ('Hostname', 'Owner', 'SSG owner')# $data | Get-MemberWrite-Output $data# Loop over all the VMS in vCenterForEach ($row in $data){# Create variables for the current virtual and its 'Contact' and 'Description' computer that are custom attribute fields. Also create a $note string to use Set-VM-Description$hostname = get-VM-name $vmname;# $contact = $vm | Get-Annotation CustomAttribute - user;# $description = $vm | Get-Annotation - CustomAttribute Description;# $note = $contact.name + ":'t" + $contact.value + "' not n" + $description.name + ":'t" + $description.value;Set Annotation - entity $hostname - CustomAttribute "Business system owner" - value $SSG_ownerSet Annotation - entity $hostname - CustomAttribute "SSG system owner" - value $system_owner# Set - VM - VM $vm - $note Description - confirm: $false;}The result, I get on my screen is:
PowerCLI C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts >.\setvmownership.ps1
Owner of the company that owns SSG host name
-------- -------------- ---------
ABPPROXY-00-AH
ACE-01-AH hung Laallmmi hung Laallmmi
Get - VM: could not validate the argument on the parameter 'name '. The argument is null or empty. Provide an argument that is not null or empty, and then try the AGM of the order
in.
To C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts\setvmownership.ps1:13 char: 29
+ $hostname = get-VM-name < < < < $vmname;
+ CategoryInfo: InvalidData: (:)) [Get - VM], ParameterBindingValidationException)
+ FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVM
Set Annotation: Impossible to validate the argument on the parameter "entity". The argument is null. Supply a non-null argument, and try the command again.
C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts\setvmownership.ps1:17 char: 23
+ Set-Annotation - entity < < < < $hostname - CustomAttribute "Business system owner" - value $SSG_owner
+ CategoryInfo: InvalidData: (:)) [game-Annotation], ParameterBindingValidationException)
+ FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutomation.ViCore.Cmdlets.Commands.SetAnnotation
Set Annotation: Impossible to validate the argument on the parameter "entity". The argument is null. Supply a non-null argument, and try the command again.
C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts\setvmownership.ps1:18 char: 23
+ Set-Annotation - entity < < < < $hostname - CustomAttribute "SSG system owner" - value $system_owner
+ CategoryInfo: InvalidData: (:)) [game-Annotation], ParameterBindingValidationException)
+ FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutomation.ViCore.Cmdlets.Commands.SetAnnotation
Get - VM: could not validate the argument on the parameter 'name '. The argument is null or empty. Provide an argument that is not null or empty, and then try the AGM of the order
in.
To C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts\setvmownership.ps1:13 char: 29
+ $hostname = get-VM-name < < < < $vmname;
+ CategoryInfo: InvalidData: (:)) [Get - VM], ParameterBindingValidationException)
+ FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVM
Set Annotation: Impossible to validate the argument on the parameter "entity". The argument is null. Supply a non-null argument, and try the command again.
C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts\setvmownership.ps1:17 char: 23
+ Set-Annotation - entity < < < < $hostname - CustomAttribute "Business system owner" - value $SSG_owner
+ CategoryInfo: InvalidData: (:)) [game-Annotation], ParameterBindingValidationException)
+ FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutomation.ViCore.Cmdlets.Commands.SetAnnotation
Set Annotation: Impossible to validate the argument on the parameter "entity". The argument is null. Supply a non-null argument, and try the command again.
C:\Program Files (x 86) \VMware\Infrastructure\vSphere PowerCLI\scripts\setvmownership.ps1:18 char: 23
+ Set-Annotation - entity < < < < $hostname - CustomAttribute "SSG system owner" - value $system_owner
+ CategoryInfo: InvalidData: (:)) [game-Annotation], ParameterBindingValidationException)
+ FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutomation.ViCore.Cmdlets.Commands.SetAnnotation
The CSV file looks like this (but continues for about 500 VMS):
I go with the option import-csv because that said something that I read in my troubleshooting efforts would empty columns and error I received and that import-csv correctly would intrepret in empty columns.
hostname, business_owner, system_owner,
ABPPROXY-00-AH,
ACE-01-AH, James Laallmmi, James Laallmmi,
acrodev-00-ah, tflessa, Bruce Hastings,.
ACT1DDB00AH, Bill Mancini, Mike Bruni,
ACT1TDB00AH, Bill Mancini, Mike Bruni,
What should I do to be able to get this script to work? I don't know that it is related to messages "argument is null." that we see in the output.
Thank you
Dan
Hello, dscottimw-
You were on the right track. There were a couple of things to change to make it work as you want:
- either remove the "-header" part of the Import-Csv line or delete the actual header of the CSV itself - these are elements in conflict (the "-Header" param names of the columns in the CSV and assumes that the CSV file has already no header row)
- you need to access the properties of the $row variable in the ForEach loop - not only call the names of the CSV column headers (this is why you may receive errors on things 'null' - whether you use variables that have no value)
Try this:
# Input array, includes all VM names from DCI that are registered.$arrVMsInfo = Import-Csv "C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\scripts\vmowners1.csv"#Write-Output $data ## loop through all VMs listed in the CSV, setting custom attrib values for eachForEach ($row in $arrVMsInfo) { ## get the VM for this row $vmThisOne = Get-VM -Name $row.hostname Set-Annotation -Entity $vmThisOne -CustomAttribute "Business System Owner" -Value $row.business_owner Set-Annotation -Entity $vmThisOne -CustomAttribute "SSG System Owner" -Value $row.system_owner} ## end foreach
And, to give it a shot without actually play the game on annotations, to make sure things go as you like, you could add a - WhatIf to each line in Set-Annotation in the ForEach loop.
Which works better for you?
-
Hello!
I have a list with a lot of images in the itemRenderer, over 500.
I use virtualization on this list.
When people scroll quickly down, it can take a bit to load images.
Issues related to the:
1. in what order the list control to load images? Up and down the entire list or Topp down only the visible part?
2. is there anyway I can give priority to a certain image to load first on others? The images have the source property set to a relative path on the server.
3. is there anything I can do to speed up the process of loading in general?
Thank you!
The list does not load images, because of your item converter. I suppose you load these images by substituting the data setter method in the rendering engine.
When the list of the first loads it creates just enough converters to show what is in view (due to virtualization), let the top 10 items. This means that the first 10 images will be loaded, but no other images will be loaded unless you scroll the list to expose new items. If you want to have some images available before others so you can have your application load them if its not busy and in this way, they could be available before the user scrolls.
Even if you were to load all images before creating the list you might seem still some flickering when scrolling because what are they are recharged in as user autour scrolls. To remedy this, you might want to consider caching the images as they are loaded, there is an example here: http://flexponential.com/2010/01/10/caching-images-loaded-from-a-spark-item-renderer/
Maybe you are looking for
-
Why YouTube think that Firefox is outdated if I run 3.6.6?
Why YouTube think that Firefox is outdated if I run 3.6.6? URL of affected sites http://www.YouTube.com
-
Forbidden (403) CSRF verification failed abandoned application?
Can someone help me fix the problem of receiving this message: Forbidden (403) CSRF verification failed abandoned application? I get this message after I try to connect an application on my Shoply site on my facebook business page. Can someone tell m
-
HP 14-g003au: Bluetooth does not
I can not useBluetooth... Please tell me how to fix it Sir... Bluetooth also here but this icon works don't no how I can fix it help me please
-
Security #KB974571 error code 0 x 80070008 cannot install
I tried to install this over and over again with a bit of luck. All other updates to the low load and install no proublem but it down loads but does not install! (#KB974571 security update error code 0 x 80070008)
-
Anyone know what might be causing this error? % CRYPTO-4-RECVD_PKT_MAC_ERR: decrypt: mac check failed for the login id = I have a Contract by the VPN IPSec tunnel using ISAKMP that keep generates this error. I checked that preshared keys are the same