Script UI layout
Hi everyone,
I made a Script UI like this:
the code:
var myDialog = app.dialogs.add({name:"Modify current years' cells"});
with(myDialog.dialogColumns.add()){
with(dialogRows.add()){
with(dialogColumns.add()){
with(borderPanels.add()){
staticTexts.add({staticLabel:"Column fill colour?"});
var myVerticalAlignmentButtons = radiobuttonGroups.add();
with(myVerticalAlignmentButtons){
radiobuttonControls.add({staticLabel:"Yes", checkedState: true});
radiobuttonControls.add({staticLabel:"No"});
with(dialogColumns.add()){
with(dialogRows.add()){
staticTexts.add({staticLabel:"Color:"});
var mySelection = dropdowns.add({stringList:["Red", "Green"], selectedIndex:1});
with(dialogRows.add()){
staticTexts.add({staticLabel:"Tint:"});
with(dialogColumns.add()){
var mySelection = dropdowns.add({stringList:["10%", "15%", "20%", "25%", "30%"], selectedIndex:2});
with(myDialog.dialogColumns.add()){
with(dialogRows.add()){
with(dialogColumns.add()){
with(borderPanels.add()){
staticTexts.add({staticLabel:"With stroke?"});
var myVerticalAlignmentButtons = radiobuttonGroups.add();
with(myVerticalAlignmentButtons){
radiobuttonControls.add({staticLabel:"Yes", checkedState: true});
radiobuttonControls.add({staticLabel:"No"});
with(dialogColumns.add()){
with(dialogRows.add()){
staticTexts.add({staticLabel:"Stroke colour:"});
var mySelection = dropdowns.add({stringList:["Red", "Green"], selectedIndex:1});
with(dialogRows.add()){
staticTexts.add({staticLabel:"Stroke weight:"});
with(dialogColumns.add()){
var mySelection = dropdowns.add({stringList:["0.5pt", "1pt", "1.5pt", "2pt"], selectedIndex:1});
with(myDialog.dialogColumns.add()){
with(dialogRows.add()){
with(dialogColumns.add()){
with(borderPanels.add()){
staticTexts.add({staticLabel:"With stroke?"});
var myVerticalAlignmentButtons = radiobuttonGroups.add();
with(myVerticalAlignmentButtons){
radiobuttonControls.add({staticLabel:"Yes", checkedState: true});
radiobuttonControls.add({staticLabel:"No"});
with(dialogColumns.add()){
with(dialogRows.add()){
staticTexts.add({staticLabel:"In which row:"});
var mySelection = dropdowns.add({stringList:["1st", "2nd", "3rd", "4th", "5th", "th"], selectedIndex:1});
myDialog.show();
but I want this layout,
Can someone help me to reorder it?
John
Hi, Jongware
I change it into this:
var myDialog = app.dialogs.add({name:"Modify current years' cells"});
with(myDialog.dialogColumns.add()){
with(dialogRows.add()){
with(dialogColumns.add()){
with(borderPanels.add()){
staticTexts.add({staticLabel:"Column fill colour?"});
var myVerticalAlignmentButtons = radiobuttonGroups.add();
with(myVerticalAlignmentButtons){
radiobuttonControls.add({staticLabel:"Yes", checkedState: true});
radiobuttonControls.add({staticLabel:"No"});
with(dialogColumns.add()){
with(borderPanels.add()){
with(dialogRows.add()){
staticTexts.add({staticLabel:"Color:"});
var mySelection = dropdowns.add({stringList:["Red", "Green"], selectedIndex:1});
with(dialogRows.add()){
staticTexts.add({staticLabel:"Tint: "});
with(dialogColumns.add()){
var mySelection = dropdowns.add({stringList:["10%", "15%", "20%", "25%", "30%"], selectedIndex:2});
with(myDialog.dialogColumns.add()){
with(dialogRows.add()){
with(dialogColumns.add()){
with(borderPanels.add()){
staticTexts.add({staticLabel:"With stroke?"});
var myVerticalAlignmentButtons = radiobuttonGroups.add();
with(myVerticalAlignmentButtons){
radiobuttonControls.add({staticLabel:"Yes", checkedState: true});
radiobuttonControls.add({staticLabel:"No"});
with(dialogColumns.add()){
with(borderPanels.add()){
with(dialogRows.add()){
staticTexts.add({staticLabel:"Stroke colour:"});
var mySelection = dropdowns.add({stringList:["Red", "Green"], selectedIndex:1});
with(dialogRows.add()){
staticTexts.add({staticLabel:"Stroke weight:"});
with(dialogColumns.add()){
var mySelection = dropdowns.add({stringList:["0.5pt", "1pt", "1.5pt", "2pt"], selectedIndex:2});
with(myDialog.dialogColumns.add()){
with(dialogRows.add()){
with(dialogColumns.add()){
with(borderPanels.add()){
staticTexts.add({staticLabel:"Dollar sign Italic?"});
var myVerticalAlignmentButtons = radiobuttonGroups.add();
with(myVerticalAlignmentButtons){
radiobuttonControls.add({staticLabel:"Yes", checkedState: true});
radiobuttonControls.add({staticLabel:"No"});
with(dialogColumns.add()){
with(borderPanels.add()){
with(dialogRows.add()){
staticTexts.add({staticLabel:"In which row:"});
var mySelection = dropdowns.add({stringList:["1st", "2nd", "3rd", "4th", "5th", "6th"], selectedIndex:1});
myDialog.show();
but the outcome like this:
no what I want
How can I move second and third cloumn under the first?
John
Similar Messages
-
Send a mail use FM 'so_object_send' with a Script form layout
Hi,
I try to send a mail use FM 'so_object_send', is it possible to use a sap script form for the layout?
Please give more details....Hi,
Did you debug and check this function module 'SO_NEW_DOCUMENT_SEND_API1' ?
As you said its giving you a sy-subrc = 2, did you check at what stage it is giving you an error ?
Also, Commit work = 'X' has nothing to do with this as you are getting an error of Sy-subrc = 2.
Also, while debugging are you getting the email address fetched from database table ? If no, then the sender's email has not been maintained. You will have to maintain the sender's email in the user details in SU02 under Address tab.
I would recommend you to go for BCS to send emails wherein you specify the sender email address directly in the program rather than adding email address in every user's logon details.
Regards,
Danish.
Edited by: Danish2285 on Mar 5, 2012 3:28 PM -
Sap Script Tabular layout creation
Hi all,
Can anybody tell me how to create tabular layout for the below text in the SAP STANDARD TEXT.
1. Asbestos 7. Hot working, grinding, hot cutting and welding
2. Confined spaces (as defined in
the Combined Spaces Regs 1997) 8. Work on/near overhead or underground services
3. Working at heights (above 2 metres) 9. Grounds maintenance
4. Work near fragile surfaces 10. Pest control
5. Interceptor and drainage cleaning 11. Work on live electrical services
6. Loading/ unloading/ large vehicles 12. Work under lifts and lifting equipment
thanks
GRcreate a paragraph in your sap-script with the right tabular.
use ,, as tabs in your standard text
use the default paragraph (***)in your standard text
call with an include the standard text
/: INCLUDE name [OBJECT o] [ID i] [LANGUAGE l] [PARAGRAPH p] [NEW-PARAGRAPH np]
use the paragraph parameter to use the paragraph you created in the sap-script
meaning of the paragraph-parameters
PARAGRAPH
The text to be included is formatted with its style allocation. With this parameter, the standard paragraph of this style can be redefined for the current call. All * paragraphs of the inserted text are formatted with the paragraph specified here.
NEW-PARAGRAPH
The first line of the included text has this format flag, provided it is not a command or comment line. If the optional entry PARAGRAPH (see above) is empty, all * paragraphs of the included text are formatted with the paragraph np specified with NEW-PARAGRAPH.
this will do i think
Gr., Frank -
In the scripts diffrenet layout sets means
In scripts we will use different layout sets ,
what is layout set there ...Hiii
different layout set means when u wanna print first & second page to print differently we will go different layout set's
we can achieve this using FM Start_form,,,,,End_form
ex: when u printing some purchase order r sales order
in the page 1 we have logo address window, header
if u dont want this details to be printed in next page
reward points if useful
regards
Jaipal -
Is it possible to script Fixed Layout EPUBs export?
For example using Javascript:
var myDocument = app.activeDocument;
myDocument.exportFile(ExportFormat.EPUB, File("PathToBook.epub"), false);
Gives a version 2 EPUB which is not what i'm after... i'm after an EPUB3.
Maybe an epubExportPreferences parameter.. or something?
Is there an API for CC 2014?There is some docuemntation for InDesign CC-2014 v10.0 (explicitly NOT for v10.1):
InDesign ExtendScript API (10.0)
Do your own documentation, if you like to:
grefel/extendscriptApiDoc · GitHub
Uwe -
Hi
i have copied a already existing sap Script(both layout SE71 and Print program Se38) in our Script but for that i am not doing any changes in Print program.
for any changes in my layout(se71) i create Perform ,and put form for that in a Subroutine pool.
but due to some requirement i have to create 2 constant window in my layout,but i am not writing any code to call that window in the print program. therefore that window are not showing in printing test.
i want to ask , there is a way to call these constant windows without not adding any code for this in prin program.
regards
AtulHi Atul ,
Since you want a constant window on all your pages .Try this!
1. Create a variable window .(with same measurements of tht of your constant window)
2. Call it every time you call new page , this will reduce the overhead too .
3. Adjust your page and make space for this window .
4. You need not change the text but just adding an additional window .
Hope it helps!
Much Regards ,
Amuktha .
Edited by: Amuktha Naraparaju on Feb 6, 2009 9:55 AM -
Flex Mobile: 3D Carousel or Coverflow layout
Anyone know if anyone has implemented a 3D carousel or coverflow layout on Flex Mobile.
I did some searching on Google and found a few for Flex on the Web but didn't look like these would work in on Flex Mobile.
Here's an example..
http://www.rialvalue.com/blog/2010/03/30/flex4-coverflow-layout/Yes. same one. But, app is only internal enterprise app for my client and is not in Market.
But, here is my code from it ...
<s:List dataProvider="{photosDP}" width="100%" height="100%"
click="listClickHandler(event)" id="list"
skinClass="CoverFlowListSkin" useVirtualLayout="false"
itemRenderer="TouchPresentationsCoverFlowRenderer">
<s:layout>
<layouts:CoverflowLayout id="coverflow" selectedIndex="{ list.selectedIndex }"
horizontalDistance="103"
selectedItemProximity="0"
depthDistance="1"
elementRotation="-70"
perspectiveProjectionX="-1"
perspectiveProjectionY="-1"/>
</s:layout>
</s:List>
renderer ....
<s:ItemRenderer
xmlns:fx="http://ns.adobe.com/mxml/2009" clipAndEnableScrolling="false"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:local="*" width="100%" height="100%">
<fx:Script>
<![CDATA[
import mx.core.FlexGlobals;
override public function set data(value:Object):void {
if(value){
img.source = FlexGlobals.topLevelApplication.assetsUrl+'Thumbs/300/'+value.imageFile;
lbl.text = value.imageCaption;
bc.visible = true;
if(lbl.text.length == 0){
bc.visible = false;
]]>
</fx:Script>
<s:layout>
<s:BasicLayout />
</s:layout>
<s:BitmapImage id="img" />
<s:BorderContainer id="bc" width="50%" height="60"
backgroundColor="#000000" cornerRadius="10" borderAlpha="0.3"
borderColor="#000000" backgroundAlpha="0.3" top="50" right="50">
<s:RichText id="lbl" textAlign="center" width="100%" backgroundAlpha="0.0" paddingTop="5" paddingBottom="5"
fontFamily="Myriad Pro-Semibold" fontSize="14"
color="white"/>
</s:BorderContainer>
</s:ItemRenderer> -
What are the components of sap script?
what are the components of sap script?
SAP scripts is a word processing tool of SAP which has the following components: Standard text. It is like a standard normal documents. Layout sets. - Layout set consists of the following components: Windows and pages, Paragraph formats, Character formats. Creating forms in the R/3 system. Every layout set consists of Header, paragraph, and character string. ABAP/4 program. Components of scripts are Layout sets, SAPScripts text, ABAP print program, symbols, function module like open form, start form, write form.
Please have a look at below links, might be useful for you.
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRPROG/BCSRVSCRPROG.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRRDI/BCSRVSCRRDI.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCREDIT/BCSRVSCREDIT.pdf
Also have a look at below links:
http://help.sap.com/saphelp_47x200/helpdata/en/d1/80318f454211d189710000e8322d00/frameset.htm
http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf.
http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
I hope it helps.
Best Regards,
Vibha
Please mark all the helpful answers -
Filters, scripts, brushes, etc... on Photoshop CS5 ?
Hello everybody,
At first, sorry for my poor english, so I'll tryied to correctly set out my question. I work on various version of Photoshop since few years and I'm regular with some "organization" inside folders as "plugins", "presets", "scripts", "brushes", "layout effects", etc... folders.
I've just installed CS5 64 bits on my Windows 7 64 bits system and.... I don't know where place all of these because I don't any specific folders like in CS3 for example... ... Hmmm. of course, I've totally uninstalled CS3 and something tell me that I must reinstall all my plugins (for information, Corel Photopaint X4 detect automaticly all of these plugins )
I'm affraid to seems ridiculous but if someone can explain to me how to install all my stuff, that would be really fine. But I'm sure that the solution is very simple.
Thank's a lot for all your help
Franck
EDIT:
Ok ! I'm really stupid !...I've just looking at the right installation folder and... everything is here >>> in "Program Files" instead "Program Files (x86)".
I'm really sorry, just a good sleep and I'm sure that my brain will work better... sorry
Message was edited by: FQuenotThat's why it is useful to select another folder for the plug-ins and point to it in the preferences (under preferences>plug-ins>additional plug-in folder)
And NEVER point that folder to the default plug-ins folder of and earlier version of Photoshop.
That said, some plug-ins might need to be reinstalled, if they are registered from a given version of Ps.
Also, saving the presets to the root of another disk makes their re-discovery easier.
There are been several features requests for a "migration" tool...
Et ne vous inquiètez pas pour votre anglais, il est très compréhensible -
How to check changes made in standerd layout set
Hi abaper's
How to check the changes made in the standard layout set , other than using Utilities--- -> Print preveiw ?Hi,
In ABAP there is no chance to check the version managment of the script , the better option to get this is to develop a small tool as follows:-
Every time u release the request of a script or layout just import that layout with (layoutname_request) no in application server. and using this RSTXFCOM program u can check transported one with existing.
Note: Everytime while checking transported one make it a local layout in RSTXFCOM we can check two layout differences.
Thanks
Pathan -
Creating executable or installer of diadem script
Hi,
Is there any way to create executable or installer of script of diadem. Which we can run on different machines without installing diadem. I mean the distribution kit creation for diadem script.
Thnks
HSHello Lesterino,
As I wrote in my previous reply, DIAdem is not a programming language and you thus require a license of DIAdem (at least DIAdem Base) to run Scripts, use layouts and create PDF files.
This is no different than - for instance - Microsoft Excel. If you want to create graphs in Excel and export these, you have to own a license of Microsoft Excel as well.
Is there anything in the DIAdem materials (our Website or the DIAdem documentation itself) that made you believe that DIAdem could be distributed for free? If so, I would like to know where that information is located so that I can have that clarified to avoid future confusion.
Let me know if there is anything else we can help you with,
Otmar
Otmar D. Foehner
Business Development Manager
DIAdem and Test Data Management
National Instruments
Austin, TX - USA
"For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary." -
Nullpointer with %=layout.htmlBegin()%
as soon as i got this tag as well as its end equivalent <%=layout.htmlEnd()%>
on my JSP i get a nullpointer in my browser. i think i have imported everything needed
to reach the tags. the other pages of my application have the same imports and properly accept the tags. any suggestions?I don't see any tags, just a call to the htmlBegin() and htmlEnd() methods of an object referenced by the scripting variable layout. Presumably the value of layout is null. Try checking your code to see how this is set.
-
What makes scripts client dependent
Hi all can anyone clarify me on waht makes scripts client dependent smart forms client independent.
Is the graphic that we do in in SE78 client independent or client dependent.
please reply..
Thanks & Regards,
Saroja.hi,
in scripts we can use graphics but in smartforms we can create color ones also.....n even background is pssible...
in sap scripts multiple layouts is not pssible whereas its possible in smartforms....even we can have more than one main window in smartform but in scripts ...a form can ahve only one main window.....
background is not possible in scripts whereas it is possible in smartforms...
these r things tht makes scripts client dependent...
if u feel its a worthy answer then dont forget to reward with points...
with regards,
madhuri. -
I am working on a PC is made of air and flashbuilder 4.6.
Drag and drop application does not work in Flash Builder 4.6.
However, the same source will work with Flash Builder 4.5.
Please help me.
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
backgroundColor="#323232" width="100%" height="100%"
initialize="init(event)"
nativeDragEnter="onDragEnter(event)"
nativeDragDrop="onDragDrop(event)">
<fx:Script>
<![CDATA[
import mx.events.FlexEvent;
protected function init(event:FlexEvent):void
addEventListener(NativeDragEvent.NATIVE_DRAG_ENTER, onDragEnter);
addEventListener(NativeDragEvent.NATIVE_DRAG_DROP, onDragDrop);
private function onDragEnter(event:NativeDragEvent):void
if (event.clipboard.hasFormat(ClipboardFormats.FILE_LIST_FORMAT))
NativeDragManager.acceptDragDrop(this);
private function onDragDrop(event:NativeDragEvent):void
var arr:Array;
arr = Array(event.clipboard.getData(ClipboardFormats.FILE_LIST_FORMAT));
startImage.source = (arr[0] as File).url;
]]>
</fx:Script>
<s:layout>
<s:VerticalLayout/>
</s:layout>
<s:BorderContainer id="bc" borderStyle="solid" width="200" height="80%"/>
<s:Image id="startImage" width="100%" height="100%"
horizontalAlign="center" verticalAlign="middle"/>
</s:WindowedApplication>Thank you answers, but it was not the answer I wanted.
[Problem]
* Flash Builder 4.5.1(updater) or Flash Builder 4.6
- If you have installed on pc, does not work adobe air drag and drop
[Solution]
1. Reinstalling the Windows 7 (32bit).
2. Install Flash Builder 4.5.
3. Flash Builder 4.5.1 updater and Flash Builder 4.6 does not install.
(Instead of using Flex SDK 4.6 is set up)
In addition, Windows7 64bit environment does not work drag and drop.
Is there another solution? -
Multiple Tooltips are not showing up when hovering over overlapping chart items
Hi!
I ran into a problem which I am unable to fix. Either I am missing something very obvious or this is a bug. I set up a LineChart with two series. One series has multiple overlapping data points, and both series overlap in one point.
Data tips are only getting displayed where the data points of the two different series overlap. Hovering over the overlapping points of a single series does not lead to multiple data tips being displayed. According to Flex SDK docs this should be possible.
Here's a simple example which shows the problem:
<?xml version = "1.0"?>
<s:Application xmlns:fx = "http://ns.adobe.com/mxml/2009"
xmlns:mx = "library://ns.adobe.com/flex/mx"
xmlns:s = "library://ns.adobe.com/flex/spark"
xmlns:local = "*">
<fx:Script>
<![CDATA[
import mx.charts.HitData;
import mx.collections.ArrayCollection;
import mx.graphics.SolidColorStroke;
[Bindable]
private var values:ArrayCollection = new ArrayCollection([{date: new Date(2010, 10, 15), value:120},
{date: new Date(2010, 11, 15), value: 60},
{date: new Date(2011, 0, 15), value: 40},
{date: new Date(2011, 0, 30), value: 7},
{date: new Date(2011, 1, 15), value: 30},
{date: new Date(2011, 1, 18), value: 61},
{date: new Date(2011, 1, 23), value: 80}]);
[Bindable]
private var values2:ArrayCollection = new ArrayCollection([{date: new Date(2010, 10, 15), value:120},
{date: new Date(2010, 11, 15), value: 200},
{date: new Date(2011, 0, 15), value: 29},
{date: new Date(2011, 0, 15, 13, 59, 99), value: 29},
{date: new Date(2011, 0, 15, 13, 58, 99), value: 29},
{date: new Date(2011, 0, 15, 13, 57, 99), value: 29.5},
{date: new Date(2011, 0, 15), value: 29.5},
{date: new Date(2011, 0, 15), value: 30},
{date: new Date(2011, 0, 15), value: 30.5},
{date: new Date(2011, 0, 15), value: 30.5},
{date: new Date(2011, 0, 15), value: 30.5},
{date: new Date(2011, 0, 15), value: 30},
{date: new Date(2011, 0, 15), value: 30},
{date: new Date(2011, 0, 15), value: 30},
{date: new Date(2011, 0, 15), value: 31},
{date: new Date(2011, 0, 15), value: 31},
{date: new Date(2011, 0, 30), value: 70},
{date: new Date(2011, 1, 15), value: 2},
{date: new Date(2011, 1, 18), value: 180},
{date: new Date(2011, 1, 23), value: 80}]);
[Bindable]
private var minDate:Date = new Date(2010, 10, 1);
[Bindable]
private var maxDate:Date = new Date();
private function getDataTip(hitData:HitData):String
return "<b>Tip:</b><br> Date: " + hitData.item.date + '<br>Value: ' + hitData.item.value;
]]>
</fx:Script>
<s:layout>
<s:VerticalLayout/>
</s:layout>
<s:width>100%</s:width>
<s:height>100%</s:height>
<s:Panel title = "Chart Test">
<s:width>100%</s:width>
<s:height>100%</s:height>
<s:layout>
<s:VerticalLayout/>
</s:layout>
<mx:PlotChart id = "chart">
<mx:width>100%</mx:width>
<mx:height>100%</mx:height>
<!-- Uncomment this in order to see that there are overlapping items -->
<!-- mx:showAllDataTips>true</mx:showAllDataTips-->
<mx:selectionMode>multiple</mx:selectionMode>
<mx:dataTipMode>multiple</mx:dataTipMode>
<mx:showDataTips>true</mx:showDataTips>
<mx:dataTipFunction>getDataTip</mx:dataTipFunction>
<mx:horizontalAxis>
<mx:DateTimeAxis minimum = "{minDate}"
maximum = "{maxDate}"/>
</mx:horizontalAxis>
<mx:series>
<mx:LineSeries dataProvider = "{values}"
displayName = "Series 1"
yField = "value"
xField = "date"
interpolateValues = "true"
lineStroke = "{new SolidColorStroke(0x00FF00, 3, 0.5)}"
stroke = "{new SolidColorStroke(0x00FF00, 3, 0.5)}"
itemRenderer = "mx.charts.renderers.CircleItemRenderer"/>
<mx:LineSeries dataProvider = "{values2}"
displayName = "Series 2"
yField = "value"
xField = "date"
interpolateValues = "true"
lineStroke = "{new SolidColorStroke(0xFF0000, 3, 0.5)}"
stroke = "{new SolidColorStroke(0xFF0000, 3, 0.5)}"
itemRenderer = "mx.charts.renderers.CircleItemRenderer"/>
</mx:series>
</mx:PlotChart>
</s:Panel>
</s:Application>
Any help is appreciated!
Thanks!Hi!
I ran into a problem which I am unable to fix. Either I am missing something very obvious or this is a bug. I set up a LineChart with two series. One series has multiple overlapping data points, and both series overlap in one point.
Data tips are only getting displayed where the data points of the two different series overlap. Hovering over the overlapping points of a single series does not lead to multiple data tips being displayed. According to Flex SDK docs this should be possible.
Here's a simple example which shows the problem:
<?xml version = "1.0"?>
<s:Application xmlns:fx = "http://ns.adobe.com/mxml/2009"
xmlns:mx = "library://ns.adobe.com/flex/mx"
xmlns:s = "library://ns.adobe.com/flex/spark"
xmlns:local = "*">
<fx:Script>
<![CDATA[
import mx.charts.HitData;
import mx.collections.ArrayCollection;
import mx.graphics.SolidColorStroke;
[Bindable]
private var values:ArrayCollection = new ArrayCollection([{date: new Date(2010, 10, 15), value:120},
{date: new Date(2010, 11, 15), value: 60},
{date: new Date(2011, 0, 15), value: 40},
{date: new Date(2011, 0, 30), value: 7},
{date: new Date(2011, 1, 15), value: 30},
{date: new Date(2011, 1, 18), value: 61},
{date: new Date(2011, 1, 23), value: 80}]);
[Bindable]
private var values2:ArrayCollection = new ArrayCollection([{date: new Date(2010, 10, 15), value:120},
{date: new Date(2010, 11, 15), value: 200},
{date: new Date(2011, 0, 15), value: 29},
{date: new Date(2011, 0, 15, 13, 59, 99), value: 29},
{date: new Date(2011, 0, 15, 13, 58, 99), value: 29},
{date: new Date(2011, 0, 15, 13, 57, 99), value: 29.5},
{date: new Date(2011, 0, 15), value: 29.5},
{date: new Date(2011, 0, 15), value: 30},
{date: new Date(2011, 0, 15), value: 30.5},
{date: new Date(2011, 0, 15), value: 30.5},
{date: new Date(2011, 0, 15), value: 30.5},
{date: new Date(2011, 0, 15), value: 30},
{date: new Date(2011, 0, 15), value: 30},
{date: new Date(2011, 0, 15), value: 30},
{date: new Date(2011, 0, 15), value: 31},
{date: new Date(2011, 0, 15), value: 31},
{date: new Date(2011, 0, 30), value: 70},
{date: new Date(2011, 1, 15), value: 2},
{date: new Date(2011, 1, 18), value: 180},
{date: new Date(2011, 1, 23), value: 80}]);
[Bindable]
private var minDate:Date = new Date(2010, 10, 1);
[Bindable]
private var maxDate:Date = new Date();
private function getDataTip(hitData:HitData):String
return "<b>Tip:</b><br> Date: " + hitData.item.date + '<br>Value: ' + hitData.item.value;
]]>
</fx:Script>
<s:layout>
<s:VerticalLayout/>
</s:layout>
<s:width>100%</s:width>
<s:height>100%</s:height>
<s:Panel title = "Chart Test">
<s:width>100%</s:width>
<s:height>100%</s:height>
<s:layout>
<s:VerticalLayout/>
</s:layout>
<mx:PlotChart id = "chart">
<mx:width>100%</mx:width>
<mx:height>100%</mx:height>
<!-- Uncomment this in order to see that there are overlapping items -->
<!-- mx:showAllDataTips>true</mx:showAllDataTips-->
<mx:selectionMode>multiple</mx:selectionMode>
<mx:dataTipMode>multiple</mx:dataTipMode>
<mx:showDataTips>true</mx:showDataTips>
<mx:dataTipFunction>getDataTip</mx:dataTipFunction>
<mx:horizontalAxis>
<mx:DateTimeAxis minimum = "{minDate}"
maximum = "{maxDate}"/>
</mx:horizontalAxis>
<mx:series>
<mx:LineSeries dataProvider = "{values}"
displayName = "Series 1"
yField = "value"
xField = "date"
interpolateValues = "true"
lineStroke = "{new SolidColorStroke(0x00FF00, 3, 0.5)}"
stroke = "{new SolidColorStroke(0x00FF00, 3, 0.5)}"
itemRenderer = "mx.charts.renderers.CircleItemRenderer"/>
<mx:LineSeries dataProvider = "{values2}"
displayName = "Series 2"
yField = "value"
xField = "date"
interpolateValues = "true"
lineStroke = "{new SolidColorStroke(0xFF0000, 3, 0.5)}"
stroke = "{new SolidColorStroke(0xFF0000, 3, 0.5)}"
itemRenderer = "mx.charts.renderers.CircleItemRenderer"/>
</mx:series>
</mx:PlotChart>
</s:Panel>
</s:Application>
Any help is appreciated!
Thanks!
Maybe you are looking for
-
i am using jdk1.3.1_02 java webserver2.0 and internet explorer 6.0 i am trying a servlet sample from "Java Servlet programming" of OREILLY .it contains a html form(one text field and one command button).i entered my name in text field and after click
-
3 user accounts on Mac with separate iTunes libraries
I have 3 user accounts on a Mac with separate iTunes libraries. Home sharing is turned on for all 3 and all use the same home sharing login Apple ID). On both Apple TV 2's all 3 libraries appear under "computers", however, only one is accesible (al
-
My phone was stolen and unfortunately i carelessly deleted my icloud account
i am whith poor english but please try to understand me!!!!!help!!! my phone was stolen on 19th may.it's still power off. first i checked icould,it said my account was "off line" then i kept cheaking,i apply to lock my phone,it views that at
-
How to use double click trigger in ListBoxItem template?
Hi all, I want to double click listBoxItem in listbox, and set this item as editable status. It says make textbox as visible, please see the below code. When press Enter key or lost focus, then make textbox as invisible and textblock as visible. It's
-
Problem open pdf file in Acrobat 9.1
Hello. i have a problem when im trying to open a pfd file in Acrobat reader 9.1 I have downloaded the file from a website: http://www.informedprepared.eu/pages/multimedia/GetDocument.aspx?id=1643 The file works fine on my colleagues computer. And if