Component Creation in Flex / Xcelsius
Hi Experts,
Although I've used Xcelsius fairly extensively over the past year or so, I haven't really had much interaction with Flex or designing my own components. I have a project coming up shortly where I will need to create a large map of their operations, with hundreds of control point 'hot-spots'. This can't be achieved in any scalable way via workarounds without absolutely destroying the performance.
This implies that I will need to create my own component. Are there any resources out there that outline fairly clearly (read: simplistically) the steps in creating an Xcelsius component, or even the conversion of a Flex 2 component to Xcelsius (as I can likely find some Flex tutorials)?
Thanks for the help!
-Brian
Sounds like a large XY or Bubble chart!
My experience is that you cannot just download the Flex demo and expect to be able to build your own components. It's a lot more involved than that, even if you do a Flex course it will not be geared towards an Xcelsius design process. Although built in Flex the actual language used is ActionScript for the Components and MXML (with some Actionscript) for the Properties sheet. So I would suggest a course in ActionScript first as the programming involved can be quite confusing and if you've been out of programming for a while (in my case a long while!) it will take time to understand fully what is happening. Time which I cannot afford to put in, so I have done the courses so that I can talk to developers in their language and write accurate informed specifications for components.
For a basic overview of Flex take a look at the great Introduction to Flex videos over at Lee Brimlow's site www.gotoandlearn.com. Also there are a lot of good learning resources from Adobe with their Flex in a Week videos: http://www.adobe.com/devnet/flex/videotraining/
I'd would jump at the chance of attending a BO Xcelsius Component Development course though.
Best of Luck
Charles
Similar Messages
-
How to add interface to customlize MXML Component when use Flex Builder 3?
How to add interface to customlize MXML Component when use
Flex Builder 3?David,
I don't believe you can add the interface via the creation
dialog in FlexBuilder 3. You can always manually add the
"implements" property to your MXML Component root tag. Something
like this: <mx:VBox implements="com.mycorp.IMyInterface">
If you want autogeneration of the interface, then create an
ActionScript class with that interface and then copy the generated
functions and setter/getters into the script block of your MXML
component. -
Revision: 7765
Author: [email protected]
Date: 2009-06-11 15:58:18 -0700 (Thu, 11 Jun 2009)
Log Message:
Fixing up some copyrights, adding copyrights, and fixing up some legal-eese for the Flash Component Kit For Flex.
Also, updating the MXP to get latest changes to base classes.
QE Notes: -
Doc Notes: -
Bugs: SDK-21670
Reviewer: No one (just header updates)
tests: checkintest (seem to fail due to local changes to ScrollBar, which I'm not checking in here)
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-21670
Modified Paths:
flex/sdk/trunk/frameworks/flash-integration/FlexComponentKit.mxp
flex/sdk/trunk/frameworks/flash-integration/readme.txt
flex/sdk/trunk/frameworks/projects/flash-integration/FlexComponentKit.mxi
flex/sdk/trunk/frameworks/projects/flash-integration/JSFL/Convert Symbol to Flex Component.jsfl
flex/sdk/trunk/frameworks/projects/flash-integration/JSFL/Convert Symbol to Flex Container.jsfl
flex/sdk/trunk/frameworks/projects/flash-integration/JSFL/MakeFlexComponent.jsfl
flex/sdk/trunk/frameworks/projects/flash-integration/readme.txt
flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/ContainerMovieClip.as
flex/sdk/trunk/frameworks/projects/flash-integration/src/mx/flash/UIMovieClip.as -
[CRM 5.2] Component Creation
Hi Gurus,
we encountered a problem during creation of a new component in SAP CRM 5.2!
we've created a new ZComponent and generated a new overview page in view node.
then we associated two external views of another component in Component Usages in Runtime Repository.
After we associated them to the viewset, put them in the Configuration tab and finally we tested the component.
We retrieve the followign error:
Context initialization failed in view CRMCMP_GS_WC/SearchLinks
An exception has occurred Exception Class CX_SY_REF_IS_INITIAL - Dereferencing of the NULL reference
Method: CL_CRMCMP_G_SEARCHLINKS_IMPL=>GET_NBS_LINKS
Source Text Row: 14
Initialization of view CRMCMP_GS_WC/SearchLinks failed
An exception has occurred Exception Class CX_SY_REF_IS_INITIAL - Dereferencing of the NULL reference
Method: CL_CRMCMP_G_SEARCHLINKS_IMPL=>GET_NBS_LINKS
Source Text Row: 14
Cannot display view IFVSearchLinks
An exception has occurred Exception Class CX_SY_REF_IS_INITIAL - Dereferencing of the NULL reference
Method: CL_CRMCMP_G_SEARCHLINKS_IMPL=>GET_NBS_LINKS
Source Text Row: 14
Initialization of view IFVSearchLinks failed
An exception has occurred Exception Class CX_BSP_WD_RUNTIME_ERROR - View CRMCMP_GS_WC/SearchLinks could not be bound
Method: CL_BSP_WD_VIEW_CONTROLLER=>BIND_VIEW
Source Text Row: 162
Cannot display view ZCOCKPIT4/ZMYVIEW
An exception has occurred Exception Class CX_BSP_WD_RUNTIME_ERROR - View CRMCMP_GS_WC/SearchLinks could not be bound
Method: CL_BSP_WD_VIEW_CONTROLLER=>BIND_VIEW
Source Text Row: 162
Cannot display window ZCOCKPIT4/MainWindow.
An exception has occurred Exception Class CX_BSP_WD_RUNTIME_ERROR - View Search.IFVSearchLinks could not be bound
Method: CL_BSP_WD_VIEW_CONTROLLER=>BIND_VIEW
Source Text Row: 162
Do you know where is the issue? Do you know if there is a guide of component creation? Can you help us?
Thanks!Martijn,
For questions on steps 1&3 they are related. When you "enhance" a view on a component you actually perform the first step of making the component ready for enhancements.
This is done by displaying the component and clicking on the "enhance component" button. This creates a "Z" storage area for your enhancements. I need to take a further look at the copy details to remember exactly where the copy should be stored.
For your question 5, yes once you add it to the repository it will appear in your customizing.
Well for that piece let's say it is a transaction list, that is an entirely new concept to make the list appear differently. You would have to adjust the underlying bol objects to make that work. By chance what is the name of the view that you are trying to copy and adjust?
There are no books available, but you can buy electronic access to the OKP materials from SAP. For more information goto service.sap.com/okp
Good luck,
Stephen -
Viewstate component creation policy .
Hi ,
I am creating a cover flow component , the one very similar to the example given in tour de flex. I see some start up delay . I thought of using states to show a screen with a spinner until the coverflow component got created . Hence , I set the currentstate="normalstate" at the creationcomplete of coverflow component and showed another panel with a spinner in it have state as "loadState" which is the default state . But I see that , the creation complete event of coverflow is not called as the component is not currently visible . I tried giving itemcreationpolicy to "immediate" but it seems Flex is not creating components for all view states . It just creates components that are visible in the default load state ( which is the panel with spinner in my case ) . Is there any way to specify creation of all components for all view states ? ( I tried creationpolicy = all too , doesn't seem to work )Hi ,
I created a sample of what I need if my question is not clear . is it possible for creationcomplete methods of both panels to be called during application startup ? currently , only the creationcomplete method of first panel gets called .
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" creationPolicy="all">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:states>
<s:State name="loadState"/>
<s:State name="afterLoadState"/>
</s:states>
<fx:Script>
<![CDATA[
private function first():void
trace(" first panel ");
private function second():void
trace(" second panel ");
]]>
</fx:Script>
<s:Panel width="239" height="308" title="One" includeIn="loadState" x="62" y="37" creationComplete="first()" click="currentState='afterLoadState'"/>
<s:Panel width="239" height="308" title="two" id="paneltwo" includeIn="afterLoadState" itemCreationPolicy="immediate" x="327" y="40" creationComplete="second()"/>
</s:Application> -
Creation of Flex Components Listening to a Custom Flex Event
Hi,
I would like to create a component in Flex which will always listen to a Cutom Event.
Say, I create an event named "MyEvent" in Flex. I associate this event toa custom component, say MyComponent (extends Button). When ever this even is triggered , I should have a set of Components listening and tracking this event using an event listener in their definition.This should be in a framework level. That is, even if we add more components in our application, they should be able to listen to the Custom Event.
Or in short, is it possible to make all the components in an application listen to a custom event triggered?Thanks for your answer.Can u please give an example so that I can understand it.Excuse me,I am a beginner in flex.
-
Layer id to component id in Flex
For designers is imperative to give individual names to layers, the thing is that these "names" in Flex continue as layer ids instead of being used as component ids (which would cut ALOT of work!!!). Please! Change this!!!!!
Well it would help save time in the development stage just by allready exporting components ids that can be used by Flex, instead of having to create from scratch the ids. I found this helpfull because i'm working with a developer and he noticed that, as every good designer, my layers have a logical naming that he could use as components ids IF Flex could use the layer's id as a component id (since the component in FC ocuppies a layer that I name specificly. If Flex could use the "search and change key words" to search for the layer's ids and automatacly change them to component's ids it wouldn't matter, but since Flex doesn't do that, and since every great FC project has to pass through Flex....
The point is that instead of having the both of us entering ids it would only be necessary for me to do it.
Or at least have a Flex transition window where i could, in FC, atribute the id i want to the component.
If i've not made myself clear i'm not talking about a generic component as you can se in the library. What i'm talking about is, for example, if I had 3 main buttons, all from the same component, in different layers (of corse), and if i named those 3 layers as "home_bt", "contacts_bt" and "faq_bt", when the project got imported to Flex, Flex would recognize the layer's ids as being each duplicate component's id in Flex....
I hope you understood me. My guess is that you guys are trying to make FC as a softer flash for non-flash users/ designers, and Flex as the developers tool, separating the too worlds that today are a bit mixed, demanding programing skills for designers and designing skills for programmers....my guess is that this is a pertinent issue in the separation of these two worlds....and me, as a designer, can help in the developing stage better and faster -
Error in application: custom component Localization in flex library project
Hi!
I created custom component in flex library project and I created resource bundle for it. Now it all compiles, but when I add the component to other project I get an error: Unable to resolve resource bundle "Guestbook" for locale "en_US".
So can someone help me with this?Where are your resource bundles located in relation to your Flex project src folder?
You may need to add the path to the bundles using Project - Properties - Flex Build Path and then add the parent folder to the resource bundles.
If this post answers your question or helps, please mark it as such.
Greg Lafrance - Flex 2 and 3 ACE certified
www.ChikaraDev.com
Flex / AIR Development, Training, and Support Services -
I'm having difficulty in understanding how to create my own components with multisim. I'm a newbie with regards to the software, so I wonder if someone could help me or even quickly do this for me?
I found the datasheet for the op amp here:
http://www.teaser.fr/~amajorel/at203a/ta7136ap.html
Thanks!
JohnHi,
http://www.ni.com/white-paper/3173/en
This link will take you directly to a helpful NI tutorial on custom components for MultiSIM,
If you're still having trouble (with something more specific) then let us know
EDIT: Also I see that you only have a datasheet for this component. The custom creation will
allow you to make components as long as you have a SPICE model. I looked around the web and cannot
find one. What you could do is write your own model (this could get tricky it depends on how much knowledge
of SPICE you have), or find another model with close enough characteristics and use its SPICE model.
You could also just find something similar from the NI MultiSIM database.
Good Luck,
Miguel V
National Instruments -
BAPI_ROUTING_CREATE problem in component creation for phantom materials
Hi,
I am using the BAPI "BAPI_ROUTING_CREATE" to create a Routing. It works fine creating the operations, Component allocations, InspectionChar creation and updating the Header data Information.
The Problem i am facing is with the allocation of components with Phantom assembly. Can any one help me in passing the Parameters to the BAPI to allocate the components with the Phantom assembly.
i am getting error message
"cpccdt-206 The component to be assigned has not been completely specified "
Thanks
PravinI i'm having exactly the same problem.
"cpccdt-206 The component to be assigned has not been completely specified "
In my case this message occurs with normal material and not Phantom materials.
Do you have any solution already?
Thanks,
Joao
Message was edited by:
João Costa TMG -
I am new to Flex web applications and I am doing research to see if functionality
contained in an existing web application can be replicated in a Flex web app.
We currently have a JSP / Struts based web application that creates a data entry
web view dynamically based on information that describes the different widgets and
their view locations as recieved from the application backend. We are looking at
migrating this application and this functionality to Flex.
When User X selects 1 of any number of data entry views, the Flex application would
receive data from the back end that contains information describing the different widgets
to display on the dynamic view: what type of widget to display ( text field,combo, line,
box, etc), the pixel specific positional information as to where each widget exists in the
view. These data entry views are not something the Flex developer designs or knows
what to expect from the backend. Flex has to generate the view on the fly based on the
information that describes the view.
The question: I fully expect there to be coding within the action scripts; before trying to
learn how to do this, is this something that Flex support.
Thanks,
BrianYep, we do something similar. We had to build out the infrastructure, but It works fine. E.g.,
var bDesc:XML = <button x="10" y="5" label="hello world" color="red"/>
var b:Button = new Button();
b.label = bDesc.@label;
b.x = bDesc.@x;
b.y = bDesc.@y;
b.setStyle('color', b.@color);
addChild(b);
In your app, the actual description (XML or other format) would be coming from the server. Then you just add it to the display list (and wire in any event handlers if necessary). In a real setting, you'll need error checking and a more formalized way of doing this, but it works reasonably well. No major snags. -
Widget creation on Flex builder and related problems - need some help
Hi all.
I am trying to create a widget like application and it seems
I have made a mistake. As you know, desktop widgets are like small
stickers, they do not appear on taskbar and can be hidden or
docked.
The problem is that I created an AIR application using Flex
Builder 3 Beta and now I cannot find how to make that application
behave like custom-shaped window. My app appears on Windows taskbar
and I don't want it. When I drag the window (which is a custom
shape) it shows that nasty dragging rectangle around it.
As far as I found out (and tried it) I need to use cod like:
var initOptions:NativeWindowInitOptions = new
NativeWindowInitOptions();
initOptions.systemChrome = NativeWindowSystemChrome.NONE;
initOptions.type = NativeWindowType.UTILITY;
to hide my window from the taskbar. But it seems I cannot use
such a code for class mx:Application. Or can I (would be grateful
for some idea)?
The main question is:
if I want to migrate my app to that NativeWindow based
solution - then NativeWindow is not an mx class and I cannot find
how I will use Flex Builder Design mode to arrange my GUI elements.
Is it somehow possible to wrap my mx:Application inside
NativeWindow and do not have to migrate the design from mxml files
to pure ActionScript?
The second issue - if I want to use some kind of subforms -
like widget settings window - when I move that window with the
mouse, it is being clipped to the region of my Application. Does
that again mean that I need to use NativeWindow for creating such a
"Widget settings" dialog window?
Thanks for any ideas (and especially for useful links and
examples :-) )Hi all.
I am trying to create a widget like application and it seems
I have made a mistake. As you know, desktop widgets are like small
stickers, they do not appear on taskbar and can be hidden or
docked.
The problem is that I created an AIR application using Flex
Builder 3 Beta and now I cannot find how to make that application
behave like custom-shaped window. My app appears on Windows taskbar
and I don't want it. When I drag the window (which is a custom
shape) it shows that nasty dragging rectangle around it.
As far as I found out (and tried it) I need to use cod like:
var initOptions:NativeWindowInitOptions = new
NativeWindowInitOptions();
initOptions.systemChrome = NativeWindowSystemChrome.NONE;
initOptions.type = NativeWindowType.UTILITY;
to hide my window from the taskbar. But it seems I cannot use
such a code for class mx:Application. Or can I (would be grateful
for some idea)?
The main question is:
if I want to migrate my app to that NativeWindow based
solution - then NativeWindow is not an mx class and I cannot find
how I will use Flex Builder Design mode to arrange my GUI elements.
Is it somehow possible to wrap my mx:Application inside
NativeWindow and do not have to migrate the design from mxml files
to pure ActionScript?
The second issue - if I want to use some kind of subforms -
like widget settings window - when I move that window with the
mouse, it is being clipped to the region of my Application. Does
that again mean that I need to use NativeWindow for creating such a
"Widget settings" dialog window?
Thanks for any ideas (and especially for useful links and
examples :-) ) -
CJ20N-Reservation no. to be passed to PR during material component creation
Hi,
In CJ20N when the user creates a material component, PR is created automatically. In this PR, the Reservation no. should also be passed.
I tried using enhancement COZF0002 and passed the reservation no. as under:
EBAN_IMP-rsnum = RESBD_IMP-rsnum.
But while saving the project, the Reservation no. is not getting stored in the PR.
Can anybody tell me how can I pass the reservation no. to PR?
Thanks in advance.-
-
Problem with Business Component creation
Hi,
I create a very simple table using
<code>
-- Create
create table TACCOUNT (
PRIMARY KEY (userid),
userid NUMBER NOT NULL,
pwd VARCHAR2(48),
email VARCHAR2(48),
address VARCHAR2(48)
</code>
<problem>
I am trying to use JDeveloper to generate an entity object
using New business component package/Next/Entity Object mapped to Schema Objects/Next/Select Table/Next/Finish
The fields generated for the object are as follows:
NoName
NoName1
Userid
Pwd
</problem>
Any idea?Turns out I was misinformed and the DB is 8.1.5. The problem sems to be either the JDBC is not correctly interperting the DB or the metadata is formatted differently. Is it possible that there is a JDBC version mismatch? How do I find out the JBDC version type on the DB? This is preventing me from creating entity objects.
Regards,
Bill -
CS3 Component Creation With Preset
I have created a CS3 component with around 10 inspectable
parameters. Now I would like to add another Inspectable parameter
with enumeration such that it contains a list of presets for the
rest of the 10 parameters. When i select any one preset from the
enumerated list the other 10 parameters should be populated with
some predeifned values and I want those values to be reflected in
the parameter panel in the IDE. How can i go about it?I have created a CS3 component with around 10 inspectable
parameters. Now I would like to add another Inspectable parameter
with enumeration such that it contains a list of presets for the
rest of the 10 parameters. When i select any one preset from the
enumerated list the other 10 parameters should be populated with
some predeifned values and I want those values to be reflected in
the parameter panel in the IDE. How can i go about it?
Maybe you are looking for
-
How do i get all stuff from ipad to go on my iphone automatically?
How do I sync everything from my ipad to automatically go to my iphone5????
-
How to avaoid space while reading from flat file
Dear all I am using forms 10g. I am reading data from flat file using Text_io. In my exception part i have written like this EXCEPTION WHEN no_data_found THEN CLIENT_TEXT_IO.Fclose(in_file);But if in my last line from the flat file is some ot
-
My ipad doesn't rotate to portrait mode when reading email why?
I have set up my mail but my ipad does not rotate to portrait
-
Here's a humdinger for all you techies. Lumia 820, all updated (black) and touchscreen is fine. I have recently found that my keyboard has become buggy. If i choose store, then use search, the line containing the letters a,s,d,f,g,h,j,k,l all wor
-
DBMS_XMLDOM... help needed
hi all, I have two domdocuments. I need to append the first document to the child of the second domdocuments domnode. while trying this i am getting the error saying that the nodes are from dfferent documents. How do I do this using dbms_xmldom. i tr