Create dinamic component
i want to create as many image component as many are in an array
For example
private var data:ArrayCollection = new ArrayCollection();
data[0] = "pic0.jpg";
data[1] = "pic1.jpg";
data[2] = "pic2.jpg";
data[3] = "pic3.jpg";
data[4] = "pic4.jpg";
in this case i want to create 5 image component with their source image.
how do?
Hi napster,
As suggested by Alex you can try the below approaches...
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
Bindable]private var _data:ArrayCollection = new ArrayCollection(["pic0.jpg","pic1.jpg","pic2.jpg","pic3.jpg","pic4.jpg","pic5.jpg"]);
]]>
</mx:Script>
<mx:VBox verticalGap="0">
<mx:Repeater id="rptImages" recycleChildren="true" dataProvider="{_data}">
<mx:Image source="{rptImages.currentItem}" />
</mx:Repeater>
</mx:VBox>
<mx:List id="lstImages" dataProvider="{_data}">
<mx:itemRenderer>
<mx:Component>
<mx:Image source="{data}"/>
</mx:Component>
</mx:itemRenderer>
</mx:List></mx:Application>
You can use either use a Repeater component or a List control as shown in the above example.
Thanks,
Bhasker
Similar Messages
-
[Help] Create dinamically components and its id
Hello guys.
I need a help
I know it sounds weird from the title above but I have been struggling to find a better solution but can´t figure it out.
I have searched through internet but couldn´t find a solution for my problem.
Here is what I have to do.
I need to create an agenda. Every single cell has to accept an new event or delete an existing event
The idea is to show all 365 days of the year. It´s important and clearer to the user.
I´ve tried to use the <mx:Repeater> to reproduce a custom component 365 times. It was successfull but I can´t figure out a way to access those components to change its properties.
As some of them may have an apointment and others not.
<mx:HBox horizontalGap="0">
<mx:Repeater id="monthRepeater">
<mx:VBox verticalGap="0">
<mx:Box id="mes_box" borderColor="#000000"
borderStyle="solid"
borderThickness="0.5"
width="80">
<mx:LinkButton label="{monthRepeater.currentItem.month}" fontStyle="normal" fontWeight="normal"/>
</mx:Box>
<mx:VBox verticalGap="0">
<mx:Repeater id="daysRepeater">
<visao:CaixaDia id="day_caixaDia" linktexto="{daysRepeater.currentItem.day}" labeltexto="{daysRepeater.currentIndex}" />
</mx:Repeater>
</mx:VBox>
</mx:VBox>
</mx:Repeater>
</mx:HBox>
Is there a way to use <mx:Repeater> and create dinamically IDs for those components?
ThanksYou can access the objects created by a repeater as if the id were an array, as in the following sample code:
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.containers.VBox;
import mx.controls.Label;
[Bindable] private var ac:ArrayCollection = new ArrayCollection([
{vb_color: 0x000000, lb_text: "Black"},
{vb_color: 0xFFFFFF, lb_text: "White"},
{vb_color: 0xCCCCCC, lb_text: "Gray"},
{vb_color: 0xFF0000, lb_text: "Red"},
{vb_color: 0x00FF00, lb_text: "Green"},
{vb_color: 0x0000FF, lb_text: "Blue"}
private function changeUI():void{
for each(var vb:VBox in topVB){
vb.setStyle("backgroundColor", 0xFFFFFF);
for each(var lbl:Label in myLabel){
lbl.text = "changed";
]]>
</mx:Script>
<mx:Button label="Change UI" click="changeUI();"/>
<mx:Repeater id="rp" dataProvider="{ac}">
<mx:VBox id="topVB" backgroundColor="{rp.currentItem.vb_color}">
<mx:Label id="myLabel" text="{rp.currentItem.lb_text}"/>
</mx:VBox>
</mx:Repeater>
</mx:Application>
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 Training and Support Services -
Error while creating UI component.
Hi all,
In Mobile perspective I am able to create service component but when I create Mobile ui component I am getting the below error.
Software Component does not support selected Development Component Type. Required DCs are located in an SC that is not visible from the selected SC .
Please help me in resolving this.
Thanks and regards,
Rajesh.AHi Rajesh
Please follow this thread
Re: mobile plugins for NWDS 7.1
Go to development infrastructure perspective and check if required dc's are there in XOCA.
If all the plugins are there and if you stll face the problem try this..
In the plugins folder go to com.sap.tc.mobile.wdlite.ide folder
Open the plugin.xml file inside it with a notepad or text editor.
Some where near the end of file you can see something like this:
<DCDependency at-build-time="true" id=tc/mobilecfs/core/wrapper name="tc/mobile/cfs.core.wrapper".........>
Just delete this line. It wont cause any side effects.
Now restart NWDS and everything will be fine.
Regards
Vidyadhar
Edited by: Vidyadhar N on May 4, 2009 6:30 AM -
Creating Logical Component in Solman 7.1
Hi,
I want to create a Logical component for my SAP ECC managed system, could you please let me knowhow to create it.
OR is there any standard SAP document available on how to create Logical component in Solman 7.1 SP10.
Regards
P KumarhI kUMAR,
Check in SOLMAN 7.1 master guide which is available in SAP marketplace.
You can try below for creating logical component in SOLMAN:
1)Make sure that managed system has correct details in LMDB (like product components,version...etc)
2)Go to SMSY-->click on logical components in left hand side-->search for your product version i.e ERP 6.0 or Netweaver 7.0 or SCM etc.
3)Expand ERP 6.0 (in ur case)-->right click -->create logical system-->Give logical system name and version details-->Save
4)After that select systems i.e Dev system ,QUA system,PROD system of your ECC ,Then save
Thanks,
Prakash -
Is it possible to create Resuable component in Swing
Can Some one tell me Is it possible to create Resuable component in Swing?
I have around 100 applications and i have to create a common Component and I have to use for this to all 100 Applications.
If possible can u send me code.
Thanks
Mohan KumarHi Prosun Bondopadhyay ,
Component controller is the base of a wda component. its can be considered as the base class. all the other views can be considered as the sub classes of component controller. so without the base class there is no existence for sub class rt?
like we can use all the methods and attributes of a component controller(main class) across all the view(sub class) and the viceversa is not possible.
hence we cannot create a wda without component controller.
Regards
Sarath -
Cannot create ActiveX component
So, I've looked all over for an answer for this one and so far, everything I've seen offered as fixes do not work.
Exception Details: System.Exception: Cannot create ActiveX component.
Source Error:
Line 39:
Line 40: ' Create Acrobat Application object
Line 41: PDFApp = CreateObject("AcroExch.App")
I have a webserver on which is installed the latest version of Acrobat Standard.
Here is my code:
Imports System.Data
Imports System.Data.SqlClient
Imports System.Web.Configuration
Imports System.Data.OleDb
Imports System.Security
Imports System.Security.Principal
Partial Class CodeTest
Inherits System.Web.UI.Page
Dim LOGON32_LOGON_INTERACTIVE As Integer = 2
Dim LOGON32_PROVIDER_DEFAULT As Integer = 0
Dim impersonationContext As WindowsImpersonationContext
Declare Function LogonUserA Lib "advapi32.dll" (ByVal lpszUsername As String, _
ByVal lpszDomain As String, _
ByVal lpszPassword As String, _
ByVal dwLogonType As Integer, _
ByVal dwLogonProvider As Integer, _
ByRef phToken As IntPtr) As Integer
Declare Auto Function DuplicateToken Lib "advapi32.dll" ( _
ByVal ExistingTokenHandle As IntPtr, _
ByVal ImpersonationLevel As Integer, _
ByRef DuplicateTokenHandle As IntPtr) As Integer
Declare Auto Function RevertToSelf Lib "advapi32.dll" () As Long
Declare Auto Function CloseHandle Lib "kernel32.dll" (ByVal handle As IntPtr) As Long
Private Sub savePDFtoTIF(ByVal fullPathPDF As String, ByVal fullPathTIF As String)
Dim PDFApp As Acrobat.AcroApp
Dim PDDoc As Acrobat.CAcroPDDoc
Dim AVDoc As Acrobat.CAcroAVDoc
Dim JSObj As Object
If impersonateValidUser("XXXXXXX", "", "XXXXXXXXXX") Then
' Create Acrobat Application object
PDFApp = CreateObject("AcroExch.App")
' Create Acrobat Document object
PDDoc = CreateObject("AcroExch.PDDoc")
' Open PDF file
PDDoc.Open(fullPathPDF)
' Create AV doc from PDDoc object
AVDoc = PDDoc.OpenAVDoc("TempPDF")
' Hide Acrobat application so everything is done in silentmode()
PDFApp.Hide()
' Create Javascript bridge object
JSObj = PDDoc.GetJSObject()
' Attempt to save PDF to TIF image file.
' SaveAs method syntax .SaveAs( strFilePath, cConvID )
' For TIFF output the correct cConvid is
' cCovid MUST BE ALL LOWERCASE.
JSObj.SaveAs(fullPathTIF, "com.adobe.acrobat.tiff")
PDDoc.Close()
PDFApp.CloseAllDocs()
' Clean up
System.Runtime.InteropServices.Marshal.ReleaseComObject(JSObj)
JSObj = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComObject(PDFApp)
PDFApp = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComObject(PDDoc)
PDDoc = Nothing
System.Runtime.InteropServices.Marshal.ReleaseComObject(AVDoc)
AVDoc = Nothing
undoImpersonation()
Else
lblStatus.Text = "Unable to impersonate"
Exit Sub
End If
End Sub
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
savePDFtoTIF("D:\DoH\998.110803030832.pdf", "D:\DoH\Project\000.tif")
End Sub
Private Function impersonateValidUser(ByVal userName As String, _
ByVal domain As String, ByVal password As String) As Boolean
Dim tempWindowsIdentity As WindowsIdentity
Dim token As IntPtr = IntPtr.Zero
Dim tokenDuplicate As IntPtr = IntPtr.Zero
impersonateValidUser = False
If RevertToSelf() Then
If LogonUserA(userName, domain, password, LOGON32_LOGON_INTERACTIVE, LOGON32_PROVIDER_DEFAULT, token) <> 0 Then
If DuplicateToken(token, 2, tokenDuplicate) <> 0 Then
tempWindowsIdentity = New WindowsIdentity(tokenDuplicate)
impersonationContext = tempWindowsIdentity.Impersonate()
If Not impersonationContext Is Nothing Then
impersonateValidUser = True
End If
End If
End If
End If
If Not tokenDuplicate.Equals(IntPtr.Zero) Then
CloseHandle(tokenDuplicate)
End If
If Not token.Equals(IntPtr.Zero) Then
CloseHandle(token)
End If
End Function
Private Sub undoImpersonation()
impersonationContext.Undo()
End Sub
End Class
The impersonation works, as I use the same code on another page where I am manipulating file system objects through that account, with this code. Also, the code without the impersonation, works on my local machine perfectly.
Any ideas on what to do would be greatly appreciated.
JusticeLook, I got dragged into a project that was late from the start, but is a big contract for the printing company that I work for that uses a lot of Adobe products internally for what they do.
In good faith, I tried to purchase something that would work. I was in a rush and didn't read the entire EULA as I was installing it. Obviously, I wasn't trying to screw the system or I wouldn't have been here, posting about it. I also do not need an education about what is true or false on the internet. I need a solution now that is going to meet the customers needs based on what is provided here. Rather simple, and don't reallly have the time for an entire formalized consultation as to our "business needs", since this is really all we need it for and time is of the essence.
If the best Adobe can do is publicly slap customers around on forums and throw vague answers out to follow up on, then I guess it's time to seek out other solutions for our business needs. -
Help to create a component model using Calculator Web Service :(
Hello All,
Im working on EP6 SP9 and have a Calculator Web Service.
I want to create a component which should contain following UI elements:
1. <i>InputField</i> - to enter 1st number
2. <i>InputField</i> - to enter 2nd number.
3. <i>TextView</i> - To show the result
The calculator web service consists of 4 basic methods like addition, subtraction, division & multiplication.
I want to know whether how can I provide seperate buttons to each of the above mentioned functions 'coz when I add the web service while creating a component using SAP Web Dynpro (<i>using SAP NEtweaver Developer Studio 2.0.9</i>) - Model Creation step, I get an option to select only one method (and that is add).
Its not working......
I am following the steps as mentioned in help pages on Web Dynpro, section "Web Dynpro & Web Services" and example on WebServiceEmail.
Please help.......
I have to show this in a presentation on coming Friday.
Awaiting Reply.
Thanks and Warm Regards,
Ritu R Hunjan
<i></i>Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551 -
How can I create the component like ComboBox in flashlite2.0 ?
How can I create the component like ComboBox in flashlite2.0
I'm a new man, please gave me an example!
Thanks.I don't see anything special about the play button in MPMoviePlayerController....
the "glowing" effect icons are all standard UIBarButtonItem objects:
http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UIBarBut tonItem_Class/Reference/Reference.html -
Need help in finding open source for creating Login component
hi
Pls any one help me out in finding some good open source for creating login component for my application
i have heard about josso but i am not able to find how to use it if anyone can help in setting up josso i wil be very thankful to that person and also if anyone can help me finding some other open source i will be very grateful ,,
Pls help its very urgent and i am running short of timeDECODE(l.attribute_category, 'Coverage Template Header', l.attribute3) Penalty_Bonus,
DECODE(l.attribute_category, 'Coverage Break', l.attribute1) Mon_Break_Start,
DECODE(l.attribute_category, 'Transaction Type', l.attribute1) Split_Covering,Uh oh, the dreaded entity attibute value, or generic, data model.
http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:10678084117056
I am afraid slow performance is a built in feature of this database design, not much you can do in queries.
You could possibly create the views as materialized views and query those instead.
Quote from the linked article
But, how does it perform? Miserably, terribly, horribly. A simple "select
first_name, last_name from person" query is transformed into a 3-table join with
aggregates and all. Further, if the attributes are "NULLABLE" - that is, there
might not be a row in OBJECT_ATTRIBUTES for some attributes, you may have to
outer join instead of just joining which in some cases can remove more optimal
query plans from consideration.
Writing queries might look pretty straightforward, but it's impossible to do in
a performant fashion. -
BPC 7.5 - Cannot create ActiveX component
Hi all,
I am installed BPC 7.5M on win2003x64, 32bit IIS, 32bit MSSQL
when go to http://hostname/OSoft at server side or client side
it will have following error.
Anyone have any idea? i am new to BPC
thx
John
Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1309
Date: 8/19/2010
Time: 2:14:37 PM
User: N/A
Computer: hostname
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 8/19/2010 2:14:37 PM
Event time (UTC): 8/19/2010 6:14:37 AM
Event ID: 8292453043e140608735e4750f8d08d8
Event sequence: 34
Event occurrence: 11
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/root/OSoft-1-129266712148491238
Trust level: Full
Application Virtual Path: /OSoft
Application Path: D:\Program Files\BPC\Websrvr\Web\
Machine name: hostname
Process information:
Process ID: 9848
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: Exception
Exception message: Cannot create ActiveX component.
Request information:
Request URL: http://hostname/OSoft/Launch.aspx
Request path: /OSoft/Launch.aspx
User host address: IP
User: domain\user
Is authenticated: True
Authentication Type: Basic
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information: Thread ID: 7
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at Microsoft.VisualBasic.Interaction.CreateObject(String ProgId, String ServerName)
at OSoft.Consumers.ZFP.WebBase.PageBase.InitComLib()
at OSoft.Consumers.ZFP.WebBase.PageBase.MakeSecurity(String strUserID)
at OSoft.Consumers.ZFP.WebBase.PageBase.Page_Init(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Control.OnInit(EventArgs e)
at System.Web.UI.Page.OnInit(EventArgs e)
at OSoft.Consumers.ZFP.WebBase.PageBase.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)Hi,
This might be because of:
1. Missing or disabled Osoft.Services.Platform.YukonAdmin.Olap9Manager component from the Component Services>OsoftSQL2005Admin.
2. Installation pre-requisite for Application Server, SQLServer2005_ADOMD.msi has not been correctly installed or corrupted.
Would suggest you to implement the following:
1. Install the newly installed BPC Application server
2. Reboot Server
3. Install SQLServer2005_ADOMD.msi from Microsoft
4. Reinstall BPC Application Server
5. Reinstall applicable patches
Hope this helps in resolving your issue.
Regards,
Poonam -
SBL-DAT-00222: An error has occurred creating business component 'Admin SEA
Hello,
I am also facing simillar issue.
I am trying to create admin account through Siebel Data bean using Business object "Users" and business component "User";
It works from Web client. but fails from siebel databean program.
Following is an error in SCCObjManager log :-
Please ask your systems administrator to check your application configuration.
ObjMgrMiscLog Error 1 0000001650241a04:0 2012-08-13 14:26:48 (busobj.cpp (1666)) SBL-DAT-00222: An error has occurred creating business component 'Admin SEA Application' used by business object 'Users'.
Please suggest.
Siebel Environment details:-
Siebel 8.2.2.0.0 - Windows 2008 R2 SP1
Database - Oracle 11g
We are using database as security adapter.I have never worked with Databeans and neither with Siebel 8.2.2.
But when I look in Siebel 8.1.1.3 Tools at the Business Object 'Users', I don't see the business component 'Admin SEA Application'.
The Business Component does exist, but in a different Business Object.
Perhaps you should review the code of the Databean.
If all else fails, you can try to add it through Business Object 'Employee' and Business Component 'Employee'. -
Urgent!!help me! how to create UIInput component in code?
hello all
how to create UIInput component in code? my code as followed:
UIComponent nComponent = application.getComponent("Input");
if (!(nComponent instanceof UIOutput)) {
throw new ClassCastException("error message...");
nComponent.setParent(parentComponent);
nComponent.setRendererType("Text");
nComponent.setComponentId(getClientId(context,nComponent));
UIOutput newComponent = (UIOutput)nComponent;
newComponent.setValueRef("mymodel.propname");
and input can get value from model,but can not update value to model?why?how can i do?Trying to understand the code snippet you posted. Could you please explain why you are casting your input component to output, then setting the valueRef on it ??
-Jayashri -
Can bpm create dinamic task?
hi
can bpm create dinamic task?
the requirement is a fork and many(or non) task behind it.
i don't know how many, it will depend on data from db.
and it will such like "vote".
can it? how to?Check whether the ethod is properly implemented. Or just logout and login and try to do it all over again. I faced this issue and this resolved.
<b>Reward points if useful</b> -
Am not able to create software component in SLD
Am not able to create software component in SLD,
It shows the following error,
First i got this error.
[NWMss][SQLServer JDBC Driver][SQLServer]Attempt to fetch logical page (3:505360) in database 'ENW' belongs to object '861818472', not to object 'BC_SLD_INST'
Now am getting this error.
NWMss][SQLServer JDBC Driver][SQLServer]Warning: Fatal error 823 occurred at Aug 17 2007 2:21PMB??. Note the error and time, and contact your system administrator.Hi
Please restart your XI Server, SLD,J2EE Engine.
Thanks -
How create a Component Usage for a BI Report
Hi,
I am new to CRM and I am trying to Display a BI Report Inside of a CRM WebClient UI, but I cannot find where to create a Component Usage for my BI Report. I have done the following steps:
1. I defined my (BI) report in Customizing for Customer Relationship
Management under UI Framework > UI Framework Definition > Display SAP NetWeaver BI
Reports in CRM.
2. I defined a logical link in Customizing for Customer Relationship Management under UI
Framework > Technical Role Definition > Define Navigation Bar Profile.
3. I know that the next step is to create a Component Usage for the BI Report in the runtime repository
Editor. But I donu2019t know where to do this step, is their any Transaction Code for this?
Thanks for any helpHi,
Am I right in understanding that you want to make your BI report available as a link in a workcenter? If yes, then you have to make the logical links available per business role. You can get some hints from this WIKI.
[https://wiki.sdn.sap.com/wiki/display/CRM/AddyourcustomBSPcomponentasalinkinaWork+Center]
and this
[https://wiki.sdn.sap.com/wiki/display/CRM/HowtoaddcustomBIReportsonReportsWorkcenterlinkinWEB+UI]
Regards,
Arun Prakash
Maybe you are looking for
-
I got a Mac mini and in general I'm happy with it but found out that there's some software I use regularly that is just much better on Windows. They barely support OS X although technically they do. So I would like to dual boot Windows as it seems
-
Why the f**** does ios6. Not support YouTube on iPad 2? This is ridiculous if I would have known I would've never updated... I'm livid
-
IDOC generation at time to transfer order creation.
What are the config steps involved for idoc generation at the time of transfer order creation? please advise. Edited by: avi on Dec 25, 2008 5:31 AM
-
Hi , Can anyone help me on Configuring SLD in Enterprise Portal ? Other than in Visual Administrator configuration we have to do anythinig in Portal side ? Thanks Venkat
-
Help with iTunes please.
My partner and I share a laptop and I mostly use iTunes but when I log out of iTunes and she logs in it Still has all my music and none of hers ? How can she get hers and not mine ? Thanks