Accordion Component
Hello,
I am using an accordion component and I want all the fields
to be closed when the viewer first see it. What do I put in the
parameters to accomplish this?
Thanks,
Bernie
Bernie,
> I did find selectedIndex under the binding tab. Is that
> were I am suppose to make the change?
No. The Bindings tab allows you to set up potentially
complex data
binding between components, so that (for example) a component
button click
might update the selectedIndex property of your accordion --
all without
your having to write ActionScript -- but it's much easier to
plunk down a
quick line of code.
> Can you explain it a little more? Or are you talking
about
> adding that to the AS?
Sure thing! Sorry I wasn't more clear earlier. Select your
Accordion
in the property inspector (the Properties tab or the
Parameters tab, either
one). You'll see where you can give your component an
instance name, such
as myAccordion.
Now that the component has a unique instance name, it can be
referenced
by ActionScript. Create a new layer for your ActionScript, if
you haven't
already. Call it "scripts" or "actions" or something that
makes sense to
you. Assuming all of this is in frame 1, click into frame 1
of your scripts
layer and open the Actions panel (Window > Actions) and
type:
myAccordion.selectedIndex = -1;
... where "myAccordion" is the instance name you chose in the
previous step.
If your Accordion happens to make its appearance on frame
15, then
you'll have to add a keyframe to frame 15 of your scripts
layer and place
that line of ActionScript there. It doesn't really matter, so
long as the
keyframe that holds your code and the keyframe that
introduces the
instance-named component are aligned on the same frame.
David Stiller
Adobe Community Expert
Dev blog,
http://www.quip.net/blog/
"Luck is the residue of good design."
Similar Messages
-
Tree expand problem with Accordion Component
While using Accordion component with creationPolicy="all", tree components which are placed in accordion's different panels, will not expanded at creationcomplete.
Trees are created perfectly but not expand its level at initial creationComplete time.
If I placed tree in regular panel and executed, tree levels are perfectly expaned.
Expand level code is called at creationComplete of Tree.
Steve Roger.i got my mistake.
I am using callLater(). Now its working perfect. -
Accordion component property .enabled has no function???
Hi, the subject pretty much sums it up. I created an
accordion component, but setting its .enabled property - which
according to the component help it has (inherited from UIComponent
class) - has no effect!You can also check for problems with the places.sqlite database file in the Firefox profile folder.
*http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
*https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file -
Text in the title bar of an Accordion component
Hi -
I have an accordion component on my swf. Its working right
but the text in the title bars (where I click to flip the accordion
pages) is coming up bold when I want it normal. How do I change
this?
Thanks.
D2If you are using Windows, you do it through the Control Panel tool for customizing your desktop display. If you are using some other system, I don't know. You can't do it from your Java program.
-
Custom skin for accordion component
Hi,
I need to create an accordion component that looks like following image:
I tried this tutorial: http://blog.flexexamples.com/2009/06/21/creating-a-custom-halo-accordion-header-skin-in-fl ex-4/
I am able to create the background gradient with help of above tutorial.
I have 3 questions now:
How to style the header text?
How to add a link on the active header?
How to add rounded corner for closed state of last heading only?
Any help on this is appreciated.
Best Regards,
Alok JainYou have to download flexlib.swc file.
Just create custom itemrenderer
<CanvasButtonAccordionHeader
xmlns="flexlib.containers.accordionClasses.*"
xmlns:mx="http://www.adobe.com/2006/mxml"
mouseChildren="true"
verticalScrollPolicy="off" horizontalScrollPolicy="off"
>
<mx:Script>
YOUR SCRIPT HERE
]]>
</mx:Script>
[YOU CAN CREATE A LINK BUTTON HERE]
</CanvasButtonAccordionHeader> -
ADF Faces + accordion component
Hi all,
Has anyone out there used any 3rd party "accordion" component with ADF Faces? Examples of one's that I've found but not tried:
Google Web Toolkit (GWT) StackPanel widget - might be hard to integrate with JSF
MyFaces accordionPanel - pretty nice, but it's still in the "sandbox" project
IceFaces has an in-development accordion - IceFaces doesn't play nice with ADF Faces components on the same page due to a special renderer
Spry Accordion from Adobe - similar comments to GWT.
Some examples of what I mean:
The Mail/Tasks/Contacts item here: http://code.google.com/webtoolkit/documentation/examples/desktopclone/demo.html
http://archive.dojotoolkit.org/nightly/tests/widget/test_AccordionContainer.html
http://www.irian.at/myfaces-sandbox/accordionPanel.jsf
The closest thing in ADF Faces is the af:showOnePanel, which is pretty close, but not exactly what I'm looking for. Perhaps with some skinning, I could get it to look different (no +/- in the little triangle, etc). An update... thanks to BUG 5682799, we are not able to get rid of the little hide/disclose (+/-) widget - the skin selector for that item is ignored.
Thanks for any insight.
JohnHi John,
Bug 5682799 has been fixed in JDeveloper 10.1.3.3
If you need a one-off patch for a prior release of JDev, please contact Support.
Regards,
Didier. -
Has anybody ever used the Accordion component?
The way an Accordion component currently functions is, when a
user clicks on a segment it slides to display the content.
I would like it to slide and display the content when the
user rolls over a segment, but I can't figure out how to detect the
index of the segment that the user rolls over.
Also I can't figure out how to align the labels right and
change the text to white. My code is below, please help.
import mx.containers.Accordion;
//skinning the segments
Accordion.prototype.falseUpSkin = "falseUpSkin";
Accordion.prototype.falseDownSkin = "falseDownSkin";
Accordion.prototype.falseOverSkin = "falseOverSkin";
Accordion.prototype.falseDisabledSkin = "falseDisabledSkin";
Accordion.prototype.trueDownSkin = "trueDownSkin";
Accordion.prototype.trueUpSkin = "trueUpSkin";
Accordion.prototype.trueOverSkin = "trueOverSkin";
Accordion.prototype.trueDisabledSkin = "trueDisabledSkin";
//creating the segments
var s1 = mainAccordian.createSegment("content1", "s1",
"label1");
var s2 = mainAccordian.createSegment("content1", "s2",
"label2");
var s3 = mainAccordian.createSegment("content1", "s3",
"label3");
var s4 = mainAccordian.createSegment("content1", "s4",
"label4");
var s5 = mainAccordian.createSegment("content1", "s5",
"label5");
var s6 = mainAccordian.createSegment("content1", "s6",
"label6");
var s7 = mainAccordian.createSegment("content1", "s7",
"label7");
setAccordionStyle(mainAccordian);
// can't detect when the user rolls over a segment or get the
index
// of that segment
s1.onRollOver = function() {
// this only seems to detect when the user rolls over the
// content of the selectedIndex
//aligning the text right and changing the font color to
white doesn't work
function setAccordionStyle(accordion) {
accordion.setStyle("headerHeight", 31);
accordion.setStyle("fontFamily", "Verdana");
accordion.setStyle("textAlign", "right");
_global.styles.AccordionHeader.setStyle("fontColor",
"white");
_global.styles.AccordionHeader.setStyle("fontSize", 12);
}Hi syed..
Please use FM MD_STOCK_REQUIREMENTS_LIST_API to get all information for transaction MD04/MD05.
You might also want to check out the function module API.
MD_MRP_LIST_API
and also
check this link for extracting data from MRP tables:
http://www.sap-img.com/pp001.htm
If it helps Reward with points..
Regards Rk.. -
Customising the accordion component colours
Hi,
Does anybody know of a way to customise the colours in the
accordion component. I need to change the button colour, and the
background colour.
Thanks,
DylanYou can check that in Flash Help Components > Components
Language Reference > Accordion component (Flash Professional
only) > Customizing the Accordion component (Flash Professional
only) and also Components > Using Components > Customizing
Components. :D
It explains everything.
Here's a sample code copied from Flash Help:
var section1 = accordion.createChild(mx.core.View,
"section1", {label: "First Section"});
var section2 = accordion.createChild(mx.core.View,
"section2", {label: "Second Section"});
var input1 = section1.createChild(mx.controls.TextInput,
"input1");
var button1 = section1.createChild(mx.controls.Button,
"button1");
input1.text = "Text Input";
button1.label = "Button";
button1.move(0, input1.height + 10);
var input2 = section2.createChild(mx.controls.TextInput,
"input2");
var button2 = section2.createChild(mx.controls.Button,
"button2");
input2.text = "Text Input";
button2.label = "Button";
button2.move(0, input2.height + 10);
accordion.setStyle("fontStyle", "italic");
I think the buttons inside the components can be changed
using global styles.
Use this code:
_global.style.setStyle("color", 0xCC6699);
_global.style.setStyle("themeColor", 0xFF00FF)
_global.style.setStyle("fontSize",16);
_global.style.setStyle("fontFamily" , "_sans");
_global.style.setStyle("fontWeight" , "bold");
Change the colors :D they are in pink lol
Regards. -
Accordion Component Header selection
Hi. It's me again.
Using the Acorrdion Component, I have put together an
accordion with 5 headers. The default seems to have the first
header open and the remaining headers underneath. Is there a way to
select which header defaults as open? The accordion is rather long
and the closed headers are at the bottom. I'd like to start with
the bottom header open.
Thanks.
MartoonsHi martoons1,
Try this after creating the accordion mc:
acc_mc.selectedIndex=acc_mc.numChildren+1;
replacing acc_mc with the instance name of your accordion.
Regards
Robert -
Tree Component within Accordion Component
Hello all!
I've done a navigation scheme that uses both the accordion
and tree components. The data being gathered is from an XML file.
The only problem i'm having is getting the tree components to
display the data that they're being provided with. I did traces and
I found out that they are getting the data...can anyone take a look
at the FLA and see what's going wrong?
http://www.jake3p0.com/downloads/accordionTreeNav.zip
I'm using Flash 8No one has ever tried this? I've posted this problem on 3
different forums....flashkit, gotoandlearn and adobe....none have
any responses that help! -
Macromedia Flash Accordion component
Hi,
Can I change a "Selected headers text color" in a Flash
Accordion?
I have to change the selected header's font color. Please
suggest...I couldn't get an answer to your question, but I found this technote which may have a link that will get you where you need to go:
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14311 -
ADF Faces - Panel Accordion rendering issue
Hi, I am trying to follow this tutorial about adf faces:
http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_55/jdtut_11r2_55_2.html
but when I click on the detail items in the accordion component, the objects inside desappears and I could see a strange rendering behavior with the rest of the objects.
No errors are shown in the console. I tested it in chrome, ie8 and firefox with the same result.
Software used: jdeveloper 11.1.1.6.0, weblogic 11gR1 on win7.
Any ideas?You are aware that the sample is for jdev 11.1.2.x, so this may well be the reason why you see this behavior.
Timo -
Resizing Accordian based on the content in each component within in it.
Hi,
I wanted to know whether is there a way to resize Accordion
component based on the content in the present tab.In my Accordion I
am using four Canvas as its four children.The data in each of the
canvas changes based on the Accordian tab selected. I want to
dynamically resize the entire accordion based on the content in the
canvas for that tab.
In short the height of the Accordion need to change
dynamically based on the tab selected. I have tried using the
resizeToContent property but this didn't solve the problem.
Thanks,
amar.Hi,
We can resize it.Always give the height and weight in
percentage format. and turn off the horizontal n vertical scroll
policy in u r main application.
Hopes it helps you... -
Embedded Fonts for Accordion Headers
Does anyone know how to get embedded fonts to show up in the
accordion header? i checked out the Adobe LiveDoc on customizing
the accordion component and it says to use the setStyle method. The
font I've embedded is Futura. Here's what I've tried using
myAccordion_ac.setStyle("fontFamily", "Futura");
myAccordion_ac.setStyle("embedFonts", "true");
However, simply embedding a font and setting that boolean to
"true" doesn't work. Does anyone know how this is supposed to work?
Thanks for any help.Need Acrobat 9 Pro or Pro Extended -
Advanced > Preflight
In the Preflight dialog, open the "Options" drop-down menu and select "Create New Preflight Profile".
Give the new profile a name & save it.
In the dialog, at the left you'll see your new profile.
Locate and click on "Fixups" (2nd from bottom).
Over to the right, over the listing of fixups that appears, there is a find/search field.
Enter "embed" (the first three letters will do).
Two fixups are available.
--| Embed Fonts
--| Embed Fonts (even if text is invisible)
Select one. Under the fixup list there is an arrow pointed to the left. Click it. The center pane will display the selected fixup.
Click Save then OK.
The profile is available for use.
A Batch Sequence could be made that uses this Preflight profile to permit processing many PDFs at "one go".
[If you do not want to DIY, then use the "out of the box" profile located in the PDF fixups Group.
Both "Embed" profiles are there.]
Be well...
Message was edited by: CtDave -
Accordion effect, need help...
Heya,
So I want to create an extremely simple accordion effect. I
tried styling the default accordion component but I couldn't remove
the Halo styling to it, so unless someone can tell me how to do
that I'm looking for basic AS to show and hide a particular MC on
click. Anyone help?
Thanks!Hi Spencer,
Getting away from halo (something I've been working at for
the last three days) isn't simple, but it's definitely doable.
First, I followed the instructions in Flash help on *creating
a new theme.* As part of those instructions, you'll copy two files:
default.as and AccordionHeaderSkin.as. Through trial and error, you
can fiddle with these two files and pretty much completely define
your own colors, fonts, etc. for all components. I changed my open
header to a gradient, and the closed headers to a different
gradient. It has worked much better and more reliably than using
the getStyle approach.
Search for "theme" and "styles" in help, and follow the
instructions--they worked for me.
But once you get it all hooked up properly and can see your
changes when you Publish Preview your movie, don't freak out if you
make changes to the .as files that don't show up right away. I
found I had to close Flash and open again before most changes
appeared.
Good luck!
Maybe you are looking for
-
MacBook Pro won't boot up past gray screen?
Okay, so I was running chrome and iTunes and spotify. Spotify was playing and Avast! Detected an infection and moved it to the chest. I quit chrome and opened up a Steam game called Garry's Mod, but it wouldn't open no matter how many times I tried i
-
How to call different viewer according its filetype?
Hi guys, there is a requirement. We write a custom report which shows all the attachments of a project. and the ALV report needs the drill down function too. So the question is that how it can determine its viewer in pc according its file extension,
-
Problem storing date in MS Access using JSP
Hi all, Can anyone please help me storing date in MS Access using Java i am getting errors. I think it is probably because MS Access take "date/month". I am entering a string with date and month example 1st October as "0110". I don't know how to ente
-
FAQ:一些关于Debug的基本知识(7)
这次我们介绍user exit的使用方法. <什么是user exit> 简单的说,就是SAP在系统中为客户加入自己的程序来影响标准程序运行而准备的接口. A function exit provides the customer with the possibility to add own functionality to the system without modifying the standard program. The developers
-
PI/XI 7.0 Usgage Type installation on SCM 5.0 based on NW2004s
Hi All, I have installed mySAP SCM 5.0 on AIX 5.3 + Oracle 10.2. Initially i have selected the Usage type "AS ABAP + AS JAVA" with the application set "SCM APP" Now i want to add "PI/XI" Usage type with "SCMWCL - Web Communication Layer" software uni