Dynamic group spark with scroller component
Hi,
I am creating a dynamic group(mygrp) spark and adding elements using addElement function. I need to add a scroller to the main group object dynamically. I tried with same method [myScroller.addElement(mygrp)]. But that is not working. Please help me to resolve this issue. Basically I have a main contaner group object. Insided that some other group object, label, buttons using for loop. I need to give scroller for main group object.
Many Thanks in advance
Hi,
I am creating a dynamic group(mygrp) spark and adding elements using addElement function. I need to add a scroller to the main group object dynamically. I tried with same method [myScroller.addElement(mygrp)]. But that is not working. Please help me to resolve this issue. Basically I have a main contaner group object. Insided that some other group object, label, buttons using for loop. I need to give scroller for main group object.
Many Thanks in advance
Similar Messages
-
Dynamic group spark with scroller
Hi,
I am creating a dynamic group(mygrp) spark and adding elements using addElement function. I need to add a scroller to the main group object dynamically. I tried with same method [myScroller.addElement(mygrp)]. But that is not working. Please help me to resolve this issue. Basically I have a main contaner group object. Insided that some other group object, label, buttons using for loop. I need to give scroller for main group object.
Many Thanks in advanceHi Shailendra, the articles below should provide some guidance on how to go about this:
http://www.systemcentercentral.com/creating-dynamic-computer-groups-using-regular-expressions-in-opsmgr/
http://social.technet.microsoft.com/wiki/contents/articles/7205.operations-manager-dynamic-group-examples.aspx
https://technet.microsoft.com/library/hh212842.aspx
If you've found this post helpful, please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
MrChiyo | My blog: Technical | Twitter: MrChiyo -
XML formatting with scroll component
Hi All,
I am using CS5, AS3 and the scrollbar component as well as dynamic text from an XML file. I can format the text (color) in my XML that IS NOT being pulled into the scrollbar text. However, I have had no success formatting anything that is to scroll.
I have tried with and without CDDATA tags and nothing works. Is this allowed?
Thanks.Can you format XML with hmtl tags (eg <font> with or without accompanying CDDATA tags with a scrollbar component in Flash CS5?
I have tried numerous versions and can't get it to work. However, it works on text that isn't associated with a scrollbar component.
Here is my XML code:
<![CDATA[Content for <font color='#ffffff'>full text screen</font> would go here.Content for full text screen would go hereContent for full text screen would go hereContent for full text screen would go hereContent for full text screen would go hereContent for full text screen would go hereContent for full text screen would go hereContent for full text screen would go hereContent for full text screen would go here.Content for full text screen would go hereContent for full text screen would go hereContent for full text screen would go hereContent for full text screen would go hereContent for full text screen would go hereContent for full text screen would go hereContent for full text screen would go hereContent for full text screen would go here.Content for full text screen would go hereContent for full text screen would go hereContent for full text screen would go hereContent for full text screen would go hereContent for full text screen would go hereContent for full text screen would go hereContent for full text screen would go hereContent for full text screen would go here.Content for full text screen would go hereContent for full text screen would go hereContent for full text screen would go hereContent for full text screen would go hereContent for full text screen would go hereContent for full text screen would go hereContent for full text screen would go here]]></fulltext>
Is there any other way to format that would work? -
Making a Group or Panel Scroll
I have an application that builds a dynamic group object with controls shown in rows based the number of fields returned from an xml file. The window looks something like this:
GROUP
checkbox | statictext | edittext| checkbox |
checkbox | statictext | edittext| checkbox |
checkbox | statictext | edittext| checkbox |
checkbox | statictext | edittext| checkbox |
checkbox | statictext | edittext| checkbox |
checkbox | statictext | edittext| checkbox |
checkbox | statictext | edittext| checkbox |
I cannot control how many fields are returned as it is variable for each publication. The problem is that the UI grows vertically to match the size using the autolayoutmanager and may push the window size outside of the screen. I can constrain the Group UI object by setting the maximumSize = [400,400], but if the size of the controls in the group overflow there is no way to make them scroll. So they get clipped. So I thought it might be possible to create a group container that contained a scrollbar and a inner group object that would house the gridrows and use the onDraw method of most scriptUI controls. But I am finding this hard to do. Has anyone encountered a similiar situation or can help guide me on how to do this?
I have attached a prototype that I was working on below
var resUI =
"dialog{ alignChildren:'stack', \
outerContainer: Group{ \
groupContainer:Group{\
orientation:'column', \
maximumSize:[400,400] \
scroll:Scrollbar{ \
preferredSize:[20,400] \
var dialog = new Window(resUI);
with(dialog.outerContainer.groupContainer)
for(i = 0; i < 25;i++)
add("button",undefined,i);
//When the user changes the scrollbar determine
//how to make the groupContainer scroll to match the appropriate
//viewport
dialog.outerContainer.scroll.onChange = function()
var ticks = this.value;
//gfx = dialog.outerContainer.groupContainer.graphics;
var groupContainer = dialog.outerContainer.groupContainer;
for(var i =0; i < groupContainer.children.length;i++)
if(i < ticks)
groupContainer.children[i].visible = false;
else
groupContainer.children[i].visible = true;
dialog.layout.layout(true);
dialog.show();Here is another example of ScriptUI scrollbar experimentation:
http://www.indiscripts.com/post/2010/12/scriptui-challenge-jpeg-links-explorer
@+
Marc -
DIP fails loading dynamic groups into OID
Hello,
we're trying to load groups from OeBS into OID and associate them via dynamic groups feature with user records that was loaded earlier as follows:
personid=18630,cn=dev,cn=hrsyncusers,cn=users,dc=ic,dc=lan
orcltimezone=Asia/Yekaterinburg
displayname=NOT ASCII
employeetype=NOT ASCII
givenname=NOT ASCII
postalcode=628484
orcldateofbirth=19610404000000
orclgender=F
departmentnumber=342
uid=18630
mail=HRNULL
cn=NOT ASCII
initials=NOT ASCII
street=NOT ASCII
employeenumber=4824
middlename=NOT ASCII
l=NOT ASCII
orclhiredate=20051107000000
sn=NOT ASCII
personid=18630
c=Russia
title=NOT ASCII
objectclass=inetorgperson
objectclass=person
objectclass=organizationalperson
objectclass=orcluserv2
objectclass=kapitalperson
objectclass=country
objectclass=residentialperson
objectclass=locality
objectclass=top
Among other attributes each user entity has 'departmentNumber' that indicates number of his/her department.
Now trying to load list of departments as dynamic groups with the following config
files:
*** DevHRAgentGroups.cfg ***
[SELECT]
SELECT psv.version_number
, pos.name hierarchyname
, hou.organization_id depno
, poe.organization_id_parent parent_id
, REPLACE(hou2.name, '"') parentname
, poe.organization_id_child child_id
, REPLACE(hou.name, '"') orgname
, ldap://idm01.ic.lan:389/cn=DEV,cn=HRSyncUsers,cn=Users,dc=ic,dc=lan??sub?(depar
tmentnumber='||hou.organization_id||')' ldapuri
, hrl.meaning org_type
FROM per_organization_structures pos
, per_org_structure_versions psv
, per_org_structure_elements poe
, hr_all_organization_units hou
, hr_all_organization_units hou2
, hr_lookups hrl
WHERE pos.business_group_id = psv.business_group_id
AND pos.organization_structure_id = psv.organization_structure_id
AND pos.primary_structure_flag = 'Y'
AND psv.date_to IS NULL
AND poe.org_structure_version_id = psv.org_structure_version_id
AND poe.business_group_id = hou.business_group_id
AND poe.organization_id_child = hou.organization_id
AND poe.business_group_id = hou2.business_group_id
AND poe.organization_id_parent = hou2.organization_id
AND hrl.lookup_code = hou.type
AND hrl.enabled_flag = 'Y'
AND hrl.lookup_type = 'ORG_TYPE'
AND hrl.lookup_code NOT IN (30,40)
AND TRUNC(SYSDATE) BETWEEN hou.date_from AND NVL(hou.date_to, TO_DATE('31.12.4712','dd.mm.yyyy'))
AND hou.last_update_date >= to_date(:BINDVAR,'YYYYMMDDHH24MISS')
*** DevHRAgentGroups.map ***
DomainRules
NONLDAP:cn=DEV,cn=HRSyncGroups,cn=Groups,dc=ic,dc=lan:departmentID=%,cn=DEV,cn=HRSyncGroups,cn=Groups,dc=ic,dc=lan
AttributeRules
orgname:1: : :cn: :groupOfUniqueNames
depno:1: : :departmentID: :kapitalDepartment
ldapuri: : : :labeledURI: :orclDynamicGroup
We're getting the following error in ?/ldap/odi/log/DevHRAgentGroups.trc during HRAgent execution at mapping phase:
Normalized DN : departmentid=82,cn=dev,cn=hrsyncgroups,cn=groups,dc=ic,dc=lan
Changetype is 5
Processing modifyRadd Operation ..
Entry Not Found. Converting to an ADD op..
Processing Insert Operation ..
Performing createEntry..
Exception creating Entry : javax.naming.NamingException: [LDAP: error code 1 - Dynamic group cache update failed.]; remaining name 'departmentid=82,cn=dev,cn=
hrsyncgroups,cn=groups,dc=ic,dc=lan'
[LDAP: error code 1 - Dynamic group cache update failed.]
javax.naming.NamingException: [LDAP: error code 1 - Dynamic group cache update failed.]; remaining name 'departmentid=82,cn=dev,cn=hrsyncgroups,cn=groups,dc=i
c,dc=lan'
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3028)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2934)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2740)
at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(LdapCtx.java:777)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_createSubcontext(ComponentDirContext.java:319)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(PartialCompositeDirContext.java:248)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.createSubcontext(PartialCompositeDirContext.java:236)
at javax.naming.directory.InitialDirContext.createSubcontext(InitialDirContext.java:176)
at oracle.ldap.odip.gsi.LDAPWriter.createEntry(LDAPWriter.java:1162)
at oracle.ldap.odip.gsi.LDAPWriter.insert(LDAPWriter.java:425)
at oracle.ldap.odip.gsi.LDAPWriter.modifyRadd(LDAPWriter.java:822)
at oracle.ldap.odip.gsi.LDAPWriter.writeChanges(LDAPWriter.java:349)
at oracle.ldap.odip.engine.AgentThread.mapExecute(AgentThread.java:655)
at oracle.ldap.odip.engine.AgentThread.execMapping(AgentThread.java:376)
at oracle.ldap.odip.engine.AgentThread.run(AgentThread.java:237)
DIP_LDAPWRITER_ERROR_CREATE
Error in executing mapping DIP_LDAPWRITER_ERROR_CREATE
DIP_LDAPWRITER_ERROR_CREATE
Please, note. Loading is successful if we commenting out mapping line for labeledURI attribute (that's loading static groups).
Loading is also successful when labeledURI is mapped to
'ldap://idm01.ic.lan:389/cn=DEV,cn=HRSyncUsers,cn=Users,dc=ic,dc=lan??sub?(objec
tclass=person)' but this definetly is not what we are going to get.
I don't have ideas what's wrong for example with the following generated 'labeledURI' attribute:
ldap://idm01.ic.lan:389/cn=DEV,cn=HRSyncUsers,cn=Users,dc=ic,dc=lan??sub?(departmentnumber=82)
Any help is appreciated
Thanks,
EdwardHi Frank,
there is something wrong with departmentnumber attribute of user records. Searching users with ldapsearch using "departmentnumber=*" filter fails with the following error:
ldap_search: DSA is unwilling to perform
ldap_search: additional info: Function Not Implemented
I think this is probably the cause of failing creation of dynamic groups.
Searching on other user attributes (cn, uid, employyenumber) works fine.
Still don't understand what's wrong with this particular attribute. -
Using dynamic groups for j2ee security
Hi all,
I have my realm setup in server.xml and my standard and sun-specific deployment descriptors setup for j2ee security.
Everything seems to work fine for groups defined via uniquemember attributes (all users are specified), but I'm having trouble with dynamic groups (defined with the memberurl attribute)
How do I configure my realm in my server.xml to get this working?Hi,
I got an official answer from SUN.
"Dynamic Groups" are not (longer) supported with SJS AS 7!
It will probably be supported with SJS AS 8 SE.
If you have a iPlanet 6.5 application that is running with dynamic groups, just wait a little bit before you migrate. -
Hi,
I'm trying to get a dynamic group working with the oracle directory server enterprise edition 11.1.1.5.0 .
I've created a dynamic group like this:
dn: cn=employees,ou=groups,dc=example,dc=com
cn: employees
objectclass: top
objectclass: groupOfURLs
ou: groups
memberURL: ldap:///ou=people,dc=example,dc=com??sub?(uid=*)
but when I check for the membership, I'm just getting the dn of the user with uid = "me", but nothing else.
ldapsearch -h localhost -p 389 -D "cn=Directory Manager" -w password \
-b dc=example,dc=com "(uid=me)" isMemberOf
There was a similar question like that in the forum, but no useful answer.
Does anyone know how dynamic groups work correctly?
best regards, solst_iceHi,
Ismemberof is supported for static groups only in DSEE. Dynamic group are group definition that client apps can retrieve but there is no built-in membership evaluation in the core server.
You might want to consider Oracle Unified DIrectory that support ismemberOf for static and dynamic groups
See http://docs.oracle.com/cd/E37116_01/index.htm and Managing Users and Groups - 11g Release 2 (11.1.2)
Regards,
-Sylvain -
Scroller Component not working with TabbedViewNavigator Component (Flex Mobile)
SETUP:
-The Application itself is a MobileApplication, not TabbedMobileApplication.
-One of my pages/views (we'll call it "TabbedPage") incorporates the TabbedViewNavigator component, which calls on two other pages/views in my "views" folder; we'll call them "TabbedPageOne" and "TabbedPageTwo"; the other pages within the application are just regular View pages with components on stage, including a page that also incorporates the Scroller component, which functions properly without a hitch.
-TabbedPageOne incorporates a Scroller component (followed by a VGroup component as required) that is constrained to the whole screen (left, right, top, & bottom all equal "0").
-At runtime (on my desktop and device), when I navigate to the TabbedPage page -- consisting of TabbedPageOne & TabbedPageTwo -- the Scroller component will not scroll.
---Sidenote: I filled the page with components like buttons and labels to fill the page to the point of activating the scroll function, and although the buttons were still functioning (meaning they still respond to touch events), the Scroller still did not function.
Is there something I'm missing or doing wrong, or is this a glitch within the Flex Framework?
You help would be greatly appreciated!Sure!
--------------------------------------------------- MAIN.mxml ------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><s:MobileApplication xmlns:fx="http://ns.adobe.com/mxml/2009"xmlns:s="
library://ns.adobe.com/flex/spark"backgroundColor="
#FFFFFF" firstView="views.TabbedPage"frameRate="
60"splashScreenImage="
@Embed('splashScreen.jpg')">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
</s:MobileApplication>
-------------------------------------------------------------- TABBEDPAGE.mxml ---------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><s:View xmlns:fx="http://ns.adobe.com/mxml/2009"xmlns:s="
library://ns.adobe.com/flex/spark"actionBarVisible="
false" tabBarVisible="false" title="TabbedPage">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:TabbedViewNavigator left="0" right="0" top="0" bottom="0">
<s:ViewNavigator label="One" firstView="views.TabbedPageOne"/>
<s:ViewNavigator label="Two" firstView="views.TabbedPageTwo"/>
</s:TabbedViewNavigator>
</s:View> </s:MobileApplication>
---------------------------------------------------------------- TABBEDPAGEONE.mxml ------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?><s:View xmlns:fx="http://ns.adobe.com/mxml/2009"xmlns:s="
library://ns.adobe.com/flex/spark"actionBarVisible="
false" tabBarVisible="true" title="TabbedPageOne">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:Label x="0" y="0" width="420" height="76" color="#000000" text="One"/>
<s:Scroller left="0" right="0" top="40" bottom="0">
<s:VGroup x="0" y="0" width="100%" height="100%">
<!-- I just created these buttons so that the page scrolls--><s:Button label="Button"/>
<s:Button label="Button"/>
<s:Button label="Button"/>
<s:Button label="Button"/>
<s:Button label="Button"/>
<s:Button label="Button"/>
<s:Button label="Button"/>
<s:Button label="Button"/>
<s:Button label="Button"/>
<s:Button label="Button"/>
<s:Button label="Button"/>
<s:Button label="Button"/>
</s:VGroup>
</s:Scroller></s:View> -
Dynamic Text Feild with Dynamic Scroll Bar
I have a Dynamic Text Feild with a dynamic Scroll bar.
It loads a simple ASCI text file with some html formating.
but I still can not manage to get the text to format.
The biggest problem with the format is a big space between
paragraphs.
I am not sure why but I think the Frame must need a var to
render to html.
Can anybody help please?My text had the following, similar but no parsing string.
I guess
yourstring.split("\n\r").join("\r").split("\r\n").join("\r");
takes out the carrage returns or <br>?
I notice the one I had just say's String.
I assume that would be the text that is the string?
Thank you for sharing your knowledge of this.
var my_lv:LoadVars = new LoadVars();
my_lv.onData = function(src:String) {
if (src != undefined) {
myTxtFeild.text = src;
} else {
myTxtFile.text = "Error loading text.";
my_lv.load("CadnetPage1_html.txt"); -
LMS 2.6 dynamic groups with wildcards
Is is possible to build dynamic groups in RME using wildcards or regular expresions? The rules that I want to define would look similar to the following:
Device.System.Name StartsWith "SW" AND (
Device.System.Name contains "........X" OR
Device.System.Name contains "........Y" OR
Device.System.Name contains "........E" OR
Device.System.Name contains "........Z")
Where the device name begins with SW and there is either an X, Y, E or Z in the 8th position of the device name.This is not possible. The ruleset matching is based only on the operators available for the given property.
The best workaround I can give you is to apply your first rule, then manually adjust the membership list based on the other rules. The downside of this is that the membership list would require modification when you add new devices. -
IPhone Scroll Component with Item Renderer, which can list Facebook friend list.
Hi,
I am working on a project, in which i have to show facebook friends of user in a list which can scroll. I have made the component with scrolling functionality but, the scrolling is not working fine. Any ideas about the scroll.
Thanks in advance.
VipulHi,
Yaa, I have made my own component, and it is working fine, but when number of facebook increass, the mouse over event doesn't work, and tapping scroll freezes.
Can you suggest me some way so that i can dipatch that mouse over event repeatdly.
Vipul -
Identity Service LDAP with dynamic grouping
Hi all,
We are developing an enterprise application with oc4j and bpel.
First we managed to handle user management with XML based JAZN tool.
After that,we managed to connect identity service with iPlanet LDAP server and get users and roles(with static groups defined.)
But our client wanted static and dynamic groups together in their LDAP server,because of the complexity of their current user base.
When we try this,we cannot get the roles that are assigned with dynamic groups.But we can get the roles that are statically defined.
We check the roles from the worklist application (integration/worklistapp... thing..) and we se the static groups where we cannot see dynamic one's.
There is a section in is_config.xml like:
<roleControls>
<property name="nameattribute" value="cn"/>
<property name="objectclass" value="groupOfUniqueNames"/>
<property name="membershipsearchscope" value="onelevel"/>
<property name="memberattribute" value="uniquemember"/>
<search searchbase="ou=Groups,dc=dummy,dc=com,dc=tr" scope="onelevel" maxSizeLimit="1000" maxTimeLimit="120"/>
</roleControls>
I think the property uniquemember has an effect in this situation but I cannot find any sample configurations using dynamic groups in LDAP.
Hope somebody has already done that..I find a solution here:
http://download.oracle.com/docs/cd/E15523_01/integration.1111/e10226/hwf_config.htm
I am currently using weblogic's defaultAuthentication to test BPM 11g.
I do not know if this approach works in production environment. -
Trouble with ACIs and dynamic groups
Hi!
Does Dirctory Server stop searching for subgroups after evaluating a dynamic group?
Example:
A User "uid=A,o=company" is member of a dynamic group "cn=dyn,o=company" via memberURL: "ldap:///o=company??sub?(uid=A)".
The dynamic group "cn=dyn,o=company" is member of a static group "cn=stat,o=company" via uniquemember: "cn=dyn,o=company".
If I grant any permission using an ACI with (groupdn = "ldap:///cn=stat,o=company") user A gets that permission.
BUT
A User "uid=B,o=company" is member of a static group "cn=static,o=company" via uniquemember: "uid=B,o=company".
The static group "cn=static,o=company" is member of a dynamic group "cn=dynamic,o=company" via memberURL: "ldap:///o=company??sub?(cn=static)".
If I grant any permission using an ACI with (groupdn = "ldap:///cn=dynamic,o=company") user B does not get the permission.
Has anyone any suggestions?Hi!
Does Dirctory Server stop searching for subgroups after evaluating a dynamic group?
Example:
A User "uid=A,o=company" is member of a dynamic group "cn=dyn,o=company" via memberURL: "ldap:///o=company??sub?(uid=A)".
The dynamic group "cn=dyn,o=company" is member of a static group "cn=stat,o=company" via uniquemember: "cn=dyn,o=company".
If I grant any permission using an ACI with (groupdn = "ldap:///cn=stat,o=company") user A gets that permission.
BUT
A User "uid=B,o=company" is member of a static group "cn=static,o=company" via uniquemember: "uid=B,o=company".
The static group "cn=static,o=company" is member of a dynamic group "cn=dynamic,o=company" via memberURL: "ldap:///o=company??sub?(cn=static)".
If I grant any permission using an ACI with (groupdn = "ldap:///cn=dynamic,o=company") user B does not get the permission.
Has anyone any suggestions? -
Create Dynamic groups with multiple criteria
Hello,
I want to create a dynamic group of sql computers in a particular domain.
What should be the criteria?
System creates this:
((object is windows computer and (dns domain name equals contoso.com) and true) OR (object is SQL computers and (display name matches wildcard *) and True))
How can I set to below?
((object is windows computer and (dns domain name equals contoso.com) and true)
AND (object is SQL computers and (display name matches wildcard *) and True))
ThanksUse
the link that Blake already supplied to the site of Jonathan and use this XML part.
Replace the XXXXXXXXXX of course with the name of your class/group. Don't forget to add a reference to the SQL Server Core Library Management Pack.
<RuleId>$MPElement$</RuleId>
<GroupInstanceId>$MPElement[Name="XXXXXXXXXX"]$</GroupInstanceId>
<MembershipRules>
<MembershipRule>
<MonitoringClass>$MPElement[Name="Windows!Microsoft.Windows.Computer"]$</MonitoringClass>
<RelationshipClass>$MPElement[Name="SC!Microsoft.SystemCenter.ComputerGroupContainsComputer"]$</RelationshipClass>
<Expression>
<Contains>
<MonitoringClass>$MPElement[Name="MicrosoftSQLServerLibrary!Microsoft.SQLServer.DBEngine"]$</MonitoringClass>
<Expression>
<RegExExpression>
<ValueExpression>
<HostProperty>
<MonitoringClass>$MPElement[Name="Windows!Microsoft.Windows.Computer"]$</MonitoringClass>
<Property>$MPElement[Name="Windows!Microsoft.Windows.Computer"]/DNSName$</Property>
</HostProperty>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>domain.(dev|net)/Pattern>
</RegExExpression>
</Expression>
</Contains>
</Expression>
</MembershipRule>
</MembershipRules>
</Configuration> -
MinWidth not working with Scroller container
So, this might be a dumb question from a relative Flex newbie, but I haven't been able to figure it out for the last few hours, after trying many different combinations. In a scrolling Group, I'm able to get the vertical scrolling to behave exactly as I want it to, but the horizontal scrolling just doesn't seem to function no matter what I do.
Examples from Design view:
As you can see, the content is larger than minHeight of 800, so the scrollbar appears...hooray! Now, for the horizontal scrolling....
Horrible, ugly mega-fail. (Note also that only some of the text areas actually scale, despite the fact that they're all coded identically...what's up with that?!). I do realize that each of the nested border containers have children with fixed heights, and I'm using fluid widths throughout this layout..which may account for the different behavior. But isn't that the whole point of the minWidth property? To create a limit at which the scrollbars will appear? I know I could force the Scroller size to 300, but then it would limit the size of the viewport to a maximum of 300, which is the last thing I want. Basically, I need some help in understanding how the new Scroller system works with fluid layouts. In MX, minWidth/minHeight just worked....*sigh*
Can anyone help me fix this? Please stop me from losing faith in Abode's ability to create APIs that function inituitively.
Here's the code:
<s:BorderContainer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" dropShadowVisible="false" width="100%" height="100%">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:Scroller horizontalScrollPolicy="on" verticalScrollPolicy="auto" width="100%" height="100%">
<s:Group width="100%" height="100%" minHeight="800" minWidth="300">
<s:layout>
<s:VerticalLayout paddingLeft="10" paddingRight="10" paddingTop="10" paddingBottom="10" gap="20"/>
</s:layout>
<s:BorderContainer id="choiceContainer" width="100%" minWidth="300" height="150" cornerRadius="10" backgroundColor="0xDDDDDD" borderWeight="0" dropShadowVisible="false">
<s:layout>
<s:VerticalLayout paddingLeft="10" paddingRight="10" paddingTop="20" paddingBottom="10" gap="10"/>
</s:layout>
<s:Label text="Learner Choice" fontWeight="bold" fontSize="14"/>
<s:HGroup width="100%" height="20" verticalAlign="middle" horizontalAlign="center">
<s:Label text="Choice Label" width="100" textAlign="right"/>
<s:TextArea height="100%" width="100%" id="choiceLabelField" editable="true"/>
</s:HGroup>
<s:HGroup width="100%" height="50" verticalAlign="middle" horizontalAlign="center">
<s:Label text="Full Choice" width="100" textAlign="right"/>
<s:TextArea width="100%" height="100%" id="choiceBodyField"/>
</s:HGroup>
</s:BorderContainer>
<s:BorderContainer id="resultsContainer" width="100%" minWidth="300" height="275" cornerRadius="10" backgroundColor="0xDDDDDD" borderWeight="0" dropShadowVisible="false">
<s:layout>
<s:VerticalLayout paddingLeft="10" paddingRight="10" paddingTop="20" paddingBottom="10" gap="10"/>
</s:layout>
<s:Label text="Outcomes" fontWeight="bold" fontSize="14"/>
<s:HGroup width="100%" height="50" verticalAlign="middle" horizontalAlign="center">
<s:Label text="Coach Feedback" width="100" textAlign="right"/>
<s:TextArea width="100%" height="100%" id="feedbackBodyField"/>
</s:HGroup>
<s:HGroup width="100%" height="50" verticalAlign="middle" horizontalAlign="center">
<s:Label text="Customer Says" width="100" textAlign="right"/>
<s:TextArea width="100%" height="100%" id="saysField"/>
</s:HGroup>
<s:HGroup width="100%" height="50" verticalAlign="middle" horizontalAlign="center">
<s:Label text="Customer Thinks" width="100" textAlign="right"/>
<s:TextArea width="100%" height="100%" id="thinksField"/>
</s:HGroup>
<s:HGroup width="100%" height="20" verticalAlign="middle" horizontalAlign="center" gap="20">
<s:Label text="Satisfaction Change: "/>
<s:NumericStepper id="satisfactionStepper" maximum="100" minimum="-100"/>
<s:Label text="Expression: "/>
<s:DropDownList id="expressionDropDown" width="100"/>
</s:HGroup>
</s:BorderContainer>
<s:BorderContainer id="nextActionContainer" width="100%" minWidth="300" height="130" cornerRadius="10" backgroundColor="0xDDDDDD" borderWeight="0" dropShadowVisible="false">
<s:layout>
<s:VerticalLayout paddingLeft="10" paddingRight="10" paddingTop="20" paddingBottom="20" gap="20"/>
</s:layout>
<s:Label text="Next Action" fontWeight="bold" fontSize="14"/>
<s:HGroup width="100%" height="20" verticalAlign="middle" horizontalAlign="center">
<s:Label text="Link to " width="100" textAlign="right"/>
<s:DropDownList id="linkToDropDown" width="100%"/>
</s:HGroup>
<s:HGroup width="100%" height="20" verticalAlign="middle" horizontalAlign="center" gap="20">
<s:CheckBox id="alertCheckBox" label="Show pop-up alert before learner advances: "/>
<s:Button id="editAlertButton" label="Edit Alert" enabled="{alertCheckBox.selected}"/>
</s:HGroup>
</s:BorderContainer>
</s:Group>
</s:Scroller>
</s:BorderContainer>There have been a few bugs reported with Scroller. It is trying to take on
some new capabilities, like resizing content so it doesn't get occluded by
the scrollbars and there's been some bugs in there. In MX, the scrollbars
just showed up on top of your content, which was undesireable for many
folks.
Maybe you are looking for
-
I have a G Drive Slim external hard drive that was purchased from an Apple store. I need to back up my laptop. I've forgotten the procedure. It's not as easy as "plug it in and follow the instructions." Can anyone help?
-
My app store won't let me download none of the older versions of apps for my ipod touch 2g.
My app store won't let me download any of the older versions of an app, but in my sisters case she can and she has an ipod touch 2g just like me. She was able to download kik, twitter, instagram, and some more apps that told me I had to have ios 4.3.
-
How to remove an account from my mac book pro
I have a mac book pro, and I think it was a return from someone else, because when I got it it had an app store account on it that isnt mine, and I need to know how to remove it, can anyone help. thanks. -A
-
Is there a way of calling out all values in a String to name an object?
Is the above possible? As in the generic statement below, [class name] [objectname] = new [constructor]; to be able to make the value of a String to be the objectname? such that if this instance String s = "Peter"; Then the objectname will be Peter,
-
IE6 leaks "Handles" when calling *ANY* Java applet
Hello all IE experts, It seems that IE has "Handles" leak when it calls Java Applet. Every call to a Java method from JavaScript, IE allocate a handle and does not free it. THIS DOES NOT HAPPEN when I use mozilla or Netscape. Versions: * Windows 2000